How to display the CombinedTransports layer w. xServer.NET?

Within this forum we want to offer discussions all around our .NET based xServer controls.

How to display the CombinedTransports layer w. xServer.NET?

Postby Bernd Welter » Mon Jul 02, 2018 9:42 am

Hi there,

is it possible to display the native static layer called CombinedTransports with the xServer.NET control? How?
The layer shows piggybacks / trains and ferries.
Sample screenshot based on a native render map call towards xMap 1.26. The render profile CombinedTransport was applied and also the StaticLayer "CombinedTransport" was requested.

Best regards,

xml code
<?xml version="1.0"?>
<Envelope xmlns:xsi="" xmlns:xsd="" xmlns="">
<renderMap xmlns="">
<MapSection_1 scale="8000" scrollHorizontal="0" scrollVertical="0" zoom="0">
<center xmlns="">
<kml xsi:nil="true" xmlns="" />
<point x="948937.36" y="6351790.11" xmlns="" />
<MapParams_2 showScale="true" useMiles="false" />
<ImageInfo_3 format="GIF" height="400" imageParameter="" width="400" />
<Layer xsi:type="StaticPoiLayer" name="CombinedTransports" visible="true" category="-1" detailLevel="0" objectInfos="REFERENCEPOINT" xmlns="" />
<wrappedProperties xmlns="">
<CallerContextProperty key="CoordFormat" value="PTV_MERCATOR" />
<CallerContextProperty key="Profile" value="CombinedTransports" />
<CallerContextProperty />

( piggy back )
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
Posts: 1253
Joined: Mon Apr 14, 2014 10:28 am

Re: How to display the CombinedTransports layer w. xServer.N

Postby Oliver Heilig » Thu Aug 30, 2018 5:18 pm

Hi Bernd,

you just can add the Combined Transports as standalone xMapLayer, like POIs

csharp code
map.Layers.Add(new XMapLayer(layerName, xMapMetaInfo.Url, xMapMetaInfo.User, xMapMetaInfo.Password)
Caption = "Combined Transports",
MaxRequestSize = new System.Windows.Size(2048, 2048),
MinLevel = 4, // Minimal level (defined by Google), for which Poi objects are shown.
CustomXMapLayers = new xserver.Layer[]
new xserver.StaticPoiLayer
name = "CombinedTransports",
visible = true,
category = -1,
detailLevel = 0
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany
User avatar
Oliver Heilig
Posts: 117
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany

Return to PTV xServer.NET (Admin=OH)