Page 1 of 1
xServer2 different colors - different preferred route types
Posted: Mon Jan 03, 2022 12:35 pm
by CAPcargo
Hello,
Is it possible to show the different "preferred route types" in different colors on the map but for the xServer2?
If it is possible, please send me one example from the request which we have to implement in the javascript file.
Thanks
Best Regards
Re: xServer2 different colors - different preferred route ty
Posted: Mon Jan 03, 2022 12:48 pm
by Bernd Welter
Hi and welcome in 2022!
I assume you want to perform something as decribed in
this article about preferred routes.
The sample is based on a native MapRequest where you have access to all the rendering profile stuff via API.
With JavaScrip you usually use a more or less simple
REST Url where the parameters cover only a small subset of all available engine features.
In an OnPremise environment you might want to create a local "rendering profile" based on all the fancy available parameters (example:
national borders between federal states).
You could then refer to the profile via the REST URLs storedProfile parameter.
Long story short: there are two challenges to be solved:
1. definition of the proper logical rendering profile
2. check the proper workflow of how to "consider" that profile via your calls
Best regards,
Bernd
PS: I'll get back to you 1:1