Bounding box for OpenLayers Map
up vote
-1
down vote
favorite
I am currently using:
var extent = map.getView().calculateExtent(map.getSize()); to get the extents of the map. It returns four members of an array I assume are the lower left and upper right coordinates of the map.
I want to be able to determine the four corner coordinates of a rotated map. While using leaflet, I can use a map.getBounds().getSouthWest() and the like to determine the corners.
Is there an equivalent method to determine the corners for OpenLayer?
openlayers-5
add a comment |
up vote
-1
down vote
favorite
I am currently using:
var extent = map.getView().calculateExtent(map.getSize()); to get the extents of the map. It returns four members of an array I assume are the lower left and upper right coordinates of the map.
I want to be able to determine the four corner coordinates of a rotated map. While using leaflet, I can use a map.getBounds().getSouthWest() and the like to determine the corners.
Is there an equivalent method to determine the corners for OpenLayer?
openlayers-5
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am currently using:
var extent = map.getView().calculateExtent(map.getSize()); to get the extents of the map. It returns four members of an array I assume are the lower left and upper right coordinates of the map.
I want to be able to determine the four corner coordinates of a rotated map. While using leaflet, I can use a map.getBounds().getSouthWest() and the like to determine the corners.
Is there an equivalent method to determine the corners for OpenLayer?
openlayers-5
I am currently using:
var extent = map.getView().calculateExtent(map.getSize()); to get the extents of the map. It returns four members of an array I assume are the lower left and upper right coordinates of the map.
I want to be able to determine the four corner coordinates of a rotated map. While using leaflet, I can use a map.getBounds().getSouthWest() and the like to determine the corners.
Is there an equivalent method to determine the corners for OpenLayer?
openlayers-5
openlayers-5
asked Nov 7 at 17:26
Gary Whitcher
114
114
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53194695%2fbounding-box-for-openlayers-map%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown