mapbox-gl Questions
1
In my angular app I am using directions api and trying to add a route path from one direction to another. On the first time when making the ajax request route path is creating properly but from the...
Hoehne asked 27/3, 2021 at 8:39
3
Solved
I'm building a mapping web application using Mapbox-GL. It has a lot of cool features. I've set up the buttons to switch base maps (ie. satellite, terrain, etc) following the example on the Mapbox ...
Gean asked 23/3, 2016 at 2:15
3
Solved
This is what I'm doing:
Clicking a marker on the map to open a side panel and center the map on the
marker. The side panel takes up 3/4 of the right side of the screen.
This is what I need to hap...
Colorific asked 14/12, 2016 at 1:2
3
I created a custom circle layer. I want to show this layer only on water and not on land. I managed to do the opposite (ie: showing the layer on land and not on water) using below command. Refer th...
Skin asked 23/3, 2017 at 14:27
3
I'm new working with mapbox, and recently I want to create a web map. I uploaded a shape into mapbox tilseset cloud, but when I try to add it into a map it doesn't display. This is the code funtion...
Caco asked 28/6, 2017 at 14:55
1
Solved
hi I'm trying to use mapbox-gl in React with this tutorial.
and I'm getting this error :
Unexpected '!' in 'worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker'
while importing "worker-loader!ma...
Buffalo asked 4/3, 2021 at 14:22
1
Solved
I use MapboxGL JS v2 with mapbox://styles/mapbox/streets-v11 style.
And I use this code to display 3D buildings on my map:
map.addLayer({
'id': '3d-buildings',
'source': 'composite',
'source-lay...
Merbromin asked 15/2, 2021 at 9:35
0
I use MapboxGL.js, when tapping on a polygon I want to call my function (for example, to open a popup).
On mobile devices, there is an error when touchstart event (line 103 in jsfiddle script):
&q...
Falzetta asked 6/2, 2021 at 10:53
2
Solved
I am hosting my own map tiles on my server. Is there a way to use Mapbox GL JS completely for free or do I have to pay for it anyway, when I am using the framework? Their website is a bit contradic...
Principalities asked 31/7, 2019 at 19:28
1
I am using Mapbox-gl for showing the map in my code
When updating map lines and re-setting them I am getting this error:
mapboxgl: There is already a source with this ID
Before setting layer and ...
Zabaglione asked 6/1, 2021 at 14:21
2
Trying to write a unit test for react.js component. The component implements a map rendered with mapbox API. But unfortunately i bumped into a series of problems:
The firs one was: TypeError: wind...
4
Solved
I'm using MapBox GL JS to create a map with a custom marker:
var marker = new mapboxgl.Marker(container)
.setLngLat([
datacenters[country][city].coordinates.lng,
datacenters[country][city].coor...
Accounting asked 4/8, 2016 at 13:9
3
My app shows a user marker. Basically, the user marker shows where the current user is on the map but I also have other markers placed on the map. In the end, it covers up my user marker. I want my...
Oxyhydrogen asked 17/2, 2017 at 1:7
3
I want to use Mapbox GL in my Android application. This service is going to be released soon and I have a tricky question about using the renderer.
I like the renderer itself, but I really want t...
Singles asked 18/7, 2015 at 3:33
3
Solved
I'm loading points from Geojson in batches and would like to add "fadeIn" effect or animation when the points first appear in Mapbox.
this.map.addLayer({
id: 'points',
type: 'circle',
paint: {
...
Andorra asked 11/4, 2017 at 20:12
8
Solved
Requirment on iOS for mapBox map. (I am not talking about MKMapView)
how can we detect if singleTap was tapped or annotation on mapView? I need that singleTap will be handled only on empty area of ...
Traitorous asked 28/6, 2016 at 7:15
1
Solved
I am using raycaster in mapbox with 3d-objects. I need to detect the click on the 3d-object.But When I click on the object I get a empty raycaster.intersectObject (array) sometimes and filled array...
Fiddling asked 7/5, 2020 at 10:55
1
Solved
Using react-native-mapbox-gl/maps, when a SymbolLayer is dynamically added to a ShapeSource, it seems it is not shown, or the ShapeSource is not updated.
Here is the example to reproduce : based o...
Berwickupontweed asked 15/7, 2019 at 18:40
2
Setup:
Basic react app using react-map-gl to show a map with a deck.gl ScatterplotLayer over the top to visualise the data
Goal:
1) To show points on a map as circles of a given radius and colou...
1
Solved
I have some features on the map displayed as icons. I want to decide which icons should be hidden and which should be displayed when they collide on a numeric field, that each feature on my map has...
Time asked 29/11, 2019 at 9:28
2
Solved
I'm making a clustered map with mapbox supercluster. The problem I face is that clusters are not at the correct location. For example I only have dogs in the netherlands but when zoomed out they ar...
Sylph asked 31/8, 2019 at 13:19
2
Solved
I have UTM coordinates, EPSG: 25833.
Looking at the Mapbox documentation it says
Mapbox supports the popular Web Mercator projection, and does not support any other projections. Web Mercator is a ...
Deadwood asked 6/8, 2019 at 12:51
4
Solved
I need some sort of google maps "idle" event for mapbox gl.
When every event fired and the map stop zoomin/out drag etc. and every layer has loaded, and the map is idle.
I have to use this code
...
2
I'm using the mapbox-gl-js API and I'm using it with react to create some custom markers as follows:
let div = document.createElement('div');
let marker = new mapboxgl.Marker(div, {
offset: [ -...
Aekerly asked 17/8, 2016 at 16:32
1
Solved
I am using Mapbox to create an iOS application. The application gets makes a request to my API that returns a number of events going on within the map's bounding box in JSON format.
I was previous...
Bautista asked 17/4, 2019 at 20:55
© 2022 - 2024 — McMap. All rights reserved.