问题描述
我需要从街景视图全景图中删除街上的街道名称(shortDescription):我要删除的标签
I need to get the street names (shortDescription) on street floor removed from streetview panorama:Label I want removed
我知道这是有可能的 https://geoguessr.com/world/play
I know this is possible as seen onhttps://geoguessr.com/world/play
他们似乎使用与自定义google地图布局相同的json语法f = [{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}]],l = {disableDefaultUI:!0,disableDoubleClickZoom:!0,clickToGo:!0,linksControl:!0,styles:f}但是我什至不确定这些标签是否确实是POI的一部分...
They seem to use the same kind of json syntax as for customizing a google maps layoutf=[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],l={disableDefaultUI:!0,disableDoubleClickZoom:!0,clickToGo:!0,linksControl:!0,styles:f}But I'm not even sure these labels are actualy part of the POI ...
我真的需要一些帮助谢谢!
I really need some helpThanks !
推荐答案
尝试在StreetViewPanoramaOptions上使用showRoadLabels选项.对我来说很好.
Try to use the showRoadLabels option on StreetViewPanoramaOptions. Works fine for me.
var panorama = map.getStreetView();
panorama.setOptions({
showRoadLabels: false
});
这篇关于如何在街道楼层上隐藏Streetview街道名称标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!