I want to create a vector tile base map using my own shapefiles/postgis tables for use on a mobile primarily. By my understanding the process is divided into 3 main steps:
- Creating/slicing the data into vector tiles.
- Using a server to host the tiles.
- Rendering the tiles.
I have looked into various methods to do this, The Mapzen Vector Tiles were the first thing I looked into. They come with a very good rendering option as well. I got it to work with osm data but I wasn't able to configure it to work with my own PostGIS Tables. The processing and queries assume that the data is from osm.
Currently I am looking into PGRestAPI, I have been able to create my tiles and host them pretty easily but I am not sure how I will render them on the mobile. I am not able to parse the vector tile endpoints that I get from the server. The Leaflet Vector-Tile plugin is also something I have looked into but I'm not sure how to go about using it on mobile.
How do I go about rendering the vector tiles on a mobile? And is there any alternative way to go about creating a vector tile base map for use on a mobile?