diff --git a/source/Ox.UI/js/Map/Ox.Map.js b/source/Ox.UI/js/Map/Ox.Map.js index 2a12507e..9d5dc883 100644 --- a/source/Ox.UI/js/Map/Ox.Map.js +++ b/source/Ox.UI/js/Map/Ox.Map.js @@ -381,7 +381,8 @@ Ox.Map = function(options, self) { } function addPlaceToMap(place) { - // via find, click, or new place button + // via find, click, shift-click, or new place button + Ox.print('addPlaceToMap', place) var exists = false; if (!place) { var bounds = self.map.getBounds(), @@ -398,8 +399,6 @@ Ox.Map = function(options, self) { editable: true, geoname: '', id: '_' + Ox.encodeBase32(Ox.uid()), // fixme: stupid - lat: center.lat(), - lng: center.lng(), map: that, name: '', type: 'feature', diff --git a/source/Ox.UI/js/Map/Ox.MapMarker.js b/source/Ox.UI/js/Map/Ox.MapMarker.js index 8becf1e6..6f1faa0e 100644 --- a/source/Ox.UI/js/Map/Ox.MapMarker.js +++ b/source/Ox.UI/js/Map/Ox.MapMarker.js @@ -55,12 +55,9 @@ Ox.MapMarker = function(options) { if (!that.place.selected) { if (that.map.getKey() == 'shift') { var bounds = that.map.getSelectedPlace().bounds.union(that.place.bounds), - center = bounds.getCenter(), southWest = bounds.getSouthWest(), northEast = bounds.getNorthEast(); that.map.newPlace(new Ox.MapPlace({ - lat: center.lat(), - lng: center.lng(), south: southWest.lat(), west: southWest.lng(), north: northEast.lat(),