GithubHelp home page GithubHelp logo

Comments (5)

jhpoosthoek avatar jhpoosthoek commented on July 29, 2024

UPDATE:
The example at https://github.com/mapbox/TileJSON/blob/master/example/osm.layer shows that I can use minzoom, maxzoom and bounds. The minzoom and maxzoom work, but I can still browse above and below the northern and southern bounds...

from modestmaps-js.

RandomEtc avatar RandomEtc commented on July 29, 2024

There's some code currently commented out in Map.enforceLimits that might help you here: https://github.com/stamen/modestmaps-js/blob/master/src/map.js#L402

It's commented out because it's not always appropriate, and the way we store limits in providers has always been a bit of a rough edge in the MM API. Personally I'd like limits on the provider to describe tiles that exist (or are valid to generate) on the server, and then I'd like separate limits on the Map object that enforce a region of interest for a specific application.

Hope that helps!

from modestmaps-js.

jhpoosthoek avatar jhpoosthoek commented on July 29, 2024

Great, thanks! I uncommented the lines and now it works perfectly!

from modestmaps-js.

RandomEtc avatar RandomEtc commented on July 29, 2024

Wow, that never happens. Good luck! And I guess we should consider cleaning up and restoring that functionality for a future update.

from modestmaps-js.

jhpoosthoek avatar jhpoosthoek commented on July 29, 2024

I'm happily surprised too that I was able to fix that so quickly. I have to say, I really like MM ;) So thanks again!

from modestmaps-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.