Ticket #2464 (closed bug: fixed)
getResolutionFromScale should return undefined resolution for falsey scale
| Reported by: | tschaub | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | Util | Version: | 2.8 |
| Keywords: | Cc: | ||
| State: | Commit |
Description
Currently, OpenLayers.Util.getResolutionFromScale returns Infinity if scale is null or undefined. This causes trouble for code that checks if the returned resolution is truthy.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

