markerclusterer

Map clustering - max zoom markers still clustered

梦想与她 提交于 2019-12-01 18:57:25
I'm using android maps utils for clustering the markers on google maps api v2. It worked fine, but when I added 2000+ markers, on max zoom it is still clustered (markers still have numbers): Here is my method for filling map with markers: public void getRiverData(String state, String type) { URL = getResources().getString(R.string.base_url) + state + "/" + type + getResources().getString(R.string.end_url); SimpleXmlRequest<XMLData> simpleRequest = new SimpleXmlRequest<XMLData>( URL, XMLData.class, new Response.Listener<XMLData>() { @Override public void onResponse(XMLData response) { //

Update single item GoolgeMap Cluster

时间秒杀一切 提交于 2019-12-01 17:18:58
I am using this libray to cluster GoogleMap in Android. My question is how can I update the single item I have gone through google from yesterday and no answers are there that explains updating single item. I am using websocket in my project so I need to update the data of item that were received from websocket. Look my implementation below. My concept is doing mClusterManager.remove(item) mClusterManager.add(item) + mClusterManager.cluster() whenever I receive data from websocket. and hasmap to identify the object on loop while adding to cluseter like : hashmap.put(_id,mClusterItem[i]); Now,

Update single item GoolgeMap Cluster

99封情书 提交于 2019-12-01 16:18:05
问题 I am using this libray to cluster GoogleMap in Android. My question is how can I update the single item I have gone through google from yesterday and no answers are there that explains updating single item. I am using websocket in my project so I need to update the data of item that were received from websocket. Look my implementation below. My concept is doing mClusterManager.remove(item) mClusterManager.add(item) + mClusterManager.cluster() whenever I receive data from websocket. and hasmap

How to center text on android IconGenerator

限于喜欢 提交于 2019-12-01 16:02:39
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); clusterIcon = context.getResources().getDrawable(R.drawable.map_cluster); clusterIconGenerator

How to clustered markers from Firebase in GoogleMaps for iOS

落花浮王杯 提交于 2019-12-01 13:26:26
问题 I'm developing an app on which I want to show a lot of events on the map. The user can click on an event and see a lot of informations about it. In another view, a user can create a new event then the location and title are stored in Firebase database. Then when others users watch the GoogleMaps on my app, they are able to see all the events who are a marker in the map. I want to cluster the markers from Firebase when the user zoom out on the map but it can't work maybe because of my loaded

MarkerClusterer not working only in webkit (Chrome and Safari), fine in Firefox?

我的未来我决定 提交于 2019-12-01 12:03:17
问题 This is driving me mental. I'm using MarkerCluster with google maps v3, and it works fine in FF, however when I (and the client) kick it up in Chrome or Safari the clusters arn't there. No errors, just not working in webkit. A few notes: it's coming from some ajax-loaded json and it's in jquery. This is the function taking care of the adding: add_clusters: function() { markers = []; $.each( interpreters, function ( i, interpreter ){ //maps.add_postcode_marker(i, 'interpreter'); var latLng =

How I can call showinfowindow() in a marker within cluster manager?

天涯浪子 提交于 2019-12-01 08:10:15
I'm working with markers in a cluster (google maps), I have no problem in showing an info window when calling the onclick method. The problem is that I can't find how to use the method showInfoWindow() as I do on a marker to open the info without giving click. When I use a marker marker = map.addMarker(new MarkerOptions() .position(position) .snippet(info)); then I call marker.showInfoWindow(); how I can do the same with a marker (ClusterItem) that is on the map within the cluster manager? MarkCluster cluster = new MarkCluster(Lat, Lon, info); mClusterManager.addItem(cluster); It is the marker

Google Maps Utility: how to get all markers from ClusterManager<?>?

此生再无相见时 提交于 2019-12-01 04:20:54
Sorry for my English I tried the ClusterManager<?>.getMarkerCollection().getMarkers() method but it returns empty collection. I use in my app Google Maps Utility Library . Every time after a screen rotation I create AsynkTask and in background thread read data from DB and add items to ClusterManager : cursor.moveToFirst(); while (!cursor.isAfterLast()) { SomeData row = readSomeDataRow(cursor); clusterManager.addItem(new ClusterItemImpl(row)); cursor.moveToNext(); } When the AsyncTask finished its work (i.e. in main thread) I tried to get all markers from the ClusterManager : clusterManager

update markercluster after removing markers from array

♀尐吖头ヾ 提交于 2019-12-01 02:14:10
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? You should store the marker object in a var and then unset the map as following: var markerCluster = new

Google Maps Utility: how to get all markers from ClusterManager<?>?

心不动则不痛 提交于 2019-12-01 01:40:17
问题 Sorry for my English I tried the ClusterManager<?>.getMarkerCollection().getMarkers() method but it returns empty collection. I use in my app Google Maps Utility Library . Every time after a screen rotation I create AsynkTask and in background thread read data from DB and add items to ClusterManager : cursor.moveToFirst(); while (!cursor.isAfterLast()) { SomeData row = readSomeDataRow(cursor); clusterManager.addItem(new ClusterItemImpl(row)); cursor.moveToNext(); } When the AsyncTask finished