public Ctrl_Map() { InitializeComponent(); MapControl.Map.Layers.Clear(); MapControl.Map.Layers.Add(MapTilerSample.CreateLayer()); MapControl.ZoomToFullEnvelope(); MapControl.Refresh(); }
private void rdbMapModeSat_Checked(object sender, RoutedEventArgs e) { MapInfo.MapPath = @"C:\Program Files\GMap\satellite"; MapInfo.MapType = "jpg"; MapControl.Map.Layers.Clear(); MapControl.Map.Layers.Add(MapTilerSample.CreateLayer()); MapControl.Refresh(); }