开发者

Google Map Markers from Local JSON Data

开发者 https://www.devze.com 2023-04-02 06:43 出处:网络
Greets!Is it possible to create a Google M开发者_Go百科ap in IE from JSON data stored locally (no server)?I had a solution working that used local KML data which worked in Firefox but not IE, apparent

Greets! Is it possible to create a Google M开发者_Go百科ap in IE from JSON data stored locally (no server)? I had a solution working that used local KML data which worked in Firefox but not IE, apparently because of cross-domain problems. Would JSON provide a better solution?

Thanks for any guidance!


Yes it is quite possible using Google Maps JavaScript API V3.

http://code.google.com/apis/maps/documentation/javascript/

You can add Markers to the map using your JSON data for the attributes.

http://code.google.com/apis/maps/documentation/javascript/overlays.html#Markers

0

精彩评论

暂无评论...
验证码 换一张
取 消