Remove goog.isNull in tileurlfunction class
This commit is contained in:
@@ -49,7 +49,7 @@ ol.TileUrlFunction.createFromTemplate = function(template, tileGrid) {
|
|||||||
* @return {string|undefined} Tile URL.
|
* @return {string|undefined} Tile URL.
|
||||||
*/
|
*/
|
||||||
function(tileCoord, pixelRatio, projection) {
|
function(tileCoord, pixelRatio, projection) {
|
||||||
if (goog.isNull(tileCoord)) {
|
if (!tileCoord) {
|
||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
return template.replace(zRegEx, tileCoord[0].toString())
|
return template.replace(zRegEx, tileCoord[0].toString())
|
||||||
@@ -105,7 +105,7 @@ ol.TileUrlFunction.createFromTileUrlFunctions = function(tileUrlFunctions) {
|
|||||||
* @return {string|undefined} Tile URL.
|
* @return {string|undefined} Tile URL.
|
||||||
*/
|
*/
|
||||||
function(tileCoord, pixelRatio, projection) {
|
function(tileCoord, pixelRatio, projection) {
|
||||||
if (goog.isNull(tileCoord)) {
|
if (!tileCoord) {
|
||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
var h = ol.tilecoord.hash(tileCoord);
|
var h = ol.tilecoord.hash(tileCoord);
|
||||||
|
|||||||
Reference in New Issue
Block a user