I am new to CFMAP and I have a situation where my query can return far too many 
markers.

<cfmap centeraddress="St. Louis, MO" name="myMap">
          <cfloop query="myQuery">
            <cfmapitem name="#ID#" latitude="#Y#" longitude="#X#">
        </cfloop>
      </cfmap>


I very much would like to make use of the supported MarkerCluster utility.  
However, when you look at the sample code, it's not clear to me how I could 
incorporate it, since the cfmap uses the cfmapitem tag to populate the map.

My page has allows the user to create a query and then refreshes the page, 
running that query (myQuery) and it populates both a cfgrid and the cfmap.  
help!

http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/docs/reference.html

A Simple MarkerClusterer Example:
This example will show 100 markers on map.

  if(GBrowserIsCompatible()) {
    map = new GMap2($('map'));
    map.setCenter(new GLatLng(39.91, 116.38), 2);
    map.addControl(new GLargeMapControl());

    var markers = [];
    for (var i = 0; i < 100; ++i) {
      var latlng = new GLatLng(data.photos[i].latitude, 
data.photos[i].longitude);
      var marker = new GMarker(latlng);
      markers.push(marker);
    }
    var markerCluster = new MarkerClusterer(map, markers);
  } 
. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337714
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to