forked from 0x2620/oxjs
shift click to join places, part 4
This commit is contained in:
parent
6162b0cc33
commit
466293b2f9
2 changed files with 2 additions and 6 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue