获取[ui传单]标记定义无效接收到标记lng上的无效数据

neskvpey  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(192)

帮助当我尝试创建从api获取的标记时,我收到以下消息
标记定义无效。在标记层上接收到无效数据。标记定义无效。在标记lat上接收到无效数据。标记定义无效。接收到标记lng上的无效数据。

var addressPointsToMarkers = function(points) {
            return points.map(function(ap) {
              return { 
                layer: 'bridges',
                lat: ap.latitude,
                lng: ap.longitude
              };
            });
      };
    $http({
            method : "GET",
            url : "some/url",
            headers : {
                'Content-Type' : 'application/json'
            }
    }).then( function(response) {
            $scope.markers = addressPointsToMarkers(response.data);
    });

我使用的是angularjs 1.6.4和传单0.7.7
你知道怎么解决这个问题吗?提前谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题