markerclusterer

How can I render my markers inside the ClusteredMapView?

烂漫一生 提交于 2019-12-24 23:19:39
问题 I am trying to render the markers inside the component <ClusteredMapView/> but it do not happen, just render the marker with none markers... Bellow some code: render() { return ( <ClusteredMapView style={{ flex: 1 }} data={this.state.data} initialRegion={INIT_REGION} ref={r => { this.map = r; }} renderMarkerS={this.renderMarkerS} renderCluster={this.renderCluster} /> ); } } here is the renderMarkers function: renderMarkerS = item => this.state.markers.map((marker, index) => { console.log(

Leaflet / Mapbox rendering issue (grey area)

一世执手 提交于 2019-12-23 15:37:46
问题 For some reason, my map has a big grey area on it, until I move it which makes it appear. But on the first look, there's a part missing. I've seen this quite a lot around the web before but never wondered about how to fix it until now. This is a simple Mapbox map using MarkerClusterGroup for clusters. Here's a screenshot and the link to the page: http://vinpin.com/map So I was wondering, is there any easy known fix for that kind of behavior? I can add code snippets if required. Thanks and

Google Map with Cluster and Custom view marker lagging too much while zoomIn and zoomOut

倖福魔咒の 提交于 2019-12-23 04:46:00
问题 I want to load GoogleMap with custom view in replace of GMSMarker and want to show clustering and I have done that. But I'm facing lagging & memory usage while zoomIn or ZoomOut the Map. I have load custom view to GMSMarker infoView Here is my code. class InitialMapViewController: UIViewController, GMUClusterManagerDelegate, GMUClusterRendererDelegate { private var clusterManager: GMUClusterManager! @IBOutlet weak var mapView: GMSMapView! override func viewDidLoad() { super.viewDidLoad() self

Is there any way to disable the Marker Clusterer for less than defined marker counts?

℡╲_俬逩灬. 提交于 2019-12-23 01:29:12
问题 I want my Marker Clusterer; not to cluster markers less than 4 or something. It is clustering all the markers even for 2 markers. Is there any possible way to set it? 回答1: The option you want is not available with MarkerClusterer, but it is an option if you use an an enhancement named: MarkerClustererPlus. It is essentially a Google Maps v3 upgrade of the original v2 MarkerClusterer, which was then further enhanced and extended by Gary Little. It functions pretty much the same as the original

how to customise cluster icon in mapbox-gl?

我与影子孤独终老i 提交于 2019-12-22 14:02:14
问题 I want to implement clustering in my map. I found example of simple clustering from Mapbox Cluster Example but My code is here, where marker ==> {marker-symbol} is from studio. but it is not working. Is it possible to achieve output of cluster? 回答1: Solved By following code var layers = [ [150], [20], [0] ]; layers.forEach(function(layer, i) { map.addLayer({ "id": "cluster-" + i, "source": "markers", "type": "symbol", "layout": { "text-field": "{point_count}", "text-font": [ "Arial Unicode MS

MapKit Display Annotation Clusters and Along With Non-Clustered Annotations

折月煮酒 提交于 2019-12-22 13:02:32
问题 I am new to iOS development and currently using the FBAnnotationClusteringSwift to cluster makers. My app needs to have two annotations which will not be clustered, as they indicate the source and destination addresses. The remaining annotations must be clustered as they represent stations . What I want to achieve is something like the image bellow, where "A" is my source address, and the clusters represent stations: However what is happening is, as the clusters are created , the Annotation

MapKit Display Annotation Clusters and Along With Non-Clustered Annotations

半腔热情 提交于 2019-12-22 13:02:15
问题 I am new to iOS development and currently using the FBAnnotationClusteringSwift to cluster makers. My app needs to have two annotations which will not be clustered, as they indicate the source and destination addresses. The remaining annotations must be clustered as they represent stations . What I want to achieve is something like the image bellow, where "A" is my source address, and the clusters represent stations: However what is happening is, as the clusters are created , the Annotation

Cluster markers overlay by User's current location icon in Android

∥☆過路亽.° 提交于 2019-12-22 05:09:19
问题 I'm using google map that implemented Clustering marker inside. However, my markers has been overlaid by User's current location icon like Image below this is my code: protected void onBeforeClusterRendered(Cluster<CurationLocation> cluster, MarkerOptions markerOptions) { if (isAdded()) { final Drawable clusterIcon = getResources().getDrawable(R.drawable.oval_bg); mClusterIconGenerator.setBackground(clusterIcon); mClusterIconGenerator.setTextAppearance(R.style.AppTheme_WhiteTextAppearance);

Leaflet cluster color based on icons inside

Deadly 提交于 2019-12-21 16:49:44
问题 I have pins on my leaflet.js map where the image is determined by the status of the object they are representing. For example, online and offline users - online are green and offline are red. I do this by adding a class to the divIcon and then control the images with css. I have now added marker clustering to my map. What I want to do is determine the color of the cluster by the majority of status' within the cluster. My first idea was to do something like this: this.markers = L

Overlapping Marker Spiderfier Marker Icon When There are Multiple Markers at Same Location

筅森魡賤 提交于 2019-12-21 04:37:14
问题 Google Maps doesn't provide a way to break apart multiple markers that are at the same location. This can occur with a people or businesses at a multiple residency location such as an apartment building or professional services building. Depending at zoom level it can also occur at shopping malls, etc. The way around that is to "spiderfy" them: when clicking on the first it breaks them out with a line to the location. This is done in Google Earth and George MacKerron wrote a package to do