本文介绍了如何更改/自定义Google地图上的人员图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经搜索了stackexchange,但是我只找到了更改pegman位置的问题/答案。有没有办法改变它的源图像?
我尝试过影响这样的样式:
I have searched around stackexchange, but I only found questions/answers for changing the location of the pegman. Is there a way to change the source image for it?I have tried affecting the style like this:
#map-canvas > div > div:nth-child(8) > div:nth-child(2) > div:nth-child(4) > img:nth-child(1) {
background:url(images/man.jpg);
}
但没有显示任何变化。我似乎无法在这里找到它:
but it's not showing any changes. I can't seem to find it here either: https://developers.google.com/maps/documentation/javascript/reference#StreetViewService
推荐答案
Pegman图标是Google Streetview品牌的一部分并且无法更改。
The Pegman icon is part of the Google Streetview branding and cannot be changed.
这篇关于如何更改/自定义Google地图上的人员图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!