Ejemplo n.º 1
0
        public void reverseGeocode(IPoint xyLam72)
        {
            if (adresLocation.client.IsBusy)
            {
                return;
            }

            xClick = Math.Round(xyLam72.X, 2);
            yClick = Math.Round(xyLam72.Y, 2);

            lam72 = xyLam72.SpatialReference;

            IPoint xyClick = (IPoint)geopuntHelper.Transform((IGeometry)xyLam72, map.SpatialReference);

            clearGraphics();
            IRgbColor rgb = new RgbColorClass()
            {
                Red = 0, Blue = 255, Green = 0
            };
            IRgbColor black = new RgbColorClass()
            {
                Red = 0, Blue = 0, Green = 0
            };

            clickGrp = geopuntHelper.AddGraphicToMap(map, xyClick, rgb, black, 8, true);

            adresLocation.getXYadresLocationAsync(xClick, yClick);

            adresBox.Text      = "< De informatie wordt opgehaald, even geduld. >";
            diffBox.Text       = "";
            infoLabel.Text     = "";
            add2MapBtn.Enabled = false;
            saveBtn.Enabled    = false;
            view.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);
        }