markerclusterer

OpenLayers, nice marker clustering

浪尽此生 提交于 2019-11-28 16:14:25
Do you know how to have a nice clustering in OpenLayers such as this google example ? 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 OpenLayers.StyleMap({ 'default': pointStyle, }); var googleLikeLayer = new OpenLayers.Layer.Vector(

iPhone Map Kit cluster pinpoints

家住魔仙堡 提交于 2019-11-28 16:14:23
Regarding iPhone Map Kit cluster pinpoints: I have 1000's of marks that I want to show on the map but it's just too many to handle so I want to cluster them. Are there frameworks available or proof of concepts? That this is possible or is already been done? Andy Jacobs You can use REVClusterMap to cluster Note: This is a commercial product I'm affiliated with, but it solves this very problem. I solved this problem in few of my apps and decided to extract it into a reusable framework. It's called Superpin and it is an (commercial, license costs $149) iOS Framework that internally uses quadtrees

Marker cluster number in a polygon or/and infowindow

☆樱花仙子☆ 提交于 2019-11-28 11:50:34
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="viewport" content="initial-scale=1.0, user-scalable=no" /> <link rel="stylesheet" type="text/css" href=

How can I cluster markers without overlap with google maps?

不问归期 提交于 2019-11-28 09:42:17
问题 I am currently clustering hundreds of markers on my google maps. Many of the markers are based on geo-coded addresses, which at times only resolve to the city level. Normally i will end up with lets say a few hundred addresses all with the same lat lon for example in the middle of New York City. I know about the Marker Clustering in google maps, however when all the markers have the same lat long, you loose the ability to click on each marker, and bring up a popup. How can I manage these

More than one marker on same place - MarkerClusterer

左心房为你撑大大i 提交于 2019-11-28 05:32:36
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?? Grish 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 createMarker function add this code: //get array of markers currently in cluster var allMarkers =

Showing custom InfoWindow for Android Maps Utility Library for Android

六眼飞鱼酱① 提交于 2019-11-28 03:35:02
I'm using the library Google Maps Utility for Android which allows to create clustering int he maps and I need to show a custom InfoWindow but I can't find any method to do this. In order to show the info window, I have the following class, and in the method onClusterItemRendered is where I have access to the info of the marker: class MyClusterRenderer extends DefaultClusterRenderer<MarkerItem> { public MyClusterRenderer(Context context, GoogleMap map, ClusterManager<MarkerItem> clusterManager) { super(context, map, clusterManager); } @Override protected void onBeforeClusterItemRendered

google maps api v3 + infoBubble in markerClusterer

青春壹個敷衍的年華 提交于 2019-11-27 21:29:00
问题 I was trying to add an infoBubble to a markerCluster in the 'clusterclick' event but the infoBubble.Open method ask for a 'marker' parameter to bind with. The problem is that a markerCluster is not a google.maps.Point so it's not posible to bind the infoBubble to it. I assigned the possition of the markerCluster to the infoBubble but the infoBubble redraws in the new position moving the marker from its possition. Has anyone had the same problem? Is there a solution without modifing the

Google maps not working in https://

China☆狼群 提交于 2019-11-27 19:19:46
问题 I am using google maps on http, it is working perfectly fine. But when i installed ssl certificates over the same, it stopped working. It is giving me errors Mixed Content: The page at 'https://url' was loaded over HTTPS, but requested an insecure script 'http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer.js?_=1***************'. This request has been blocked; the content must be served over HTTPS. 回答1: UPDATE: On May the 12th 2016 Google

How to add title, snippet and icon to ClusterItem?

丶灬走出姿态 提交于 2019-11-27 18:38:03
I had this activity: public class MapViewer extends Activity { private GoogleMap map; private Database db = new Database(this); protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapviewer); try { map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); if (map != null) { map.setMyLocationEnabled(true); map.setMapType(GoogleMap.MAP_TYPE_NORMAL); map.getUiSettings().setRotateGesturesEnabled(false); this.addMerchantMarkers(new MarkerOptions()); } } catch (NullPointerException e) { e.printStackTrace(); } } public

markerclusterer info windows

本小妞迷上赌 提交于 2019-11-27 15:22:13
问题 Let me say I am still fairly new to google maps and javascript. i've been mixing together the google store locator tutorial with some other stuff. So far, I am using marker clusterer plus (link), basically the same as marker clusterer for google maps api v3 but with some added functionality like mouse overs and stuff like that. I'm trying to get an info window to come up when you mouse over a cluster. working demo here. here is my full index code: <html xmlns="http://www.w3.org/1999/xhtml">