Created
August 10, 2013 15:03
-
-
Save minitech/6200746 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Mapstraction Bug Test</title> | |
<style type="text/css"> | |
#map { | |
background-color: #eee; | |
bottom: 0; | |
left: 0; | |
position: absolute; | |
right: 0; | |
top: 0; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script type="text/javascript" src="http://dev.openlayers.org/releases/OpenLayers-2.9.1/OpenLayers.js"></script> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript" src="http://mapstraction.com/mxn/build/latest/mxn.js?(googlev3,openlayers)"></script> | |
<script type="text/javascript"> | |
var map = new mxn.Mapstraction('map', 'googlev3'); | |
var latlon = new mxn.LatLonPoint(39.74, -104.98); | |
map.setCenterAndZoom(latlon, 10); | |
var marker = new mxn.Marker(new mxn.LatLonPoint(39.74, -104.98)); | |
marker.setDraggable(true); | |
map.addMarker(marker); | |
marker.toProprietary(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment