Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Some advice on adding open streetmap to my project

$
0
0
Thank you Felix, so I can change the color easy for my Application.

There is an other issue, with the new DotSpatial.Plugins.BruTileLayer

The old one, when I saved a Project to a dspx file and load again the DotSpatial.Plugins.BruTileLayer was loaded with the Project.

Now all the shp layers are loaded but the DotSpatial.Plugins.BruTileLayer not.

I load the DotSpatial.Plugins.BruTileLayer this way.
        Private Sub _buttonAddOSMLayer_ExecuteEvent(ByVal sender As Object, ByVal e As ExecuteEventArgs)

            Dim _btLayer As DotSpatial.Plugins.BruTileLayer.BruTileLayer
           
            Map1.FunctionMode = FunctionMode.None

           _btLayer = DotSpatial.Plugins.BruTileLayer.BruTileLayer.CreateKnownLayer(BruTile.Predefined.KnownTileSource.OpenStreetMap, "")

            _btLayer.LegendText = "Open Street Map"

            Map1.Projection = KnownCoordinateSystems.Projected.World.WebMercator

            Map1.Layers.Add(_btLayer)
            Map1.MapFrame.ZoomIn()
            Map1.Refresh()

        End Sub
This works perfect as before and now the BruTile layer is also shown at the Print Layout Dialog (the old one not)

Have you tested to create a dspx file with the DotSpatial.Plugins.BruTileLayer ?

Thanks

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>