How to add href to popup (infoWindow) in ArcGIS API?

المشرف العام

Administrator
طاقم الإدارة
I'm a newbie in programming. I'm trying to make a href link inside of arcGIS js infoWindow (popup). I don't know how to make this link work. The code that I'm trying is shown below.Could you please suggest a solution?

map.on("click", addPoint); function addPoint(evt) { var latitude = evt.mapPoint.getLatitude(); var longitude = evt.mapPoint.getLongitude(); var link = "Google Office" map.infoWindow.setTitle("Coordinates"); map.infoWindow.setContent( "lat: " + latitude.toFixed(7) + "
lon: " + longitude.toFixed(7) + "
Link: " + link ); map.infoWindow.show(evt.mapPoint, map.getInfoWindowAnchor(evt.screenPoint)); };

أكثر...
 
أعلى