示例#1
0
文件: FrmHem.cs 项目: truonghinh/TnX
 private void iniMapController()
 {
     this._map = new GMap();
     this._mapView = (IMapView)this.gMapView1;
     this._layersView = (ILayersView)this.gLayersView1;
     this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);
 }
示例#2
0
 public MapViewController(IMapView map_view, IGMap map)
 {
     this._mapView = map_view;
     //this._layersView = layers_view;
     this._map = map;
     //this._layersView.SetMapBuddy(map_view.GetMapObject());
     this._map.SetHook(map_view.GetMapObject());
 }
示例#3
0
文件: FrmHem2.cs 项目: truonghinh/TnX
        private void initMap()
        {
            this._map = new GMap();
            this._mapView = this.gMapView1 as IMapView;

            this._layersView = this.gLayersView1 as ILayersView;
            this._mapController = new MapViewController(this._mapView, this._layersView, this._map);
            this._mapView.SetController(this._mapController);
        }
示例#4
0
 public ThematicView2()
 {
     InitializeComponent();
     this._map = new GMap();
     this._mapView = (IMapView)this.gMapView1;
     this._layersView = (ILayersView)this.gLayersView1;
     this._mapView.SetParentDockControl(this.dockPanel1);
     this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);
     this.Load += new EventHandler(ThematicView2_Load);
 }
示例#5
0
        public IGridifyMapper <T> AddMap(IGMap <T> gMap, bool overrideIfExists = true)
        {
            if (!overrideIfExists && HasMap(gMap.From))
            {
                throw new Exception($"Duplicate Key. the '{gMap.From}' key already exists");
            }

            RemoveMap(gMap.From);
            _mappings.Add(gMap);
            return(this);
        }
示例#6
0
        public GMapView()
        {
            InitializeComponent();
            _mapControl = (IMapControl4)this.axMapControl1.Object;

            _map = new GMap();
            _map.SetHook(_mapControl);
            //_landDetailCmd = new OpenLandDetailCmd();
            //_landDetailCmd.SetMaThuaFieldName("mathua_");
            //_landDetailCmd.XemThongTin += _landDetailCmd_XemThongTin;
            _xemVungGiaDaCongBo = new XemTatCaVungGiaDaCongBo();
            _xemVungGiaDaTinh = new XemTatCaVungGiaDaTinh();
            _setHeSoViTri = new SetHesoVitri();
            //_moBangThuocTinh = new OpenTable();
            //_removeLayer = new RemoveLayerInToc();

            //_xemVungGiaDaTinh.XemVungGiaDat += new XemTatCaVungGiaDaTinh.XemGiaDatEventHandler(_xemVungGiaDaTinh_XemVungGiaDat);
            //_xemVungGiaDaCongBo.XemVungGiaDat += _xemVungGiaDaCongBo_XemVungGiaDat;
            //_moBangThuocTinh.OpenAttributeTable += new OpenTable.OpenTableEventHandler(_moBangThuocTinh_OpenAttributeTable);

            _mapContextMenu = new MapContextMenu(_mapControl);
            _mapContextMenu.SetKeyName("mathua","_mathua");

            //_mapContextMenu.SetLandPriceView("giadatcongbo", _landPriceView);
            //_tocContextMenu = new TocContextMenu(_mapControl);
            //_mapContextMenu.AddItem(_xemVungGiaDaCongBo, false, -1);
            //_contextMenu.AddItem(_landPriceTool, false, -1);
            //_mapContextMenu.AddItem(_xemVungGiaDaTinh, false, -1);
            //_landPriceTool = new Landprices();
            ////_landPriceTool.SetMaThuaFieldName("mathua_");
            //_landPriceTool.XemGiaDat += new Landprices.XemGiaDatEventHandler(_landPriceTool_XemGiaDat);

            //_mapContextMenu.AddItem()

            //_tocContextMenu.AddItem(_removeLayer, false, -1);
            _controller = new MapViewController(this, _map);
            //this._map = new GMap();
            //this._mapView = (IMapView)this;
            //this._layersView = (ILayersView)this.dpnLayers;
            //this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);
        }
示例#7
0
 public IGridifyMapper <T> RemoveMap(IGMap <T> gMap)
 {
     _mappings.Remove(gMap);
     return(this);
 }
示例#8
0
        private void iniMapController()
        {
            this._map = new GMap() ;
            this._mapView = (IMapView)this.gMapView1;
            this._layersView = (ILayersView)this.gLayersView1;
            this._mapView.SetParentDockControl(this.dpnMap4Thua);
            //FrmLandPriceInfo frmLandPriceView = FrmLandPriceInfo.CallMe;
            _xemVungGiaDatTinh = FrmLandPriceInfo.CallMe.GetView();
            _xemVungGiaDatTinh.Config = CurrentConfig.CallMe();
            _xemVungGiaDatCongBo = FrmLandPriceInfoPublic.CallMe.GetView();
            _xemVungGiaDatCongBo.Config = CurrentConfig.CallMe();
            this._mapView.SetLandpriceView("giadatcongbo", _xemVungGiaDatCongBo);
            this._mapView.SetLandpriceView("giadatdatinh",_xemVungGiaDatTinh);
            this._mapView.SetCalcMethodBuilderView(FrmCalcMethodBuilder.CallMe.GetView());

            _editPosView = FrmSetPositionParam.CallMe;
            _mapView.EditPosView = _editPosView;

            this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);

            this._mapControl=(IMapControl3)this._map.GetHook();
            this._tocControl = this._layersView.GetTocControl();

            //this._map4Thua = new GMap();
            //this._mapView4thua = this.gMapView1 as IMapView;
            //this._mapView4thua.SetParentDockControl(this.dpnMap4Thua);

            //this._layersView4Thua = this.gLayersView1 as ILayersView;
            //this._mapController4Thua = new MapViewController(this._mapView4thua, this._layersView4Thua, this._map4Thua);
            //this._mapView4thua.SetController(this._mapController4Thua);

            //_landPriceTool = new Landprices();
            //_landPriceTool.XemGiaDat += new Landprices.XemGiaDatEventHandler(landPriceTool_Changed);
            //_mapContextMenu = new MapContextMenu(_mapControl);
            //_mapContextMenu.AddItem(_landPriceTool, false, -1);
            //this._mapView.ContextMenu.AddItem(_landPriceTool,false,-1);
        }