Example #1
0
 private void WmsClick(object sender, RoutedEventArgs e)
 {
     mapControl.Map.Layers.Clear();
     mapControl.Map.Layers.Add(WmsSample.Create());
     layerList.Initialize(mapControl.Map.Layers);
     mapControl.Refresh();
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }