On maps, only allow for creating combined places via shift-click or meta-click if the map is editable
This commit is contained in:
parent
db9c55ff5e
commit
e52ac44a1b
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ Ox.MapMarker = function(options) {
|
|||
var key = that.map.getKey(),
|
||||
place, bounds, southWest, northEast;
|
||||
if (!that.place.selected) {
|
||||
if (key == 'meta' || key == 'shift') {
|
||||
if (
|
||||
that.map.options('editable')
|
||||
&& (key == 'meta' || key == 'shift')
|
||||
) {
|
||||
place = that.map.getSelectedPlace();
|
||||
}
|
||||
if (place) {
|
||||
|
|
Loading…
Reference in a new issue