markerclusterer

MarkerCluster V3 stopped working properly

柔情痞子 提交于 2019-11-27 15:06:25
I am using MarkerCluster_compiled.js from github. But while the logic works, its graphics started failing from yesterday. The problem seems to be caused by " https://google-maps-utility-library-v3.googlecode.com/svn " returns a 404, and all cluster marker images have dependency on this url. (This google map v3 svn url is still in google's public domain) Seems to me the impact of this particular "404" is not trivial, as I see people's live sites have been affected. I am surprised this problem could happen to Google. For example: The marker-clusterer's advanced_example on github.io no longer

Adding simple marker clusterer to google map

十年热恋 提交于 2019-11-27 14:09:47
I'm having problems with adding marker clusterer functionality to my map. What I want is to use custom icon for my markers and every marker has its own info window which I want to be able to edit. I did accomplish that, but now I have problems adding marker clusterer library functionality. I read something about adding markers to array, but I'm not sure what would it exactly mean. Besides, all of the examples with array I have found, don't have info windows and searching through the code I didn't find appropriate way to add them. Here is my code (mostly from Geocodezip.com): <script type="text

Android maps utils cluster icon color

牧云@^-^@ 提交于 2019-11-27 11:18:06
问题 Is there any method to change the background color of the cluster item? (the one that displays the count of the markers, like 100+, 200+ ...). I tried to look into the source code of the ClusterManager but could not find any option to change the color, but maybe someone here knows how to do that. I basically want to "materialify" those colors a bit. 回答1: I was able to get a rough implementation working by using this demo from the library samples as a guide. I used the lens icon from the

Google Maps Api v3, custom Cluster icon

北城余情 提交于 2019-11-27 10:01:32
问题 how can i change cluster icon? i wolud like to have same icon, with some other color than blue. 回答1: You need to use styles parameter when initializing MarkerClusterer object - the code below shows default styles so if you want to recolour one of the icons just change the relevant url to your image... //set style options for marker clusters (these are the default styles) mcOptions = {styles: [{ height: 53, url: "http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer

OpenLayers, nice marker clustering

落爺英雄遲暮 提交于 2019-11-27 09:37:34
问题 Do you know how to have a nice clustering in OpenLayers such as this google example ? 回答1: You can add label to pointStyle in above example and explain context of this label. Your code should be something like this: var pointStyle = new OpenLayers.Style({ // ... 'label': "${label}", // ... }, { context: { // ... label: function(feature) { // clustered features count or blank if feature is not a cluster return feature.cluster ? feature.cluster.length : ""; } // .. } }); var styleMap = new

iPhone MKMapView Annotation Clustering

自古美人都是妖i 提交于 2019-11-27 06:34:45
I've got quite a lot of pins to put on my map so I think it would be a nice idea to cluster those annotations. I'm not really sure how to achieve this on iPhone, I was able to work something out with google maps and some javascript examples. But iPhone uses its mkmapview and I have no idea how to cluster annotations in there. Any ideas or frameworks that you know and are good? Thanks. Since this is a very common problem and i needed a solution i have wrote a custom subclass of MKMapView which supports clustering. Then i made it available open source! You can get it here: https://github.com

Marker cluster number in a polygon or/and infowindow

杀马特。学长 韩版系。学妹 提交于 2019-11-27 06:32:15
问题 When you click on some polygon you got infowindow with the name of these polygon, is possible to put in this infowindow number of markers inside this polygon (same like marker cluster number) or to put this number (marker cluster number) on the polygon? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta name=

Android Maps Point Clustering

眉间皱痕 提交于 2019-11-27 02:43:26
Is there any code for Point Clustering in android? How can i load thousand pinpoint without having performance issues? Last night i got into PointClustering on Android MapView. Saw that there was nothing out for the community so i would like to share. Groups the geopoints if the projection of them in the mapView is too close. Also renders only the visible poins. UPDATE Code reworked from scrach. Now available at GitHub Code Reworked from scratch Used GVM clustering algorithm (pretty fast but doesn't position clustered point as good as mine) Soon to add previous clustering algorithm too

Google Maps Api v3 - how to remove cluster icons?

只愿长相守 提交于 2019-11-27 02:36:24
问题 how can i remove all cluster icons (cluster markers) from map? tryed with advices like: Google Maps API v3: How to remove all markers? ... but it did not worked. can you help me how to achieve that? thank you in advance! UPDATE (2010-11-23) markers are stored in array with var markersClust = Array(); ... and are added with (combination with php): markersClust.push(marker_<?php echo $team["Team"]["id"]; ?>); var markerClusterer = new MarkerClusterer(MyMap.map, markersClust, clusterOptions);

More than one marker on same place - MarkerClusterer

梦想与她 提交于 2019-11-27 01:03:07
问题 I am using MarkerClusterer. When I have two or more markers on the exact same spot, The API only displays 1 marker - the top one. But somehow I want to show all the markers as each one will be opening distinct popup. I have searched found few solutions but none are seem to be working Anybody had similar issue and would pls share a solution?? 回答1: Finally got it working. This is for all those who still haven't found a solution. Below code adds offset to the markers on same location: In your