如何更改/自定义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);
  }

但没有显示任何变化。我似乎无法在这里找到它: https://developers.google。 com / maps / documentation / javascript / reference#StreetViewService

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.