<!-- Identify Window Begin --> <div id="tabs" dojoType="dijit.layout.TabContainer" style="width:385px;height:150px;"> <!-- Safezone Tab Begin --> <div id="safeZoneTab" dojoType="dijit.layout.ContentPane" title="Location"> </div> <!-- Safezone Tab End --> </div> <!-- Identify Window End -->
geometryService.project([point], ptOutSR, function (projectedPoints) { point = projectedPoints[0]; ptGraphic.setInfoTemplate(new esri.InfoTemplate("Coordinates", "<p> X: " + point.x + "<br/> Y: " + point.y + "</p>" + "<input type='button' value='Convert back to LatLong' onclick='projectToLatLong();' />" + "<div id='latlong'></div>")); map.infoWindow .setTitle(ptGraphic.getTitle()) .setContent(ptGraphic.getContent()) // This deleting the "tabs" dom element, if I comment out, id still works, but project results not show .show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint)); });
Area you able to verify via console.log or Chrome debug tools that the identifyParams are still correct after you run the project point? I would console.log the whole path of execution to find out where something is not firing.I glanced over the code, but nothing glaring seems to stick out.
well your project deactivates the identifyhandle, do you ever reactivate it?
I have an identify button and a project point button. If I click on Identify and then click on the map, Identify works fine, but if I click on the project point button, the project point works, but my Identify stops working. I have included a video to explain:http://youtu.be/RRhQwS8sxaMI have also posted the code on github at:https://github.com/csergent45/SOA-Finalreactor.js within the js folder is where the bulk of the code that runs this application, but all the code that has to with identify and projecting the point are in this file.Thanks.Chris S.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.