Select to view content in your preferred language

Is it possible to show a message on the map if the address is not within a certain distance of a FeatureLayer point?

720
1
08-16-2021 12:23 PM
ericshark
Emerging Contributor

Is it possible to show a message on the map if the address is not within a certain distance of a FeatureLayer point?

 

I have a map that has layers added that works great, but is there something that lets me post a message if a layer marker is not found within a certain mile? Maybe within half a mile radius if no layer marker is found to post a message on the map that says "no marker found"?

0 Kudos
1 Reply
UndralBatsukh
Esri Regular Contributor

HI there, 

You cannot directly use Map object to display messages. You can display messages on your map with the use of HTML element like div. For example, in this simple test app, you will see a message at the bottom left corner of the map whenever you click on the map. 

 

Hop this helps,

-Undral

0 Kudos