/** * check if map zoom is given coorect * * @return bool */ protected function _checkZoom() { $zoom = $this->_mapData->getZoom(); $minZoom = $this->_tileSource->getMinZoom(); $maxZoom = $this->_tileSource->getMaxZoom(); if (is_null($zoom) || !is_numeric($zoom) || $zoom < $minZoom || $zoom > $maxZoom) { return false; } return true; }