Merge pull request #8277 from ahocevar/fix-tilesource-docs

Fix code block in comment
This commit is contained in:
Andreas Hocevar
2018-06-18 12:38:53 +02:00
committed by GitHub
+1
View File
@@ -40,6 +40,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid.
* tile.setExtent(format.getLastExtent()); * tile.setExtent(format.getLastExtent());
* }; * };
* }); * });
* ```
* @property {module:ol/Tile~UrlFunction} [tileUrlFunction] Optional function to get tile URL given a tile coordinate and the projection. * @property {module:ol/Tile~UrlFunction} [tileUrlFunction] Optional function to get tile URL given a tile coordinate and the projection.
* @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders. * @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders.
* A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be * A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be