【发布时间】:2019-01-30 22:26:19
【问题描述】:
如何在 jQuery 位置选择器插件中获取缩放属性?我可以使用currentLocation.latitude 和currentLocation.longitude 获取地图坐标,但是有人知道如何获取缩放属性吗?
$('#the-map').locationpicker({
location: {latitude: 46.15242437752303, longitude: 2.7470703125},
radius: 300,
onchanged: function(currentLocation, radius, isMarkerDropped) {
alert("Location changed. New location (" + currentLocation.latitude + ", " + currentLocation.longitude + ")");
}
当我尝试currentLocation.zoom 时,我得到了未定义。
【问题讨论】:
标签: javascript jquery google-maps jquery-plugins