diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-24 12:09:35 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-24 12:09:35 +0100 |
commit | f8bbef13fe764d7592acb9e2327f495ab36c1ee3 (patch) | |
tree | b4d680c57f5b9021d301677e27bf089e1f65572b /www/js/map-OpenLayers.js | |
parent | b8a562059d6073c0a30b7746d08d6c1a671af8b8 (diff) |
display reposition button on starting map drag rather than on ending
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 0c89501..ae244d7 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -397,12 +397,12 @@ OpenLayers.Control.ActionAfterDrag = OpenLayers.Class(OpenLayers.Control, { ); this.handler = new OpenLayers.Handler.Drag( this, { - 'up': this.onDragEnd //could be also 'move', 'up' or 'out' + 'move': this.onDragStart }, this.handlerOptions ); }, - onDragEnd: function(evt) { + onDragStart: function(evt) { // do something when the user clic on the map (so on drag start) console.log('drag ended'); if ( $('#confirm').css('display') == 'block' ) { |