| 242 | | |
| 243 | | |
| | 242 | == TMS Layers == |
| | 243 | |
| | 244 | Setting the resolutions array in the traditional manner does not work with TMS layers by design. Instead of removing values from the resolutions array to restrict zoom levels (for unrendered TMS layers or other reasons), include both a serverResolutions array and a resolutions array. The serverResolutions array should include all resolutions available (whether rendered or not) on the server, while the resolutions array should have all resolutions that are ''presented to the user'' - therefore the resolutions array should be a ''subset'' of serverResolutions. For instance, |
| | 245 | |
| | 246 | {{{ |
| | 247 | resolutions: [0.17578125, 0.087890625, 0.0439453125], |
| | 248 | serverResolutions: [0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125], |
| | 249 | }}} |