Jump to the following:

OS uses cookies to improve this website. Read about cookies

  • twitter
  • Google+
  • facebook

OpenSpace Forum

Setting zoom levels

alanthurbon
    • 1 September 2017 07:47AM
    • 108 Views
    • Visits: 11
    • Discussions: 3
    • Responses: 2
    • Registered: 2 February 2015 12:05AM
    • Last active: 26 September 2017 08:38PM

    How can I change the number of levels on the zoom bar? I saw somewhere in the OpenLayers listings that the default is 16, but mine is 11, and one example site has 13.
    Is it possible to set the map scale for each zoom level?
    I spent some time going through the code without success.

    Thanks

    1 Response

    alanthurbon
      • 26 September 2017 08:41PM
      • 90 Views
      • Visits: 11
      • Discussions: 3
      • Responses: 2
      • Registered: 2 February 2015 12:05AM
      • Last active: 26 September 2017 08:38PM

      I have found the answer, it was there all along. The code is generated by Web Map Builder and is an option string called resolutions.

      Please login or sign-up to respond to this discussion.

      © Ordnance Survey 2016