Skip to content

datakaveri/gdi-mvt-tiles-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Using MVT Tiles Served by GDI

Setup

  • Setup a virtual environment and install the dependencies from requirements.txt
  • In server.py, add your GDI client ID and client secret. Make sure you have registered for the consumer role on GDI also.
  • Run the server using flask --app server run
  • Open a browser at localhost:5000 to see the tiles

Working

  • server.py fetches an open token from GDI when a request is made at /. The open token will allow you to access any open resources on GDI.
  • templates/index.html contains the main code based on OpenLayers to display tiles from GDI using GDI's token flow
  • 2 GDI collections that are in vector tile format are shown in this example, district urban coastal data and district boundaries.

About

Demo Flask server + OpenLayers UI to show how to use MVT tiles served by GDI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published