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
0answers
8 views

How to prevent the map from panning when scrolling the page

When an HTML page contains a map, and the user scrolls down the page using their mouse wheel, when the user's mouse passes over the map the page will stop scrolling while the map itself will pan. See ...
0
votes
1answer
27 views

How to highlight a clicked Feature Layer using ArcGIS JS API 4.x

Esri recently released version 4.0 of the ArcGIS Server JavaScript API, which represents a substantial re-write compared to version 3.x Using version 3.x, a feature layer supported a long list of ...
2
votes
1answer
65 views

Highlight feature below mouse-overed track in Leaflet

Currently, on http://velo300.free.fr/debug, feature highlights on 'featureOver' creating a white new feature on top of mouse-overed feature. Problem: i need also to work with 'featureclick' for ...
2
votes
0answers
17 views

Trigger event after KML Layer completely loaded

I want to set the bounds of my map after a Vector (KML) Layer is loaded. kmllayer.events.register('refresh', kmllayer, function(evt) { map.zoomToExtent(kmllayer.getDataExtent()); }); In the ...
0
votes
2answers
44 views

Event not firing for map.graphic.add objects added

Using ESRI ArcGIS javascript api v 3.16 I programmatically add a graphic to my map, which works fine, for example: var pnt = map.graphics.add(new Graphic(evt.mapPoint, stopSymbol)); I need to fire ...
4
votes
1answer
90 views

Trigger a layers 'on hover' effect through another layer in Leaflet

Im trying to make a map containing two separated basemaps one with terrain and second with labels, and with vector data layers in between. The problem is when I try use hover/click events on data ...
0
votes
1answer
40 views

InfoWindow.getSelectedFeature() not working

When I select a geometry on map, the method map.infoWindow.getSelectedFeature() always returns "undefined". It looks like it is not working. This behavior is with InfoWindow and also with Popup. Also ...
1
vote
1answer
174 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
52 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 ...
3
votes
0answers
37 views

Attachment editor esri duplicate files

I am using arcgis API's attachment editor var attachmentEditor = new AttachmentEditor({}, dom.byId("content")); attachmentEditor.startup(); featureLayer.on("click", function(evt) { ...
0
votes
2answers
31 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
53 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
24 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
98 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
191 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
123 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
153 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
731 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
60 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
170 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
76 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
273 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
35 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
149 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
96 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
117 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
84 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
906 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 ...
3
votes
1answer
455 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
358 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
1answer
33 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
0answers
213 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
80 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 = ...
1
vote
0answers
164 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
56 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 ...
1
vote
1answer
222 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
112 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
40 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
373 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
280 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
1k 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
2answers
4k 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
108 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
4answers
5k 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
2k 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 ...
3
votes
2answers
1k 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
300 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
1k 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
474 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 ...