-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specifying the map's initial maxBounds in a different gcs.
If the bounds are known in a gcs other than the interface gcs, they had to be converted first. This change makes it easier to initialize a map with a stereographic projection, where the unitsPerPixel can be specified to determine the scope of the area shown (since it could be infinite). For example, var gcs = '+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.449 +units=m +no_defs'; var unitsPerPixel = 10000; geo.map({gcs: gcs, maxBounds: {left: -unitsPerPixel * 128, right: unitsPerPixel * 128, bottom: -unitsPerPixel * 128, top: unitsPerPixel * 128, gcs: gcs}, unitsPerPixel: unitsPerPixel });
- Loading branch information
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters