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 Init(IMapRuntime mapruntime) { _locationSrv = mapruntime.LocationService; _locationIconLayer = mapruntime.LocationIconLayer; _maprefresh = mapruntime.MapRefresh; }