Is it possible to write a custom layer that handles waypoints and lines between them? or how can I show say 3 waypoints and line between them in map suite desktop edition?
Custom Route Layer
Hi Onur,
Thanks for evaluating our product and welcome to "Map Suite Discussion Forum". Please check the attached demo code for your requirements, Also I'm not sure whether you want to do route with your data, if yes, I guess you can try RoutingExtension at gis.thinkgeo.com/Products/Ex...fault.aspx, it also includes a customized routelayer to do these things.
Best Regards,
Johnny
Pos11158Samplet.txt (1.96 KB)
Thank you for your quick reply.
Do I have to use custom styles if i want to show waypoint names when user mosue hovers to the waypoints? also if i want to label the line again do i have to use custom styles? If possible could you provide a small sample, very appreciated.
Hi Onur,
The control can fit your need if you want to label the line with custom styles. But it can’t do your first request if you want to show waypoints name when mouse hover on them just with custom styles. The available way for that is with the help of InMemoryMarkerOverlay.
We have provide a new demo code to fit both of your need. Please have a look.
If any other questions, please feel free to let us know.
Thanks
Gary
Post11158.txt (3.49 KB)
Hello,
Thank you for the sample code. Can i use your previous sample if i want to show the waypoint names over the waypoint mark all the time or do i have to use again the second sample.
Best regards.
Hi Onur,
If you want to show waypoint names in the first sample, here I did some modify and you could try the attachment.
Hope it helps
Gary
Post11158Sample.txt (2.62 KB)
Hello,
Thank you for the sample
Best regards
Onur
Hope it helps and any question please let us know.
Thanks,
Johnny
Hello,
Do i have to use a second inmemoryfeature layer if i want to show line name along with the waypoint names based on the first sample?
Thanks
Hi Onur,
A second inmemoryFeatureLayer isn’t needed, attached is the sample code would you please try it?
Hope it helps
Edgar
001_Post11158Sample.txt (3.19 KB)
Hello,
Thanks for the sample. It helps.
Best regards
Onur
You’re welcome Onur, if you have any questions please let us know.
Regards,
Edgar