Google 地图 API - GStreetviewPanorama - 删除地址叠加
GEvent.addListener(marker, "click", function() {
panoramaOptions = { addressControl: false,navigationControl: false };
panorama = new GStreetviewPanorama(smallNode,panoramaOptions);
GEvent.addListener(panorama, 'error', function(errorCode) {
if (errorCode == 600) {
smallNode.innerHTML = 'No Streetview data was found.';
}
});
panorama.setLocationAndPOV(marker.getLatLng());
marker.openInfoWindowTabs(tabs);
});
您好 - 我正在显示经纬度值的街景视图,但全景图(街景视图)中显示的地址与我存储在数据库中的地址略有偏差。例如,当我将“93 xxx Street”作为已地理编码的标记时,叠加层将在街景地图的右上角显示“91 xxx Street”。
我想使用上述代码作为参考,从此地图中删除地址叠加层和用户照片叠加层 - 您能否协助删除地址和照片叠加层?
任何帮助表示赞赏。
GEvent.addListener(marker, "click", function() {
panoramaOptions = { addressControl: false,navigationControl: false };
panorama = new GStreetviewPanorama(smallNode,panoramaOptions);
GEvent.addListener(panorama, 'error', function(errorCode) {
if (errorCode == 600) {
smallNode.innerHTML = 'No Streetview data was found.';
}
});
panorama.setLocationAndPOV(marker.getLatLng());
marker.openInfoWindowTabs(tabs);
});
Hi - I am displaying a Street View from a lat long value, but the address displayed in the Panorama (street View) is slightly off from the address I have stored in the database. For example, the overlay will display "91 xxx Street" in the top right corner of the Street View map, when I have "93 xxx Street" as my marker which was geocoded.
I would like to remove the address overlay and user photos overlay from this map, using the above code as a reference - could you please assist in removing the address and photo overlays?
Any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以隐藏用户照片,但不能隐藏地址。
GStreetViewPanoramaOptions
的可用属性位于特别是,要删除用户照片:
不支持
addressControls
和navigationControls
选项。You can hide the user photos, but not the address.
The properties available for
GStreetViewPanoramaOptions
are available in the reference.In particular, to remove user photos:
addressControls
andnavigationControls
are not supported options.