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.
CombinedTransports.PNG
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,
Bernd

xml code
<?xml version="1.0"?>
<Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<renderMap xmlns="http://types.xmap.xserver.ptvag.com">
<MapSection_1 scale="8000" scrollHorizontal="0" scrollVertical="0" zoom="0">
<center xmlns="http://xmap.xserver.ptvag.com">
<kml xsi:nil="true" xmlns="http://common.xserver.ptvag.com" />
<point x="948937.36" y="6351790.11" xmlns="http://common.xserver.ptvag.com" />
</center>
</MapSection_1>
<MapParams_2 showScale="true" useMiles="false" />
<ImageInfo_3 format="GIF" height="400" imageParameter="" width="400" />
<ArrayOfLayer_4>
<Layer xsi:type="StaticPoiLayer" name="CombinedTransports" visible="true" category="-1" detailLevel="0" objectInfos="REFERENCEPOINT" xmlns="http://xmap.xserver.ptvag.com" />
</ArrayOfLayer_4>
<boolean_5>true</boolean_5>
<CallerContext_6>
<wrappedProperties xmlns="http://baseservices.service.jabba.ptvag.com">
<CallerContextProperty key="CoordFormat" value="PTV_MERCATOR" />
<CallerContextProperty key="Profile" value="CombinedTransports" />
<CallerContextProperty />
</wrappedProperties>
</CallerContext_6>
</renderMap>
</Body>
</Envelope>

( 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: 1157
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
}
}
});
Attachments
CombindedTransport.png
Oliver Heilig
Chief Developer
PTV GROUP - Germany

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


Return to PTV xServer.NET (Admin=OH)

cron