Use ol.Coordinate instead of ol.geom.Vertex
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
goog.provide('ol.geom.Point');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.geom.Geometry');
|
||||
goog.require('ol.geom.GeometryType');
|
||||
goog.require('ol.geom.SharedVertices');
|
||||
goog.require('ol.geom.Vertex');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.geom.Geometry}
|
||||
* @param {ol.geom.Vertex} coordinates Coordinates array (e.g. [x, y]).
|
||||
* @param {ol.Coordinate} coordinates Coordinates array (e.g. [x, y]).
|
||||
* @param {ol.geom.SharedVertices=} opt_shared Shared vertices.
|
||||
*/
|
||||
ol.geom.Point = function(coordinates, opt_shared) {
|
||||
@@ -76,7 +76,7 @@ ol.geom.Point.prototype.getBounds = function() {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @return {ol.geom.Vertex} Coordinates array.
|
||||
* @return {ol.Coordinate} Coordinates array.
|
||||
*/
|
||||
ol.geom.Point.prototype.getCoordinates = function() {
|
||||
var coordinates = new Array(this.dimension);
|
||||
|
||||
Reference in New Issue
Block a user