0 Replies Latest reply on Sep 30, 2010 11:26 AM by stuttsdc

    Extending CFMAP


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


      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!


      A Simple MarkerClusterer Example:


      This example will show 100 markers on map.


        if(GBrowserIsCompatible()) {
      = new GMap2($('map'));
      .setCenter(new GLatLng(39.91, 116.38), 2);
      .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);
      var markerCluster = new MarkerClusterer(map, markers);