Select to view content in your preferred language

Render MapView.graphics above highlights

62
0
Wednesday
fdeters
Regular Contributor

In my map, I place a marker graphic whenever the user clicks or searches on the map: 

view.graphics.add(markerGraphic)

 

I'm rendering the map's popup in a separate area of the DOM:

view.popup = new Features({
  container: 'popup-container-id',
});

 

But when a user clicks on the map and selects a feature, the map marker graphic is drawn underneath the feature highlight graphic: 

fdeters_0-1749083598254.png

Is there a way to force the map marker to render on top? For example, setting the default MapView.graphics layer to the top? I could probably hack something together by making highlights and the map marker render in custom GraphicsLayers, but I would prefer something more straightforward.

0 Kudos
0 Replies