in arcgis javascript api how to check whether given xy coordinated lies inside a imported web map (imported from arcgis online)? i know that there is a method in polygons to check point lies inside a polygon. but how to convert a web map to a polygon????
Your webmap | ArcGIS for Developers will have a property called extent | ArcGIS for Developers that will provide the default extent:
You can use the coordinates to create a polygon: Geometry objects—Common Data Types | ArcGIS for Developers and do your validation.
https://developers.arcgis.com/web-map-specification/objects/webmap/