Harry Wood
home
>
maps
>
examples
> mapstractionv1 >
Mapstraction v1 with OpenLayers
Mapstraction v1 with OpenLayers
Old version 1 Mapstraction example. OpenLayers fullscreen. Mapstracion OpenLayers doesn't seem to show the credit text (©
OpenStreetMap
contributors)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Mapstraction v1 with OpenLayers</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> <script type="text/javascript" src="mapstraction.js"></script> <style> html,body, #map_canvas { height:100%; margin:0px; padding:0px; } </style> </head> <body > <div id="map_canvas"></div> <script type="text/javascript"> // initialise the map with your choice of API var mapstraction = new Mapstraction('map_canvas','openlayers'); mapstraction.setCenterAndZoom(new LatLonPoint(37.796,-122.397), 17); mapstraction.addControls({ pan: true, zoom: 'small', map_type: true }); </script> </body> </html>
view directly
Home
Blog
About
Maps
Other
Contact