2

I've look through every example on Stack GIS.Stackexchange which might deal with my problem. Of course there was good input, but unfortunately I'm not able to fix it.

Admittedly my JavaScript skills are not the best, so "easy" thing are also very hard to overcome.

Until now I've stuck at the following level: http://jsfiddle.net/84vvR/

I'm using nliu's TOC http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/examples/toc.html and the editor and popup functionalities overed by esri's API.

As you can see, theoretically all work. The mapapp contains an editor an the option for popup.

However, if the user wants to add new features by clicking on the map, the popup pops out and gives information about the underlying area, which has the defined popup. The same problem, if the user want to use the measurement tool. On the first click, the popup pops out and so it's not possible to add a starting point for measurement.

I've tried to implement a workaround with dojo.connect and a clickHandler or onClick like (button dojoType="dijit.form.Button" onClick="....(),...();">Disable Popup Function

I assume that it's not too hard for an advanced developer to solve this problem to bind the Popup Functionality to a checkbox or Button.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Oct 19, 2013 at 19:18
0

1 Answer 1

1

As of API 3.10, you can call setInfoWindowOnClick in esri/map and pass in true or false.

See: https://developers.arcgis.com/javascript/jsapi/map-amd.html#setinfowindowonclick

You can either attach that to a toggle check box or just make it when user clicks add new feature, the program disables info window automatically.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Aug 27, 2014 at 21:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.