Skip to content

Instantly share code, notes, and snippets.

@jsooriah
Created August 28, 2012 15:15
Show Gist options
  • Save jsooriah/3498985 to your computer and use it in GitHub Desktop.
Save jsooriah/3498985 to your computer and use it in GitHub Desktop.
var mapstraction;
// create mxn object
mapstraction = new mxn.Mapstraction('map_canvas','googlev3');
mapstraction.addControls({
pan: true,
zoom: 'large',
overview: true,
scale: true,
map_type: true
});
var latlon = new mxn.LatLonPoint(43.617, 1.450);
mapstraction.setMapType(mxn.Mapstraction.ROAD);
mapstraction.setCenterAndZoom(latlon, 4);
mapstraction.mousePosition('position');
// add a marker
var marker = new mxn.Marker(latlon);
mapstraction.addMarker(marker,true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment