Leave as experimental until spec is finalized

This commit is contained in:
Tim Schaub
2021-08-29 15:40:20 -06:00
parent 4099f60779
commit 58cf9f5f6d
6 changed files with 19 additions and 8 deletions

View File

@@ -3,7 +3,9 @@ layout: example.html
title: OGC Map Tiles (Geographic)
shortdesc: Rendering map tiles from an OGC API Tiles service.
docs: >
The OGC API Tiles specification describes how a service can provide map tiles.
The <a href="https://ogcapi.ogc.org/tiles/">OGC API Tiles</a> specification describes how a service can provide map tiles. Because the specification
has not yet been finalized, the <code>OGCMapTile</code> source is not yet part of the stable API.
tags: "ogc"
experimental: true
---
<div id="map" class="map"></div>

View File

@@ -3,7 +3,9 @@ layout: example.html
title: OGC Map Tiles
shortdesc: Rendering map tiles from an OGC API Tiles service.
docs: >
The OGC API Tiles specification describes how a service can provide map tiles.
The <a href="https://ogcapi.ogc.org/tiles/">OGC API Tiles</a> specification describes how a service can provide map tiles. Because the specification
has not yet been finalized, the <code>OGCMapTile</code> source is not yet part of the stable API.
tags: "ogc"
experimental: true
---
<div id="map" class="map"></div>

View File

@@ -3,7 +3,9 @@ layout: example.html
title: OGC Vector Tiles
shortdesc: Rendering vector tiles from an OGC API Tiles service.
docs: >
The OGC API Tiles specification describes how a service can provide vector tiles.
The <a href="https://ogcapi.ogc.org/tiles/">OGC API Tiles</a> specification describes how a service can provide vector tiles. Because the specification
has not yet been finalized, the <code>OGCVectorTile</code> source is not yet part of the stable API.
tags: "ogc, vector"
experimental: true
---
<div id="map" class="map"></div>

View File

@@ -36,10 +36,9 @@ import {getTileSetInfo} from './ogcTileUtil.js';
/**
* @classdesc
* Layer source for map tiles from an OGC API - Tiles service that provides "map" type tiles.
* Layer source for map tiles from an [OGC API - Tiles](https://ogcapi.ogc.org/tiles/) service that provides "map" type tiles.
* The service must conform to at least the core (http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/core)
* and tileset (http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/tileset) conformance classes.
* @api
*/
class OGCMapTile extends TileImage {
/**
@@ -86,7 +85,7 @@ class OGCMapTile extends TileImage {
* @param {Error} error The error.
*/
handleError_(error) {
console.error(error); // eslint-disable-line
console.error(error); // eslint-disable-line no-console
this.setState(SourceState.ERROR);
}
}

View File

@@ -36,6 +36,12 @@ import {getTileSetInfo} from './ogcTileUtil.js';
* zoom levels. See {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
*/
/**
* @classdesc
* Layer source for map tiles from an [OGC API - Tiles](https://ogcapi.ogc.org/tiles/) service that provides "vector" type tiles.
* The service must conform to at least the core (http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/core)
* and tileset (http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/tileset) conformance classes.
*/
class OGCVectorTile extends VectorTile {
/**
* @param {Options} options OGC vector tile options.
@@ -82,7 +88,7 @@ class OGCVectorTile extends VectorTile {
* @param {Error} error The error.
*/
handleError_(error) {
console.error(error); // eslint-disable-line
console.error(error); // eslint-disable-line no-console
this.setState(SourceState.ERROR);
}
}

View File

@@ -46,7 +46,7 @@ class MockXHR extends events.EventEmitter {
this.emit('load', {target: this});
},
(err) => {
console.error(err); // eslint-disable-line
console.error(err); // eslint-disable-line no-console
this.emit('error', {target: this});
}
);