Segments drawn on map

Within this forum we want to offer discussions all around our .NET based xServer controls.

Segments drawn on map

Postby ggiardina » Fri May 19, 2017 12:37 pm

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

Re: Segments drawn on map

Postby Oliver Heilig » Tue May 30, 2017 2:21 pm

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
PTV GROUP - Germany

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

Re: Segments drawn on map

Postby ggiardina » Wed May 31, 2017 1:25 pm

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

Re: Segments drawn on map

Postby Oliver Heilig » Wed May 31, 2017 3:43 pm

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
PTV GROUP - Germany

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

Re: Segments drawn on map

Postby ggiardina » Wed May 31, 2017 3:52 pm

Hi Oliver,
Thanks you so much.

Regards,
Giovanni.
ggiardina
 
Posts: 5
Joined: Thu May 08, 2014 6:52 am


Return to PTV xServer.NET (Admin=OH)