Difference between revisions of "Web Element: Map"


Line 74: Line 74:
 
       container: 'map', // Specify the container ID
 
       container: 'map', // Specify the container ID
 
       style: 'mapbox://styles/mapbox/streets-v11', // Specify which map style to use
 
       style: 'mapbox://styles/mapbox/streets-v11', // Specify which map style to use
       center: [-77.0369, 38.895], // Specify the starting position
+
       center: [27.0369, 38.895], // Specify the starting position
       zoom: 11.5, // Specify the starting zoom
+
       zoom: 13, // Specify the starting zoom
 
     });
 
     });
  
 
     // Create variables to use in getIso()
 
     // Create variables to use in getIso()
 
     var urlBase = 'https://api.mapbox.com/isochrone/v1/mapbox/';
 
     var urlBase = 'https://api.mapbox.com/isochrone/v1/mapbox/';
     var lon = -77.034;
+
     var lon = 27.034;
 
     var lat = 38.899;
 
     var lat = 38.899;
 
     var profile = 'cycling';
 
     var profile = 'cycling';

Revision as of 20:57, 17 May 2020

Get started with the Isochrone API

Chose a travel mode:

Chose a maximum duration: