Select to view content in your preferred language

Highlight polyline feature partially

2066
3
12-10-2014 03:53 PM
BhavinSanghani
Frequent Contributor

How can I highlight polyline feature partially? See attached screenshot. I have highlighted polyline feature with light green color. It is highlighted properly. I am using selectionSymbol and selectFeatures to highlight it.

Now, I want to highlight it partially based on the measurement of this line as highlighted with yellow color in the attached screenshot.

Is there any support to implement this functionality in ArcGIS JS API?

0 Kudos
3 Replies
HeikoHeijenga
Esri Contributor

You would need to the 'cut' operation on the GeometryService to split the polyline into multiple pieces.

geometryservice-amd | API Reference | ArcGIS API for JavaScript

BhavinSanghani
Frequent Contributor

I am not sure 'cut' will work for this scenario but it gave me few ideas. Let me give you more details on my UC.

Assume that the start point of the line is 100 FT and end point is 1000 FT. Now, I want to highlight from 200 FT to 400 FT. I am thinking to pass geometries with Query and use the same selectFeatures method to highlight the portion of the line. But how to find geometries of 200 FT start point and 400 FT end point?

0 Kudos
RajeshLal
New Contributor

Hi Bhavin,

Were you able to resolve this?

I am trying to do the same in a JavaScript project.

0 Kudos