Drawing route under road

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.
Post Reply
Patricia
Posts: 7
Joined: Wed Feb 25, 2015 7:42 am

Drawing route under road

Post by Patricia »

Hello,
How can I paint the route that we get after a routing under the roads and streets layer using the routing web service?
Attached there is a screenshot of the local mapserver version 5.3 with wich this was the default paint method for routes that we get after routing.
Thanks
Attachments
draw_route.png
draw_route.png (65.62 KiB) Viewed 5634 times
User avatar
Oliver Heilig
Posts: 160
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Drawing route under road

Post by Oliver Heilig »

Hello Patricia,

in fact xMapServer only provides two basmap-layers: "background" and "labels". If yout want to add additional client-content, like an xRoute polyline, you can either add it topmost or between background and labels.

Image

With xMapServer you cannot interlay content as fine-grained as with MapServer. This is a technical restriction due to the web technology involved. A solution to display routes for xMapServer is to render them between background and labels, but setting the route semi-opaque, so you can also see the underlying road.

Image

We are planning to support this specific use case by introducing a 3-layered base map (background-transport-labels) in the future.

Oliver
Post Reply