Closed (fixed)
Project:
Openlayers
Version:
7.x-2.0-beta11
Component:
OL Behaviors
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 May 2012 at 06:26 UTC
Updated:
31 Jan 2015 at 18:49 UTC
Jump to comment: Most recent

Comments
Comment #1
GMahe commentedok I figured out for the shape modification but not for the delete part.
Just select shape modification and click on the point and click again on the point to move it.
if anyone know if there is a way or do I have to edit the code to do it ?
thx
Comment #2
nirad commentedYou have to choose the first icon on the upper left (the directional arrows for panning), then click on the point you want to delete, and the hit the delete key on your keyboard. This took me a while to figure out, and isn't very intuitive, IMHO.
Personally, I would like to just have the option to create a single point, and if a new point is created it deletes the previous one.
Comment #3
GMahe commentedOhhhhhh man it was that easy ^^
thanks you Nirad you help me a lot :)
And yes it would be great to limit to one point on the map, maybe on the next update I hope :)
Comment #4
tryitonce commentedYes, please single point limitation - subscribing!!!
... and / or removing misplaced points - may be a clear entry button in the meantime.
Comment #5
polThis feature is in the dev version ;-) see http://drupal.org/node/1630836
I close, feel free to reopen.
Comment #7
Metasequoia commentedHow can I remove a geometry on a Mac? The Mac keyboard has no 'delete' key and the key combination 'function + backspace' is not working.
Comment #8
GMahe commentedWell I'm using a mac and it's working fine, on chrome and firefox!
Just click one on the geometry, wait like 1s and if you move your cursor you will see a new cursor appear, then you can move it or delete it by pressing fn and delete.
Comment #9
Metasequoia commentedI don't get it. it's not working for me. I tried with safari and chrome. i used the move tool and was able to move a geometry point. but I cannot delete it with the combination fn + backspace. and no new cursor appears. i have drupal 7.22 + openlayers module 7.x-2.0-beta7+8-dev installed.
Comment #10
GMahe commentedIs it working if you delete text using "fn+delete" on you mac or it's only in openlayers ?
I'm using openlayer beta 7 but I tried on the last dev version (10) and it's working as well.
for imformation I'm under OSX 10.6.8
Comment #11
Metasequoia commentedIt's only in the OpenLayers module. But I am a bit confused. Are you talking about the 'backspace' key (the one with the leftheaded arrow) or do you have a special 'delete' key on your keyboard? I tried it with the combination 'function+backspace' with no success. OSX 10.8.4
Comment #12
GMahe commentedyeah I'm speaking about the key above the enter key.
it's pretty weird that it's not working, is it really working on a normal page ? can you really remove the previous caracters using fn-delete on a normal text ?
Comment #13
Metasequoia commentedyes it's definitely working everywhere else.
just delete removes the previous character
fn+delete removes the next character
but it's not working with removing OL geometries in Drupal. strange, indeed...
Comment #14
Metasequoia commentedok, it's working now. I updated the module to 7x-2.0-beta7. previously I had the dev version (7.x-2.0-beta7+8-dev) installed. so there is obviously a bug in that dev version. thanks for your support Namari!
Comment #15
GMahe commentedyeah pretty weird !
maybe you should have a look on the library openlayers.js in the library file and change the value of KEY_BACKSPACE: 8, to another value.
Have a look on this page to get the key code :
http://instructional1.calstatela.edu/dweiss/Psy409/key_codes.htm
Try with a different key to see if it's really working !
before you do that have a look on your console to see if there are errors, an error in JS can block all your JS scripts !
Comment #16
GMahe commentedOh really ^^
Yeah that a really bad update !
For next time, never forget to update your module if there is a bug like this :)
Comment #16.0
GMahe commentedfound out one of the solution
Comment #17
petr illekHi. I've latest version 7.x-2.0-beta11 and can't delete point, paths or geometry points. I'm runing OSX Yosemite with latest Chrome/Safari. Is there anything I can test to provide more useful description of my problem?
When I try to pres the FN+Backspace combo I got this error in JS console. I try to install jQuery update, but it didn't help.
Uncaught TypeError: Cannot read property 'unselectAll' of undefined openlayers_behavior_geofield.js?nerfeu:39controls.push.OpenLayers.Control.ModifyFeature.handleKeypress openlayers_behavior_geofield.js?nerfeu:39OpenLayers.Handler.OpenLayers.Class.callback OpenLayers.js:205OpenLayers.Handler.Keyboard.OpenLayers.Class.handleKeyEvent OpenLayers.js:647(anonymous function)
Thank you for any advice.
Comment #18
petr illekI've "fixed" the problem by downgrading OpenLayers library from version 2.13 to version 2.12. Points now can be deleted.
Are there some big differences between these version i need to be aware of?
Comment #19
tgeller commentedThis has been taken up in another issue: https://www.drupal.org/node/1350320 . (Sorry, forget the markup to reference other issues on drupal.org.)