shift click to join places, part 5

This commit is contained in:
rolux 2011-06-14 16:48:46 +02:00
parent 466293b2f9
commit b5bc867273

View file

@ -58,6 +58,15 @@ Ox.MapMarker = function(options) {
southWest = bounds.getSouthWest(), southWest = bounds.getSouthWest(),
northEast = bounds.getNorthEast(); northEast = bounds.getNorthEast();
that.map.newPlace(new Ox.MapPlace({ that.map.newPlace(new Ox.MapPlace({
// fixme: duplicated, see Ox.Map.js
alternativeNames: [],
countryCode: '',
editable: true,
geoname: '',
id: '_' + Ox.encodeBase32(Ox.uid()), // fixme: stupid
map: that,
name: '',
type: 'feature',
south: southWest.lat(), south: southWest.lat(),
west: southWest.lng(), west: southWest.lng(),
north: northEast.lat(), north: northEast.lat(),