MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / withinZoomBounds

Function withinZoomBounds

src/mapml/layers/MapLayer.js:347–349  ·  view source on GitHub ↗
(z)

Source from the content-addressed store, hash-verified

345 const minZoom = queryLinks[i].extent.zoom.minZoom,
346 maxZoom = queryLinks[i].extent.zoom.maxZoom,
347 withinZoomBounds = (z) => {
348 return minZoom <= z && z <= maxZoom;
349 },
350 bounds = queryLinks[i].getBounds();
351
352 if (bounds.contains(location) && withinZoomBounds(zoom)) {

Callers 2

isVisibleMethod · 0.85
MapLayer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected