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

learn more… | top users | synonyms

2
votes
1answer
577 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 ...
1
vote
1answer
467 views

register to event in openlayers 3

I have a web application in openlayers and I am starting to rewrite it to openlayers 3. In the application i have some features that i need to delete/move/add/edit the features then to save it to the ...
1
vote
1answer
473 views

How to disable all mouse event in openlayers' map div?

version: OpenLayers-2.13.1 brower : IE8 (I Hit it!!! But I need to work on it) I create a div with id 'map' to display openlayer map. Sometimes, I need disable map div catch any mouse events, let me ...
1
vote
1answer
411 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
1answer
673 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
298 views

CartoDB.js - Accessing table fields in hover function

I am new to CartoDB.js and javascript in general, and I am attempting to highlight polygons in response to a mouse hover. My plan of attack attempts to utilize one of the interesting templates ...
0
votes
1answer
799 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 ...
2
votes
0answers
60 views

How to simulate events from Openlayers 2?

I am working on a GIS API that uses OpenLayers. I am testing it using QUnit. The problem is I need to simulate clicks and trigger some events to be able to test the whole code. For example, I have a ...
2
votes
0answers
65 views

Leaflet Marker Dragend Bug/Difficulty

I am having a problem with leaflet markers. The problem is that when I drag a marker with a lower z-index under another marker with a higher z-index and let it go, it makes another marker. I have a ...
2
votes
0answers
484 views

How to wire ESRI.ArcGIS.Desktop.AddIns.Extension to a custom AddIn Button click event?

I am developing custom ArcMap toolbar with various AddIn tools, button and extension. I see the sample how to access the ActiveView events in the extension Initialize() method. private void ...
2
votes
0answers
105 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 ...
2
votes
0answers
67 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
131 views

Are there more events in OpenLayers 3, besides “moveend”?

I am building an API on top of OpenLayers 3. I can't display here the whole code for professional reasons. This is a bit how my classes look like. // external file xgis.js xgis = {}; // xgis.map ...
1
vote
0answers
62 views

ArcPad Jscript ThisEvent.Object, autofill form with multiple pages

I have a script that I'm trying to use to autofill the controls of an ArcPad form with controls on multiple pages. The 'autofill()' function is referenced in the form's onload event and I would like ...
1
vote
0answers
281 views

Leaflet Event Craziness: jQuery click events don't propagate to L.DomEvents

I noticed that calling .click() on jQuery selected DOM elements in Leaflet ( such as anchor icons ) will not do anything -- the click event isn't propagated to the events created with L.DomEvents. For ...
1
vote
0answers
131 views

Prevent OpenLayers ClickEvent from firing on Popup closeButton

My Code to add popups as selectControl to a Layer. Works fine! map.addLayer(window.markerLayer); // SelectControl für Marker --> Popup window.selectControl = new ...
1
vote
0answers
2k 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 ...
1
vote
0answers
114 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
11 views

How to get feature on vector layer in Openlayers 3?

I'm try to get feature of a vector layer, but I'll have 3 or more Vector layer. When I click the map, I didn't get the feature. My vector layer definition; var vectorAltAlan = new ol.layer.Vector({ ...
0
votes
0answers
14 views

Openlayers map changelayer event firing twice for params

I have registered changelayer event of my map. var registerEvents = function () { map.events.register("changelayer", null, onMapLayerChanged, true); }; var onMapLayerChanged = ...
0
votes
0answers
20 views

openlayers clickevent for undercoat features polygon on multiple vector layers

I'm using two timers that give me coordinates and some data for my features (Sensors(de Sensoreinheit) & receiving unit (de Empfangseinheit)), deleting all features on the Layers and placing new ...
0
votes
0answers
27 views

How to add custom events to OpenLayers-based API?

I am woking on a GIS API built on top of OpenLayers. I have a class called xgis.group, which represent a group of layers. I want to add an event that can be triggered when a group is added. For ...
0
votes
0answers
53 views

OpenLayers 2.13.1, how could I make a click, get coordinates, send it to geoserver function?

I am trying to make this very simple function, at the moment I am quite stuck when I have to place the markers as start/end points. I would like to add a marker as start and another as end and then do ...
0
votes
0answers
37 views

Don't cancel the click event on a SelectFeature

On my OpenLayers map I have a custom Control that has a ClickHandler. I also have a SelectFeature on one of my layers. I need the ClickHandler to fire even if a SelectFeature is clicked. I tried: ...
0
votes
0answers
739 views

Right click context menu in OpenLayers 2

My code is this in Openlayers 2 I'm displaying two layers in a single map one with the world map and the other with my node information .. When I right click(on node layer only) I want to display ...
0
votes
0answers
275 views

Leaflet Map Dropdown

I am attempting to create a simple basemap selector to use in a leaflet map to assist in selecting a basemap of interest. I've created a new Select control that works great in a computer browser but ...
0
votes
0answers
31 views

how to remove MiddleButton double click event from qgsmaplegend?

I want to remove the MiddleButton double click event from the qgsmaplegend using qgis python plugin. I am developing the plugin in qgis api 1.8 with python 2.7. i tryed to install an event filter : ...