开发者

Add a custom icon to embedded google map

开发者 https://www.devze.com 2023-03-29 05:20 出处:网络
I\'m adding maps to a website dynamically, fin开发者_C百科ding the lat and lng by using google\'s geocoding service. I\'d like to put a marker on the position returned by the geocoding service, on top

I'm adding maps to a website dynamically, fin开发者_C百科ding the lat and lng by using google's geocoding service. I'd like to put a marker on the position returned by the geocoding service, on top of that, I'd like the marker to be a custom image.


You need to use the GIcon class. Please take a look at this:

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

0

精彩评论

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