2009年06月14日

利用Google Map API在BLOG上显示自己的Google Map

第一步
去 http://www.google.com/apis/maps/ 申请一个 Google Maps API key ,当然,你得有顶级域名才行。。。 乱申请的你如果不放到你这个域名下,那这个就根本用不了。。。
Google会给您一段代码,可要保存好哦~

 

Thank You for Signing Up for a Google Maps API Key!

Your key is:

ABQIAAAA42BgJy52n2xeJkKIwOPVXRS7YYNG-jJa2L4Vre20qP4iw8PpyBR3lSql7RIw5lp4eFH-9z9jBEP-TQ

This key is good for all URLs consisting of this registered domain (and directory if applicable):

http://14218.900y.net/

Note: for more information on the API key system, consult http://code.google.com/apis/maps/faq.html#keysystem.

How you use your key depends on what Maps API product or service you use. Your key is valid for use within the entire family of Google Maps API solutions. The following examples show how to use your key within the Maps API product family.

http://www.google.com/maps/api_signup?url=http%3A%2F%2F14218.900y.net%2F

第二步

<html>
<head><title>My::GoogleMap</title>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true_or_false&amp;key=ABQIAAAA42BgJy52n2xeJkKIwOPVXRS7YYNG-jJa2L4Vre20qP4iw8PpyBR3lSql7RIw5lp4eFH-9z9jBEP-TQ" type="text/javascript"></script>
</head>
<body></body>
</html>

 

参考网址:http://www.misuisui.com/weblog/?p=398

 

你可能感兴趣的:(2009年06月14日)