2,544 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
23
views
Ordering features inside of layer dynamically - Mapbox
I have a bunch of lines drawn on a map that come from a geojson. When a user clicks on one of the lines, the clicked one changes color, opacity, etc. and all the other lines also become thinner and ...
0
votes
0
answers
96
views
Different image warp between mapbox v2.3.1 and mapbox v2.4 and following
I’ve noticed that images are displayed a bit differently between Mapbox v1 (until v2.3.1) and on the other hand Mapbox v3 (beginning with v2.4). Both screenshots of the animated GIF use flat Mercator ...
0
votes
0
answers
39
views
Mapbox gljs map in Flutter issues with any kind of sheet/overlay
I'm using Mapbox in my Flutter app and am having some issues with building out UI the way I want to because of all of the hacks I need to put in place to have bottom sheets and any kind of overlay ...
0
votes
0
answers
27
views
How Can I Use String of Coordinates Within a Mapbox Feature?
I am trying to fetch a comma separated list of coordinates from a database and then show them on a Mapbox GL JS map.
By using the following FeatureCollection, I am able to show a Line between ...
1
vote
0
answers
29
views
Mapbox tileset : Points appear aligned on a grid at low zoom levels
I’ve created a tileset with point data that I’d like to display around zoom levels 11–12. It works perfectly at higher zoom levels, but when I zoom out below 12, the points start appearing aligned on ...
0
votes
0
answers
51
views
Move features and preserve spatial relationsips with maplibre
I'm moving all polyline features around a centre to a new center. How can I ensure that their spatial relationships are preserved after the features have been moved?
It seems I would calculate the ...
0
votes
0
answers
21
views
Why the layer fill-extrusion-height changes when I enable terrain layer on mapbox?
In this example, I have a Mapbox map where I draw a cube on top of it.
When I enable an online terrain service to add a terrain layer, I notice that the fill-extrusion-height appears visually ...
0
votes
0
answers
31
views
Style using coordinates in Mapbox GL JS
I have a map loaded with a large geojson feature collection and would like to apply some fading (opacity) of the geometries that are near a certain latitude. All of the feature collections are ...
0
votes
0
answers
34
views
Is there a way to know the maximum pitch/zoom to prevent having the camera inside mountains?
I'm using Mapbox GL JS with terrain and exaggeration, and would like to adjust maximum pitch dynamically based on what's visible on the map.
More specifically, I would like to prevent the user from ...
0
votes
0
answers
68
views
How to consume paginated GeoJSON sources
I would like to consume the following GeoJSON source in Mapbox:
https://geospatial.alberta.ca/titan/rest/services/transportation/access_facility_roads/FeatureServer/0/query
If I try loading this into ...
0
votes
0
answers
40
views
Custom draw control component works on local instance but not after build and deployment
Custom draw control component from mapbox-gl-draw works on local instance but not after build and deployment in React environment.
I have a custom draw control here:
import React, { useCallback } from ...
0
votes
1
answer
82
views
How to enable Mapbox GL JS "devtools" mode?
In Mapbox GL JS's 3.2.0 change-log notes, they say that they introduced a new feature:
Add a debug UI for the development build of GL JS, enabled with devtools: true in Map options.
If I add ...
0
votes
0
answers
40
views
How to style unselected line points in Mapbox draw gl?
Initially, when drawing a line in Mapbox GL Draw, the vertex points are only visible when the line is selected. However, I want the points to remain visible even when the line is unselected, and to ...
1
vote
0
answers
46
views
mapbox-gl-js creates artifacts in corner of edge with geojson data when world-wrapping (only when screen height is > 1024px)
Minimum reproducible example:
I am using mapbox-gl-js on a website (angular)
I am using this dataset for the MRE (minimum reproducible example):
Here is the github repo:
https://github.com/folsze/...
4
votes
2
answers
253
views
"Cannot use namespace 'Point' as a type" when updating Mapbox GL
In our Angular project, we recently updated from Mapbox GL 1.13.2 to 3.6.0. For context, Mapbox GL has a dependency on @mapbox/vector-tile, and @mapbox-vector-tile has a dependency on @mapbox/point-...