Skip to main content

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Can the properties of the Snap event tell why sanp event lister call back does get executed despite snapping occures to edges and vertices

I register for Draw, Modify and Snap interactions as shown below in the code. The interactions added to the map are working except the Snap. to debug this issue, i printed the contents of this.#...
Amr's user avatar
  • 43
2 votes
2 answers
147 views

Using marker drag event instead mouseover on each polygan layer in Leaflet?

I want to use this leaflet example: https://leafletjs.com/examples/choropleth/example.html with some changes: add a marker to map. i done it like this: var center=[ 37.8, -96 ]; marker = new L....
mrmiremad's user avatar
0 votes
1 answer
139 views

Handling layer events according to their z-index in Leaflet?

I am adding layers to a map, one which uses this third party Leaflet extension for UTF grids: https://github.com/danzel/Leaflet.utfgrid. The layer with the UTF grid has a higher z-index and has a ...
Rob Dennett's user avatar
2 votes
1 answer
386 views

Events while one loads and when it finishes loading vector layer in OpenLayers v6

There was a code with OpenLayers v5, which showed a "loading" while loading a layer and the same (loading) was removed when the layer is already being shown on the map. That's because I have ...
user12538529's user avatar
2 votes
1 answer
504 views

Prevent OpenLayers page scrolling when using the mouse wheel on map buttons or overlays?

I have an OpenLayers 7 map. Let's take the Popup example. When I use the mouse scroll wheel over the map, the map zooms in and out as expected. However, when the mouse scroll wheel occurs over the ...
Jose Gómez's user avatar
2 votes
0 answers
36 views

How to capture featureDeleted() info in PyQGIS3

I have a system of scratch layers generated from table data in QGIS. Users may interact with the attribute tables directly (not good practice, but I did not design the system) or through a PyQt5 UI. ...
CNIDog's user avatar
  • 479
2 votes
1 answer
172 views

Creating event in PyQGIS that notices that group of layers is selected

I have these groups of layers with their layers inside in QGIS: I have an event in PyQGIS that notices when I select a layer like RODAL or MONTE: iface.layerTreeView().currentLayerChanged.connect(...
Andrés Rodríguez's user avatar
1 vote
1 answer
314 views

How to execute automatic click event of ol.Control.Toggle button

I'm using a button in Openlayers ol-ext ol.control.toggle In a certain event, I set this button as active, however, it does not execute the click event. Blockquote button_draw_select.setActive(true) ...
user12538529's user avatar
2 votes
1 answer
215 views

Get properties of QgsVertexMarker upon mouse click

I'm looking for a way to trigger an event upon clicking on a QgsVertexMarker object which is located on a mapCanvas. In the official docs, there is a mousePressEvent method which I actually re-...
druid's user avatar
  • 63
0 votes
0 answers
765 views

Prevent map click on draggable MarkerCircle dragend

I need to add new draggable CircleMarker to the map when a user clicks on the map. Then the user should be able to move the circles around to change their position. The code below works adding new ...
Stefano's user avatar
  • 121
1 vote
1 answer
835 views

How to avoid popup open after drag

I implemented a draggable CircleMarker with popup, however when the circle is moved the popup opens right away. How can I avoid that? Is there a way to cancel the popupopen event? [Edit]: Ideally the ...
Stefano's user avatar
  • 121
1 vote
1 answer
2k views

Leaflet ignore click event when popup is open

I am building a tool allowing to edit some GeoJSON props on a popup opened over the GeoJSON element/layer. When the popup is closed the props are shown in a fixed tooltip over the polygon. However, ...
Stefano's user avatar
  • 121
2 votes
1 answer
518 views

Sensitivity of OpenLayers touch pointermove / click

We don't want selection and highlight to happen on pan and pinch inputs but only with click events. However, we are having a hard time to trigger the click event on touch screens. Any more than the ...
Dennis Bauszus's user avatar
0 votes
0 answers
145 views

Unregister listeners when calling map.removeControl

I use ol-ext Profile tool to display profiles along vector lines. When I call map.removeControl(profil); profil = null; to remove the profil, the listeners associated with the tool remain registered, ...
seb007's user avatar
  • 255
6 votes
2 answers
2k views

Make polygon of GeoJSON layer unclickable after first click in Leaflet

I have added a GeoJSON file consisting of multiple polygons to a leaflet map. Now after clicking on any of those polygons I don't want Leaflet to accept any subsequent click events for this specific ...
René K's user avatar
  • 187
6 votes
1 answer
4k views

Capturing CTRL+Key In KeyPressEvent in PyQGIS QgsMaptool

I created a Line with help of QgsMapTool and I'm able to capture the single key in keyPressEvent like this: class buildingEditTool(QgsMapToolEdit): def keyPressEvent(self, event): ...
Velugoti Venkateswarlu's user avatar
1 vote
1 answer
208 views

Layer events loading GeoJSON feature geometries using Leaflet

I am using Leaflet 1.7.1. I want to add simple tooltips to poly-layer after they are constructed. I tried everything. External onEachFeature() function featureGroup. But it seems that events the ...
RubbelDeCatc's user avatar
2 votes
1 answer
2k views

Stop propagation of 'drag' event for marker in Leaflet

Is there a possibility to prevent Leaflet dragstart event from triggering just moment after start dragging a marker. According to Leaflet documentation all you have to do is: L.DomEvent.on(div, 'click'...
hamzarh's user avatar
  • 131
2 votes
1 answer
2k views

Tooltip for polygon disappears when hovering over a marker placed on top of that polygon in Leaflet

This seems like it should be a common enough problem but somehow I cannot find the solution anywhere. I have a layer full of polygons (polygons representing districts of a city), and a layer full of ...
Dhaval Shukla's user avatar
1 vote
1 answer
695 views

Mouse-over event behavior problem when browser window is in focus

I have an ESRI Web Appbuilder web app with custom widgets and am having a weird issue when trying to register mouse-over events on a feature layer. I noticed that when the Chrome Dev Tools are closed ...
GeoGene's user avatar
  • 53
1 vote
0 answers
225 views

What controls the coordinate value in the singleclick MapBrowserEvent argument?

I am trying to understand what is affecting the "singleclick" callback argument: MapBrowserEvent in my OpenLayers map (v6.4.3). While I always receive the pixel coordinates back, I don't ...
Jay Cummins's user avatar
  • 14.7k
2 votes
1 answer
1k views

Leaflet: mutually exclusive overlay layers: "overlayadd" event firing twice

LeafletJS. I am trying to have two overlay layers be mutually exclusive. Full example here on jsfiddle I guess it comes down to this bit of code: map.on('overlayadd', function(event) { ...
Buzz's user avatar
  • 23
0 votes
1 answer
1k views

Enable dragging on leaflet map for popup div within map

I'm sorry for my English, I just study it. Is it possible to save map-draggable functionality on popup within leaflet map? I mean move the map while dragging(clicking and moving or tuching on mobile) ...
Александр Горюшкин's user avatar
3 votes
1 answer
2k views

Keeping popup text open after marker refresh in Leaflet?

I have written a JavaScript code (I just got started) which queries the Opensky REST API every 10 seconds. After I collect the data, I plot it through Leaflet.js. For each item I add a popup text box ...
Federico Gentile's user avatar
2 votes
2 answers
183 views

arcgisscripting.ExecuteError: ERROR 000223: Cannot extract event table properties Failed to execute (MakeXYEventLayer)

import arcpy import sys import os #arcpy.env.workspace = "C:\\Test\\addresspoint" #arcpy.env.overwriteOutput = True input_database = "C:\\Test\\addresspoint\\connection\\Test.sde" out_layer_name = "...
LoveGIS's user avatar
  • 41
1 vote
0 answers
92 views

Route Events Not Updating

I have created a route events point field based on a table. When using version 10.2 on a previous computer, the route events would update when the values in the table were changed. You would ...
lctx's user avatar
  • 11
0 votes
1 answer
142 views

Event layer not editable when using ModelBuilder in ArcMap

I have created a model using ModelBuilder in ArcMap where points are automatically plotted based on coordinates. I have noticed that the layer cannot be edited and if I try I get the following message;...
MSS's user avatar
  • 49
1 vote
0 answers
356 views

Leaflet map on click detect layer

I added a click event to the map. But when I click on a layer on the map, I want to disable this click event. I have to write a condition in the map click event. How can I find if there is a layer ...
vciloglu's user avatar
  • 119
1 vote
1 answer
489 views

How to catch the event the mousePressEvent on Esri :: ArcGISRuntime :: Graphic?

All events mouse protected. I tried to do it via eventFilter and using QObject :: connect, but the result false. How do I catch a click event on Graphic? What I tried: ... void ViewshedGeoElement:...
Ivan Triumphov's user avatar
1 vote
1 answer
705 views

Displaying Route Events using ArcGIS Pro

In ArcMap you can add event table and route reference feature class and when you right click on event table there is an option to display route events. I am struggling to find that option in ArcGIS ...
user4906240's user avatar
  • 1,078
2 votes
1 answer
7k 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 ...
Kyle Pennell's user avatar
2 votes
0 answers
204 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 ...
Sn0W's user avatar
  • 155
2 votes
1 answer
5k 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 to be enabled again. Something like ...
Goran's user avatar
  • 385
1 vote
1 answer
901 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 ...
JoeBe's user avatar
  • 1,230
2 votes
0 answers
686 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 (...
JWH2006's user avatar
  • 121
0 votes
1 answer
123 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)...
Hank's user avatar
  • 325
1 vote
1 answer
508 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 ...
NettaB's user avatar
  • 1,956
1 vote
0 answers
35 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? ...
Achilles's user avatar
2 votes
3 answers
3k 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 ...
N-ate's user avatar
  • 121
1 vote
0 answers
778 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({ ...
Oliver Adam's user avatar
0 votes
1 answer
2k 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 ...
Stephen Lead's user avatar
  • 21.2k
2 votes
1 answer
215 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 ...
LSG's user avatar
  • 537
1 vote
1 answer
1k 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 ...
AhammadaliPK's user avatar
0 votes
1 answer
972 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 ...
Zach's user avatar
  • 61
12 votes
3 answers
17k 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 ...
WOW's user avatar
  • 327
1 vote
0 answers
347 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 ...
Ziyuan's user avatar
  • 121
0 votes
2 answers
7k 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(...
Maria Gomez's user avatar
1 vote
1 answer
582 views

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

I have an Access database table that I am dumping data into, and I created an Events layer from that, but I have and will continue to update the table. I updated the table and created a new Events ...
mrgeo's user avatar
  • 213
7 votes
1 answer
111 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 ...
Barbarossa's user avatar
  • 5,817
4 votes
1 answer
63 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 ...
Julie's user avatar
  • 41