From 6534e4a07fe35c45f88a22d9283bab90ad224465 Mon Sep 17 00:00:00 2001 From: Dimas Date: Fri, 6 Oct 2023 16:00:41 +0700 Subject: [PATCH] Change imagewms to tilewms --- bims/static/js/views/olmap_layers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(