Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When editing a node with OpenLayersCCK widget the editing toolbar comes out at first with no tool selected,
but it really behaves as if the pan/move one (the hand) is selected.
Would seem a good idea to make this explicit by having the hand highlighted/selected by default.
I guess work is needed in the drawfeature JS
Comment | File | Size | Author |
---|---|---|---|
#2 | DrawFeatures.defaultControl.patch | 1.79 KB | strk |
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedChanging to feature request as I dont really consider this a bug. Thanks for catching this, though.
Comment #2
strk CreditAttribution: strk commentedThe attached patch implements the requested features.
I took the chance to also rewrite the nested loop used to decide which controls to allow, which sounded pretty convoluted to me.
PS: this was tested against a local copy of OpenLayers-2.9.1, which should be the same of the online API.
Comment #3
strk CreditAttribution: strk commentedSorry for changing back to bug report, was unintentional (altougth I would consider it a bug :P)
Comment #4
tmcw CreditAttribution: tmcw commentedLooks good - not sure about the validHandler array though, it seems like the kind of thing that should be a function so that down the line we might use filter() to do this loop.
Comment #5
strk CreditAttribution: strk commentedI won't be modifying the patch. Improvements are always good, but blocking on it isn't :)
Comment #6
tmcw CreditAttribution: tmcw commentedCommitted: http://drupal.org/cvs?commit=386296