设置谷歌地图标记的高度/高度 [英] Set the altitude/ height of a google maps marker

查看:236
本文介绍了设置谷歌地图标记的高度/高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  markerLatLang = new google.maps.LatLng(35.6412142,139.6988337)

我正在使用标记并添加它们,如下所示: );
marker = new google.maps.Marker({position:markerLatLang,map:map});

当我进入街景时,所有标记都处于地面。有没有办法在距离地面x米或设定的高度放置一个标记?

解决方案

遗憾的是,正如Dr.Molle所说: ,现在Google地图API中不存在此选项。


I am working with markers and adding them like this:

markerLatLang = new google.maps.LatLng(35.6412142,139.6988337);
marker = new google.maps.Marker({position: markerLatLang, map: map});

When I go in to street view all the markers are at ground level. Is there a way to position a marker at x meters above ground or at a set altitude?

解决方案

Unfortunately, as Dr.Molle said, this option doesn't exist in Google Maps API for now.

这篇关于设置谷歌地图标记的高度/高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆