Remove goog.isNull in tileurlfunction class

This commit is contained in:
Marc Jansen
2015-09-29 15:28:23 +02:00
parent 5daf741922
commit ef0153692e

View File

@@ -49,7 +49,7 @@ ol.TileUrlFunction.createFromTemplate = function(template, tileGrid) {
* @return {string|undefined} Tile URL.
*/
function(tileCoord, pixelRatio, projection) {
if (goog.isNull(tileCoord)) {
if (!tileCoord) {
return undefined;
} else {
return template.replace(zRegEx, tileCoord[0].toString())
@@ -105,7 +105,7 @@ ol.TileUrlFunction.createFromTileUrlFunctions = function(tileUrlFunctions) {
* @return {string|undefined} Tile URL.
*/
function(tileCoord, pixelRatio, projection) {
if (goog.isNull(tileCoord)) {
if (!tileCoord) {
return undefined;
} else {
var h = ol.tilecoord.hash(tileCoord);