Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public HpaTestForm(MapAroundCellMap map)
 {
     InitializeComponent();
     CreateMap();
 }
Ejemplo n.º 3
0
 private void InitCellMap()
 {
     _cellMap = new MapAroundCellMap(_mapAroundMap, _initialRectangle, DefaultCellSize, DefaultCellSize);
     _cellMap.AddPolygonObstaclesLayer((FeatureLayer)FindLayerByAlias("buildings"));
 }