<a id="identifyButton" class="map_button identify left" onClick="JavaScript:activateImageQuery()...
queryImage.execute(query, dojo.hitch(this,showImageQueryFeatures, query));
function showImageQueryFeature(feature) { var attributes = { name: feature.attributes.NICE_NAME, nice_desc: feature.attributes.NICE_DESC, src_desc: feature.attributes.SRC_DESC, resolution: feature.attributes.SRC_RES, accuracy: feature.attributes.SRC_ACC, date: feature.attributes.SRC_DATE }; feature.setAttributes(attributes); feature.setInfoTemplate(queryImageTemplate); map.graphics.add(feature); }
Can you post a link to the showcase imagery viewer that you're referring to?If it's using a query task an assumption is that there is a polygon layer representing metadata about each image (ie, they are serving the Source and Date as attributes in a polygon layer, with the polygons representing the extent of each image). Clicking on the "image" is actually running a query task against the polygon layer, and returning simple attributes.
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.