在gmap-v3-geofence.js中的“ selectId(infoId)”中获取null

问题描述 投票:0回答:1
Geofence.prototype.setInfo = function(polygon, infoId) 
{
    selectId(polygon).value = getCoordinatesString(polygon);
}

gmap-v3-geofence.js:208未捕获的TypeError:无法在以下位置的Geofence.setInfo(gmap-v3-geofence.js:208)设置null的属性“值”在geofencing.js:17处的drawPolygon(geofencing.js:27)>

需要一些认真的帮助。我正在使用来自Github的以下代码。 Click Here

Geofence.prototype.setInfo = function(polygon,infoId){selectId(polygon).value = getCoordinatesString(polygon); } gmap-v3-geofence.js:208未捕获的TypeError:无法设置属性'value'...

javascript google-maps geofencing
1个回答
0
投票

我的问题是在Google Map上放置一个区域,我也可以拖动和调整其大小,因此我使用以下代码并获得了所需的结果:

© www.soinside.com 2019 - 2024. All rights reserved.