Remove use of goog.array.isEmpty
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
goog.provide('ol.format.WKT');
|
||||
|
||||
goog.require('goog.array');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.format.Feature');
|
||||
@@ -59,7 +58,7 @@ ol.format.WKT.EMPTY = 'EMPTY';
|
||||
*/
|
||||
ol.format.WKT.encodePointGeometry_ = function(geom) {
|
||||
var coordinates = geom.getCoordinates();
|
||||
if (goog.array.isEmpty(coordinates)) {
|
||||
if (coordinates.length === 0) {
|
||||
return '';
|
||||
}
|
||||
return coordinates[0] + ' ' + coordinates[1];
|
||||
|
||||
Reference in New Issue
Block a user