Drupal MapsShowing big amount of map points inviews
Typical Drupal Map ViewsRecipeviewsleafletgeocodergeofieldaddressfieldopenlayersetc.. etc..
IT WORKS! The End, EASY!
You want what?!2000 map points in the map?sure .. Drupal can do that easy.HEHE I just set the limit of views to no limit!Y...
Your map looks ugly?
Your map page is slow?Theres actually a drupal-tific explaination forthat:http://drupal.org/node/1828584Its a troublesome ...
What those numbers dontmean much to you?Current MAP Profile (Openlayers)Executed 90 queries in 240.71 ms. Queries exceedin...
I heard from the interwebsthat you must cluster.http://drupal.org/project/leaflet_markercluster
WHAT?! your map page isslow?Theres actually drupal-tific explaination for that.(Leaflet) After Client Side ClusteringExecu...
OK! I tawked to anconsultantShe sez best thing evar is http://drupal.org/project/geocluster
What she clicked howmany times?The system admin is reporting too many ajaxcalls..
We have a plan..
Ok.. its close but we needmore time ;)Progressively enhance server-side with client-sideclusteringhttp://drupal.org/node/1...
Upcoming SlideShare
Loading in …5
×

Drupal Maps, Clustering.

1,848 views

Published on

Published in: Technology
  • Be the first to comment

Drupal Maps, Clustering.

  1. 1. Drupal MapsShowing big amount of map points inviews
  2. 2. Typical Drupal Map ViewsRecipeviewsleafletgeocodergeofieldaddressfieldopenlayersetc.. etc..
  3. 3. IT WORKS! The End, EASY!
  4. 4. You want what?!2000 map points in the map?sure .. Drupal can do that easy.HEHE I just set the limit of views to no limit!Yay no limit views!
  5. 5. Your map looks ugly?
  6. 6. Your map page is slow?Theres actually a drupal-tific explaination forthat:http://drupal.org/node/1828584Its a troublesome space trying to deal with presenting large amounts of map points on a map. Typically in drupal space becauseof other implementations of drupal views mapping integration we experience an exponential theme function calls that directlydependent on the number of records and fields on a view. Thus we encounter "slow" pages in drupal views map pages.Hey with a dataset of 2500+ records and 3 fields having an average number of function calls of over a million plus. Yup its goingslow.For example 2500+ records, 3 fields.Openlayers http://drupal.org/project/openlayers : average of 4.1 million function callsLeaflet http://drupal.org/project/leaflet : average of 1.3 million function callsLeaflet with clientside geoclustering http://drupal.org/project/leaflet_markercluster : average of 1.3 million function callsIMPRESSED?! Now lets move on to billcharges..
  7. 7. What those numbers dontmean much to you?Current MAP Profile (Openlayers)Executed 90 queries in 240.71 ms. Queries exceeding 5 ms are highlighted.Overall SummaryTotal Incl. Wall Time (microsec): 104,400,257 microsecsTotal Incl. CPU (microsecs): 104,150,000 microsecsTotal Incl. MemUse (bytes): 183,759,392 bytesTotal Incl. PeakMemUse (bytes): 261,900,368 bytesNumber of Function Calls: 5,615,141(Leaflet) Before Client Side ClusteringExecuted 7831 queries in 1920.3 ms. Queries exceeding 5 ms are highlighted.Total Incl. Wall Time (microsec): 27,077,213 microsecsTotal Incl. CPU (microsecs): 26,560,000 microsecsTotal Incl. MemUse (bytes): 242,216,840 bytesTotal Incl. PeakMemUse (bytes): 242,562,616 bytesNumber of Function Calls: 1,303,140See Screenshot: Screenshot-leaflet-before-geoclustering-clientside.png
  8. 8. I heard from the interwebsthat you must cluster.http://drupal.org/project/leaflet_markercluster
  9. 9. WHAT?! your map page isslow?Theres actually drupal-tific explaination for that.(Leaflet) After Client Side ClusteringExecuted 7826 queries in 1913.9 ms. Queries exceeding 5 ms are highlighted.Overall SummaryTotal Incl. Wall Time (microsec): 27,534,700 microsecsTotal Incl. CPU (microsecs): 27,030,000 microsecsTotal Incl. MemUse (bytes): 236,385,248 bytesTotal Incl. PeakMemUse (bytes): 236,872,064 bytesNumber of Function Calls: 1,302,893See Screenshot: Screenshot-leaflet-after-clientside-clustering.pngIMPRESSED?! Now lets move on to billcharges..
  10. 10. OK! I tawked to anconsultantShe sez best thing evar is http://drupal.org/project/geocluster
  11. 11. What she clicked howmany times?The system admin is reporting too many ajaxcalls..
  12. 12. We have a plan..
  13. 13. Ok.. its close but we needmore time ;)Progressively enhance server-side with client-sideclusteringhttp://drupal.org/node/1914704See you at the issue queues.http://www.drupal.org/project/geocluster

×