thx for you answer but I'm not a developper ! and I don't want pay for
make my website! I just want make this with help so sorry if I'm a
noob in DEV.

So I try to put this 3 lines in my function loadmap :

var markers = [];
markers.push(marker);
var markerCluster = new MarkerClusterer(map, markers);

I get an error -> Marker is not define ! Ok I make a variable global
marker at the beginning of the script and now I get my marker but not
clustered. Do you know why

On Nov 27, 6:07 pm, Rossko <[email protected]> wrote:
> > on the example the data are in json , my data are in xml so if I try
> > to use this script I have more error:
>
> Doesn't matter, the clusterer is not interested in where the data
> comes from that you use to build your markers.
> You already have your script that builds markers from XML, why are tou
> trying to add that part from the example.  READ the example and
> understand what the parts do, then you will be able to apply your
> knowledge to your own script.
>
> Here are important parts highlighted
>
> >   var markers = [];
>
> creates a global array to store your markers ; name it what you like.
>
> >           markers.push(marker);
>
> stores each marker as it is created
>
> >         var markerCluster = new MarkerClusterer(map, markers);
>
> creates a clusterer, name it what you like, and gives it the array of
> markers to work with.
>
> An alternative way to set up a clusterer would be to create it "empty"
> and then add your array of markers later (after you have finished
> creating them all) using addMarkers()
>
> If you cannot understand what is happening, you might have to be less
> ambitious, or hire someone to do it for you.

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

Reply via email to