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
23 views

Sketch event during drawing interaction in Openlayers 3?

I'm using OpenLayers-3 form my application. In openLayers-2 we can define a sample code as follow: function drawDone(){ ... } function putPoint(){ ... } function sketchModified(){ ... } ...
0
votes
0answers
23 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
72 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. ...
1
vote
1answer
99 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 ...
1
vote
1answer
84 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
53 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
18 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
73 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
52 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
20 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
84 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
30 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
68 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
88 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
56 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 ...
0
votes
0answers
7 views

Arcobjects Java 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
103 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
129 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 ...
1
vote
1answer
340 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
1k 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" ...
0
votes
0answers
203 views

OpenLayers 2 - prevent feature from being drawn on right click

My goal is this: prevent features (points) from being added to the vector layer with the DrawFeature when the map is right clicked. Only left clicks should add features to the vector layer of the map. ...
1
vote
0answers
65 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 ...
5
votes
1answer
2k 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.
2
votes
0answers
397 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
474 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
190 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
335 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 ...
0
votes
0answers
58 views

Openlayers map changelayer event firing twice for params

I have registered changelayer event of my map. var registerEvents = function () { map.events.register("changelayer", null, onMapLayerChanged, true); }; var onMapLayerChanged = ...
0
votes
0answers
71 views

openlayers clickevent for undercoat features polygon on multiple vector layers

I'm using two timers that give me coordinates and some data for my features (Sensors(de Sensoreinheit) & receiving unit (de Empfangseinheit)), deleting all features on the Layers and placing new ...
0
votes
0answers
81 views

How to add custom events to OpenLayers-based API?

I am woking on a GIS API built on top of OpenLayers. I have a class called xgis.group, which represent a group of layers. I want to add an event that can be triggered when a group is added. For ...
2
votes
1answer
286 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
26 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
40 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
87 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
132 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 ...
1
vote
0answers
1k 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 ...
3
votes
1answer
145 views

Is there a way to know if an error occurred while loading a WMS layer, in OpenLayers 2?

First of all, I already asked this question in stackoverflow. I don't want to spam by asking again here. But I think the question fits better in gis.stackexchange. I am sorry for the replication. Feel ...
0
votes
1answer
316 views

Unregistering OpenLayers events?

map.events.register('click', map, fucntion(e){alert('on')} ); map.events.unregister('click', map, fucntion(e){alert('off')} ); Looks easy enough but un-registering just won't trigger. I ...
0
votes
2answers
2k 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 ...
3
votes
0answers
138 views

Leaflet Marker Dragend Bug/Difficulty

I am having a problem with leaflet markers. The problem is that when I drag a marker with a lower z-index under another marker with a higher z-index and let it go, it makes another marker. I have a ...
2
votes
1answer
1k views

register to event in openlayers 3

I have a web application in openlayers and I am starting to rewrite it to openlayers 3. In the application i have some features that i need to delete/move/add/edit the features then to save it to the ...
0
votes
0answers
57 views

Don't cancel the click event on a SelectFeature

On my OpenLayers map I have a custom Control that has a ClickHandler. I also have a SelectFeature on one of my layers. I need the ClickHandler to fire even if a SelectFeature is clicked. I tried: ...
0
votes
1answer
260 views

Open Layers button event

I'm using OpenLayers 2:10 Beginers Guide ebook. This code is APRA create a button click event in an opacity and zoom the map. But already rewritten several times and does not work. Nothing appears. ...
1
vote
0answers
103 views

ArcPad Jscript ThisEvent.Object, autofill form with multiple pages

I have a script that I'm trying to use to autofill the controls of an ArcPad form with controls on multiple pages. The 'autofill()' function is referenced in the form's onload event and I would like ...
1
vote
2answers
3k views

how does one reset map.fitbounds (zoomtofeature()) to the original zoom?

I have a lovely map setup using Leaflet with MapBox tiles (only). It is a United States map with polygons for each state with an onclick event to zoomToFeature. The basic zoomToFeature() function ...
1
vote
1answer
715 views

CartoDB.js - Accessing table fields in hover function

I am new to CartoDB.js and javascript in general, and I am attempting to highlight polygons in response to a mouse hover. My plan of attack attempts to utilize one of the interesting templates ...
0
votes
1answer
681 views

ESRI JS API Can I attach other events to to the map object

I asked this over on the ESRI forum but it didn't get any traction. I have an app that I'm designing specifically for mobile. At one point in its usage, a user needs to pan and zoom to a location and ...
0
votes
0answers
1k views

Right click context menu in OpenLayers 2

My code is this in Openlayers 2 I'm displaying two layers in a single map one with the world map and the other with my node information .. When I right click(on node layer only) I want to display ...
2
votes
1answer
510 views

OpenLayers featureclick event does not work with named graphic (graphicName)?

OpenLayers 2.13. (and 2.13.1) I have been trying to make featureclick event working with vector layers and named graphic features. It works with externalGraphic, but not named graphic (graphicName: ...