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
instance.on( 'event-name', yourcallback ) | |
instance.once( 'event-name', callback ) | |
instance.off( 'event-name', callback ) | |
instance.fire( 'event-name', callback ) | |
//example using freeform | |
var instance = mplk.freeform( 'div-id' ) | |
instance.on( 'select', function( data ) { console.log( data ) } ) |
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 map; | |
var polyline; | |
var count = 0; | |
var points = new Array(); | |
var markers = new Array(); | |
var lineColor = "#0000af"; | |
var fillColor = "#335599"; | |
var lineWeight = 3; | |
var lineOpacity = .8; | |
var fillOpacity = .2; |
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
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://webservices.maplink2.com.br"> | |
<soap:Header/> | |
<soap:Body> | |
<web:findAddress> | |
<web:address> | |
<web:street></web:street> | |
<web:houseNumber></web:houseNumber> | |
<web:zip>04551010</web:zip> | |
<web:district></web:district> | |
<web:city> |
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
{ | |
"ZoneId": 156, | |
"GroupId": 17, | |
"Geometry": { | |
"id": 1, | |
"type": "Feature", | |
"properties": { | |
"party": "Democrat" | |
}, | |
"geometry": { |
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
{"Geometry":{"type":"Feature","properties":{"party":"Democrat"},"geometry":{"type":"Polygon","coordinates":[[[-109.05,41],[-102.06,40.99],[-102.03,36.99],[-109.04,36.99],[-109.05,41]]]}},"ActiveTimes":[{"dayofweek":"Monday","starttime":"05:00:00","endtime":"12:45:00"},{"dayofweek":"Saturday","starttime":"08:00:00","endtime":"11:45:00"}]} |
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
{ | |
"GroupId": 1, | |
"Name": "Grupo de exemplo", | |
"Description": "Descrição grupo de exemplo" | |
} |
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
{ | |
"Name":"Grupo de Exemplo", | |
"Description":"Descrição do grupo de exemplo" | |
} |
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
{ | |
"Group": | |
{ | |
"GroupId": 1, | |
"Name": "Grupo de exemplo", | |
"Description": "Descrição grupo de exemplo" | |
}, | |
"Zones": | |
[ | |
{ |
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); | |
map.addEventListener("click", function (e) { | |
alert(e.latlng); | |
},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 zoomLevel = map.getZoom(); // Get zoom level; Value 14. | |
map.zoomIn(1); // Increases +1 | |
zoomLevel = map.getZoom(); // Get zoom level; Value 15. | |
map.zoomOut(1); // Decreases -1 | |
zoomLevel = map.getZoom(); // Get zoom level; Value 14. | |
map.zoomOut(1); // Decreases -1 | |
zoomLevel = map.getZoom(); // Get zoom level; Value 13. |