POST
|
I've also tried extending the EditTool and setting the esri_internal snapping boolean to true but it does not allow a ChangeWatcher, so I can't monitor any changes and force it to remain as true The DrawTool only allows you to override the removeGraphic internal function
... View more
11-04-2011
12:26 AM
|
0
|
0
|
249
|
POST
|
Luke, It depends. I think that the DrawTool disables or removes all listeners when it is activated by default, unless you choose to add it's addition argument of false. I've tried listening to the EditEvent.CONTEXT_MENU_SELECT event on the EditTool but it doesn't appear to be getting fired. One step closer I guess, as this is clearly the issue. I don't know why this wouldn't be getting fired. Edit: On that note, I've just noticed that the "About ArcGIS API for Flex..." and "About ArcGIS Viewer for Flex..." aren't available in the context menu when the edit tool is activated on a graphic and the mouse is over a vertex. If the mouse is in the centre of the graphic (not over a vertex) then they are available. No idea why the event is being fired when mouse is over a vertex Edit: Yet another update. If I open my viewer with no widgets open then keep right clicking around the map then sometimes the "About..." items will show in the context menu, other times they won't. It seems that the context menu is only shown with the "About..." items when the focus is on the map. This could be related to my edit tool issue, as when right clicking over a vertex takes the focus off of the map. I don't know really
... View more
11-03-2011
01:42 AM
|
0
|
0
|
475
|
POST
|
Luke, I think the featurelayer that has the context menu listener, but I would see if you have a map mouse listener attached that is preventing the graphics from receiving the event. Or do you have a widget that is firing a setMapAction as that by default sets the mouse events to not listen, until the drawtool is deactivated. Would adding listeners to the map (or feature layer, graphic etc) stop the feature layer from receiving the event? I assumed that the event would be caught by all listeners unless event.stopPropagation() was called, though I may be completely wrong on this
... View more
11-02-2011
09:15 AM
|
0
|
0
|
475
|
POST
|
Luke, Sounds like you have a mouseEvent listener attached to the map that is preventing the right click context menu from receiving the event (just a guess). Thanks. That sounds the most likely reason. It's a case of trying to hunt down the offending listener Is it definitely the map listening for the event that will then add the "Delete Vertex" context menu item? Not the feature/graphics layer or the Edit tool?
... View more
11-02-2011
07:35 AM
|
0
|
0
|
475
|
POST
|
Sorry to bump but we really need a solution for this. 'Faking' the keyboard control button press doesn't seem to work to enable snapping on the tools. Does anyone have any ideas to solve this? Edit: After looking further, I believe what we want to ensure that the ctrlKey field is always set to true on the map MouseEvent click event. The problem being that the handler for this is a private method in the Draw/Edit tool. I can't figure out any way to block the mouse click event, change the ctrlKey to true and redispatch the event
... View more
10-26-2011
12:04 AM
|
0
|
0
|
249
|
POST
|
We have had this problem ourselves. It ended up being an issue with the map services, not the Flex viewer. Initially it happened when the rest cache wasn't cleared after a change to the services, meaning that the Flex Viewer was attempting to retrieve fields that were now hidden. This happened in another instance relating to changes in the map services but I can't recall what was changed. I can investigate with the team and get back to you. Hopefully that'll give you a starting point at least, knowing that we did resolve the problem here
... View more
10-17-2011
12:07 AM
|
0
|
0
|
924
|
POST
|
Hi, We have been requested by our client to always have snapping enabled when using the draw and edit tools. Basically, they want to be able to have snapping enabled without the need to press the control key. I've tried extending the DrawTool and adding this: if (event.type == MouseEvent.MOUSE_DOWN)
{
ViewerContainer.getInstance().dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, Keyboard.CONTROL, Keyboard.CONTROL));
}
else if (event.type == MouseEvent.MOUSE_UP)
{
ViewerContainer.getInstance().dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_UP, true, false, Keyboard.CONTROL, Keyboard.CONTROL));
} I've tried changing the dispatcher from ViewerContainer, "this", the map, FlexGlobals.topLevelApplication but it seems to be having no effect. Is there a simpler way to do this? Thanks Luke
... View more
10-13-2011
06:50 AM
|
0
|
4
|
2701
|
POST
|
Hi, I am using a heavily modified version of the Flex Viewer. Whenever using an editor within our implementation I am unable to right click to delete a vertex. I have tested this in the out of the box version and it works fine. I cannot figure why this option would not be available to me. I have 'allowDeleteVertices' set to true. We use the EditTool rather than the Editor component. Does anyone have any ideas as to why this option wouldn't be available in the context menu? Thanks Luke
... View more
10-03-2011
12:57 AM
|
0
|
11
|
1052
|
POST
|
There appears to be a problem when using our map data. It works fine when plugging in esri services. I'll update this if we manage to find any solution to this issue
... View more
04-19-2011
03:28 AM
|
0
|
0
|
172
|
POST
|
Hi, I am getting the following error whenever trying to use snapping in the draw or edit tool TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.ags.tools::DrawTool/checkForSnapping()
at com.esri.ags.tools::DrawTool/map_mouseMoveFirstHandler() We are using the BNG (27700) co-ordinate system. Is there anything on the server that needs to be enabled for us to be able to snap in Flex? Thanks Luke
... View more
04-19-2011
12:34 AM
|
0
|
2
|
521
|
POST
|
Sorry for the shameless bump on this one but I feel this is a huge issue with editing. Being unable to select a graphic for editing if it is fully contained causes major problems
... View more
01-24-2011
12:09 AM
|
0
|
0
|
164
|
POST
|
Hi, I need some help when it comes to drawing/editing. If I draw a graphic (A) which is fully contained within another one (graphic B) and then graphic B is selected for editing then graphic A is no longer visible or selectable. Selecting an object for editing appears to be rearranging the graphics in the graphics layer. Is there a way to disable this? I want it selected but don't want the order changing. This is fairly basic functionality so I'm hoping that I'm just missing a setting and one that someone else has come across before Thanks Luke
... View more
01-10-2011
12:25 AM
|
0
|
2
|
524
|
POST
|
Hi, I've been getting security sandbox violation errors when trying to run up my application. Here is my scenario: - HTML container deployed locally in IIS to C:\Inetpub\wwwroot\remote - HTML container references SWF (custom ArcGIS Flex Viewer) on another server - The SWF file calls Javascript functions within the container page I assumed that the crossdomain.xml file should live at C:\Inetpub\wwwroot on my machine, as the HTML file is the data on another server according to the SWF, but I'm still getting this error. This is what I have in my cross-domain file <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*"/> </cross-domain-policy> Can anyone tell me what I'm doing wrong here? Thanks Luke
... View more
10-28-2010
01:55 AM
|
0
|
1
|
613
|
POST
|
I've got a requirement to add a feature layer to a map by being given the name of the layer. All layers will reside on the same feature server. Is there any way to go through all of the layers on a feature server to find the one with the correct name, create this as a FeatureLayer and add this to the map? The only other alternative for me right now (that I can think of) is to have the layer number and name defined in my config.xml and use this as a lookup when I need it. Ideally I'd just have the server URL and be able to get the layer by name somehow. I hope my explanation isn't too gibberish
... View more
09-10-2010
01:21 AM
|
0
|
1
|
527
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|