Skip to content
Advertisement

Tag: google-maps-api-3

Google Maps Marker Clustering not working

I got this code from this Snippet here that works fine and changed a little bit. But now I wanted to add Marker Clustering to the map like this but I get nothing to work. I added to the head and in front of “markers1 =” but then I get the error I don’t know why this code is not

Google Maps clustering if markers greater than 5

I’m trying to add clusters into google map and below code works charm, but I need to add clusters if there are more than 5 markers at same place. How would I do that with MarkerClusterer? Answer From the MarkerClustererPlus documentation minimumClusterSize number The minimum number of markers needed in a cluster before the markers are hidden and a cluster

Place street view on major street rather than back street

Following code places camera on road closest to marker however its an back street and kind of useless for navigation. Is there way to place camera on nearest major street instead (in this case “Eastern Ave”) without changing marker’s position rather checking picking programmatically closest major street over just any closest street. http://jsfiddle.net/0LdqLzt6/ Answer Using the answer from Request main

Advertisement