https://github.com/apkoponen/mapbox-gl-native-server-example
A simple Mapbox GL Native server example written in Node.js using Express
https://github.com/apkoponen/mapbox-gl-native-server-example
mapbox-gl maps nodejs raster-map raster-tiles vector-tiles
Last synced: about 1 year ago
JSON representation
A simple Mapbox GL Native server example written in Node.js using Express
- Host: GitHub
- URL: https://github.com/apkoponen/mapbox-gl-native-server-example
- Owner: apkoponen
- Created: 2017-02-23T22:03:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-24T13:14:05.000Z (over 9 years ago)
- Last Synced: 2025-03-26T10:52:19.921Z (about 1 year ago)
- Topics: mapbox-gl, maps, nodejs, raster-map, raster-tiles, vector-tiles
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 6
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mapbox GL Native Server Example
This is just a simple Mapbox GL Native server example written in Node.js using Express. The server has a single endpoint that takes z, x and y and renders a png image tile based on the configured base vector tiles.
## Installation
Run `npm install` to install all dependencies.
NOTE: The mapbox-gl-native package requires that you're using node version 4.X.
## Usage
Update the values in "config.js" to match you configuration and run `npm start` to start the server.
You can then go to http://localhost:3000/0/0/0/ to see the whole World rendered at "the left top corner" of the tile source (or something else, depending on your vector map source).