Select to view content in your preferred language

How to stop InfoWindow/Attributes showing on edit of polygon?

1185
3
04-19-2011 03:57 AM
IanWatkins
Emerging Contributor
Hi All,

Starting some work with the new 2.3 API.

Working on an app using this sample as my starting point: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=EditorBasic

When you first click an existing polygon, you get the edit markers for each vertex, but you also get the InfoWindow popping up that contains attibute information.

How do you get the InfoWindow *not* to pop-up?

Cheers

Ian
Tags (2)
0 Kudos
3 Replies
SarthakDatt
Frequent Contributor
Hey Ian,

The popping up of the InfoWindow is built into the Editor as default behavior. Unfortunately right now there is no way to turn it off.

In 2.3 we added a property Editor.updateAttributesEnabled(http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/components/Editor.html#updateAttributesEna..., doesnt stop the infowindow from popping up), which makes the attributes non-editable. Maybe you can try that.

If you are really looking for the behavior you described, then i would recommend looking at this sample:http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=EditWithoutEditor and NOT use out-of-the-box Editor component.

Hope it helps.
0 Kudos
IanWatkins
Emerging Contributor
Hey Sarthak,

Thank you for that.

I've tried turning off the Editor.update... etc. but you still get the InfoWindow. Any chance a simple Editor.showAttributes boolean toggle could be added?

In the meantime I've taken a look at the sample you suggest and that will do the trick nicely, thank you.

My feature layer will be presented to the user and the only option we want is to allow them to edit the presented polygons (not add or delete any). So I have that working allowing them to EditTool.EDIT_VERTICES | EditTool.MOVE which works fine, but would also like to allow them to use EditTool.ROTATE | EditTool.SCALE as well but adding them in doesn't work using the following in the layerClickHandler:

editTool.activate(EditTool.EDIT_VERTICES | EditTool.MOVE | EditTool.ROTATE | EditTool.SCALE, [ selectedGraphic ]);

So guess you need to toggle between those two sets? Any clues how to do that? Editor manages it it, but EditTool doesn't automatically.

Cheers

Ian
0 Kudos
IanWatkins
Emerging Contributor
So guess you need to toggle between those two sets? Any clues how to do that? Editor manages it it, but EditTool doesn't automatically.


Scratch that, found it in another sample. For those interested see: http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=EditTools

Cheers

Ian
0 Kudos