Overlap of route layer on route stops

383
1
Jump to solution
02-16-2023 09:46 AM
ADITYAKUMAR1
Occasional Contributor III

Hi,

 I was using route sample of ArcGIS JavaScript 4.x 

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=route

In this example, we can see the route layer with route stops but when we zoom out the route layer overlaps on the route stop.

ADITYAKUMAR1_0-1676569405593.png

Is there a way we can stop this overlap, or we can hide the route layer behind the route stop?

 

Thanks

Aditya Kumar

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ADITYAKUMAR1
Occasional Contributor III

I managed to fix it by changing  routeLayer.add(stop); to  mapView.graphics.add(stop);

after that the route layer is not coming on top of route stop.

View solution in original post

0 Kudos
1 Reply
ADITYAKUMAR1
Occasional Contributor III

I managed to fix it by changing  routeLayer.add(stop); to  mapView.graphics.add(stop);

after that the route layer is not coming on top of route stop.

0 Kudos