Skip to content

Commit

Permalink
Use single tile WMS for the overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Mar 13, 2019
1 parent 3cfdd63 commit dd4b330
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/src/Themes.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import WMTSCapabilities from 'ol/format/WMTSCapabilities.js';
import TileWMS from 'ol/source/TileWMS.js';
import ImageWMS from 'ol/source/ImageWMS.js';
import WMTS, {optionsFromCapabilities} from 'ol/source/WMTS.js';
import TileLayer from 'ol/layer/Tile.js';
import ImageLayer from 'ol/layer/Image.js';

import constants from './constants.js';

Expand Down Expand Up @@ -159,8 +160,8 @@ export function getOverlayLayers(layerNames) {
* @hidden
*/
export function createWMSLayer(config, ogcServer) {
const layer = new TileLayer({
source: new TileWMS({
const layer = new ImageLayer({
source: new ImageWMS({
url: ogcServer.url,
projection: undefined, // should be removed in next OL version
params: {
Expand Down

0 comments on commit dd4b330

Please sign in to comment.