${IS6_GetMapStatusService_Title}

${IS6_GetMapStatusService_Description}

Inheritance: SuperMap.Web.Service.ServiceBase
        public ISThemeGraph()
        {
            InitializeComponent();
            themeLayer = MyMap.Layers["ISLayer"] as TiledDynamicISLayer;
            //可选统计专题图符号形状
            setGraphType.Items.Add(GraphType.Bar3D);
            setGraphType.Items.Add(GraphType.Area);
            setGraphType.Items.Add(GraphType.Bar);
            setGraphType.Items.Add(GraphType.Line);
            setGraphType.Items.Add(GraphType.Pie);
            setGraphType.Items.Add(GraphType.Pie3D);
            setGraphType.Items.Add(GraphType.Point);
            setGraphType.Items.Add(GraphType.Doughnut);
            setGraphType.Items.Add(GraphType.Rose);
            setGraphType.Items.Add(GraphType.Rose3D);
            setGraphType.Items.Add(GraphType.StackedBar);
            setGraphType.Items.Add(GraphType.Step);
            setGraphType.Items.Add(GraphType.StackedBar3D);
            setGraphType.SelectedIndex = 0;

            //从服务器获取地图中所有图层信息
            GetMapStatusParameters mapStatus = new GetMapStatusParameters() { MapName = "World" };
            GetMapStatusService mapStatusService = new GetMapStatusService("http://localhost/IS/AjaxDemo");
            mapStatusService.ProcessAsync(mapStatus);
            mapStatusService.ProcessCompleted += new EventHandler<GetMapStatusEventArgs>(mapStatusService_ProcessCompleted);
            mapStatusService.Failed += new EventHandler<ServiceFailedEventArgs>(mapStatusService_Failed);
        }
 public ISThemeComposite()
 {
     InitializeComponent();
     themeLayer = MyMap.Layers["ISLayer"] as TiledDynamicISLayer;
     //从服务器获取地图中所有图层信息
     GetMapStatusParameters mapStatus = new GetMapStatusParameters() { MapName = "World" };
     GetMapStatusService mapStatusService = new GetMapStatusService("http://localhost/IS/AjaxDemo");
     mapStatusService.ProcessAsync(mapStatus);
     mapStatusService.ProcessCompleted += new EventHandler<GetMapStatusEventArgs>(mapStatusService_ProcessCompleted);
     mapStatusService.Failed += new EventHandler<ServiceFailedEventArgs>(mapStatusService_Failed);
 }
        public ISThemeDotDensity()
        {
            InitializeComponent();
            themeLayer = MyMap.Layers["ISLayer"] as TiledDynamicISLayer;
            //在选择字段下拉列表中设置World数据集的属性字段
            setField.Items.Add("SmArea");
            setField.Items.Add("SmPerimeter");
            setField.Items.Add("Pop_1994");
            setField.SelectedIndex = 2;

            //从服务器获取地图中所有图层信息
            GetMapStatusParameters mapStatus = new GetMapStatusParameters() { MapName = "World" };
            GetMapStatusService mapStatusService = new GetMapStatusService("http://localhost/IS/AjaxDemo");
            mapStatusService.ProcessAsync(mapStatus);
            mapStatusService.ProcessCompleted += new EventHandler<GetMapStatusEventArgs>(mapStatusService_ProcessCompleted);
            mapStatusService.Failed += new EventHandler<ServiceFailedEventArgs>(mapStatusService_Failed);
        }
Exemplo n.º 4
0
        //方法
        private void GetLayerInfo()
        {
            GetMapStatusParameters param = new GetMapStatusParameters();
            if (this.Layer is TiledCachedISLayer)
            {
                param.MapName = ((TiledCachedISLayer)Layer).MapName;
            }
            else if (this.Layer is TiledDynamicISLayer)
            {
                param.MapName = ((TiledDynamicISLayer)Layer).MapName;
            }
            else if (this.Layer is DynamicISLayer)
            {
                param.MapName = ((DynamicISLayer)Layer).MapName;
            }
            else
            {
                throw new ArgumentNullException(exInfo);
            }
            GetMapStatusService getMapStatusService = new GetMapStatusService(Layer.Url);
            getMapStatusService.ProcessAsync(param);
            getMapStatusService.ProcessCompleted += new EventHandler<GetMapStatusEventArgs>(getMapStatusService_ProcessCompleted);

            //触发Loading事件
            if (Loading != null)
            {
                Dispatcher.BeginInvoke(Loading, new object[] { this, EventArgs.Empty });
            }

            mapName = param.MapName;
            url = Layer.Url;
        }