public void RenderOverlays(Canvas canvas, MapView mapView) { if (this._overlays.Count > 0) { lock (this._overlays) { foreach (Overlay overlay in _overlays) { try { overlay.Draw(canvas, mapView, true, mapView.DrawingTime); } catch (Exception e) { } } foreach (Overlay overlay in _overlays) { try { overlay.Draw(canvas, mapView, false, mapView.DrawingTime); } catch (Exception e) { } } } } }
public bool onKeyUp(int keyCode, KeyEvent keyEvent, MapView mapView) { if (this._overlays.Count > 0) { lock (this._overlays) { foreach (Overlay overlay in _overlays) { if (overlay.OnKeyUp(keyCode, keyEvent, mapView)) { return(true); } } } } return(false); }
public bool OnTrackballEvent(MotionEvent motionEvent, MapView mapView) { if (this._overlays.Count > 0) { lock (this._overlays) { foreach (Overlay overlay in this._overlays) { if (overlay.OnTrackballEvent(motionEvent, mapView)) { return(true); } } } } return(false); }
public bool OnTap(GeoPoint gp, MapView mapView) { if (this._overlays.Count > 0) { lock (this._overlays) { foreach (Overlay overlay in _overlays) { if (overlay.OnTap(gp, mapView)) { return(true); } } } } return(false); }
public OverlayController(MapView mapView) { this.mapView = mapView; //this._overlays = Collections.SynchronizedList(new OverlayArrayList()); }