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'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...
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.
From the Mapbox glossary, Mapbox.js Mapbox.js is a JavaScript library that allows you to add an your interactive map to your website. It is a plugin for Leaflet, and it is an open source library ...
I face this problem when trying to use mapbox in Android studio Failed to resolve: com.mapbox.mapboxsdk:mapbox-android-sdk:9.5.0 what is the problem? my build.gradle dependencies dependencies { ...
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:
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]].
I tried the following code to place a marker on the included Mapbox-map with a mouse click on the map and write the latitude/longitude values from this marker into the two input-fields below the ma...