Hi All,I would like to select specific text from the Infowindow and copy it to clipboard. Right now I am able to copy entire window. But my requirement is to select specific string and copy it to clipboard. Any help would be appreciated.Here is my code:private function onMapClick(event:MapMouseEvent):void { var latlong:MapPoint = WebMercatorUtil.webMercatorToGeographic(event.mapPoint) as MapPoint; myMap.infoWindow.label = "Lat/Long: " + latlong.y.toFixed(6) + "/ " + latlong.x.toFixed(6); myMap.infoWindow.show(event.mapPoint); System.setClipboard(myMap.infoWindow.label); }Thanks,Sam
What is the specific string that you want to copy to your clipboard? The Lat and Long value?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.