Commit 426b850a authored by Tejesh's avatar Tejesh 🖖

remove check

parent 3e102eab
Pipeline #81837 passed with stage
in 3 minutes and 12 seconds
......@@ -569,8 +569,7 @@ MapViewer.prototype.zoomHandler = function (layerName, minZoom, maxZoom) {
*/
MapViewer.prototype.fitToLayer = function (layerName, options = this.options.fitbounds) {
var layer = typeof (layerName) == 'string' ? this.gLayers[layerName] : layerName
if (layer.getBounds().isValid())
this.map.fitBounds(layer.getBounds(), options)
this.map.fitBounds(layer.getBounds(), options)
}
function dataOrURL(conf) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment