我有以下设置,我想要做的是移动地图时更新标记:
https://gist.github.com/277894809fe04cbc29c7
json端点返回例如:
[{"_id":"4ecc19ca8de17b2f0f000001","latitude":47.413358,"location":[47.413358,9.744583],"longitude":9.744583,"name":"d2"},{"_id":"4ecc14e68de17b2924000001","latitude":47.413417,"location":[47.413417,9.744417],"longitude":9.744417,"name":"another"}]
但移动地图时出现以下错误:
Uncaught RangeError: Maximum call stack size exceeded I.get a.(anonymous function) tB.(anonymous function).zoomRange_changed mf I.set (anonymous function) tB.(anonymous function).zoomRange_changed mf I.set ......
不知道是什么导致这种情况,我把各种来源的样本放在一起,不得不适应很多,因为它似乎改变了很多方法.
不确定我是否错过了什么,如果有人能指点我,我会很高兴的
非常感谢,
克里斯托夫