This is a helper page to get the HTML code of a place in Google Map, so I can copy and paste it into my blog.
Lat, Lng
HTML:
<script src=”http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAc6w3r_W-HieOehKlSsUEHRQPsA8lXb864JtcPYsku9QMH0vMhxS7ShslSX0dH64g2vn11uJa-IaUOQ” type=”text/javascript”></script><div id=”map” style=”width: 640px; height: 480px”></div><script type=”text/javascript”>if (GBrowserIsCompatible()) {var map = new GMap2(document.getElementById(“map”));map.addControl(new GSmallMapControl());map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(lat,lng), zoom, G_SATELLITE_MAP); }</script>
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(31.210117,121.497175), 13, G_SATELLITE_MAP);
GEvent.addListener(map, "moveend", function() {
var center = map.getCenter();
document.getElementById("message").innerHTML = center.toString();
document.getElementById("lat").innerHTML = center.lat();
document.getElementById("lng").innerHTML = center.lng();
document.getElementById("zoom").innerHTML = map.getZoom();
}
);
}
Hey Guys,
I found this map which I feel more practical than the google map:
http://www.mapandcity.com/shanghai-map.html
How do you think?
ymur2c