Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mapbox]

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

0
votes
0answers
27 views

Filter geofabrik to Mapbox Style

GeoFabrik's extracts - as expected - have a massive amount of unnecessary information for most applications. Filtering this information is a critical step to decrease the map's size, especially for ...
0
votes
0answers
27 views

Changing color of GeoTIFF using GDAL and Mapbox?

I have a geotiff that I am importing to a mapping software that I want in the color pink. It is currently a white image, and I would like a GDAL option to change the color. I am using Mapbox, which ...
-1
votes
2answers
13 views

Error The sourceLayer parameter must be provided for vector source types

mapbox GL: I got this error Error: The sourceLayer parameter must be provided for vector source types. What is wrong?
0
votes
1answer
13 views

Change dynamically created layer's minZoom after render

I want to change the minzoom of dynamically created layer after the rendering. I tried couple of things: map.getLayer('my_custom_layer'); // this gets the layer map.getLayer('my_custom_layer')....
0
votes
1answer
24 views

Mapbox GL JS ImageSource wrong coordinates

I'm struggling to position an image correctly onto my map. I'm using one of the following URLs for my (live) image: https://maps.dwd.de/geoserver/dwd/wms?service=WMS&version=1.3.0&request=...
0
votes
0answers
19 views

Mapbox Unity SDK not getting all correct building IDs from Openstreetmap

I'm developing a location based game and using the buildings as a part of the element of the game. I'm using the Mapbox SDK 2.0 in unity. Now I'm noticing on some part of the maps are loaded, but ...
2
votes
1answer
28 views

Mapbox - Icon rotations in FeatureCollection

I'm displaying various ships on a map and I have made real sized polygons to represent them. These are not visible at lower zooms, so I wanted to also add icons representing each ship. The icon is a ...
0
votes
0answers
31 views

Mapbox/Leaflet - how to generate evenly spaced coordinates inside a polygon

I'm trying to generate an evenly spaced grid of coordinates inside a polygon. I know that I can generate random points like follows: const polygon = L.polygon([somePoints]).addTo(map); const bounds = ...
1
vote
1answer
41 views

Mapbox GL JS/Android: Draw User's 3D Vector Layer of Buildings

Here: https://docs.mapbox.com/mapbox-gl-js/example/3d-buildings/ It's possible to draw 3D buildings by taking advantage of extrusions, however the 3D vector layer source is the Mapbox's underlying ...
0
votes
2answers
28 views

Mapbox GL JS - Trouble Loading Data to Create Layer

I am new to Mapbox GL JS and working with starter code from "Create a Time Slider" below: https://docs.mapbox.com/mapbox-gl-js/example/timeline-animation/ To pull in the data, the code uses d3.json ...
0
votes
1answer
45 views

Difference between MapBox mbtiles and offline mbtiles for MapBox Android SDK

I know what have some difference between MapBox mbtiles and offline mbtiles for MapBox Android SDK. In offline mbtiles for SDK besides tiles contains: Style JSON. All fonts and icons associated ...
0
votes
1answer
100 views

Add custom maps in Mapbox as tile layer in Folium

I was trying to create a map in Folium using a custom map built tile layer created with Mapbox Studio (using 3 different datasets and a satellite basemap). I was wondering if there is a simple way to ...
0
votes
2answers
22 views

Adding GeoJSON tile set to an existing map

I'm confused on how to add my GeoJSON tileset to an existing map built with a default style. Do I add the GeoJSON by ID or by style? Here is what I'm working with now.l Added .geojson to Tilesets as ...
1
vote
0answers
51 views

Generate vector tiles for dynamic data

I am having around million features stored in PostgreSQl table (with PostGIS extension). I can generate vector tiles by performing below steps Generate GeoJSON from PG table using GDAL Generate ...
0
votes
0answers
12 views

Filtering Custom Mapbox style implemented in Android

I created Custom Mapbox styles by importing Tilesets containing custom point locations in it.I implemented the same style in my android app.I can access the data inside each points by using ...
0
votes
1answer
16 views

MapBox Text Layer is adding multiple text instead of single centered text

I am trying to use data from my tileset (.zipped shape file) to show Text Label over my tile layer. However, instead of adding a centered label, it's adding multiple-texts sometimes. For example 38 ...
0
votes
1answer
34 views

Location is not accurate when replicating an existing feature and zooming in

I am trying to resolve an issue with the accuracy of a selected point using queryRenderedFeatures. The accuracy is fine when zoomed out, but when zooming in it appears off. I am using the ...
0
votes
1answer
53 views

GeoServer Mapbox Vector Tile

I have a spring boot application which is making request to GeoServer to get a layer as a vector tile instead of the front end application making the request directly. The problem is I am not getting ...
0
votes
1answer
14 views

Mapbox API - Regenerate a Tileset after it's related Dataset has been udated

I'm using Mapbox's API to update the features on a dataset. However, I'm not seeing the changes automatically appear in the tileset that's been generated from it afterwards. Is there an extra step ...
0
votes
0answers
19 views

Bringing GeoServer data into Mapbox in Android

I have some point locations and polygons published in GeoServer. I am creating an Android Application to display those data using Mapbox. Is there a way I can do that? (I am completely new to this.)
0
votes
0answers
27 views

Mapbox GL - change all marker symbols based on zoom

I am adding markers from a GeoJSON one by one. myGeoJSON.features.forEach(function(marker) { var elem = document.createElement('div'); var text = var text = document.createTextNode(marker....
0
votes
0answers
67 views

MapBox SDK load local MBTiles

does anyone know how I can load local MBTiles from the device storage using the MapBox SDK? The vector Tiles come from this Website: https://openmaptiles.com/downloads/planet/ The same page offers ...
0
votes
1answer
57 views

Put custom XYZ tile in Mapbox

How to put custom tiles xyz raster files example : http://blablabla.bla/{z}/{x}/{y}.png I tried to insert it using : map.addSource('bla.tile',{ 'type': 'raster', 'tiles': ['http://...
0
votes
0answers
54 views

How to create a map-based survey with drag-drop capability?

I am an urban planning master student. I need to create a map-based survey for my research. The survey should allow users to drag some different points from the toolbar to the map showing next to it. ...
0
votes
1answer
80 views

Supplement Mapbox geocoder results with external geocoder API

I am still learning JS so please bear with me. I have built a Mapbox GL JS map and would like to supplement Mapbox geocoding results with those from an external geocoding API as many POIs I need are ...
0
votes
0answers
43 views

Decrease the volume of vector tiles generated by GeoServer

I've used GeoServer vector tile extension to produce PBF files from set of shape files. The problem is the generated MVTs from GeoServer have larger volume in comparison with Mapbox ones. How can I ...
0
votes
0answers
41 views

Mapbox drawing with snap to grid

I'm using Mapbox for a web project and would like to have a drawing tool for closed polygons where the drawn line is always snapped to a grid. Specifically, I'm using a 100m global grid (MGRS) and ...
0
votes
0answers
68 views

How do I get a polyline Displayed in Mapbox Visual for Power BI?

All of the Mapbox Examples involve point layers where you add a csv and drop lat/lngs into power bi. I have also tried creating a custom map in studio and adding and styling my polyline. However ...
0
votes
0answers
201 views

Adding select option menu to Mapbox map and filtering data source?

I'm attempting to add a drop down select menu for # of bedrooms to a mapbox map. The data source that I'm attempting to filter on is a geojson data file. I setup window onchange event listener ...
0
votes
0answers
33 views

How to pass local storage item (address) from one page to another page with a Mapbox map on it?

I have a simple text submit field on one page. The goal is to have users type in a location and hit submit then go to a landing page with a Mapbox map and have it center or zoom to that location. Here'...
1
vote
1answer
75 views

Does the PostGIS ST_AsMVTGeom function perform geometry simplification on the fly?

PostGIS now comes with a set of functions that allow to generate Mapbox Vector Tiles. Among them, the ST_AsMVTGeom allows to transform a geometry into the coordinate space of a tile (typically ...
1
vote
0answers
103 views

Does Ionic Offer Mapbox Navigation?

Is Mapbox Navigation compatible with Ionic? I can only find SDK for both Android & iOs but nothing on cross platform technologies. https://www.mapbox.com/navigation-sdk/
0
votes
0answers
47 views

Map with clickable polygons to extract properties and fill a table column using HTML/CSS

I created an interactive map from Mapbox with a vector file from a tileset. In addition to that I added a slidebar in the left side of the map and inside of the slidebar a table. With a popup when I ...
0
votes
0answers
25 views

Display a popup with the information arranged in tabs using Mapbox GL JS

I'm creating a map in the Mapbox and I need When you click a point on the map the information is displayed in a popup. So far I can already do following this tutorial: https://www.mapbox.com/help/...
4
votes
0answers
77 views

Fixing buildings that do not appear in 3D using Mapbox gl js?

I'm trying to adopt this Display buildings in 3D example, but I found out that in my city (Minsk, Belarus) some buildings look flat like this: The coordinates of this particular building are 27....
0
votes
1answer
85 views

How to get GeoJOSN Features using Mapbox?

I'm using Mapbox to create webmapping, I want to get GeoJSON Features. I tried map.queryRenderedFeatures but it returns array empty. there are my code: map.on('load', function(e) { map.addSource("...
0
votes
0answers
68 views

Merging two MapBox MBTiles files using javascript/typescript in Cordova?

I am using the MapBox-GL-JS API to render maps in a Cordova hybrid app that runs on Android and iOS. I have serving vector tiles locally from the phone working. In my use case, I would like users to ...
0
votes
1answer
49 views

Can't Add Mapbox hosted DigitalGlobe Basemap in QGIS 3.2

I'm having trouble viewing a Digital Globe base map in QGIS. I'm following Mapbox's instructions from their API https://mapsapidocs.digitalglobe.com/v2.0/docs/tiles (bottom section that describes ...
0
votes
0answers
59 views

Highlighting polygons of Mapbox tileset on hover?

I am trying to highlight polygons from a Mapbox tileset on a map on hover. Based on Mapbox's tutorial I am adding a feature state hover to the data that is set through mousemove and mouseleave events. ...
0
votes
1answer
136 views

Opacity Transition Mapbox Fade In

I am facing a problem using the 'fill-opacity-transition' in Mapbox GL JS. Maybe someone has an idea what the mistake could be? <!DOCTYPE html> <html> <head> <...
0
votes
1answer
125 views

How to query features of raster layers hosted on GeoServer that are added to Mapbox?

Currently working with Mapbox gl js. I know for OpenLayers there's a function called GetFeatureInfo to do this, but is there a similar one for Mapbox? What I want to do is whenever the user clicks on ...
0
votes
1answer
153 views

Can multiple MapBox vector tile mbtiles be merged just using SQLite?

Is it possible to combine two vector mbtiles files using just SQLite? I noticed this question Joining several raster .mbtiles? but it does not seem to work with vector files. I also came across ...
3
votes
1answer
77 views

How to generate a correct HTTP response for a pbf within AWS API Gateway?

I am attempting to implement this approach to serving vector tiles from PostGIS using a lambda function and an AWS API Gateway Method: https://www.sparkgeo.com/blog/vector-tile-server-using-postgis. ...
0
votes
0answers
79 views

Adding Mapbox WMS layer to QGIS

Just trying to add my Mapbox style to QGIS. Doing everything according manual https://www.mapbox.com/help/mapbox-arcgis-qgis/ This is a working link, you can check it https://api.mapbox.com/styles/...
2
votes
1answer
183 views

Implementing Access Token in Tile Server?

I am using Tileserver-GL for rendering vector tiles to web and mobile. For web, I am using Mapbox JS API GL and for Mobile, I am using Mapbox android SDK. Currently, I am using flat URL given by ...
0
votes
0answers
26 views

Loading polygon with pop-up box into Mapbox?

I'm having difficulty loading this piece of html code, which would load this polygon into mapbox (which works), but trying to get a pop-up box to give the name of the polyogn when the polygon is ...
1
vote
0answers
120 views

How to update circle-color or marker symbol on update of a source property in Mapbox GL?

I am trying to get Mapbox GL work in my React code as below: I have a property called strength in each of my features in a FeatureCollection of a mapbox-gl map. I want to display a circle (ideally a ...
0
votes
0answers
17 views

How can GeoServer transform a 'no RHR layer' into a RHR layer?

We are using GeoServer 2.11.2 and Mapbox. We have many layers that do not follow the rule of the right hand and we need to serve them to other application. The problem is that we have to show in a ...
1
vote
0answers
70 views

Extend / override Mapbox-gl 'baselayer' loadTile

Similar to how Leaflet's guide shows how to override L.TileLayer's getTileUrl method in place of your own (and L.GridLayer's createTile method), I want to know how to extend/override Mapbox-gl's ...
0
votes
1answer
55 views

What do the heatmap layer settings numbers in mapbox stands for?

I have layer settings of mapbox heatmap as follows from this official site: What do these numbers stand for (the first, the second, the third, the fourth number) and what are their limitations please?...