1
vote
0answers
45 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 ...
0
votes
0answers
25 views

OpenLayers 2.13.1, how could I make a click, get coordinates, send it to geoserver function?

I am trying to make this very simple function, at the moment I am quite stuck when I have to place the markers as start/end points. I would like to add a marker as start and another as end and then do ...
3
votes
1answer
70 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
146 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
50 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 ...
0
votes
1answer
189 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
272 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 ...
1
vote
0answers
22 views

How to hide infoWindow while using measure tool and showing it back after using it ArcGis JavaScript API [duplicate]

I have an infoWinfow set on the click event of the map. I want to disable this event when I'm using the measurement tool and then enable it back after the measurement tool is used. So far I've done ...
1
vote
0answers
251 views

Leaflet Event Craziness: jQuery click events don't propagate to L.DomEvents

I noticed that calling .click() on jQuery selected DOM elements in Leaflet ( such as anchor icons ) will not do anything -- the click event isn't propagated to the events created with L.DomEvents. For ...
0
votes
1answer
1k 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 ...
1
vote
1answer
136 views

JS API - onDrawEnd firing twice

I have a simple editing application with the following code: startEditing : function(template) { var drawingTool = template.template.drawingTool; switch(drawingTool) { case ...
1
vote
1answer
305 views

ESRI JS API - How to get event object from Draw Toolbar onDrawEnd

I am using the Draw Toolbar in the Esri Javascript API v3.4 and connecting to the onDrawEnd event using aspect.after(drawingToolbar, "onDrawEnd", drawEndHandleFunction, true); I am using the Draw ...
0
votes
1answer
504 views

ESRI JS API - don't trigger onClick event when panning Map

I have a custom onClick handler for my map that is meant to add a point wherever the map is clicked. I'm finding that this function is triggered even when I click the map to pan. Is it possible to ...
1
vote
2answers
4k views

SelectFeature not working in OpenLayers

I'm still sort of new to openlayers, but I've been able to set up a map which reads in a KML, loops through the different regions contained therein, and draws those polygons on a vector layer overtop ...
2
votes
5answers
3k views

Event listeners after each plotting of a point of a Polygon Vector in OpenLayers

I am quite new to OpenLayers. I have a polygonLayer for users to draw polygon vectors. The plotting feature is working fine. polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer"); ...