Segments drawn on map

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
ggiardina
Posts: 5
Joined: Thu May 08, 2014 6:52 am

Segments drawn on map

Post by ggiardina »

Hello,
a customer is using xServer.Net and via a reverse geocode has the XYN geometry of the segments returned by the findLocation method. Unfortunately is not possible to use a GeometryLayer in xServer.Net so the best thing to do is to use Shape Layer. The question is: how may I use LINESTRINGXYN geometry to draw segments in a Shape Layer? Is it possible to have a code fragment?
Thanks in advance,
Giovanni
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Segments drawn on map

Post by Oliver Heilig »

Hi Giovanni,

it is possible to add an xServer.NET Layer which internally invokes xMap-Requests with a Custom Layer. I've added a sample "XYNSegments" to

https://github.com/ptv-logistics/xservernet-bin

Oli
Attachments
XYNSegments.png
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
ggiardina
Posts: 5
Joined: Thu May 08, 2014 6:52 am

Re: Segments drawn on map

Post by ggiardina »

Hi Oliver,
thanks for the example it's what we need!
Just a question: is it possible to use some GeometryOption to play with segment transparency?

Regards,
Giovanni.
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Segments drawn on map

Post by Oliver Heilig »

Hello Giovanni,

i don't think this is possible, xMapServer1 doesn't support real alpha blending. But you can set the opacity of the XYNLayer.

Oli
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
ggiardina
Posts: 5
Joined: Thu May 08, 2014 6:52 am

Re: Segments drawn on map

Post by ggiardina »

Hi Oliver,
Thanks you so much.

Regards,
Giovanni.
Post Reply