NakiO,

This is just off the top of my head and I haven't looked into it but you
could do something like this:

/**
 * @constructor
 * @param {google.maps.LatLng} position
 */
function FakeMarker(position) {
  this.position = position;
}

FakeMarker.prototype.setMap = function(opt_map) {};
FakeMarker.prototype.setVisible = function(opt_visible) {};

/**
 * @return {google.maps.LatLng}
 */
FakeMarker.prototype.getPosition = function() {
  return this.position;
};

And then pass an array of FakeMarkers to the MarkerClusterer. What will not
work is if there is only 1 marker in a cluster because it has nothing to
show but its up to you then what you want to do :)

- Luke

On Thu, Aug 5, 2010 at 9:28 AM, Federico Ulfo <[email protected]>wrote:

> here it is
> http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution-to-too-many.html
>
> 2010/8/4 Rossko <[email protected]>
>
> "thousands of markers" gets discussed quite regularly, if you search
>> this group
>> Example
>>
>> http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/59a52aecec860e75/eaa2891a668357b7
>>
>> "millions" is another proposition ; I think you will almost certainly
>> have to go via the server-side tile generation route simply to avoid
>> multi-Mb data transfers at wider zoom levels.
>>
>> --
>> 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]<google-maps-js-api-v3%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>>
>>
>  --
> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

-- 
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