markerclusterer

MarkerClustererPlus: set icon color/url independent of size

*爱你&永不变心* 提交于 2019-12-21 02:28:14
问题 I'm plotting a few hundred thousand points via MarkerClustererPlus, and I want to set groups of cluster icons (colour) based on some exteral property ( not based on number of markers represented). The only way I can think to do this is by creating multiple MarkerClusterer objects and passing in a different options object, but I feel like I'll take a big performance hit doing that. Is there a better way? Given the image above, I'd like 139, 24, and 5 to be yellow and 213, 25, 30, and 2 to be

markerClusterer on click zoom

半世苍凉 提交于 2019-12-20 11:07:43
问题 I just added a MarkerClusterer to my google map. It works perfectly fine. I am just wondering if there is any way of adjusting the zoom-in behaviour when the cluster is clicked. I would like to change the zoom level if possible. Is there any way of achieving this? Thanks 回答1: There has been an update to the MarkerClusterer source code, allowing much easier access to the click event: google.maps.event.addListener(markerCluster, 'clusterclick', function(cluster) { // your code here }); where

Googlemap API v3 - Can I get Content from Marker?

江枫思渺然 提交于 2019-12-20 06:09:01
问题 I created a lot of a Marker but I think after obtaining their content used to do average and set infowindow click inside is the average of all Marker on markerCluster. Each Marker has to give him a value. snapshot I want to grab all marker and average , and displayed in infowindow. Snapshot: here is my Code: var locations = [ ['100', 22.75853,121.14886, 1], ['90', 22.7586,121.14891, 2], ['80', 22.75857,121.1488, 3], ['70', 22.75844,121.14887, 4], ['60', 25.08389,121.57796, 5], ['50', 22.75839

Googlemap API v3 - Can I get Content from Marker?

只谈情不闲聊 提交于 2019-12-20 06:07:08
问题 I created a lot of a Marker but I think after obtaining their content used to do average and set infowindow click inside is the average of all Marker on markerCluster. Each Marker has to give him a value. snapshot I want to grab all marker and average , and displayed in infowindow. Snapshot: here is my Code: var locations = [ ['100', 22.75853,121.14886, 1], ['90', 22.7586,121.14891, 2], ['80', 22.75857,121.1488, 3], ['70', 22.75844,121.14887, 4], ['60', 25.08389,121.57796, 5], ['50', 22.75839

How to center text on android IconGenerator

▼魔方 西西 提交于 2019-12-19 16:06:19
问题 I'm developing an app using lots of markers placed on the map, and I'm using a custom ClusterRenderer to show them. Problem is that I can't draw the cluster's size in the center of the custom marker icon, please see attached screenshot. I've tried adding contentPadding to the IconGenerator, but still no luck, because of the changing number of digits shown. Could you please help me center the text on the generated icon? Code: IconGenerator clusterIconGenerator = new IconGenerator(context);

How to center text on android IconGenerator

 ̄綄美尐妖づ 提交于 2019-12-19 16:04:14
问题 I'm developing an app using lots of markers placed on the map, and I'm using a custom ClusterRenderer to show them. Problem is that I can't draw the cluster's size in the center of the custom marker icon, please see attached screenshot. I've tried adding contentPadding to the IconGenerator, but still no luck, because of the changing number of digits shown. Could you please help me center the text on the generated icon? Code: IconGenerator clusterIconGenerator = new IconGenerator(context);

update markercluster after removing markers from array

自古美人都是妖i 提交于 2019-12-19 05:04:55
问题 I am currently using markercluster plugin with jquery ui maps. I have two arrays one of all markers (called markers) and one of markers that match search criteria (called current_markers). These are fitered from the first array. I then draw the current_markers on screen. I am finding however that the markerclusterer library is not updating based on this change. So how can I update the markerclusterer? Is it possible to assign the markerclusterer to a variable and call an update function? 回答1:

Fire event after MarkerClusterer has finished

佐手、 提交于 2019-12-19 02:31:40
问题 So I have an application that contains a map with (several hundreds) of markers. I use the markerclusterer.js supplied by Google to cluster my markers and make the whole thing easier to look at. I'm using API V3. I'm fine with all of that. But what I would like to do is perform some action when the markerclusterer has finished clustering all the markers. I've tried to do it myself but with no look. Any suggestions? (I'm assuming this will be easier than I think and my brain is just fried) 回答1

Google MarkerClusterer: decluster markers below a certain zoom level?

安稳与你 提交于 2019-12-18 12:49:37
问题 I'm using Google MarkerClusterer. I'd like to decluster all the markers whenever the map goes above zoom level 15. There is a maxZoom setting in the configuration options, but the documentation does not make it clear what it is supposed to do. I have tried setting it as follows, but the map remains clustered whatever zoom level I set the map to: new_mc = new MarkerClusterer(map, newco_markers, { maxZoom: 9 }); Am I doing something wrong, have I misunderstood what the option is supposed to do,

Google Maps v3 MarkerClusterer not Clustering

ε祈祈猫儿з 提交于 2019-12-18 06:53:39
问题 I've looked at the docs and can't figure it out. I'm sure I'm missing something stupid. No errors, but no clustering. I tried to take the simple example from here and add it to the map I was already working on, with no success. If possible, I'd like to keep the meat of the map the same. I've also looked at several other questions here with no luck. If anyone could help me out I would be very very grateful. <!DOCTYPE html> <html> <head> <style> #map_canvas { width: 800px; height: 500px;