markerclusterer

how to customise cluster icon in mapbox-gl?

痴心易碎 提交于 2019-12-06 12:15:59
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? 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 Bold" ], "text-size": 13, "text-anchor": "bottom", "icon-image": "emptyMarker", "icon-size": 0.25 },

MapKit Display Annotation Clusters and Along With Non-Clustered Annotations

。_饼干妹妹 提交于 2019-12-06 05:27:37
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 that represents a non-clustered annotation (the source address) disappears as following: If the library

how to add marker cluster in google maps v3 for the same lat/long without influenting another element?

南笙酒味 提交于 2019-12-06 04:31:52
I made traceroute map. And I have problem with some markers that should be in the same lat/long but only one marker show on the map. I read that there's a way to do. It is marker cluster. but I don't know how to add in javascript. Also I'm afraid if that would be influent another element of markers which I've add like custom marker with label, infowindow and polyline. here is my code : <script type="text/javascript"> var pinImage = new google.maps.MarkerImage ("http://chart.apis.google.com/chart?chst=d_map_xpin_letter_withshadow&chld=pin_star|%E2%80%A2|CC3300|000000|FF9900", new google.maps

Cluster Marker not hiding when zoom in

泄露秘密 提交于 2019-12-05 13:40:09
I'm trying to implement a cluster marker on my map, and it is behaving a little strange, first, it shows me the cluster marker but also shows me the point markers, that shouldn't be happening, and when I zoom in the cluster marker still showing, i'll add some images to explain it better. public class MapaViagem extends FragmentActivity { private GoogleMap googleMap; private String rm_IdViagem; private List<ClienteModel> mClienteModel = new ArrayList<ClienteModel>(); private List<EnderecoModel> mEnderecoModel = new ArrayList<EnderecoModel>(); private ViagemModel mViagemModel = new ViagemModel()

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

[亡魂溺海] 提交于 2019-12-05 09:30:38
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); LayoutInflater myInflater = (LayoutInflater) mActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE)

Placing thousands of pins on google map in android app

落爺英雄遲暮 提交于 2019-12-05 07:52:59
问题 I'm working with my programmers and have an issue that we're trying to find a simple / opensource solution to as i'm sure others have come across the same issue before... In simple terms we're trying to place thousands of pins on a google map within an android application.... We managed to solve the problem of placing thousands of pins on a google map within xcode by using a clustering algorithm that placed them in clusters and gave the number of pins in a particular area, then as you zoom in

Best practices for handling thousands of markers with Leaflet

瘦欲@ 提交于 2019-12-05 07:29:42
I'm doing some tests with an HTML map in conjunction with Leaflet . Server side I have a Ruby Sinatra app serving json markers fetched by a MySQL table. What are the best practices working with 2k-5k and potentially more markers? Load all the markers in the first place and then delegate everything to Leaflet.markercluster . Load the markers every time the map viewport change, sending southWest & northEast points to the server, elaborate the clipping server side and then sync the marker buffer client side with the server-fetched entries (what I'm doing right now). A mix of the two above

How to move existing the markers from one position to another with animation

此生再无相见时 提交于 2019-12-04 20:21:51
I am tracking my employees position on google map what I want to do is to move the marker from its old position to a new position. I am using this library for the cluster marker and the custom marker icons. I want to move the marker from one position to another one, like other apps move their icons like any online cab application Please help me, it's very important for me. user3458008 If you want to move the Marker along with the user interactions on the map something like few Cab Service do, you can refer the below link for the solution : Map style like other Cab Service 来源: https:/

Cluster Marker Google Maps using geoCoder

限于喜欢 提交于 2019-12-04 19:36:55
Using this data var data = { 'address': [ { 'address': '7970 GLENTIES Ln' }, { 'address': '8022 Caminito Mallorca' }, { 'address': '2750 Wheatstone St # 26' }, { 'address': '335 49th St' } ] }; i manage to marker them but i was unable to cluster them. below the code that I've use. var markerArray = []; function initialize() { geocoder = new google.maps.Geocoder(); var center = new google.maps.LatLng(37.4419, -122.1419); var map = new google.maps.Map(document.getElementById('map'), { zoom: 3, center: center, mapTypeId: google.maps.MapTypeId.ROADMAP }); var address; var markers = []; for (var

Placing thousands of pins on google map in android app

喜欢而已 提交于 2019-12-03 21:56:06
I'm working with my programmers and have an issue that we're trying to find a simple / opensource solution to as i'm sure others have come across the same issue before... In simple terms we're trying to place thousands of pins on a google map within an android application.... We managed to solve the problem of placing thousands of pins on a google map within xcode by using a clustering algorithm that placed them in clusters and gave the number of pins in a particular area, then as you zoom in , the pins specifically appear in their locations. However, when trying to use this same algorithm