This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mapZoomLevel = map.getZoom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mapZoomLevel = 10; | |
map.setZoom(mapZoomLevel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="http://{future-url}?components=layer&applicationCode=APPLICATIONCODE&signature=SIGNATURE"></script> | |
</head> | |
<body> | |
<div id="divMap" style="width: 700px; height: 600px; border: solid 1px black;"></div> | |
<div id="divInfo"></div> | |
</body> | |
<script type="text/javascript"> | |
<!-- CODE HERE --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bikeLayer = mplk.mapLayer( { type:'bike' } ) // Creating | |
map.addLayer( bikeLayer ) // Adding on map | |
map.removeLayer( bikeLayer ) // Removing from map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var regularLayer = mplk.mapLayer({type:'regular'}); | |
map.addLayer(regularLayer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bikeLayer = mplk.mapLayer({type:'bike'}); | |
map.addLayer(bikeLayer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var trafficLayer = mplk.mapLayer( { type: 'traffic' } ) | |
map.addLayer( trafficLayer ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var divIdName = "divMap" // The div where the map will be loaded | |
var map = L.map( divIdName ) | |
var zoom = 13 | |
var center = [ -23.55392, -46.63078 ] // lat, lng | |
map.setView( center, zoom ) | |
mplk.mapLayer().addTo( map ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var divIdName = "divMap"; | |
var map = L.map(divIdName).setView([-23.55392, -46.63078], 13); | |
mplk.mapLayer().addTo(map); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": { | |
"code": "OK" | |
}, | |
"routes": [ | |
{ | |
"routeIdentification": "main-route", | |
"overviewPolyline": { | |
"type": "FeatureCollection", | |
"features": [ |