PTV Developer Vector Maps and Microsoft.NET?

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

PTV Developer Vector Maps and Microsoft.NET?

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: PTV Developer Vector Maps and Microsoft.NET?

Post 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 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.
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: PTV Developer Vector Maps and Microsoft.NET?

Post by Oliver Heilig »

Hello,

and yet another sample. This time showing WinForms integration via WebView2 and interactive routing with maplibre-gl-directions.
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
Post Reply