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

0
votes
1answer
1k 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 ...
1
vote
2answers
3k 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
1answer
217 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
1answer
40 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
1answer
422 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 ...
3
votes
2answers
2k 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 ...
3
votes
1answer
197 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 ...
5
votes
3answers
7k views

Is there a On Map Move event in OpenLayers?

In my OpenLayers web app I have registered an onmousemove event which performs certain functions. What I am really after though is a way to register and handle the user panning or zooming the map. ...
2
votes
0answers
12 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 ...
5
votes
3answers
783 views

Type of event dispatched when the user double-clicks the map

I am currently working with a drawing tool for the ESRI Flex API, and every time I double-click the mouse a map service will perform a measurement and display the length of the line that I am drawing. ...
3
votes
1answer
815 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 ...
0
votes
2answers
34 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 ...
0
votes
0answers
84 views

Which events are fired when the mapscale changes? [duplicate]

Possible Duplicate: How to catch when scale is changed in ArcGIS? Are there any events which are fired when the user changes the mapscale by zooming? What I finally want to do is limiting ...
3
votes
0answers
32 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) { ...
4
votes
1answer
63 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 ...
1
vote
1answer
121 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
32 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 ...
0
votes
1answer
44 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
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
2answers
88 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 ...
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 ...
1
vote
0answers
38 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 ...
3
votes
3answers
179 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
104 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) ...
15
votes
6answers
2k views

GIS Day function ideas?

Given that today is GIS Day I was wondering what people had run/been to/ had ideas for as function for GIS day. I have seen a few I have liked but any other stories would be awesome.
1
vote
2answers
127 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 ...
2
votes
1answer
324 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
2answers
511 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
56 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 ...
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 ...
7
votes
3answers
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.
3
votes
1answer
760 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 ...
2
votes
0answers
159 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 ...
4
votes
1answer
406 views

Counting and storing events contained within polygon using ArcPy?

I have a fairly large project and I would like to automate some tasks using Python. Problem is, I don’t have any experience with Python for ArcGIS. And I rarely use ArcGIS until something big like ...
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
238 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
108 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 ...
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
138 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
89 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
2answers
3k views

Combining Hover and Click events in OpenLayers

I can specify event callbacks in an OpenLayers layer: var vectorA=new OpenLayers.Layer.Vector("A"); vectorA.events.on({ "featureselected": callback }); and I can specify event callbacks in a ...
1
vote
1answer
1k 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 ...
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
1answer
83 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. ...
7
votes
4answers
4k views

How do I stop event propagation with rightclick on Leaflet marker?

I didn't find a rightclick event in Leaflet markers so I started listening to the mousedown event. In the method that resolves this event I check if (event.originalEvent.button == 2) { ...
3
votes
1answer
353 views

Performing action upon refresh command in TOC using ArcObjects?

We are using custom layers in our plugin used in ArcScene/ArcMap. For quite some time we were trying to figure out how to hook into the event occuring when the user selects "Refresh" in the right ...
3
votes
1answer
8k views

Go to the URL when clicked on Leaflet marker

I want to implement marker click event so when user click on marker it goes to url. Url is written inside an array (a[3]). However, this is my code which doesn't work, it always goes to the link of ...
0
votes
1answer
32 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: ...
4
votes
3answers
7k views

How to implement mouse down event when the user clicks on the map?

Newbie programming in C#.net. I have a very simple desktop application in in arcmap. I'm trying to get the coordinates when a user clicks a button on a toolbar and when click the map. The toolbar is ...