forked from 0x2620/oxjs
minor changes
This commit is contained in:
parent
2bf92c982a
commit
1bf1eae034
5 changed files with 25 additions and 16 deletions
|
|
@ -65,10 +65,10 @@ Ox.MapPlace = function(options) {
|
|||
w: new google.maps.LatLng(that.lat, that.west),
|
||||
});
|
||||
// fixme: use bounds.toSpan()
|
||||
that.sizeNorthSouth = (that.north - that.south) *
|
||||
Ox.EARTH_CIRCUMFERENCE / 360;
|
||||
that.sizeEastWest = (that.east + (that.west > that.east ? 360 : 0) - that.west) *
|
||||
Ox.getMetersPerDegree(that.lat);
|
||||
that.sizeNorthSouth = (that.north - that.south)
|
||||
* Ox.EARTH_CIRCUMFERENCE / 360;
|
||||
that.sizeEastWest = (that.east + (that.west > that.east ? 360 : 0) - that.west)
|
||||
* Ox.getMetersPerDegree(that.lat);
|
||||
that.area = Ox.getArea(
|
||||
{lat: that.south, lng: that.west},
|
||||
{lat: that.north, lng: that.east}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue