In computing an event is an action that is usually initiated outside the scope of a program and that is handled by a piece of code inside the program
1
vote
1answer
358 views
ArcObjects - Listening for Map Click in ArcMap
I have a seemingly simple requirement that is causing me all types of headaches - listening for a map click event in ArcMap via ArcObjects. Simple as that, just tell me when the map is clicked (and ...
0
votes
1answer
22 views
Marker layer not responding to events in OpenLayers
I have multiple layers in OpenLayers: three vector layers, one google map layer, and a marker layer. I registered feature selected event to all three vector layers (which works fine, but btw is that a ...
0
votes
1answer
49 views
Create road speed limit segments with linear referencing
I have a route-feature class and a point feature class with speed limit signs. In ArcMap I am capable to reference the signs on the route with help of a reference field and using the locate features ...
0
votes
1answer
123 views
Understanding DrawFeature and other events in the same time in OpenLayers
Scenario 1:
Let's say I have something like this:
`app_obj.MapObj.map.events.register("click", app_obj.MapObj.map, self.pointToVideoSearch);`
and another Click Control
OpenLayers.Control.Click = ...
0
votes
1answer
162 views
How to keep bound popups from opening on [click]?
I am working on a map application which creates and binds popups on markers and polyline objects.
The popups are created and bound lazily, i.e. ad-hoc when a user clicks on a specific object. The ...
2
votes
0answers
46 views
How to prevent the user from moving the feature?
I want to prevent the user from moving the feature in ArcMap when editing.
I used OnChangeFeature event but it does not work.
void m_editEvents_OnChangeFeature(IObject obj)
{
...
1
vote
0answers
31 views
Cancel event in Python Gp tools with arcpy
In GP-tools written in C# (ArcObjects) we can listen for the Cancel-event and react on that. I wonder if there is anything similar in Python GP-tools applying arcpy.
I googled that issue and the only ...
1
vote
0answers
165 views
How to trigger a map click event?
I have a map with some markers. On clicking a marker, a popup would appear and on clicking the map, any visible popup would be hidden. I want to hide any currently visible popup upon clicking a marker ...
1
vote
0answers
80 views
ArcObjects - IGraphicsContainerEvents_ElementAddedEventHandler Unregisters After a Few Fires
I am using IGraphicsContainerEvents_ElementAddedEventHandler to do stuff with graphics added by users in an ArcMap session using the standard drawing toolbar. As the code snippet below shows, its a ...
0
votes
0answers
50 views
Why does Openlayers loadend event run twice?
Openlayers loadend event run twice on version 2.10. See my code:
layer.events.register("loadend", layer, function() {
//Do something
});
No answer on openlayers docs.
0
votes
0answers
235 views
Why does map click listener not work with touch?
I deleted this question which I posted a few days ago, thinking that I would be able to solve it. But after struggling for some time, I think I really need some help. The problem is this: I am testing ...
0
votes
0answers
19 views
Problem with ObjectClassEvents_OnChange
I currently using ObjectClassEvents_OnChange event to prevent the user from make any changes on the features in ArcMap, i want to prevent the user from moving and edit the shape of the features.
The ...