Created
April 30, 2013 18:03
-
-
Save maplinkapi/5490577 to your computer and use it in GitHub Desktop.
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 zoomLevel = 14; | |
var map; | |
var points = []; | |
var polygon; | |
var lineColor = "#0000af"; | |
var lineWeight = 3; | |
var lineOpacity = .8; | |
map = new MMap2(document.getElementById(divIdName)); | |
map.setCenter(new MPoint(-46.6520066, -23.5650127), zoomLevel); | |
fillPoints(); | |
drawOverlay(); | |
LBS.Event.addListener(map, "click", leftClick); | |
function fillPoints() { | |
points.push(new MPoint("-46.665053144064", "-23.566272129476")); | |
points.push(new MPoint("-46.649603620139", "-23.559270111905")); | |
points.push(new MPoint("-46.640848889914", "-23.5705990324")); | |
points.push(new MPoint("-46.656040921775", "-23.576341792472")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment