Questions tagged [mapbox]

A company that creates different tools for styling and deploying maps as well as providing services for hosting maps

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 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 ...
sevvaldurmazbilek's user avatar
0 votes
1 answer
32 views

FME data conversion from CityGML to GeoJSON results in multiline not multipolygon

I am using FME to convert my CityGML data into GeoJSON format to import it my 3D mapbox application. Mapbox uses extrusions to visualize 2D GeoJSON objects in 3D with their height values. (https://...
sevvaldurmazbilek's user avatar
1 vote
1 answer
25 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 ...
DaCuteRaccoon's user avatar
0 votes
0 answers
22 views

Tippecanoe | Can't set max zoom extent level 22 for mbtiles

I know this might be a duplicate question but I wasn't able to find any solution. I'm working on a tool with the help of this package which is actually a platform to convert a geojson file to mbtiles ...
msc's user avatar
  • 1
2 votes
2 answers
81 views

Query mbtile vector at a higher zoom level while visualising in lower zoom in Mapbox GL JS?

I've created five GeoJSONs for H3 resolution cells from 3 to 7. Each GeoJSON was then converted into mbtile for different zoom level and joined together to form a single mbtile. Now, I can render ...
Jaskaran Singh Puri's user avatar
0 votes
0 answers
18 views

How do I get my own Mapbox style to show up in a story map?

I am using Mapbox to create a story map while following the instructions on this page: https://github.com/mapbox/storytelling. At Step 5 in the page, you can see where the style is added. I have ...
Julien Belair's user avatar
0 votes
0 answers
46 views

Change minimum zoom level of poi-label Native Layer of Mapbox

I'm currently working on a project that requires us to utilize the "poi-label" native layer of mapbox.mapbox-streets-v8 tileset of Mapbox. Currently, I've noticed that only a few POIs from ...
Reza's user avatar
  • 1
0 votes
0 answers
48 views

NASA's GIBS WMTS servers with Mapbox GLJS

I want to use WMTS Vector Tiles with Mapbox GL JS. The points on the map are displayed but slightly off as you can see are the points for Africa in the ocean. The tiles URL is from the GIBS tutorial ...
JohnnyWang's user avatar
0 votes
1 answer
62 views

Create KML file from Metro Dreamin map

I am wondering if there is an easy way to create a KML file from a Metrodreamin.com map; perhaps from a JSON file. Ideally I would like to do this from an Ipad. However I have acess to a Windows ...
David Martin's user avatar
2 votes
1 answer
132 views

Why doesn't a 1-pixel buffer around the edges of Mapbox's Terrain-RGB tiles show up?

I am reading the documentation of Mapbox's Terrain-RGB tiles. It says: Buffered tiles. Each map tile includes a 1-pixel buffer around the edges to enable tile interpolation in uses cases like terrain ...
zabop's user avatar
  • 1,454
2 votes
0 answers
30 views

Use ST_AsMVTGeom for create tile of shape crossing 180 meridian

I have a polygon that crosses the 180th meridian and a function in postgis that generates a vector tile. SQL: ST_ASMVTGEOM(ST_Transform(polygon, 3857), ST_MakeEnvelope(xmin, ymin, xmax, ymax, 3857), ...
ZloiGremlin's user avatar
1 vote
2 answers
84 views

Distorted image overlay in Leafet and Mapbox

I have created some png images from a tiff using gdal_translate It fits well in QGIS Info from QGIS about the layer Extent -63.0499992370605469,-11.0499992370605469 : 101.9500007629394531,71....
user1249791's user avatar
0 votes
0 answers
46 views

Mapbox static api issue with bbox

I am using the Mapbox static image API to download a bbox of an area of Yorkshire, in England. Here's the URL I use https://api.mapbox.com/styles/v1/mapbox/streets-v12/static/[-2.0,53.4,-1.2,54.0]/...
Thomas's user avatar
  • 563
0 votes
0 answers
110 views

Mapbox GL JA - labels don't appear

I have several layers. One of the last layers to load is a layer to add labels to lines as follows; /** addLayer aa_piste_name **/ map.addLayer({ 'id': 'aa_piste_name', 'type':...
spreaderman's user avatar
2 votes
1 answer
31 views

Trouble calculating area consistently

I'm building a UI that lets users draw areas (polygons) on a MapboxGL element. I want to compare those areas to an existing data set I have in PostGIS, however, I cannot seem to get turf and PostGIS ...
Steven's user avatar
  • 123
0 votes
2 answers
123 views

Access data from an OGC WMS server and return JSON or GeoJSON for MapBox map

How can I use a freely available public WMS server with Government Survey Permanent marks for a web application I am building? This "GetCapabilities" xml: https://spatial-gis.information.qld....
Paul Pickins's user avatar
0 votes
0 answers
44 views

GeoJSON file doesn't plot points on MapBox in Jupyter notebook

I am running Jupyter notebook on a Databricks cluster and attempting to render a map. I tried the example from the documentation to test and it doesn't plot the points. # Load data from sample csv ...
kms's user avatar
  • 473
0 votes
0 answers
44 views

How to clear fonts cache in mapbox studio?

I've uploaded my font to mapbox studio. The font has a couple of glyphs added in normally unused uncode ranges. It all worked (works) perfectly in Mapbox GL JS. Then the requirements have changed, so ...
entio's user avatar
  • 101
1 vote
1 answer
227 views

Determine envelope of geometry for all zoom levels

I'm using PostGIS to serve Mapbox Vector Tiles on my NodeJS server. I'd like to speed up the process a bit by storing the x and y envelope for every zoom level. That way when a request is made it ...
krummens's user avatar
  • 113
0 votes
0 answers
104 views

Time slider to my Mapbox map-based website that will update the speed of roads on the map in real-time based on the time selected on the slider

How can I add a time slider to my Mapbox map-based website that will update the speed of roads on the map in real-time based on the time selected on the slider? my geojson and json file data share ...
Muhammad Usama's user avatar
0 votes
1 answer
414 views

Popup on hover with Mapbox

I'm trying to apply this tutorial, but since it's polygons and not points, and I'm not familiar with Javascript, I hope I could make the hover works with extruded polygons. I see that the hovering ...
Kevin Carvalho's user avatar
0 votes
0 answers
222 views

Edit TileJSON inside MBTiles files

I want to upload a tileset (I created with tippecanoe) to mapbox. I receive the error: Metadata exceeds limit of 60kb Here: https://docs.mapbox.com/help/troubleshooting/uploads/ they suggest to ...
Lenn's user avatar
  • 1,097
0 votes
2 answers
425 views

MapLibreGl, how to use it with specific Tiles? [closed]

On a personal site, I use leaflet to display a map. var cartoDb = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', { attribution: '&copy; <a href="https://...
blogob's user avatar
  • 241
0 votes
0 answers
90 views

Mapbox-GL-JS case insensitive get expression

This seems like it should be obvious but I can't find an example. I want to get a color value from a geojson property but have it case-insensitive (Color, color, COLOR): 'fill-color': ['get', 'Color'] ...
Eric L's user avatar
  • 9
1 vote
0 answers
82 views

Y coordinate of mbtiles is in descending order (tippecanoe, ogr2ogr)

I want to convert a geojson to MVT and upload it to s3 to use it with Mapbox GLJS. I tried this tutorial https://geovation.github.io/tippecanoe-directory-support. With tippecanoe --no-feature-limit --...
JohnnyWang's user avatar
0 votes
0 answers
163 views

How to resolve issue with filtering layers in Mapbox?

I'm new to mapbox and having trouble with filtering the layers. The mapbox the filter object that I construct is not doing any filtering. I first construct a filter object, then use the spread ...
Gaurav Varma's user avatar
0 votes
0 answers
52 views

Prevent Mapbox studio from adjusting boundaries granularity depending on zoom level

While editing a styles template in Mapbox Studio I noticed that no matter what opacity you choose for boundary lines, there's always a threshold, i.e. on zoom levels lower than one particular level ...
Leo Lucini's user avatar
1 vote
0 answers
182 views

Correctly render multiple hexagons on Mapbox

I have a GeoJSON of hex indexes, which I am trying to render on to Mapbox. Here is my code (ignore the indentation): export default class App extends Component { constructor() { super(); ...
mohsan123's user avatar
1 vote
0 answers
102 views

Place a geometry at any place on the map (Mapbox GL)

I have a predefined house geometry, let's say it's a square with a side of 6 meters. And I want to place it anywhere on the map with a mouse click. I tried to draw this square near [0,0] coordinates ...
SERG's user avatar
  • 253
0 votes
0 answers
190 views

Set boundries for Mapbox LineString to follow oceans

I've created a map where the user adds all blogposts as markers and I'm using LineString to connect all markers. Is it possible to draw a line between two points in the ocean, where the line never ...
Mista K.'s user avatar
0 votes
0 answers
223 views

Converting a Maputnik JSON style to a mapnik XML stylesheet

I have a Mapbox JSON map style generated by Maputnik, and I want to use it for an OpenStreetMap tile renderer with Mapnik. Is it possible to convert the JSON style to a XML stylesheet for Mapnik? I ...
boomboom14's user avatar
1 vote
1 answer
159 views

Update a choropleth layer by zoom level when using a GeoJSON in Mapbox

I am trying to replicate this example https://docs.mapbox.com/mapbox-gl-js/example/updating-choropleth/, but instead of using the Mapbox tiles, I am using a GeoJSON. Independently the layers show, but ...
L Smeets's user avatar
  • 147
1 vote
1 answer
1k views

Update a Mapbox layer by zoom level when loading geojson

Very similar to this tutorial, I would like to create a MapBox map that at a zoomed out level shows regions (labelled Pcode in my data), but once zoomed it switched to a district level (labelled Name)....
L Smeets's user avatar
  • 147
0 votes
0 answers
65 views

Use HTML input to control which GeoJSON is loaded in mapbox

I want to create a basic website using {quarto} in R to display different maps (would be open for Rmarkdown as well). However, to not load all maps into memory of the user, I want to add a menu (...
L Smeets's user avatar
  • 147
0 votes
0 answers
372 views

Adding two Mapbox layers in PowerBi

I have created two layers inside Mapbox Studio. One is a polygon vector layer and the other is a point vector layer. I can add them both separately inside individual mapbox map in PowerBi. The Polygon ...
Ankit Kumar's user avatar
1 vote
0 answers
139 views

Mapbox vector tile source from more tilesets, or layer with more sources?

I have a huge amount of data to generate into vector tiles, but only the same 10% is changing in the tilesets. The data type is the same, so i cannot separate it into different layers because it would ...
David Gregor's user avatar
0 votes
2 answers
62 views

Mapbox GL JS relations

I have three layers as follows; ski areas (polygons) ski lifts (ways) ski rund (ways) There is a unique ID that makes it relate back to the ski area. This is an example: ski areas (polygons) // id=...
spreaderman's user avatar
0 votes
1 answer
749 views

How to rotate custom marker in Mapbox

I'm using a custom marker with Mapbox-gl for web, and at the same time, I expect to rotate the cursor to follow the line created with the latitude and longitude. this.mapa = new mapboxgl.Map({ ...
Pedro Miguel Pimienta Morales's user avatar
0 votes
1 answer
908 views

Implementing H3-JS in Mapbox based map to Openlayers based map

In the H3-JS example I have, it is implemented in mapbox. But I would like to integrate the H3-JS binning as part of Openlayers map instead. This is the example I want to implement in OpenLayers. ...
SharmaPN's user avatar
1 vote
0 answers
560 views

Mapbox vector tile disappears at lower zoom levels

I am currently working with self-hosted vector tiles. These tiles are hosted on S3 and rendered on the map. The zoom levels are from 0 to 10 and generally load on all levels since maxzoom has been ...
Nacho Libre's user avatar
0 votes
1 answer
429 views

Using Mapbox expressions to paint color depending on two different data fields

I'm visualizing geospatial data that has an attribute table with fields like this: id | main_type | sub_type In Mapbox GL, I can use expressions to paint the polygons according to main_type: ...
interwebjill's user avatar
1 vote
1 answer
237 views

Custom Style.json and Vector tiles loading but sprites not appearing in Maputnik

I have a custom tile server and custom sprites that I'm trying to add in Maputnik. I've added a symbol layer but I can't get the sprites to show up. I know the tiles are loading and working because if ...
willjfield's user avatar
2 votes
1 answer
42 views

WSG84 to WebMercator: missing raster data along ±180°

I've converted a GeoTIFF in WGS 84 (EPSG 4326) into mbtiles format (EPSG 3857) and uploaded this to Mapbox. However in Mapbox it renders with a white strip at ±180°. I realise that this is an artifact ...
Cameron's user avatar
  • 41
1 vote
0 answers
201 views

Showing raster tiles in Mapbox GL JS from ArcGIS Server (tiles created in a different spatial reference system)

I have a web app showing a Mapbox GL JS map, I want to add a raster source to show tiles from a public ArcGIS server (Tel-Aviv city's GIS web-app), issue is they use a different SRS (epsg:2039) and ...
Atias's user avatar
  • 41
1 vote
1 answer
370 views

Mapbox how to return a GeoJSON from tendered features

I have a map of winter sports mountains that displays on a map perfectly. When I move the map or zoom the map (moveend), I can use queryRenderedFeatures to get data of rendered mountains. Here is my ...
spreaderman's user avatar
0 votes
0 answers
388 views

Hybrid Satellite Base with Openlayers does not work

Using OpenStreetMap base with OpenLayers but would also like a satellite base. Thought of Bing, MapBox, however, are not working. What is wrong? This is the code for the Bing satellite base, which ...
user210138's user avatar
0 votes
0 answers
67 views

Map tiling service with more recent imagery

I am using MapBox for mapping in a SaaS product. I've noticed that some (all) of the imagery is older than what I would ideally want. Is there a way to upgrade to more up-to-date imagery into the ...
jtam's user avatar
  • 357
0 votes
1 answer
223 views

Meaning of this code for Mapbox layer styling

This is just a snippet of the code, but I'm trying to get a grasp on Mapbox interpolate/zoom syntax. "layerStyle": [ { "type": "line",...
Kevin M's user avatar
0 votes
1 answer
495 views

How do I add a label to a fill layer using Mapbox?

I have a layer of jurisdictions, and am trying to label them at a certain extent (about 1:750000) but I can't get labels to show up at all. I've got the following code: "layerStyle": [ ...
Kevin M's user avatar
0 votes
0 answers
145 views

Inconsistencies between xyz images in Mapbox and raster

I have a 5m raster that I want to show on Mapbox. Using gdal2tiles.py I created the xyz images and am serving them from s3 up to zoom level 18. The idea is that the user should be able to click on a ...
sobmortin's user avatar

1
2 3 4 5
18