locked
Cannot read property 'id' of undefined RRS feed

  • Question

  • I've worked on Angular2 components for Bing Maps V8 (ng2-bingmaps), and this all works fine. Opening an InfoBox works, but yields an error. When opening an InfoBox, I do the following:

    var infoBox = new Microsoft.Maps.Infobox(
            new Microsoft.Maps.Location(options.position.lat, options.position.lng),
            {
              visible: true,
              title: options.title,
              description: options.description,
              actions: options.actions
            });
          map.entities.push(infoBox);
          (<any> infoBox).setMap(map);
    


    I get the following error. It all works as expected, but I just get an error. I've tried to debug the JS code but that does not make sense.

    browser_adapter.ts:78 TypeError: Cannot read property 'id' of undefined
        at Function.n._clipExact (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at Function.n.clip (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at n.getPrimitives (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at n.getPrimitives (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at i._showLabelsForFrame (ddf6909a.js?bu=rms+answers+MapsSDK+AnonymousBegin*LabelsPluginStart*LabelKey*LabelType*LabelRegionB…:1)
        at Array.<anonymous> (ddf6909a.js?bu=rms+answers+MapsSDK+AnonymousBegin*LabelsPluginStart*LabelKey*LabelType*LabelRegionB…:1)
        at n.invoke (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at n._onLayerPrimitivesRendered (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at Array.<anonymous> (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
        at n.invoke (6640eb1d.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOption*LocalStorageC…:1)
    



    Please remember to mark your question as answered & Vote helpful 
    Check my blog or follow me on Twitter

    Tuesday, June 7, 2016 8:23 AM

Answers

All replies

  • Remove the following line of code as it is not needed.

    map.entities.push(infoBox);


    [Blog] [twitter] [LinkedIn]


    Tuesday, June 7, 2016 4:41 PM
  • Remove the following line of code as it is not needed.

    map.entities.push(infoBox);


    [Blog] [twitter] [LinkedIn]


    Awesome!! That did the trick :)

    Please remember to mark your question as answered & Vote helpful
    Check my blog or follow me on Twitter

    Monday, June 13, 2016 2:34 AM
  • We have removed all the map.entities.push code but still getting the same error-:

    Code-:

    var infoboxLayerCreated = new Microsoft.Maps.Layer();

    infobox = new Microsoft.Maps.Infobox( new Microsoft.Maps.Location(0,0), { visible: false } );
    infobox.setOptions( {height:26, width:56 } );
    infobox.setMap(map);
    infoboxLayerCreated.add( infobox );
    map.layers.insert( infoboxLayerCreated );

    Error-:Uncaught TypeError: Cannot read property 'id' of undefined

    dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1 Uncaught TypeError: Cannot read property 'id' of undefined
        at Function.n._clipExact (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at Function.n.clip (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at i._showLabelsForFrame (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1)
        at Array.<anonymous> (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1)
        at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at n._onLayerPrimitivesRendered (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at Array.<anonymous> (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1)
        at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*Loc

    dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1 Uncaught TypeError: Cannot read property 'id' of undefined at Function.n._clipExact (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at Function.n.clip (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at i._showLabelsForFrame (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1) at Array.<anonymous> (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1) at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n._onLayerPrimitivesRendered (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at Array.<anonymous> (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*Loc
    dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1 Uncaught TypeError: Cannot read property 'id' of undefined at Function.n._clipExact (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at Function.n.clip (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at i._showLabelsForFrame (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1) at Array.<anonymous> (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1) at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n._onLayerPrimitivesRendered (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at Array.<anonymous> (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*Loc
    dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1 Uncaught TypeError: Cannot read property 'id' of undefined at Function.n._clipExact (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at Function.n.clip (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.getPrimitives (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at i._showLabelsForFrame (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1) at Array.<anonymous> (c271c05e.js?bu=rms+answers+Maps+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*I…:1) at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n._onLayerPrimitivesRendered (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at Array.<anonymous> (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCac…:1) at n.invoke (dfec3f98.js?bu=rms+answers+Maps+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*Loc
    Thursday, June 22, 2017 8:09 AM
  • Don't add the infobox to a layer.

    [Blog] [twitter] [LinkedIn]

    Thursday, June 22, 2017 3:28 PM
  • Hello,

    I am following this discussion. I have the same issue.

    I removed the call:

    //map.entities.push(pinInfobox);

    I am also not adding the infobox to any layer.  I am following this exmple:

    https://msdn.microsoft.com/en-us/library/mt750274.aspx

    And I am getting the same exception:

    881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1 Uncaught TypeError: Cannot read property 'id' of undefined
        at Function.n._clipExact (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at Function.n.clip (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at n.getPrimitives (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at n.getPrimitives (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at i._showLabelsForFrame (6fccc41e.js?bu=rms+answers+MapsSDK+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*IconLabel*RelativePlacement*PointLabel*LineLabel*AreaLabel*ShieldLabel*CollisionIndex*CollisionManager*LabelerWorker*Labeler*LabelController*LabelCollider*LabelRenderer*CanvasLabelRenderer*VectorLabels*LabelsPluginEnd*AnonymousEnd:1)
        at Array.<anonymous> (6fccc41e.js?bu=rms+answers+MapsSDK+AnonymousBegin*LabelsPluginStart*LabelKey*LabelRegionBounds*Label*IconLabel*RelativePlacement*PointLabel*LineLabel*AreaLabel*ShieldLabel*CollisionIndex*CollisionManager*LabelerWorker*Labeler*LabelController*LabelCollider*LabelRenderer*CanvasLabelRenderer*VectorLabels*LabelsPluginEnd*AnonymousEnd:1)
        at n.invoke (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at n._onLayerPrimitivesRendered (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at Array.<anonymous> (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)
        at n.invoke (881be4ac.js?bu=rms+answers+MapsSDK+AnonymousBegin*MapCore.en*MapCoreBegin*LabelOptions*LocalStorageCache*Gimme*GimmeWrapper*evPromise*ExternalPromise*StaticPromise*LruCache*Point*Rectangle*NAARectangle*ResourceManager*Anchor*Size*Binding*EventBinding*Observable*ObservableObject*ObservableObjectChangedArgs*ObservableCollection*Debug*DelayLoadedObject*JSEvent*Dispatcher*WorkDispatcher*Iterator*ElementSizeHelper*GimmeExt*GimmeTransition*Helper*PerfState*ClientPerf*LoggingWrapper*LoggerConstants*Network*ThrottledEventInvoker*ObjectPool*StaticObjectPool*FixedSizeObjectPool*OrderedDictionary*PooledImage*Url*MapCoreMiddle*NavigationBarMode*NavigationBarOrientation*TransformCurve*CurveKey*Curve*Color*CurveVector4*CurveColor*Vector4*DiscreteRange*DiscreteRangeCollectionSpline*MapLayer*CopyrightProvider*CopyrightProviderService*CustomMapStyleManager*MapFrameManager*LayerFrameManager*GoalCounter*FrameEventAggregator*DataMonitor*MapFrameData*LayerFrameData*Clipper*CompositePrimitiveSet*DataLoader*Differ*FixedPrimitiveSet*PrimitiveSubset*Overlay*ImageryMapLayer*SimpleSceneContributor*VectorMapLayer*BasicMapAnimation*MapViewAnimator*BoundsAccumulator*CombinedLayerCollection*ConstrainViewArgs*LatLonCrs*LocationRect*Matrix2D*MapInstrumentationManager*PerfV2Logger*Map*MapHelper*MapMath*MapLocation*MapType*MapTypeChangeArgs*MapTypeCollection*MapTypeId*MapView*MapQuadrant*PrimitiveOverlayHelper*OverlayBehavior*GeometryGeneralizer*SimplePointPrimitive*SimpleLinePrimitive*SimpleAreaPrimitive*MoveableSimplePointPrimitive*TargetViewChangeArgs*VectorMath*ViewChangeArgs*ZoomLevel*ZoomAroundLocationAnimator*ZoomEventArgs*OverviewMapMode*MapAuthentication*PublicApi*InternalApi*AnonymousEnd:1)

    Thursday, September 14, 2017 3:47 AM
  • Tried the sample and it works fine. What you posted is a generic error that can occur in a lot of different ways. Step through your code and find out at which line in your code this error occurred. This will point in the right direction on where the error in your code it.

    [Blog] [twitter] [LinkedIn]

    Thursday, September 14, 2017 10:54 PM