On maps, only allow for creating combined places via shift-click or meta-click if the map is editable

This commit is contained in:
rlx 2012-09-05 09:29:06 +00:00
parent db9c55ff5e
commit e52ac44a1b

View file

@ -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) {