${Mapping_TiledDynamicRESTLayer_Tile}

${Mapping_TiledDynamicRESTLayer_Description}

Inheritance: TiledDynamicLayer
 public InterpolationAnalyst()
 {
     InitializeComponent();
     inputPoints = new List<Point2D>();
     random = new Random();
     layer = MyMap.Layers["Tilelayer"] as TiledDynamicRESTLayer;
 }
 public EditFeatures()
 {
     InitializeComponent();
     drawLayer = MyMap.Layers["DrawLayer"] as FeaturesLayer;
     tempLayer = MyMap.Layers["TempLayer"] as FeaturesLayer;
     layer = MyMap.Layers["MyLayer"] as TiledDynamicRESTLayer;
     features = new FeatureCollection();
     featureIDs = new List<int>();
 }
 //键盘操作时,先切换图层后进行查询操作,类似于新浪天气。
 void myMap_KeyDown(object sender, KeyEventArgs e)
 {
     myMap.Layers.RemoveAt(0);
     TiledDynamicRESTLayer lay = new TiledDynamicRESTLayer()
     {
         Url = url + "世界地图_Day",
     };
     myMap.Layers.Insert(0, lay);
     Query("世界地图_Day", "World@world", "SmID=2", "俄罗斯");
 }
 private void ClearLayer()
 {
     if (layer != null)
     {
         if (MyMap.Layers.Contains(layer))
         {
             MyMap.Layers.Remove(layer);
         }
         layer = null;
     }
 }
        public SetLayerStatusTest( )
        {
            InitializeComponent();

            layersStatus = new List<LayerStatus>();
            layer = new TiledDynamicRESTLayer
            {
                Url = url ,
                EnableServerCaching = false ,
            };
            this.MyMap.Layers.Add(layer);

            //获取图层信息
            GetLayersInfoService getInfoServer = new GetLayersInfoService(url);
            getInfoServer.ProcessAsync();
            getInfoServer.ProcessCompleted += new EventHandler<GetLayersInfoEventArgs>(getInfoServer_ProcessCompleted);
            getInfoServer.Failed += new EventHandler<SuperMap.Web.Service.ServiceFailedEventArgs>(getInfoServer_Failed);
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            string strMapUrl = this.NavigationContext.QueryString["url"];

            _tileLayer = new TiledDynamicRESTLayer();
            _tileLayer.Url = strMapUrl;
            this.myMap.Layers.Add(_tileLayer);
            _queryLayer = new FeaturesLayer();
            _queryLayer.ID = "QueryLayer";
            this.myMap.Layers.Add(_queryLayer);

            string[] splitItems = _tileLayer.Url.Split(new char[] { '/' });
            mapName = _tileLayer.Url.Substring(_tileLayer.Url.LastIndexOf('/') + 1);
            int restIndex = _tileLayer.Url.LastIndexOf("maps");
            string compomentUrl = _tileLayer.Url.Substring(0, restIndex);
            _queryMap = new Connector.Map(compomentUrl);
        }
 //展示插值分析专题图
 private void themeServie_ProcessCompleted(object sender, ThemeEventArgs e)
 {
     TiledDynamicRESTLayer themeLayer = new TiledDynamicRESTLayer();
     themeLayer.Url = mapUrl;
     //themeLayer.CRS = new CoordinateReferenceSystem(3857);
     layerid = e.Result.ResourceInfo.NewResourceID;
     themeLayer.LayersID = layerid;
     themeLayer.Transparent = true;
     themeLayer.EnableServerCaching = false;
     //加载专题图图层
     this.MyMap.Layers.Add(themeLayer);
     MyProgressBar.Storyboard1.Stop();
     MyProgressBar.Visibility = Visibility.Collapsed;
     //currentStateTest ="插值分析完毕";
 }
        void themeService_ProcessCompleted(object sender, ThemeEventArgs e)
        {
            ClearLayer();
            layer = new TiledDynamicRESTLayer();
            layer.Url = _mapUrl;

            layer.LayersID = e.Result.ResourceInfo.NewResourceID;
            layer.Transparent = true;
            layer.EnableServerCaching = false;
            MyMap.Layers.Add(layer);
        }