如何更改位置标记的图像? [英] How to change the image of place marker?

查看:78
本文介绍了如何更改位置标记的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,如果我的地方标记是引脚标记,人物图像,汽车图像,等等。但是我如何用其他图片替换当前图像?如何在地图上编辑当前位置标记?

解决方案

查找正在设置图像URL的代码。将图像存储在项目目录中并将URL设置为这个新路径。



如果您使用谷歌地图,可以参考



https://developers.google.com/maps/documentation/javascript/标记#icon [ ^ ]

For example,if my place marker is pin marker,person image,car image,..etc.But how i can replace on current image by other picture? Meant, how can edit the current place marker on the map?

解决方案

Find the code, where the image URL is being set. Store the image in your project directory and set the url to this new path.

If you are using google maps, you can refer

https://developers.google.com/maps/documentation/javascript/markers#icons[^]


这篇关于如何更改位置标记的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆