Page 1 of 1
Background tiles missing in xServer.NET with xServer2
Posted: Wed Sep 18, 2019 2:25 pm
by jbrand
Hi, we are using the super-duper xserver.net control to request tiles from a xMap2 backend in the PTV cloud. Since a few days the control does no longer display background tiles though we haven’t changed anything recently. Therefore we assume a topic within PTV. Any clue what happened?
Re: Background tiles missing in xServer.NET with xServer2
Posted: Wed Sep 18, 2019 2:30 pm
by Bernd Welter
Hi,
yeah this seems to be related to the following effect:
Native level:
http://127.0.0.1:50000/services/rest/XM ... edProfile=
In the new version of the REST API the server's reaction to a non-existing storedProfile is
Code: Select all
{"faultInfo":
{"$type":"InvalidValueFault","hint":"Affects query parameter 'storedProfile'.",
"parameter":"storedProfile","value":""},
"message":"String has to be non-empty but was empty."}
The older version was more tolerant and simply fell back into "default".
Solution:
- tell the control to use an explicit profile, e.g. "silkysand"
Code: Select all
formsMap1.Xmap2LayerFactory.MapStyle = "silkysand";
We will also provide a fix for the control itself soon.
Best regards,
Bernd
Re: Background tiles missing in xServer.NET with xServer2
Posted: Thu Sep 19, 2019 9:00 am
by Bernd Welter
wow... fix is available!!
https://github.com/ptv-logistics/xserve ... ag/1.7.4.0
thanks to Oliver - you are my hero (once again)
Re: Background tiles missing in xServer.NET with xServer2
Posted: Thu Sep 19, 2019 9:21 am
by Oliver Heilig
Also on nuget
https://www.nuget.org/packages/Ptv.XServer.Net/1.7.4
You can now also set the style directly via XMapStyle on the control
Code: Select all
formsMap.XMapUrl = "xserver2-europe-eu;version=2.14";
formsMap.XMapCredentials = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
formsMap.XMapStyle = "silica";