Created
August 28, 2012 15:15
-
-
Save jsooriah/3498985 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 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