public void Dispose() { _host.OnCanvasSizeChanged -= _resizeHandler; _grids = null; _conflictDef = null; _host = null; }
public PixelConflictor(ConflictDefinition conflictDef, IMapRuntimeHost host) { _conflictDef = conflictDef; _host = host; _resizeHandler = new EventHandler(_control_SizeChanged); _host.OnCanvasSizeChanged += _resizeHandler; BuildGrids(); }
public MapRuntime(IMapRuntimeHost environment) { _environment = environment; _projectionTransform = _environment.ProjectionTransform; _labelRender = new LabelRender(); _id = maxId; maxId++; _handinessLayerContainer = new LightLayerContainer(this as IMapRuntime); _locatingFocusLayer = new LocationFocusLayer(); _locatingFocusLayer.Init(this as IMapRuntime); _locationIconLayer = new LocationIconLayer(); _locationIconLayer.Init(this as IMapRuntime); }
public void Dispose() { if (_graphics != null) { _graphics.Dispose(); _graphics = null; } if (_bitmap != null) { _bitmap.Dispose(); _bitmap = null; } _host.OnCanvasSizeChanged -= _resizeHandler; _resizeHandler = null; //_control.SizeChanged -= _resizeHandler; _conflictDef = null; //_control = null; _host = null; }