Display graphics off screen

211
1
06-22-2021 06:45 AM
JohnWyant
New Contributor

Hello,

I have a set of graphics I need to add of the map, and if the user is zoomed in somewhere that wouldn't include that graphic, I need some sort of indicator at the edge of the map pointing in the direction of the graphic.

 

Is something like this possible?

0 Kudos
1 Reply
BlakeTerhune
MVP Regular Contributor

I don't know of anything built in, but you could show some kind of basic notification to indicate there's new information outside the map extent. Here's a couple examples.

How To Create a Snackbar / Toast (w3schools.com)

CSS Tooltip (w3schools.com)

Or better yet, maybe have the message stay until the user "acknowledges" it and provide a button that will zoom the map to the extent of the new graphic. You could use the Esri View UI to place a "notification" element with a button that goes away when the button is clicked.

Using the view's UI | ArcGIS API for JavaScript

0 Kudos