Exemple #1
0
        public SKMapOverlayRenderer(MKMapView mapView, SKMapOverlay sharedOverlay, IMKOverlay overlay) : base(overlay)
        {
            _SharedOverlay = sharedOverlay;
            _NativeMap     = mapView;

            _overlayDirtySubscription = _SharedOverlay.WeakSubscribe <SKMapOverlay, MapOverlayInvalidateEventArgs>(nameof(_SharedOverlay.RequestInvalidate),
                                                                                                                   MarkOverlayDirty);
        }
Exemple #2
0
        public OverlayTrackerTileProvider(Context context, GoogleMap nativeMap, SKMapOverlay sharedOverlay)
        {
            _Context      = context;
            _NativeMap    = nativeMap;
            SharedOverlay = sharedOverlay;

            _overlayDirtySubscription = SharedOverlay.WeakSubscribe <SKMapOverlay, MapOverlayInvalidateEventArgs>(nameof(SharedOverlay.RequestInvalidate),
                                                                                                                  MarkOverlayDirty);
        }