Page 1 of 1

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

Posted: Mon Jul 02, 2018 9:42 am
by Bernd Welter
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.
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

Code: Select all

<?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 )

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

Posted: Thu Aug 30, 2018 5:18 pm
by Oliver Heilig
Hi Bernd,

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

Code: Select all

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
         }
     }
});