Google Map API實作(以新埔捷運站為定位點)






























Step1:Get Google Maps API Key!

Your key is:

ABQIAAAAWm64WJf-o5c4wWHqbqpYlBS6yb8QYqlb9WP2nYLHG2XwwRKvNhRt8WFkKpP9zngpQ5eJBwvHz6lAjw










step2:get GPS address

新埔捷運站座標

25.023546,121.467735







Step3:Get code sample

ftp://140.122.86.235










step4:edit oo2.html

編輯Script內

Key=填入取得之Key

map.setCenter 重新宣告精緯度(十進制),13(放大比),用最大20以內


座標指定Mark

var point = new GLatLng(25.023546,121.467735);

var marker = new GMarker(point);

map.addOverlay(marker);


增加控制項

map.addControl(new GSmallMapControl());

map.addControl(new GMapTypeControl());

補位置說明泡泡