map export without window in console application
See original GitHub issueHello! My original application has an user interface, where I can load a background and draw polygons on top. The image export with
var stream = new Mapsui.Rendering.Skia.MapRenderer().RenderToBitmapStream(MyMapControl.Viewport, MyMapControl.Map.Layers, MyMapControl.Map.BackColor);
is working well.
Now I have the task to export the same image in a console application without user interface. I created
Mapsui.Map MyMapControlMap = new Mapsui.Map();
(with two layers: 1at layer a png as background, 2nd layer polygons)
Mapsui.Viewport MyMapControlViewport = new Mapsui.Viewport();
(with extent etc.)
As soon as I try the export with the command:
var stream = new Mapsui.Rendering.Skia.MapRenderer().RenderToBitmapStream(MyMapControlViewport, MyMapControlMap.Layers, MyMapControlMap.BackColor);
it’s not working. It returns null, because probably the surface snapshot is not working. How can I create a stream of the map layers without a window?
I’m thankful for any advice! Thanksyou very much, Claudia
Issue Analytics
- State:
- Created a year ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Windows Desktop Export without Console Window : r/godot
Hello, I'm learning Godot, and I already fell in love, made a simple game but after exporting the .exe file it opens with...
Read more >Show/Hide the console window of a C# console application
Just go to the application's Properties and change the Output type from Console Application to Windows Application.
Read more >Command Line Jar Execution; Application Export
The application is called Feed_Reader.exe and when I run that, there's no output to the console. The sketch uses the following libraries and...
Read more >ArcGIS - Export Dialog Options missing
Have you tried exporting them using the python window as a work around? You could export maps using arcpy. This website shows how...
Read more >Export maps
With Network Topology Mapper, you can export maps as Visio, PNG, Network Atlas (SolarWinds Orion), PDF, or map (native NTM) files.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I reloaded all nuget packages and now all dependencies are working. Problem solved! Thanks!
Ah, I didn’t get this. Sorry for the wrong hint.