简体   繁体   English

静态Google Maps自定义图标

[英]Static Google Maps Custom Icons

I've been looking for a way to add custom markers to a static Google map. 我一直在寻找一种将自定义标记添加到静态Google地图的方法。 I know the API doesn't provide the functionality, but I was wondering if there are any third party scripts that would do this. 我知道API不提供此功能,但我想知道是否有任何第三方脚本可以做到这一点。 If not, how would I place my custom transparent images onto the static map? 如果没有,如何将自定义透明图像放置到静态地图上?

Thanks 谢谢

Wrap each image in a div tag, overlay the div where you want it over the map, and use the 将每个图像包装在div标签中,将div覆盖在地图上所需的位置,然后使用

z-index

Property to specify ordering. 指定顺序的属性。 Done and Done. 完成并完成。

Check out this link 查看此链接

How would you make two <div>s overlap? 您将如何使两个<div>重叠?

Not sure what you mean by static, but it's not hard to put custom images on the map as markers. 不知道静态是什么意思,但是将自定义图像作为标记并不难。 It does not require any serverside code if that's what you mean. 如果您的意思是,它不需要任何服务器端代码。

http://groups.google.com/group/Google-Maps-API/web/examples-tutorials-custom-icons-for-markers http://groups.google.com/group/Google-Maps-API/web/examples-tutorials-custom-icons-for-markers

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM