private void GetCellMapButton_Click(object sender, EventArgs e) { BoundingRectangle rectangle = MapAroundControl.GetViewBox(); double width = rectangle.Width; double height = rectangle.Height; double cellSize = 4E-5; MapAroundCellMap cellMap = new MapAroundCellMap(_mapAroundMap, rectangle, cellSize, cellSize); cellMap.AddPolygonObstaclesLayer((FeatureLayer)FindLayerByAlias("buildings")); //cellMap.AddPolygonObstaclesLayer((FeatureLayer)FindLayerByAlias("User region layer")); CellMapDrawerForm drawerForm = new CellMapDrawerForm(cellMap); drawerForm.Show(); }
private void InitCellMap() { _cellMap = new MapAroundCellMap(_mapAroundMap, _initialRectangle, DefaultCellSize, DefaultCellSize); _cellMap.AddPolygonObstaclesLayer((FeatureLayer)FindLayerByAlias("buildings")); }