markermanager

Hide a circle along with the binded marker

南楼画角 提交于 2019-12-25 16:57:31
问题 I'm working with Google Maps v3 and I use the MarkerManager to hide the markers on a certain zoom level. I bind circle objects to these markers. Anyway, they aren't hided when the markers are. How can I bind the circles to hide with the markers? The binding: var marker = new google.maps.Marker({ position: new google.maps.LatLng(lat,lng), }); var circle = new google.maps.Circle({ map: map, radius: 50, }); circle.bindTo('center', marker, 'position'); Array.push(marker); 回答1: Did you solved your

Maps API v3 clustering at different zoom levels

a 夏天 提交于 2019-12-01 20:21:56
问题 I am working on a map project where I need clustering. I implemented a store locator and used MarkerClusterer which works fine. Now I have another requirement from the customer and I wonder which solution I should use to achieve these goals: Zoom level 0: Cluster markers within 1500km distance to each other Zoom level 1: Cluster within 1000km Zoom level 2: Cluster within 750km Zoom level 3: Cluster within 400km Zoom level 4 and above: no clustering I was thinking I should be using

Maps API v3 clustering at different zoom levels

…衆ロ難τιáo~ 提交于 2019-12-01 19:43:01
I am working on a map project where I need clustering. I implemented a store locator and used MarkerClusterer which works fine. Now I have another requirement from the customer and I wonder which solution I should use to achieve these goals: Zoom level 0: Cluster markers within 1500km distance to each other Zoom level 1: Cluster within 1000km Zoom level 2: Cluster within 750km Zoom level 3: Cluster within 400km Zoom level 4 and above: no clustering I was thinking I should be using MarkerManager and MarkerClusterer together, but I am not sure about that. Any help to get me on the right path?

Toggle on/off Google map markers by category

狂风中的少年 提交于 2019-11-28 05:44:55
问题 I have the below and want to sort the markers by the various category type being pulled under cat: dataMarkers.cat . Im a bit lost as to how to actually do this the best way. I'm thinking markerManager for each category? Would I need each category to be in its own markerManager array? How does this factor in with markerClusterer? var map; function initialize() { var center = new google.maps.LatLng(39.632906,-106.524591); var options = { 'zoom': 8, 'center': center, 'mapTypeId': google.maps