${Mapping_DynamicRESTLayer_Title}
${Mapping_DynamicRESTLayer_Description}
public iServerJava6RTest() { InitializeComponent(); TiledDynamicRESTLayer = new DynamicRESTLayer(); TiledDynamicRESTLayer.Url = url; themeLayer = new DynamicRESTLayer(); themeLayer.Url = url; themeLayer.IsSkipGetSMMapServiceInfo = true; //themeLayer.CRS = new CoordinateReferenceSystem(4326, Unit.Meter); themeLayer.Bounds = new Rectangle2D(48.39718933631297, -7668.245292074532, 8958.850874968857, -55.577652310411075); themeLayer.ReferViewBounds = new Rectangle2D(2264.1426896429275, -6101.3928147021725, 6743.105374662273, -1622.430129682827); themeLayer.ReferViewer = new Rect(0, 0, 256, 256); themeLayer.ReferScale = 2.016091813E-5; flayer = new FeaturesLayer(); //MyMap.Layers.Add(TiledDynamicRESTLayer); MyMap.Layers.Add(themeLayer); MyMap.Layers.Add(flayer); MyMap.ViewBoundsChanged += new EventHandler<ViewBoundsEventArgs>(MyMap_ViewBoundsChanged); highlayer = new HighlightLayer(url); }
public iServer6RThemeTest() { InitializeComponent(); dynamicRESTLayer = new DynamicRESTLayer(); dynamicRESTLayer.Url = url; //themeLayer = new TiledDynamicRESTLayer(); themeLayer = new DynamicRESTLayer(); themeLayer.Url = url; //MyMap.Layers.Add(dynamicRESTLayer); MyMap.Layers.Add(themeLayer); MyMap.ViewBoundsChanged += new EventHandler<ViewBoundsEventArgs>(MyMap_ViewBoundsChanged); }
public LegendControlTest() { InitializeComponent(); layer1 = this.MyMap1.Layers["layer1"] as DynamicRESTLayer; layer3 = this.MyMap2.Layers["layer3"] as DynamicRESTLayer; legend4.PropertyChanged += (s, e) => { if (e.PropertyName == "LayerItems" && legend4.LayerItems.Count > 0) { legend4.LayerItems[0].ImageSource = new BitmapImage { UriSource = new Uri("http://www.hao123.com/images/logo_193.png", UriKind.RelativeOrAbsolute) }; } }; }
public DynamicRESTLayerTest() { InitializeComponent(); restLayer = this.MyMap.Layers["restLayer"] as DynamicRESTLayer; }