Skip to content

MaxNativeZoom #18

@MDrumm90

Description

@MDrumm90

The plugin does not work with maxNativeZoom and maxZoom settings.
Open street maps have only tiles with max zoom 18. Therefore when someone use settings like:

var osmTiles = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';

//Create the basemap and add it to the map
osmLayer= L.tileLayer(osmTiles, {
	maxZoom: 30,
	maxNativeZoom: 18,
	opacity:0.6
});

The plugin will throw errors and search for wrong tiles (X, Y, Z are wrong)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions