<html> <head> <title>Mapstraction Simple Example</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> <script src="https://raw.github.com/mapstraction/mxn/master/source/mxn.js?(openlayers)" type="text/javascript"></script> </head> <body> <div id="mapdiv" style="height: 400px;"></div> <script type="text/javascript"> var map = new mxn.Mapstraction('mapdiv', 'openlayers'); var latlon = new mxn.LatLonPoint(39.74,-104.98); map.setCenterAndZoom(latlon, 10); </script> </body> </html> |
Untitled >