Page 1 of 1

Segments drawn on map

Posted: Fri May 19, 2017 12:37 pm
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

Re: Segments drawn on map

Posted: Tue May 30, 2017 2:21 pm
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

Re: Segments drawn on map

Posted: Wed May 31, 2017 1:25 pm
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.

Re: Segments drawn on map

Posted: Wed May 31, 2017 3:43 pm
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

Re: Segments drawn on map

Posted: Wed May 31, 2017 3:52 pm
by ggiardina
Hi Oliver,
Thanks you so much.

Regards,
Giovanni.