我正在使用升级的v8 Bing地图库。我在地图上放置了分组标记。一切都显示正常但仍然在控制台日志中出现以下错误。
无法设置未定义属性'isLoaded'
此错误指向此特定代码行。
n.moduleLoaded = function(t) {
var i, r, u;
if (t) {
for (i = n._supportedModules[t],
i.isLoaded = !0, //this particular line triggers error
r = 0,
u = i.pendingCallbacks.length; r < u; r++)
i.pendingCallbacks[r]();
i.pendingCallbacks = []
}
}
以下是supportedModule的定义方式:
n._supportedModules = {
"Microsoft.Maps.DrawingTools": {
dragonflyObjectName: "DrawingToolsModule",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.WellKnownText": {
dragonflyObjectName: "WellKnownText",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.GeoJson": {
dragonflyObjectName: "GeoJson",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.SpatialDataService": {
dragonflyObjectName: "GeoDataAPIManager",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.AutoSuggest": {
dragonflyObjectName: "AutosuggestManager",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.HeatMap": {
dragonflyObjectName: "HeatMapLayer",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.Clustering": {
dragonflyObjectName: "ClusterLayer",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.SpatialMath": {
dragonflyObjectName: "SpatialMath",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.Search": {
dragonflyObjectName: "SearchManager",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.Traffic": {
dragonflyObjectName: "TrafficManager",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.AdvancedShapes": {
dragonflyObjectName: "",
isLoaded: !0,
pendingCallbacks: []
},
"Microsoft.Maps.Directions": {
dragonflyObjectName: "DirectionsManager",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.DataBinning": {
dragonflyObjectName: "DataBinningLayer",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.Contour": {
dragonflyObjectName: "ContourLayer",
isLoaded: !1,
pendingCallbacks: []
},
"Microsoft.Maps.VenueMaps": {
dragonflyObjectName: "VenueMap",
isLoaded: !1,
pendingCallbacks: []
}
},