1

My goal is to show label texts to markers, but as long as screen makes it somehow possible, with no overlap on the label textes.

I have something like this in mind: enter image description here

I already saw my goal on a map, but I don't have any code from it: enter image description here

What to do?

peterh
  • 11,875
  • 18
  • 85
  • 108
gogcam
  • 87
  • 1
  • 8
  • 1
    Perhaps try the approach here: http://stackoverflow.com/questions/7092085/pixel-distance-in-google-map-api-v3-to-avoid-overlapping-labels-overlays If it's just your markers, you can use [MarkerClusters](https://developers.google.com/maps/articles/toomanymarkers) or the [Spiderfier](https://github.com/jawj/OverlappingMarkerSpiderfier) – Andy Mar 24 '15 at 15:34
  • Thank you for your answer. Is there another easier solution? I think calculating this stuff can be very complicated and must be done for every zoom level again. – gogcam Mar 25 '15 at 07:18
  • Did you found any soluntion.I also in great need for this.And where did yo saw it? – Somnath Kharat Jul 20 '16 at 13:31
  • No. We changed to use GoogleMaps MarkerClusterer, which imo anyway looks better (imagine you have 1000+ marker on map): https://github.com/googlemaps/js-marker-clusterer – gogcam Jul 21 '16 at 14:55

0 Answers0