Vector tiles: Difference between revisions
Brian Wilson (talk | contribs) |
Brian Wilson (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
I am looking at what it will take to set up a stack to use vector tiles. | I am looking at what it will take to set up a stack to use vector tiles. | ||
About [https://hackage.haskell.org/package/vectortiles Mapbox vector tiles] | |||
== The obvious approach == | == The obvious approach == | ||
Line 26: | Line 28: | ||
## Create an vector index | ## Create an vector index | ||
## Create a vector tile package | ## Create a vector tile package | ||
## Use "Add Data" in AGP to preview at the results. | |||
## Publish | |||
==== About the tile package ==== | ==== About the tile package ==== | ||
https://pro.arcgis.com/en/pro-app/help/sharing/overview/vector-tile-package.htm | |||
The generated file is a ZIP archive with a vtpk extension. It contains | The generated file is a ZIP archive with a vtpk extension. It contains | ||
* tilemap/root.json | * tilemap/root.json Styles are here. | ||
* An esriinfo folder containing item.pkinfo, iteminfo.xml, and thumbnail/thumbnail.png | * An esriinfo folder containing item.pkinfo, iteminfo.xml, and thumbnail/thumbnail.png | ||
* about a hundred PBF files = "protocol buffer" that look like font data ("Tahoma Regular")?!? | * about a hundred PBF files = "protocol buffer" that look like font data ("Tahoma Regular")?!? | ||
* tile/??/*.bundle files, about 2 dozen. | * tile/??/*.bundle files, about 2 dozen. | ||
* a medley of other supporting files | * a medley of other supporting files; looks like there are sprites. They use sprites for things like textures. | ||
Learn how to tweak styles, fonts, picture markers: | |||
https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/working-with-fonts-and-sprites-being-creative-with-esri-vector-tiles/ | |||
== The open source option == | == The open source option == |
Revision as of 21:03, 5 September 2018
I am looking at what it will take to set up a stack to use vector tiles.
About Mapbox vector tiles
The obvious approach
After it was already picking up speed, ESRI jumped in and added tile support. I have no idea (yet) if there is any compatibility.
- ESRI ArcGis Pro - generate tiles
- ESRI ArcGis Enterprise - serve tiles
- ESRI ArcGIS API for Javascript - browser support
In this blog post ESRI says they based their API on mapbox-gl.js. Amusingly ESRI doesn't seem to index this page, if you search for mapbox, only some unrelated article comes up.
The ESRI basemaps seem to be all raster based only at this time, though I have this link: http://basemapsbeta.arcgis.com/preview/app/index.html
Tile generation
- Install ArcGIS Pro
- Create a map
- Create Vector Tile Package
- Create a map and add your standard data
- Reproject data into Web Mercator
- Create an vector index
- Create a vector tile package
- Use "Add Data" in AGP to preview at the results.
- Publish
About the tile package
https://pro.arcgis.com/en/pro-app/help/sharing/overview/vector-tile-package.htm
The generated file is a ZIP archive with a vtpk extension. It contains
- tilemap/root.json Styles are here.
- An esriinfo folder containing item.pkinfo, iteminfo.xml, and thumbnail/thumbnail.png
- about a hundred PBF files = "protocol buffer" that look like font data ("Tahoma Regular")?!?
- tile/??/*.bundle files, about 2 dozen.
- a medley of other supporting files; looks like there are sprites. They use sprites for things like textures.
Learn how to tweak styles, fonts, picture markers: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/working-with-fonts-and-sprites-being-creative-with-esri-vector-tiles/
The open source option
A lot is happening in this space. Instead of putting many links here, just look at this firehose of open source vector tile resources: https://github.com/mapbox/awesome-vector-tiles
My choices
I have to start somewhere.
Browser client: I want to try mapbox-gl but since I already have familiarity with Openlayers, I will try it first.
Tile source: I will try Mapbox since I already set up an account there.
That's all I need to set up a test! I will add it to map46 in Github.
Vector base maps
These are generally free services at the levels I will be using them.