private void PointSymbolsClick(object sender, RoutedEventArgs e) { MapControl.Map.Layers.Clear(); MapControl.Map.Layers.Add(new TileLayer(KnownTileSources.Create()) { Name = "OSM" }); MapControl.Map.Layers.Add(PointLayerSample.Create()); MapControl.Map.Layers.Add(CreatePointLayerWithWorldUnitSymbol()); LayerList.Initialize(MapControl.Map.Layers); MapControl.Refresh(); }
private void PointSymbolsClick(object sender, RoutedEventArgs e) { mapControl.Map.Layers.Clear(); mapControl.Map.Layers.Add(new TileLayer(new OsmTileSource()) { LayerName = "OSM" }); mapControl.Map.Layers.Add(PointLayerSample.Create()); mapControl.Map.Layers.Add(PointLayerWithWorldUnitsForSymbolsSample.Create()); layerList.Initialize(mapControl.Map.Layers); mapControl.Refresh(); }