Remove use of goog.isString()
This commit is contained in:
@@ -159,7 +159,7 @@ ol.style.Style.prototype.getZIndex = function() {
|
||||
ol.style.Style.prototype.setGeometry = function(geometry) {
|
||||
if (goog.isFunction(geometry)) {
|
||||
this.geometryFunction_ = geometry;
|
||||
} else if (goog.isString(geometry)) {
|
||||
} else if (typeof geometry === 'string') {
|
||||
this.geometryFunction_ = function(feature) {
|
||||
var result = feature.get(geometry);
|
||||
if (result) {
|
||||
|
||||
Reference in New Issue
Block a user