40 views Mapbox 3.16.0 js gl - returns two objects on click event with some missing properties in first one I am experiencing some very weird results and I cannot begin to understand why 2 objects of [0] and [1] are returned on a single click. I load three layers of pistes (ski runs), a solid line layer, a ... mapbox mapbox-gl
Mapbox is a service to design and publish maps, where the end-result is a bunch of generated map-tiles stored in the cloud (and some json files). Thus, for example, you may consume Mapbox maps from Leaflet.
I use Mapbox GL JS and get a trouble with cluster. I add some layers I want to get a list of clustered points by click on cluster. map.on('click', function(e) { var cluster = map.
I'm in the process of converting a map from using mapbox.js to mapbox-gl.js, and am having trouble drawing a circle that uses miles or meters for its radius instead of pixels. This particular circ...
In Mapbox JS, I would do this by loading the GeoJSON data into a featureLayer and then fitting the map to its bounds with: map.fitBounds(featureLayer.getBounds()); The fitBounds documentation for Mapbox GL JS indicates that it wants the bounds in the format of [[minLng, minLat], [maxLng, maxLat]].
How to solve Could not find com.mapbox.maps:android:10.16.0 react-native mapbox Asked 2 years, 1 month ago Modified 1 year, 7 months ago Viewed 1k times
If you see build errors with the build.gradle process described above, then instead declare the Mapbox's Maven repository in your settings.gradle file like below:
I don't think that you can do it in pure Mapbox, at least not easily. But for those cluster specific usages there is (an official Mapbox geospatial point clustering library) which has exactly what you want: getClusterExpansionZoom(clusterId) Returns the zoom on which the cluster expands into several children (useful for "click to zoom" feature) given the cluster's cluster_id. Edit: actually ...
Thanks for the clear explanation. Is there a way to show the text but not in a popup? I am planning to add popups anyway but they would show when the marker is clicked on, and show some more details. However I need a small text with a name that is always showing and ideally taking less space than a popup.