From d42b7d4fbac02c91d6fc8c53dc116219dab52f54 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 18 Nov 2020 11:11:06 +0000 Subject: [PATCH] Update TMS tileUrlFunction example --- src/ol/source/XYZ.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/XYZ.js b/src/ol/source/XYZ.js index f7f3d95af6..24f98456d1 100644 --- a/src/ol/source/XYZ.js +++ b/src/ol/source/XYZ.js @@ -62,7 +62,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js'; * ```js * tileUrlFunction: function(coordinate) { * return 'http://mapserver.com/' + coordinate[0] + '/' + - * coordinate[1] + '/' + (-tileCoord[2] - 1) + '.png'; + * coordinate[1] + '/' + (-coordinate[2] - 1) + '.png'; * } * ``` * @api