Select to view content in your preferred language

Query Widget Question

2586
1
08-10-2015 10:27 AM
TerryGustafson
Frequent Contributor

So I created a map service from a SDE feature class.  I used the url to query the route which works fine but I would like to show the start and end points of the route.  Has anyone done anything like this?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Terry,

   When you query the (route) polyline if you are returning geometry in your query then you get get the geometries first and last point using getPoint

Polyline | API Reference | ArcGIS API for JavaScript

0 Kudos