Difference between revisions of "Web Element: Map"


 
(One intermediate revision by the same user not shown)
Line 31: Line 31:
 
<body>
 
<body>
 
   <!-- Create a container for the map -->
 
   <!-- Create a container for the map -->
   <div id='map'></div>
+
   <div id='map' style='width: 828px; height: 600px;'></div>
  
 
   <!-- Create a sidebar with buttons for each option -->
 
   <!-- Create a sidebar with buttons for each option -->
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';

Latest revision as of 20:59, 17 May 2020

Get started with the Isochrone API

Chose a travel mode:

Chose a maximum duration: