rubensrodrigues / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Use of RichMarkers with MarkerClustererPlus as ClusterIcons #294

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Class: MarkerClustererPlus + Cluster + ClusterIcon

The MarkerClustererPlus implement in SVN r459 currently relies on an internal 
Cluster/ClusterIcon implementation that forces the use of static <img> tags.  
When building rich internet applications with a map, it would be preferable to 
directly inject <svg> tags into the DOM to allow for easily manipulation (think 
animation or other dynamic updates) through JavaScript libraries such as 
JQuery.  This <svg> injection can be accomplished through using a RichMarker, 
but the MarkerClustererPlus implementation cannot create a RichMarker to be 
used as the Cluster representation.

What is requested is decoupling the Cluster image representation from the 
clustering logic, such that the application can inject its own shim layer to 
accept cluster definitions (perhaps an array of markers that comprise the 
desired cluster) and return a RichMarker or Icon/MarkerIcon for the cluster.

Original issue reported on code.google.com by kg4...@gmail.com on 18 Feb 2014 at 5:48