We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0848a3c commit 9e778d4Copy full SHA for 9e778d4
server/server.go
@@ -16,7 +16,7 @@ type layers []Layer
16
// FilterByZoom returns layers that that are to be rendered between a min and max zoom
17
func (ls layers) FilterByZoom(zoom int) (filteredLayers []Layer) {
18
for _, l := range ls {
19
- if l.MinZoom <= zoom && l.MaxZoom >= zoom {
+ if (l.MinZoom <= zoom || l.MinZoom == 0) && (l.MaxZoom >= zoom || l.MaxZoom == 0) {
20
filteredLayers = append(filteredLayers, l)
21
}
22
0 commit comments