Skip to content
This repository

add convenience method for setting provider zoom limits #9

Closed
RandomEtc opened this Issue · 0 comments

1 participant

Tom Carden
Tom Carden

Something like:

com.modestmaps.MapProvider.prototype.setZoomRange = function(minZoom, maxZoom) {
    this.topLeftOuterLimit = this.topLeftOuterLimit.zoomTo(minZoom);
    this.bottomRightInnerLimit = this.bottomRightInnerLimit.zoomTo(maxZoom);
}

It's never completely clear whether this should be set on Map or on MapProvider, but in general you'd use this on MapProvider to tell it that tiles only exist between certain zoom levels.

A similar function on Map would probably also want to set panning limits as well as zoom limits. Map will already respect zoom limits set by the provider.

Ansis Brammanis ansis referenced this issue from a commit
Tom MacWright tmcw Fixes #9 - this tags a v1.1.0 of Modest Maps.
Older work on the nice grid layout is stashed in the truescale
branch, while this reverts to a per-tile, offset-first
system that's compatible with firefox IE
89c5b68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.