SHARE
TWEET

Untitled

a guest Mar 21st, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top