Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. map.on('load', () => {
  2.  
  3. // Add a source and layer displaying a point which will be animated in a circle.
  4. map.addSource('route', {
  5. "type": "geojson",
  6. "data": route
  7. });
  8.  
  9. map.addSource('point', {
  10. "type": "geojson",
  11. "data": point
  12. });
  13.  
  14. map.addLayer({
  15. "id": "route",
  16. "source": "route",
  17. "type": "line",
  18. "paint": {
  19. "line-width": 2,
  20. "line-color": "#007cbf"
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement