How do I change/customize the icon for the pegman on Google Maps?

别来无恙 提交于 2019-12-23 22:48:25

问题


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


回答1:


The Pegman icon is part of the Google Streetview branding and cannot be changed.



来源:https://stackoverflow.com/questions/31151530/how-do-i-change-customize-the-icon-for-the-pegman-on-google-maps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!