Something like this? map.graphics.enableMouseEvents(); dojo.connect(map.graphics, "onClick", function(evt) { // Set your events on the pop up as you want }); I am not sure exactly when this is fired in comparison to the info popup opening, but I would start here and see if it suits your needs. In this example I set the entire content of the popup on graphic click, and it functioned well, but it was a simple example.
map.graphics.enableMouseEvents(); dojo.connect(map.graphics, "onClick", function(evt) { // Set your events on the pop up as you want });
// InfoTemplate content <div id="layer-conduitAqueduc-popup" style="display: none;"> <table class="popup-table"> <tbody> <tr><td>Identifiant</td><td class="right-align">${IdCondt}</td></tr> </tbody> </table> <br /> <div data-role="button" data-mini="true" onclick="_Layer.onInspectionClick(Couche.CONDUIT_D_AQUEDUC);">Inspection</div> </div>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.