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: [ | + | center: [27.0369, 38.895], // Specify the starting position |
− | 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 = | + | var lon = 27.034; |
var lat = 38.899; | var lat = 38.899; | ||
var profile = 'cycling'; | var profile = 'cycling'; |
hkilter.com by H. K. Ilter is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
© 2020 H. K. Ilter