Background tiles missing in xServer.NET with xServer2

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.

Background tiles missing in xServer.NET with xServer2

Postby jbrand » Wed Sep 18, 2019 2:25 pm

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?
jbrand
 
Posts: 1
Joined: Mon Mar 18, 2019 9:40 am

Re: Background tiles missing in xServer.NET with xServer2

Postby Bernd Welter » Wed Sep 18, 2019 2:30 pm

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
javascript code
{"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"
csharp code
formsMap1.Xmap2LayerFactory.MapStyle = "silkysand";


We will also provide a fix for the control itself soon.

Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Background tiles missing in xServer.NET with xServer2

Postby Bernd Welter » Thu Sep 19, 2019 9:00 am

wow... fix is available!!

https://github.com/ptv-logistics/xserve ... ag/1.7.4.0

thanks to Oliver - you are my hero (once again)
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

Re: Background tiles missing in xServer.NET with xServer2

Postby Oliver Heilig » Thu Sep 19, 2019 9:21 am

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

csharp code
formsMap.XMapUrl = "xserver2-europe-eu;version=2.14";
formsMap.XMapCredentials = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
formsMap.XMapStyle = "silica";
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

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


Return to PTV xServer.NET (Admin=OH)

cron