Questions tagged [vector-tiles]

Questions about generating or using vector geospatial data served using tiles.

Vector tiles are a way of cutting up and distributing geospatial data along pre-defined tile boundaries at various zoom levels. The most common scheme follows the same boundaries as the raster tile format used by Google Maps, OpenStreetMap and others.

Questions that are heavily about the geographic or cartographic aspects of vector tiles, or third-party software, may be better suited to https://gis.stackexchange.com

More information: http://en.wikipedia.org/wiki/Vector_tiles

157 questions
15
votes
1 answer

What do minzoom and maxzoom do in Mapbox-GL-JS exactly?

What exactly do the minzoom and maxzoom properties on vector tile sources, and vector-based layers do in Mapbox-GL-JS styles? The documentation is a bit short.
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
12
votes
3 answers

How to display vector tiles generated by geojson-vt in leaflet?

I have a lot of GeoJSON spatial data that I want to display on a leaflet map. Around 35,000 GeoJSON objects. Because the amount of points can get very large, I wanted to use the geojson-vt library to tile my data on the client side. Right now I have…
Røye
  • 1,077
  • 3
  • 14
  • 27
10
votes
1 answer

MKMapView overlay Vector tiles

Is there any way I can make vector tiles and overly them on MKMapView in iOS 6 and above? I know how to overlay images using MKOverlayView, but they are raster images.
Afnan
  • 888
  • 1
  • 13
  • 37
9
votes
3 answers

Rendering vector-tiles using Mapbox using react-mapbox-gl

I have a geoJSON file that I convert into vector.tiles using this npm package. I use const tileIndex = geojsonvt(geoJSON). The geoJSON file has the following format and it gets converted without any error. const geoJSON = { type:…
relu
  • 333
  • 1
  • 3
  • 18
9
votes
1 answer

Avoid cached vector tiles from Mapbox

I'm running into a problem with Mapbox-GL-JS where there are cached vector tiles in my browser, preventing recent changes being seen. The normal workaround is to append a unique string onto the end of the tile string…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
8
votes
2 answers

Vector tile route finding

Has anyone used either Mapbox or OpenMapTiles vector tiles to find routes from one place to another? It seems to me like those tiles are made for display and don't contain intersection information the way that say Open Street Map does.
dooderson
  • 547
  • 1
  • 9
  • 16
7
votes
2 answers

Get map tiles bounding box

Is it possible to get tiles LngLat bounding box? (and center/width if possible) I.e given any tile "id" (e.g 6/33/24), calculate wanted coordinates. I'm so desperate to get an answer that I don't even care in what language it's…
Solo
  • 6,687
  • 7
  • 35
  • 67
7
votes
2 answers

OpenMapTiles. vehicle routing

I am trying to use openMapTiles vector tiles for vehicle routing. It seems like a very fast data source to load. I intend to simulate many vehicles, so repeatedly querying google maps api is not an option. Is there an easy way to find road…
dooderson
  • 547
  • 1
  • 9
  • 16
6
votes
2 answers

How to use the PostGIS aggregate function ST_AsMVT with Django ORM

Problem I would like to create a Mapbox vector tile (MVT) in Django, using the ORM. In SQL (PostgreSQL, PostGIS) the SQL query looks like this for the tile with zoom=8, x=137, y=83: SELECT ST_AsMVT(tile) FROM (SELECT id, ST_AsMVTGeom(geometry,…
MarcelCode
  • 483
  • 3
  • 10
5
votes
3 answers

How to display a huge GeoJSON file to the MapBox?

I'm new in MapBox GL Js and I want to call a big GeoJSON file over https and display it to the map. I think that calling vector Tile is the best way to do that, I found some tutorials that show how to convert your GeoJSON data to Vector Tile but on…
Elkadiri Imad
  • 53
  • 1
  • 4
5
votes
1 answer

How to display (antimeridian) vector tiles generated by geojson-vt in leaflet using L.CRS.Simple?

I have a GeoJSON simple data that i need to display on a leaflet map using L.CRS.Simple crs, because is antimeridian data, and sometimes, coordinates can be [450,389] (more than 180) This is the very simple GeoJSON: { "type": "FeatureCollection", …
C.P.O
  • 1,213
  • 2
  • 11
  • 29
5
votes
2 answers

How to add GeoJSON points as a vector tile in Leaflet?

I've read through every question on Stack Overflow I can find and every example I can find on the web for adding GeoJSON vector tiles to a leaflet map. Unfortunately I still can't manage to wrap my head around it, much less get it work on my data. …
Evan
  • 1,960
  • 4
  • 26
  • 54
5
votes
0 answers

Can OpenLayers3 reproject vector tile (MVT) layers?

I'm trying to use OpenLayers to display vector tile layers and basemaps that I've created and am serving. The raster basemaps I'm using are in EPSG:4326, and I'd like to overlay the MVT layers, reprojected into EPSG:4326 as well. However, it's not…
jrodjpl
  • 113
  • 7
4
votes
1 answer

How to serve multiple .pbf files instead of .mbtiles with TileServer-GL or OpenMapTiles server as vector tiles into Google Maps with Deck.GL MVTLayer?

Summary I have .geojson files and want to convert them (with tippecanoe / geobuf / other) to .mbtiles or .pbf files to serve them as vector tiles from a server (TileServer-GL / OpenMapTiles / other vector tile server) into Google Maps with Deck.GL's…
Florin Vîrdol
  • 395
  • 2
  • 10
  • 28
4
votes
0 answers

ol-mapbox-style apply() function does not work with custom projection in OpenLayers

I use vector tiles in crs ETRS89/UTM zone 32N (EPSG:25832) in OpenLayers and it works properly with default style. But my problem is that if I apply a style.json from Maputnik in form of Mapbox Style by using th library olm-mapbox-style, it will be…
Arash Gh.
  • 41
  • 3
1
2 3
10 11