Wednesday, October 8, 2008

Coding for Google Map Using JavaScript

use this coding with script tag

"http://maps.google.com/maps?file=api&v=2&key=abcdefg"
type="text/javascript"

Here Closing script tag

open another script tag

"function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(22.853145, 80.507813),5);
}
}"
closing script tag

No comments: