From fba8a99b9b15832e98c2cc0d3a424117810623df Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sat, 12 Jun 2010 05:37:43 +0000 Subject: [PATCH] Additional documentation for the WMTS layer (see #2637). git-svn-id: http://svn.openlayers.org/trunk/openlayers@10389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMTS.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Layer/WMTS.js b/lib/OpenLayers/Layer/WMTS.js index 39c3f5e168..7615637879 100644 --- a/lib/OpenLayers/Layer/WMTS.js +++ b/lib/OpenLayers/Layer/WMTS.js @@ -19,7 +19,7 @@ OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, { /** * APIProperty: isBaseLayer - * {Boolean} + * {Boolean} The layer will be considered a base layer. Default is true. */ isBaseLayer: true, @@ -37,13 +37,14 @@ OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, { /** * APIProperty: url - * {String} The base URL for the WMTS service. + * {String} The base URL for the WMTS service. Must be provided. */ url: null, /** * APIProperty: layer - * {String} The layer identifier advertised by the WMTS service. + * {String} The layer identifier advertised by the WMTS service. Must be + * provided. */ layer: null, @@ -68,7 +69,10 @@ OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, { /** * APIProperty: tileOrigin * {} The top-left corner of the tile matrix in map - * units. + * units. If the tile origin for each matrix in a set is different, + * the should include a topLeftCorner property. If + * not provided, the tile origin will default to the top left corner + * of the layer . */ tileOrigin: null, @@ -153,6 +157,7 @@ OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, { * Required configuration properties: * url - {String} The base url for the service. See the property. * layer - {String} The layer identifier. See the property. + * style - {String} The layer style identifier. See the