Harry Wood
home
>
maps
>
examples
> mapstractionv1 >
Mapstraction v1 Google v2 OSM
Mapstraction v1 Google v2 OSM
Old version 1 Mapstraction example. Google v2 (also old). Fullscreen. Interestingly this combo manages to do something about OSM credit text (but it should be ©
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 Google v2 OSM</title> <!-- swap in your own google API key --> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAcOA2LaNRuAQ2y2Oz-pZRpBQyneyfRPMDP1KvMIr9HfurPu4g8hSZRU-Xvq6mq5S4JWRliQchOg6oCQ" type="text/javascript"></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','openstreetmap'); mapstraction.setCenterAndZoom(new LatLonPoint(37.796,-122.397), 17); mapstraction.addControls({ pan: true, zoom: 'small', map_type: true }); </script> </body> </body> </html>
view directly
Home
Blog
About
Maps
Other
Contact