Exemplo n.º 1
0
        // ************************************ start click events ******************************************

        private void OsmClick(object sender, RoutedEventArgs e)
        {
            MapControl.Map.Layers.Clear();
            MapControl.Map.Layers.Add(OsmSample.CreateLayer());

            LayerList.Initialize(MapControl.Map.Layers);
            MapControl.ZoomToFullEnvelope();
            MapControl.Refresh();
        }
Exemplo n.º 2
0
        private void PointSymbolsClick(object sender, RoutedEventArgs e)
        {
            MapControl.Map.Layers.Clear();
            MapControl.Map.Layers.Add(OsmSample.CreateLayer());
            MapControl.Map.Layers.Add(PointsSample.Create());
            MapControl.Map.Layers.Add(PointsWithSymbolsInWorldUnitsSample.CreateLayer());

            LayerList.Initialize(MapControl.Map.Layers);
            MapControl.ZoomToFullEnvelope();
            MapControl.Refresh();
        }
Exemplo n.º 3
0
        private void ProjectedPointClick(object sender, RoutedEventArgs e)
        {
            MapControl.Map.Layers.Clear();
            MapControl.Map.Transformation = new MinimalTransformation();
            MapControl.Map.CRS            = "EPSG:3857";
            MapControl.Map.Layers.Add(OsmSample.CreateLayer());
            MapControl.Map.Layers.Add(PointsInWgs84Sample.CreateLayer());

            LayerList.Initialize(MapControl.Map.Layers);
            MapControl.ZoomToFullEnvelope();
            MapControl.Refresh();
        }
Exemplo n.º 4
0
        private void RandomPointsWithFeatureInfoClick(object server, RoutedEventArgs e)
        {
            MapControl.Map.Layers.Clear();
            MapControl.Map.Layers.Add(OsmSample.CreateLayer());
            MapControl.Map.Layers.Add(PointsWithFeatureInfoSample.CreateLayer(MapControl.Map.Envelope));

            MapControl.MouseInfoUp += MapControlOnMouseInfoDown;
            MapControl.MouseInfoUpLayers.Add(MapControl.Map.Layers.FindLayer("Points with feature info").First());

            LayerList.Initialize(MapControl.Map.Layers);
            MapControl.ZoomToFullEnvelope();
            MapControl.Refresh();
        }
Exemplo n.º 5
0
        private void RandomPointWithStackLabelClick(object sender, RoutedEventArgs e)
        {
            MapControl.Map.Layers.Clear();
            MapControl.Map.Layers.Add(OsmSample.CreateLayer());
            var provider = PointsSample.CreateRandomPointsProvider(MapControl.Map.Envelope);

            MapControl.Map.Layers.Add(PointsWithStackedLabelsSample.CreateLayer(provider));
            MapControl.Map.Layers.Add(PointsSample.CreateRandomPointLayer(provider));

            LayerList.Initialize(MapControl.Map.Layers);
            MapControl.ZoomToFullEnvelope();
            MapControl.Refresh();
        }