Questions tagged [mapbox-gl-js]
A WebGL JavaScript interactive maps library that can render Mapbox Vector Tiles.
327 questions
1
vote
0
answers
70
views
Rendering swissALTI3D-derived Terrain-RGB tiles in Mapbox GL JS (raster-dem)
I'm integrating high-resolution elevation data from swissALTI3D (0.5 m resolution, 1 km² GeoTIFF tiles) into a Mapbox GL JS map as a custom raster-dem terrain source.
To prepare the data, I followed ...
2
votes
0
answers
112
views
Mapbox GL JS: Polygon render distortion
I'm having an issue with Mapbox GL v2.6.0 where when creating polygons in a grid, some of the cells render incorrectly. With strange angles almost appearing wavy at times. Interestingly when the cells ...
1
vote
1
answer
366
views
How to style Mapbox heatmap
I have this GeoJSON (can be downloaded here). The data is distributed through a grid, thus the points are distributed regularly.
However, each point has a different "weight" via the prop ...
0
votes
1
answer
201
views
MapBox not working in qgis2web Plugin
I've imported customized basemap from Mapbox studio, and want to create a webpage for visualization using qgis2web plugin.
The QGIS imports and displays the base map from map box properly.
However, ...
1
vote
1
answer
373
views
Two MapLibre GL JS raster layers pointing to same Geoserver layer
Is it possible to use in MapLibre GL two raster layers on the same time that point to the same Geoserver layer?
I defined two raster layers in maplibreGL pointing to the same Geoserver layer. One are ...
0
votes
0
answers
230
views
Gradient fill polygons possible in web maps?
I need to be able to display polygons with uncertain boundaries in a web map I am building.
Here is an example:
I have styled this example in QGIS using a Gradient Fill.
I cannot find a way to style ...
1
vote
0
answers
82
views
How to render marker for each features gotten from vector tile API in Mapbox GL JS?
I am using Mapbox GL JS in my vuetify project. I have a vector tile API. This API will return points for each tile (xyz). I use addSource and addLayer to render the features gotten from the vector ...
1
vote
1
answer
181
views
How to get rid of status: 400 when using MapBox GL JS with GeoServer data?
I have uploaded the data to a local Geoserver and am connecting it to my map on MapBox GL JS. The data is displayed correctly on the map and does not cause any errors in the logs. But when I start ...
1
vote
1
answer
1k
views
Adding WMS layer in Mapbox GL JS
I'm trying to layer data from Kartverket (Norwegian Mapping Authority) over my Mapbox map, but currently the only thing I'm getting returned is a transparent image. I'm wondering if there are anyone ...
1
vote
0
answers
289
views
maplibregl/mapboxgl color transitions get lost after setPaintProperty
I want my features to smoothly transition different to colors based on its data.
For this I apply a new map.setPaintProperty but then the 'fill-color-transition' property becomes lost, forever.. Some ...
2
votes
0
answers
189
views
Troubleshooting GeoServer Vector Tile TIME VIEWPARAMS Misinterpretation in Mapbox GL JS Integration
I am trying to deploy a spatial layer with data in PostgreSQL/PostGIS. The data has a temporal dimension and is configured as such in GeoServer.
The goal is to use the layer through Mapbox GL JS and ...
0
votes
3
answers
284
views
Missing line segment when serving a vector tile from PostGIS
I'm hosting a table of four points in PostGIS and querying it to create a vector tile layer of a line connecting the points.
The second and fourth points in the table are the same.
The resulting ...
1
vote
1
answer
250
views
Collapsible sidebar instead of popup message in Mapbox?
Trying to implement collapsible side bars instead of using Mapbox built in Popup boxes for messages.
Had a go and built upon this and this thread.
My attempt can be found here, JavaScript below:
// TO ...
1
vote
0
answers
189
views
Importing Lod2 Data into Threebox/ThreeJs as georeferenced
I have a project and I want to import my LoD2 data into threebox. I tried this in several way.
Original data in CityGML format that contains multiple buildings but since ThreeJS/Threebox does not ...
1
vote
1
answer
180
views
Collapse geocoder plugin search box in Mapbox
How do I make my MapboxGeocoder collapse when not on hover? I am trying to make it like this example (be sure to add your access token to the end), where the Geocoder search field expands when it's ...