forked from 0x2620/oxjs
shift click to join places, part 3
This commit is contained in:
parent
bf64450ada
commit
6162b0cc33
2 changed files with 5 additions and 10 deletions
|
|
@ -58,14 +58,14 @@ Ox.MapMarker = function(options) {
|
|||
center = bounds.getCenter(),
|
||||
southWest = bounds.getSouthWest(),
|
||||
northEast = bounds.getNorthEast();
|
||||
that.map.newPlace({
|
||||
that.map.newPlace(new Ox.MapPlace({
|
||||
lat: center.lat(),
|
||||
lng: center.lng(),
|
||||
south: southWest.lat(),
|
||||
west: southWest.lng(),
|
||||
north: northEast.lat(),
|
||||
east: northEast.lng()
|
||||
});
|
||||
}));
|
||||
} else {
|
||||
that.map.options({selected: that.place.id});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue