(options)
| 2144 | } |
| 2145 | |
| 2146 | _getWMTSUrl(options) { |
| 2147 | if (options.requestEncoding === 'REST' && options.restResourceURL) { |
| 2148 | return options.restResourceURL |
| 2149 | .replace('{Style}', options.style || '') |
| 2150 | .replace('{TileMatrixSet}', options.tileMatrixSet) |
| 2151 | .replace('{TileRow}', '{y}') |
| 2152 | .replace('{TileCol}', '{x}') |
| 2153 | .replace('{TileMatrix}', '{z}'); |
| 2154 | } |
| 2155 | const obj = { |
| 2156 | service: 'WMTS', |
| 2157 | request: 'GetTile', |
| 2158 | version: '1.0.0', |
| 2159 | style: options.style || '', |
| 2160 | layer: options.layer, |
| 2161 | tilematrixSet: options.tileMatrixSet, |
| 2162 | format: 'image/png', |
| 2163 | tilematrix: '{z}', |
| 2164 | tilerow: '{y}', |
| 2165 | tilecol: '{x}' |
| 2166 | }; |
| 2167 | return Util.urlAppend(options.kvpResourceUrl, this._getParamString(obj, options.kvpResourceUrl)); |
| 2168 | } |
| 2169 | |
| 2170 | _createMarkerLayer(layerInfo, features) { |
| 2171 | const { minzoom, maxzoom } = layerInfo; |
no test coverage detected