From ee4e7113d2fb032c5e322d74d54fc302d3c210a0 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 9 Sep 2020 09:47:32 +0200 Subject: [PATCH] Add TileJSON interface --- .../components/aol/item-layers/item-layers.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts index 8543948..4c006eb 100644 --- a/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts +++ b/projects/common-map/src/fm-map/components/aol/item-layers/item-layers.component.ts @@ -11,7 +11,7 @@ import * as proj from 'ol/proj'; import * as loadingstrategy from 'ol/loadingstrategy'; import * as style from 'ol/style'; import {Tile,Layer,Image} from 'ol/layer'; -import {XYZ,ImageStatic,OSM,BingMaps,TileWMS,TileArcGISRest} from 'ol/source'; +import {XYZ,ImageStatic,OSM,BingMaps,TileWMS,TileArcGISRest,TileJSON} from 'ol/source'; import {Vector as VectorSource} from 'ol/source'; import { Vector as VectorLayer } from 'ol/layer'; import VectorTileSource from 'ol/source/VectorTile'; @@ -212,6 +212,11 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange layer = new Tile({ source: source }); break; } + case 'TileJSON': { + let source = new TileJSON(data.options); + layer = new Tile({ source: source }); + break; + } case 'TileArcGISRest': { let source = new TileArcGISRest(data.options); layer = new Tile({ source: source });