one of my partners approached me with this tricky challenge about xServer.NET in combination with xMap2.
Could you help us with that?
Bernd
Hello Bernd,
I have one question related to the preferredRouteTypes - xMap2.
Currently we're using .NET and Xmap2LayerFactory property to show map and interacting with it in WPFMap form (latest version of the Ptv.XServer.Controls.Map.dll).
It seems that there isn't any property for the preferredRouteTypes, I tried to analyze and find a way how to send the preferredRouteTypes which should be visible on the map, but I cannot provide this info from our c# code.
About the Feature layers it is ok, and it works correctly, the PTV_PreferredRoutes layer is enabled but all preferredRouteTypes are visible.
I can see that this property is part of the mapOptions but I cannot find this one in Xmap2LayerFactory and in the other options that I have from this dll.
Do you have any idea to share with me, how to enhance the request with this property and how to provide additional information about the preferredRouteTypes that we want to see on the map?
I know that when we use REST API to build a tiled map if we want to display only a subset of types - the parameter preferredRouteTypes has to be specified in the URL and the types have to be included with comma separator.