Thursday, January 13, 2011

[Google Maps API v2] Two MarkerClusterer Questions (custom icons and GEvent.addListener())

Hey everyone!

I recently discovered Xiaoxi Wu's MarkerClusterer solution (http://
googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution-to-
too-many.html
) , and have been experimenting with it for the past two
days: http://www.mapformation.com/aboutus/clients/mashup.htm

I created a sample data.json file that currently has 19 records, and
it is clustering the points as-advertised! Only two problems that I'm
sure are easy for an expert to solve, but whose solutions have eluded
me so far:

1. Deleting the shadow that was displaying with Xiaoxi's default
sample (since I replaced that less-attractive blue default marker with
a red circle and a white star). I assume that is buried somewhere in
the markerclusterer.js file (http://www.mapformation.com/templates/
scripts/markerclusterer.js
), but I haven't found it.

2. Including the ability to click on any individual marker (non-
clustered markers) and have it open a standard Google window/bubble
with information inside.

My data.json file includes the following fields:

"client_id"
"client_name"
"client_url"
"client_info"
"mapformation_link"
"long"
"lat"

I know the lat/long is working because the points are displaying in
the correct locations. However, I am not savvy enough to figure out
how to display the client name, URL, client info, and mapformation
link info in that Google window/bubble without help.

I read through 70-80 posts of people who reported similar problems.
However, all of the solutions people shared were either "read this
page/link" (which I had already done) or included a lot of customized
code solutions that strayed a lot further from Xiaoxi's original
solution.

If anyone is out there and could help me figure out the code I would
need to fix these two issues, I would be grateful. Thanks in advance
for your time! - Derek

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate