diff --git a/bims/static/js/views/olmap_layers.js b/bims/static/js/views/olmap_layers.js index faef7509e..9f6068424 100644 --- a/bims/static/js/views/olmap_layers.js +++ b/bims/static/js/views/olmap_layers.js @@ -206,8 +206,8 @@ define(['shared', 'backbone', 'underscore', 'jquery', 'jqueryUi', 'jqueryTouch', serverType: 'geoserver', transition: 0 }; - self.biodiversitySource = new ol.source.ImageWMS(biodiversityLayersOptions); - self.biodiversityTileLayer = new ol.layer.Image({ + self.biodiversitySource = new ol.source.TileWMS(biodiversityLayersOptions); + self.biodiversityTileLayer = new ol.layer.Tile({ source: self.biodiversitySource }); self.initLayer(