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

1
vote
1answer
37 views

Click event doesn't work with with Google Maps

I'm trying to create a simple click event when I click on a list item on my page, a marker should be created on the google map in that page. But it does not happen. Is there some google maps API ...
0
votes
1answer
27 views

Openlayers 3 modify interaction and featureover

What is the best way to add a 'featureover' event on top of an ol.interaction.Modify ? At the map or layer level, this event is masked by the interaction. The 'modifystart' event is fired when the ...
0
votes
2answers
27 views

Saving XY event layer deletes data and results in an empty feature class

I am trying to save an XY event layer that I made from a table. Whenever I use Feature Class to Feature Class (or Copy Feature or Feature to Point) an empty feature class is created. On top of that ...
2
votes
0answers
43 views

Removing individual markers from map

I have a map with several moving markers on it and have been trying to remove each individual one when their respective animation ends. I am using Leaflet and Leaflet's plugin Leaflet.MovingMarker. I ...
2
votes
0answers
21 views

TOC layer symbol changed EVENTS in ArcMap

I want to do something when user changes one of TOC layer's symbol. I am using .NET in arcMap 10.0 . How can it possible with arcobjects ? Please , help. Specially I want to know, Is there any events ...
2
votes
2answers
60 views

Arcobjects 10.3.1: TOC listeners

I am writting an addin using ArcObjects C#. I have setup the following listeners, but they are not being hit. My code at the top of the addin.Extension class is: ... private static ...
3
votes
3answers
138 views

Forcing Python Toolbox tool to break loop and do cleanup when user clicks Cancel?

I am writing a Python tool that perform heavy tasks in a loop. When the user clicks "Close" I want to break the loop, perform some cleanup, and then finish. Consider this example tool that counts ...
1
vote
1answer
44 views

how to get map object in event?

I add a listener to a button L.DomEvent .addListener(selectList, 'click', L.DomEvent.stopPropagation) .addListener(selectList, 'click', L.DomEvent.preventDefault) ...
1
vote
2answers
71 views

Where is the drawn feature when the drawend is triggered in OL3

I have written a piece of code to check if the drawn line is intersecting other lines in the vector layer. If so, then the line should be split and new lines should be added to the layer. here is my ...
0
votes
2answers
134 views

How to get the coordinates of the starting and ending points of a line in ol.interaction.Draw in OL3

I'm using Openlayers3 for drawing and storing lines, and then doing some processes on the inputs. Now I want to get the coordinates of the starting and ending points of the line while the line is ...
0
votes
0answers
32 views

Activate click events on graphics outside of map

Using a JSON feed, I have plotted map points onto a basic map. I've set them up to center and display a popup when clicked. I would also like to activate the centering and popup by clicking on an ...
2
votes
0answers
122 views

Handling ArcMap closing event in AddIn?

I'm trying to handle the closing event of ArcMap within an ESRI Addin Extension using C# and arcobjects. Furthermore I would like to handle 'a closing event', that is fired BEFORE ArcMap tries to stop ...
0
votes
0answers
74 views

Flex Viewer event when layer ends loading

I have a widget that adds a WMS layer to my Flex Viewer app. I use proxy. I would know to want which event is fired when layer really ends loading and shows up on map. I tried many, but they dispatch ...
3
votes
1answer
151 views

OpenLayers Add EventListener for Fullscreen close

I'm currently building a web-app with Angular and OpenLayers. Due to the nature of my site I need to call map.updateSize() when the screen changes size which works as expected. However when I enter ...
0
votes
1answer
34 views

How can i catch clicked signal on a qgsmapcanvas

I am working under c++ with the qgis API 2.8 In order to make different operation on a canvas like personnalized rotation or selecting a region for zooming, I had to catch different signal like ...
1
vote
1answer
111 views

How to delete a feature in Openlayers 3.8.2 with `del` Key

I'm using OpenLayers-3.8.2 for developing a GIS application. Users draw some features and can modify all existing features on the map. They can delete features. I can delete feature as follow: user ...
1
vote
1answer
63 views

Event programming in QGIS

I have identified a need to change VRTs raster order through its order of appearance in it's respective XML file. Unfortunately this seems to not be possible to do dynamically using QGIS commands or ...
0
votes
1answer
86 views

Mouse Double Click Events

I would like to display a Message Box Dialog when the user activates the -esri selection tool- and double clicks anywhere on the map. or when they doubleclick any feature on the map please note that ...
1
vote
1answer
81 views

Information of particular locations (points) in a map

For a marathon race I need to create a map with specific information about material needed in particular positions (eg crossroads). It's about 150 positions. You see one part in the picture below. ...
3
votes
1answer
536 views

OpenLayers 3 - Modify Feature - Delete vertex on keypress

I'm trying to create functionality in OpenLayers 3 that allows me to delete a vertex from a feature that is currently selected using the modify interaction. I've managed to see that there is a ...
1
vote
1answer
307 views

Leaflet custom div & click propagation on other elements

I've gotten custom HTML applied successfully within my #map element (where Leaflet is appended) but I'm having unusual behavior with other Leaflet objects that find themselves within the transparent ...
2
votes
1answer
246 views

`change:center` event not fired on drag animation

I'm quite new in OpenLayers, and I want to act when the map is moved. So simply listening to the change:center event of the map's view: map.getView().on('change:center', function(evt){ ...
0
votes
0answers
132 views

Leaflet: binding an event to the click of a link within a tooltip/popup

So I have polylines on my Leaflet map which I have bound to embedded YouTube links. var container = $('<div />'); container.html("<iframe width='280' height='157' ...
0
votes
1answer
28 views

Geojson mapevent second mouse click

I am trying to add a geojson layer with interactive functionality to my leaflet map. I am mostly using this (dated)blog: ...
3
votes
1answer
156 views

Space time analysis. Finding spatial patterns (cluster&disperse) over time in point data sets

I am trying to describe/find statistically spatial patterns in a point data set of industrial sites. The points feature apart from their location, a date for their opening, a date for their closure ...
1
vote
1answer
67 views

How to display radius while adding element in ArcObject?

I want to display the radius of drawing circle when user adds this figure on the map. User clicks on the icon. Then user begins drawing circle (I process the MouseDown event) IGeometry geom = ...
0
votes
0answers
28 views

getFeatureFromEvent from multiple layers simultaneously in OpenLayers

I'm trying to return multiple features from two layers from a user click (one feature from each layer)? I'm using openLayers 2.12. I have 2 vector layers containing polygons, and a container layer ...
1
vote
0answers
147 views

Openlayers 3, jquery Ajax initialising in Jquery.success()

I have this nice fiddle: http://jsfiddle.net/mindsupport/cujfjby4/14/ Openlayers 3 map initialized in ajax request and all data (points, line etc.) attached in jquery success() method, but map ...
1
vote
0answers
47 views

How to register multiple events on multiple layers with Openlayers

Is there a way to register multiple events on multiple objects with one command? In the API doc one can find several ...
0
votes
0answers
114 views

Google Maps measure time to render markers

I want to measure how much time it takes to render markers on my map. I have a vector layer with data, like this: var vectorLayer = new google.maps.Data({map: map}); // add features to vectorLayer ...
1
vote
1answer
186 views

Leaflet popups events through CartoDB

How I can use the leaflet popups events throught CartoDB. I have seen that some events are working like 'click', 'movestart',but 'popupclose' and 'popupopen' are not working. My goal is to do some ...
0
votes
2answers
103 views

CartoDB, Torque map sending events to JS when a market is rendered

I have a Torque map like this one and at the same time the bubbles are showing up I would like to render a growing graph with the number of bubbles accumulated. I don't expect CartoDB to do this for ...
1
vote
0answers
30 views

Arcobjects event on featurelayer symbology change

I am working on an Java AddIn project for ArcMap. I need to find the event when user changes the symbology for a layer added in TOC. So far my best bet is to useIActiveViewEvents class on map, and ...
0
votes
1answer
239 views

Does an event get fired after a Layer has finished rendering in Openlayers 3?

I am rendering about 27000 Markers in different layers on a mapview. Everything works fine on fast devices. I have a problem on older devices (like the iPad3). When i hide one layer and set another ...
0
votes
1answer
231 views

Track Map Events in ArcObjects Dockable-Window Addin

I'm building an Addin for ArcGIS 10.2 with c#. It is a dockable Window, that will host some controls for our custom export solution. I want to listen to Map-Move events of the main map ...
3
votes
1answer
936 views

Trigger event once layer is loaded

var pixelProjection = new ol.proj.Projection({ code: 'pixel', units: 'pixels', extent: [0, 0, width, height] }); var layerNC = new ol.layer.Image({ source: new ...
1
vote
1answer
2k views

ol3 capturing various click events

I would like my KML layer in openlayers 3 to respond to different types of click events. I have a single click method working nicely. But how do I get it working for "shift-clicks" "double clicks" ...
1
vote
0answers
89 views

ArcObjects — How to tell if an event is already wired up

Using Visual Studio 2010 C# and ArcMap 10.1. In a custom ArcObjects extension, a bunch of events are wired up at startup. For example, this simple standard code chunk: IEditEvents_Event ...
7
votes
3answers
4k views

Layer loadstart & loadend events in OpenLayers 3

OpenLayers 2 has these layer events "loadstart & loadend." What is equivalent to them in OpenLayers 3? While a vector layer loads and is rendered, I need to show a loading icon.
5
votes
1answer
980 views

OpenLayers 3 modify end event

I want to save the geometry data after I modify it, so I need an event that fire after I finish to modify the feature. I use the following from this post: listener modify interaction var ...
2
votes
0answers
1k views

mousemove event is fired with IE and firefox but it is not fired with chrome [closed]

I am using mousemove event to do some code when the mouse get over features, the code below is working well with IE and firefox but It is not working with chrome ...
2
votes
2answers
889 views

ESRI JavaScript API FeatureLayer Click Event

I am using FeatureLayers in the API to load in a layer. I have an info template set for the layer for identifying individual features. I am trying to disconnect the click event from the layer while ...
1
vote
0answers
262 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({ ...
2
votes
1answer
759 views

How to let leaflet layer events to propagate to layer below

I am working on a leaflet map with three layers: a base tile-layer, a GeoJson layer and a label tile-layer. For display, I want the label layer to be on top, but for interaction I would like to let ...
2
votes
1answer
399 views

How to pass an argument to an event function in OpenLayers?

I am loading to my map two KML layers for which I add a quasi-similar featuresadded event : layerICPE = new OpenLayers.Layer.Vector( "ICPE (Installations Classées pour la Protection de ...
1
vote
1answer
29 views

Openlayers. How to remove last sketch if invalid

I can currently identify if a polygon is invalid through wps as per below code. What I want to know is how to remove the last sketch polygon if it returns invalid? To give you an idea, here is the ...
1
vote
1answer
43 views

Openlayers documentation for WPSClient and layer.events.on

I am having trouble finding the following documentation: The openlayers wpsclient documentation: eg: what are the requirements for the wpsclient javascript to run JTS:overlaps or JTS: Difference ...
2
votes
0answers
102 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
2answers
181 views

zoom over vector in leaflet

I have created a map from geojson file of administrative boundaries (polygons layer). Similar to this example. When the mouse is over the polygon feature, the cursor changes from hand to finger. In ...
2
votes
0answers
2k 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 ...