Skip to content

Commit

Permalink
fix: singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
SkipperQ93 committed Feb 26, 2024
1 parent f7d3a84 commit fe31b28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/UaReactNativeArcgisViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ class UaReactNativeArcgisView : UIView, AGSGeoViewTouchDelegate {
let _graphicsLayer = AGSGraphicsOverlay()
let _trackingLayer = AGSGraphicsOverlay()

mapView?.graphicsOverlays.add(_graphicsLayer)
mapView?.graphicsOverlays.add(_trackingLayer)
mapView?.graphicsOverlays.add(_graphicsLayer)

_graphicsLayers = GraphicsLayerCollection(graphicsLayer: _graphicsLayer, trackingLayer: _trackingLayer)

return GraphicsLayerCollection(graphicsLayer: _graphicsLayer, trackingLayer: _trackingLayer)
return _graphicsLayers!
}


Expand Down

0 comments on commit fe31b28

Please sign in to comment.