Skip to content

Instantly share code, notes, and snippets.

@maplinkapi
Created April 30, 2013 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maplinkapi/5490577 to your computer and use it in GitHub Desktop.
Save maplinkapi/5490577 to your computer and use it in GitHub Desktop.
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