hi

you can pass a style parameter in the markerclusterer options, first define
2 style objects like:

var stylesBlue = [[
          {url: './images/b1.png',height: 52, width: 53,opt_anchor: [16,
0],opt_textColor: '#ffffff'},
          {url: './images/b2.png',height: 55,width: 56,opt_anchor: [24,
0],opt_textColor: '#ffffff'},
          {url: './images/b3.png',height: 65,width: 66,opt_anchor: [32,
0],opt_textColor: '#ffffff'}
      ]];

var stylesRed = [[
          {url: './images/r1.png',height: 52, width: 53,opt_anchor: [16,
0],opt_textColor: '#ffffff'},
          {url: './images/r2.png',height: 55,width: 56,opt_anchor: [24,
0],opt_textColor: '#ffffff'},
          {url: './images/r3.png',height: 65,width: 66,opt_anchor: [32,
0],opt_textColor: '#ffffff'}
      ]];

and then when you create the markerCluster :

var mcOptionsBlue = {gridSize: 50, maxZoom: 16, styles: stylesBlue[0]};
markerClusterBlue = new MarkerClusterer(map, batchMarkers, mcOptionsBlue );

var mcOptionsRed = {gridSize: 50, maxZoom: 16, styles: stylesRed[0]};
markerClusterRed = new MarkerClusterer(map, batchMarkers, mcOptionsRed );

On Mon, Nov 8, 2010 at 9:20 AM, midin <[email protected]> wrote:

> Hello,
>
> I've got a serious problem to be solved quite quickly. Previously I
> used MarkerClusterer utility (http://gmaps-utility-
> library.googlecode.com/svn/trunk/markerclusterer/1.0/docs/
> reference.html<http://library.googlecode.com/svn/trunk/markerclusterer/1.0/docs/%0Areference.html>)
> with no problems, but this was just because I needed
> only one type of marker (one icon, to be precious). Now I've got two
> types of markers (red/blue), differing only in teh type of icon (the
> formal structure of the marker is both the same). Now I've got two
> checkboxes and switching between these two is needed. Don't know how
> to do these two things together... Or if you know about some other
> good clusterer (for quick access to approximately 2000 markers), which
> can do the red/blue markers thing, I'd be glad to thank you for that.
>
> Thanks for answering my awkward question,
>
> midin
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>


-- 
Marcelo Andrés Pinto Bravo

-- 
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 [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-api?hl=en.

Reply via email to