Skip to content

The attribute zoom-min="2" behaves like zoom-min="1" in the xml file with rendertheme #931

Answered by devemux86
TomasJohansson asked this question in Q&A
Discussion options

You must be logged in to vote
  • The ViewPort setters must be called before creating the layers

  • The layer constructors with the custom zoom levels are needed:

MapFileTileSource mapFileTileSource = new MapFileTileSource(1, 5);
map.layers().add(new LabelLayer(map, tileLayer, new LabelTileLoaderHook(), 5));

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TomasJohansson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants