Write JSON data.
Example: https://xx7y7xx.github.io/node-map/?load=/node-map/examples/simple.json
Setup global auth token (used in Remote Data Node).
Write script to transfer js object from format A to format B.
Example: https://xx7y7xx.github.io/node-map/?load=/node-map/examples/deps.json
Call turfjs to convert array of coordinates into GeoJSON.
Create a GeoJSON data source in mapbox.
Render map with input data source ID.
Render map with input data source ID.
Examples:
- Simple - https://xx7y7xx.github.io/node-map/?load=/node-map/examples/simple.json
- World countries - https://xx7y7xx.github.io/node-map/?load=/node-map/examples/world.json (https://github.com/johan/world.geo.json)
- Point label - https://xx7y7xx.github.io/node-map/?load=/node-map/examples/point-label.json