[OSM-dev] On Zoom out markers should get combine.

Hardik Pancholi hardik.pancholi at gatewaytechnolabs.com
Tue May 20 06:48:51 UTC 2014


Hello,


Thanks for early reply. I checked the examples of clustering markers. 



Cluster strategy threshold is the example what I want. But I am confused with use of vector layer. Here Points are used from vector layer class. In my example I am using  OpenLayers.Layer.Markers("Markers"). Multiple markers are there on map and I want to combine them same as in cluster example. I also want to change the color of markers and want to show the count of markers on marker icon. 



In clustering example I am getting the number of markers at point, but it is when I do mouse over on it. I want the count when I do Zoom In or Zoom out.


Thanks
Hardik Pancholi  _____  

From: Yves [mailto:yvecai at gmail.com]
To: Hardik Pancholi [mailto:hardik.pancholi at gatewaytechnolabs.com], dev at openstreetmap.org
Sent: Fri, 16 May 2014 16:54:12 +0000
Subject: Re: [OSM-dev] On Zoom out markers should get combine.

  Whatever lib you use for your map, the word you are looking for is 'cluster', like in 'clustering markers'.
  Yves
  


On 16 mai 2014 16:20:23 UTC+02:00, Hardik Pancholi <hardik.pancholi at gatewaytechnolabs.com> wrote:      Hello,


I am facing one problem while showing multiple markers on map. When there are multiple markers at nearest location then it looks really messy. 


I want to show nearest markers as single marker and also want to show the number on that single maker, so I can know how many points are there.  This should done on basis of zoom level. 


If I do zoom in then number of nearest markers count should decrease. On maximum zoom out number of nearest points should increase and it should be visible as single marker with count on marker.


Thanks
Hardik Pancholi 



  _____  


dev mailing list
dev at openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev

  -- 
  Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20140520/b4d9ec8e/attachment.html>


More information about the dev mailing list