- 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:5000to see the tiles
server.pyfetches 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.htmlcontains 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.