private void WmsClick(object sender, RoutedEventArgs e) { mapControl.Map.Layers.Clear(); mapControl.Map.Layers.Add(WmsSample.Create()); layerList.Initialize(mapControl.Map.Layers); mapControl.Refresh(); }
private void WmsClick(object sender, RoutedEventArgs e) { MapControl.Map.Layers.Clear(); MapControl.Map.Layers.Add(WmsSample.Create()); LayerList.Initialize(MapControl.Map.Layers); MapControl.ZoomToFullEnvelope(); MapControl.Refresh(); }
private void WmsClick(object sender, RoutedEventArgs e) { MapControl.Map.Layers.Clear(); //MapControl.Map.Layers.Add(new TileLayer(KnownTileSources.Create()) { Name = "OSM" }); MapControl.Map.Layers.Add(WmsSample.Create()); LayerList.Initialize(MapControl.Map.Layers); MapControl.ZoomToFullEnvelope(); MapControl.Refresh(); }