Query Widget Question

2459
1
08-10-2015 10:27 AM
TerryGustafson
Occasional Contributor II

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