biodiv / anycluster

Server-side clustering of map markers for (Geo)Django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(JS) Marker with label broken with latest google maps api update

biodiv opened this issue · comments

The MarkerWithLabel (external code) in the javascript is broken and has to be replaced. It massively slowed down the clusterer anyway. If you need a replacement JS, take the one from https://www.anymals.org/static/anycluster/gmap_clusterer.js until I upload a new and cleaned up version.

thanks for the hint! I've debugged quite some time to figure out why my map is broken... one question: can I also use the new images from anymals.org?

Sure! I also uploaded them to this repository for easier downloading.

Another workaround provided by lmorroni is to set the google maps api to an older version:

<script src="https://maps.googleapis.com/maps/api/js?v=3.15&key=API_KEY&sensor=SET_TO_TRUE_OR_FALSE"></script>

Thanks for your advice.
Great work!!

you can now replace markerwithlabel with anycluster_marker.js which works with the latest api