Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [events]

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

0
votes
0answers
21 views

How to manually control react-leaflet popups (via props) within a GeoJSON layer?

I'm using react-leaflet to render a GeoJSON feature collection that has points and linestrings: I was able to get the click and hover events on the actual features themselves to work just fine. But ...
2
votes
0answers
40 views

Creating points with linear referencing

I have traffic data that shows tracks that have start and end times (in YYYYMMDD-HHMMSS format) and the speed (m/s) the vehicle was moving. From that I've calculated total traveled distance (m) and ...
0
votes
1answer
116 views

How to temporary disable map click event in OpenLayers

How can I disable map click event? My idea is to disable it when I am positioned with mouse over my popup container. After I move mouse out of it, I want that event is enabled again. Something like ...
1
vote
1answer
185 views

Openlayers 3. OnClick on touch device not triggering perfectly

I have the forEachFeatureAtPixel function and try to trigger an event on click on a point layer with a custom icon. However, the performance on touch devices is really bad. I need to click several ...
1
vote
0answers
120 views

more than one reactive events to subset markers in Leaflet in R

I am trying to create a shiny ap in R that displays markers on a map. I have a couple of categories that I would like to subset. Currently, I can subset but the map is only reactive on a single input (...
0
votes
1answer
45 views

List of possible events from event handler

This may be an elementary question but I cannot figure out how to word it so that I can google it properly. map.on('click', function(evt) { var coordinates = evt.coordinate; alert(coordinates)...
1
vote
1answer
184 views

Esri js api 4.6 fires animation event on fast drag

We are having a problem with fast drag event on the new esri js 4.6 api. When a user drags the map too fast, the map extent's changes rapidly. I've detected that on a fast drag, there's an animation ...
1
vote
0answers
32 views

How to get the data on screen after movened event is triggered

I am displaying 100 cities on the map. After zoom or move the map, only e.g. 9 items are displaying on the current screen. So how can I get these data from my dataset? Especially the object id? ...
1
vote
2answers
790 views

How to programmatically start drawing in OpenLayers 4._

In openlayers there are 2 paradigms for drawing features one is to create a "draw interaction" that lets the user draw a feature and the other is to create the geometry and feature yourself--then add ...
1
vote
0answers
222 views

OpenLayers change:rotation not called

I am using ol-cesium and I want to receive an event when the map is rotated. So my approach is to use the change:rotation event of the ol.Map, but it is never called. this.map = new ol.Map({ ...
0
votes
1answer
285 views

How to determine whether a map click event has been set?

The Evented section of the Leaflet documentation shows how to set an event listener for the map object: Leaflet deals with event listeners by reference, so if you want to add a listener and then ...
2
votes
1answer
116 views

Openlayers 3 equivalent of render intents of OpenLayers.Stylemap?

I want to convert my openlayers 2 features to openlayers 3. I have following part in openlayers 2. I need an equivalent of StyleMap in openlayers 3 so that I can distinguish the default action and ...
1
vote
1answer
565 views

How to prevent map click event esri map js API?

I have a map and I'm listening a click event like this, currentMap.on("click",this.identifyMapFeature.bind(this)); At some extent I want to disable the click event from map, I've tried these 3 ...
0
votes
1answer
323 views

Joining CSV-Generated Datapoints with Shapefiles in ArcGIS Desktop?

I have a question about joining data points (with a large amount of information) with shapefiles in ArcGIS Desktop: I have imported a CSV file into GIS. This CSV File is quite large: each row ...
0
votes
0answers
149 views

Clicking on points from a TileWMS in OpenLayers

I'm trying to set up an event which will handle clicks and identify when a TileWMS-layer has been clicked. I found this: Is it possible to detect TileWMS layer by click on map? The answer on the ...
5
votes
3answers
4k views

How to unlisten an event in OpenLayers 4?

I am trying to suppress the single click event that adds popups to the map. I have the following function: function addFullScreenPopups(){ map.on('singleclick', function(evt) { var ...
1
vote
0answers
133 views

Fill e.layer when firing events manually [closed]

(Asked on stackoverflow, but later found gis@stackexchange, and think it may be a more suitable place) I am using a L.vectorGrid.protobuf layer (named as pbfLayer) to display vector tiles, and I want ...
0
votes
2answers
375 views

how to handle keyboard and click event

I am using ArcGIS JavaScript API and I want to show a message in console's log when I hold down "e" and click on a graphic drawn by a user. this.map.graphics.on ("click", lang.hitch(this, function(...
1
vote
1answer
239 views

Dynamic updating of Events Layers created from XY Data in ArcGIS Desktop?

Are Events layers created from displaying XY Data in a table, updated dynamically when the table is updated? I have an Access db table that I am dumping data into, and I created an Events layer from ...
7
votes
1answer
66 views

What events are fired when a feature is copy and pasted?

I am trying to detect when a feature has been copied and pasted. The OnCreateFeature event fires, but I cannot tell if the feature object was copy/pasted. Is there an event or other method to ...
4
votes
1answer
57 views

Assigning accumulating numbers to events along a (river)network

I have a river network along which there are lake polygons that I want to assign orders to. So from headwaters to downstream I want the order to increase depending on the number of previous lakes. As ...
1
vote
0answers
34 views

Does OnStopEditing always happen after OnSave

During debugging, I discovered that the OnSaveEdits event is always followed by OnStopEditing and then OnStartEditing. Is this always the case? I don't see the logic in this. I could understand if ...
2
votes
1answer
149 views

Why does Arcobjects IEditor operation not fire IEditEvents.OnCreateFeature?

I built an Arcobjects add-in in the past that records the username and datetime every time a feature is created or modified: Sub OnStartEditing_Handler() AddHandler Events.OnCreateFeature, ...
1
vote
1answer
273 views

Access features with click events in SceneView ArcGIS Javascript API?

I am trying to access features of a featurelayer in a SceneView on click event. I have seen this example from Esri's documentation for ArcGIS API for JavaScript but this example is for a MapView. When ...
0
votes
1answer
259 views

Lealeft. Cannot slide an INPUT RANGE over the map DIV

I've got a control over the leaflet map div: <div id="map"> <div style="z-index:9999; position: absolute; bottom:35px;left:10px; id="divOpacity"> Opacity <input type="...
8
votes
1answer
323 views

QGIS run python script upon print composer export

I'm looking for a way to execute a python script upon exporting a print composer. Specifically, I want it to run once for each page exported. (logging some data and possibly updating a database). So ...
1
vote
1answer
139 views

listen to Edit Session in ArcMap

I want listen to Edit Session in ArcMap. But every time when i click on my button in ArcMap, Applicaation crash down. If i debug, it stopped at AddHandler Events.OnStartEditing, AddressOf ...
1
vote
0answers
163 views

Handle Event When User Selects A Feature

How do I handle the event when a user selects a feature from a feature layer in ArcObjects? What I've tried: public ESRI.ArcGIS.Carto.IActiveViewEvents_SelectionChangedEventHandler ...
2
votes
1answer
2k views

Getting multiple functions to work with mouseover event in Leaflet

I am making a web mapping app using leaflet and some geoJSON data for a grid. I want to be able to mouseover each grid cell and both highlight that cell AND show a popup of the coordinates. In the ...
2
votes
1answer
1k views

ZoomIn or ZoomOut on click

I have this map with two controls <!DOCTYPE html> <html> <head> <title>Simple Map</title> <link rel="stylesheet" href="http://openlayers.org/en/v3.17.1/css/...
2
votes
1answer
5k views

Openlayers3 Add click/hover action on ol.layer.Vector

With drawService function, I add on my map dome circle vectorLayer. How can I set a click (or hover) event on the added vectors for displaying their long lat coordinates? function drawService(...
2
votes
1answer
164 views

Problem with pushButton handling - pyqgis

I have made a pushButton - new window relation. Now, when I'm trying to 'link' methods with pushButtons in new window they don't react. Here is what I wrote in metod, which opens new window in ...
1
vote
1answer
3k views

Enable groupbox only when checkbox is checked - pyqgis

I have a groupbox which is always enable. I want it to be enable only when user want to edit something, so I made a checkbox for it. However, I have no idea how to 'link' if checkbox if selected with ...
1
vote
0answers
197 views

Select markers via a polygon and get the name

I created a map with OpenLayers where I am able to select markers, and make their names appear in a field. Now here is my problem: I want to be able to select markers with a polygon, draw my polygon ...
1
vote
1answer
162 views

Canceling stopping edit session in BeforeStopEditing event of ArcObjects?

I have additional data to be stored when an edit session is saved. If the storing of the data fails (it is located on an internet service) the edit session should not be saved, otherwise data would be ...
0
votes
2answers
111 views

QGIS autoupdate attributes

How to change attributes value when i move(change position) point? I don't found some information about this. Sorry for my english.
0
votes
1answer
232 views

Exporting map with arcobjects interupted by refresh event

I have developed an ArcMap extension in C# for ArcGIS 10.0 with a Form that configures the PageLayout and exports the ActiveView as PDF. There are two different ways to do that. You could use ...
10
votes
1answer
2k 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 ...
5
votes
2answers
3k 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
2answers
487 views

Enable both function on click and highlight on hover in Leaflet+cartoDB

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
60 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
605 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
2answers
2k 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
392 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 ...
4
votes
1answer
6k views

Click event doesn't work 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
505 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
158 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) { ...
2
votes
1answer
731 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
63 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 ? Is there any events that will fired when user change symbol ...
2
votes
2answers
324 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 ...