Page 1 of 1

PTV Developer Vector Maps and Microsoft.NET?

Posted: Thu Nov 07, 2024 10:54 am
by Bernd Welter
Hi Oliver,

I've been asked whether I can provide a sample for Vector map usage within xServer.NET.
Not sure whether xServer.NET is the proper control for such a Vector map. Can you give us some guidance?
On the recommended frameworks there's no "usage / technology" combi based on "vector maps / Microsoft.NET".
vectormaps.png
Bernd

Re: PTV Developer Vector Maps and Microsoft.NET?

Posted: Thu Nov 07, 2024 2:24 pm
by Oliver Heilig
Hi,

the Server .NET Control cannot handle vector tiles, and there are no plans to support this. Since vector tiles is a standard primarily designed for web applications, i cannot recommend any out-of-the-box solutions for Windows clients, just some things i tried over the years.

Commercial .NET map controls
DevExpress for example supports MapBox vector tiles and can be adopted for PTV. But the last time i tried this i wasn't really convinced of the rendering performance and quality.

A rendering proxy
tileserver-gl uses the maplibre engine internally and can be configured to serve PTV Developer vector styles as static maps, which can then be used in every map widget that can handle raster tiles. But this would then involve a separate service, which has to be configured and optimized for the requirements.

CEF/WebView2
Just use a browser widget and load maplibre there. This has the advantage that you can also use all the fancy web-technologies for visualization.
You then can interface the browser logic with C#. I've created a sample using CEFSharp a while ago, but would rather use WebView2 today, since it's already integrated in Windows.

Re: PTV Developer Vector Maps and Microsoft.NET?

Posted: Mon Nov 11, 2024 8:42 am
by Oliver Heilig
Hello,

and yet another sample. This time showing WinForms integration via WebView2 and interactive routing with maplibre-gl-directions.