Leave as experimental until spec is finalized
This commit is contained in:
@@ -3,7 +3,9 @@ layout: example.html
|
|||||||
title: OGC Map Tiles (Geographic)
|
title: OGC Map Tiles (Geographic)
|
||||||
shortdesc: Rendering map tiles from an OGC API – Tiles service.
|
shortdesc: Rendering map tiles from an OGC API – Tiles service.
|
||||||
docs: >
|
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"
|
tags: "ogc"
|
||||||
|
experimental: true
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ layout: example.html
|
|||||||
title: OGC Map Tiles
|
title: OGC Map Tiles
|
||||||
shortdesc: Rendering map tiles from an OGC API – Tiles service.
|
shortdesc: Rendering map tiles from an OGC API – Tiles service.
|
||||||
docs: >
|
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"
|
tags: "ogc"
|
||||||
|
experimental: true
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ layout: example.html
|
|||||||
title: OGC Vector Tiles
|
title: OGC Vector Tiles
|
||||||
shortdesc: Rendering vector tiles from an OGC API – Tiles service.
|
shortdesc: Rendering vector tiles from an OGC API – Tiles service.
|
||||||
docs: >
|
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"
|
tags: "ogc, vector"
|
||||||
|
experimental: true
|
||||||
---
|
---
|
||||||
<div id="map" class="map"></div>
|
<div id="map" class="map"></div>
|
||||||
|
|||||||
@@ -36,10 +36,9 @@ import {getTileSetInfo} from './ogcTileUtil.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @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)
|
* 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.
|
* and tileset (http://www.opengis.net/spec/ogcapi-tiles-1/1.0/conf/tileset) conformance classes.
|
||||||
* @api
|
|
||||||
*/
|
*/
|
||||||
class OGCMapTile extends TileImage {
|
class OGCMapTile extends TileImage {
|
||||||
/**
|
/**
|
||||||
@@ -86,7 +85,7 @@ class OGCMapTile extends TileImage {
|
|||||||
* @param {Error} error The error.
|
* @param {Error} error The error.
|
||||||
*/
|
*/
|
||||||
handleError_(error) {
|
handleError_(error) {
|
||||||
console.error(error); // eslint-disable-line
|
console.error(error); // eslint-disable-line no-console
|
||||||
this.setState(SourceState.ERROR);
|
this.setState(SourceState.ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,12 @@ import {getTileSetInfo} from './ogcTileUtil.js';
|
|||||||
* zoom levels. See {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
|
* 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 {
|
class OGCVectorTile extends VectorTile {
|
||||||
/**
|
/**
|
||||||
* @param {Options} options OGC vector tile options.
|
* @param {Options} options OGC vector tile options.
|
||||||
@@ -82,7 +88,7 @@ class OGCVectorTile extends VectorTile {
|
|||||||
* @param {Error} error The error.
|
* @param {Error} error The error.
|
||||||
*/
|
*/
|
||||||
handleError_(error) {
|
handleError_(error) {
|
||||||
console.error(error); // eslint-disable-line
|
console.error(error); // eslint-disable-line no-console
|
||||||
this.setState(SourceState.ERROR);
|
this.setState(SourceState.ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class MockXHR extends events.EventEmitter {
|
|||||||
this.emit('load', {target: this});
|
this.emit('load', {target: this});
|
||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
console.error(err); // eslint-disable-line
|
console.error(err); // eslint-disable-line no-console
|
||||||
this.emit('error', {target: this});
|
this.emit('error', {target: this});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user