Use raw geometry types
This commit is contained in:
@@ -9,7 +9,7 @@ goog.require('ol.geom.Geometry');
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.geom.Geometry}
|
* @extends {ol.geom.Geometry}
|
||||||
* @param {Array.<ol.Coordinate>} coordinates Coordinates.
|
* @param {ol.geom.RawLineString} coordinates Coordinates.
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString = function(coordinates) {
|
ol.geom.LineString = function(coordinates) {
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ ol.geom.LineString = function(coordinates) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array.<Array.<number>>}
|
* @type {ol.geom.RawLineString}
|
||||||
*/
|
*/
|
||||||
this.coordinates_ = coordinates;
|
this.coordinates_ = coordinates;
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ goog.inherits(ol.geom.LineString, ol.geom.Geometry);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<Array.<number>>} Coordinates.
|
* @return {ol.geom.RawLineString} Coordinates.
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.getCoordinates = function() {
|
ol.geom.LineString.prototype.getCoordinates = function() {
|
||||||
return this.coordinates_;
|
return this.coordinates_;
|
||||||
@@ -56,7 +56,7 @@ ol.geom.LineString.prototype.getType = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Array.<ol.Coordinate>} coordinates Coordinates.
|
* @param {ol.geom.RawLineString} coordinates Coordinates.
|
||||||
*/
|
*/
|
||||||
ol.geom.LineString.prototype.setCoordinates = function(coordinates) {
|
ol.geom.LineString.prototype.setCoordinates = function(coordinates) {
|
||||||
this.coordinates_ = coordinates;
|
this.coordinates_ = coordinates;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ goog.require('ol.geom.Geometry');
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.geom.Geometry}
|
* @extends {ol.geom.Geometry}
|
||||||
* @param {Array.<Array.<ol.Coordinate>>} coordinatess Coordinatess.
|
* @param {ol.geom.RawMultiLineString} coordinatess Coordinatess.
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString = function(coordinatess) {
|
ol.geom.MultiLineString = function(coordinatess) {
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ ol.geom.MultiLineString = function(coordinatess) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array.<Array.<ol.Coordinate>>}
|
* @type {ol.geom.RawMultiLineString}
|
||||||
*/
|
*/
|
||||||
this.coordinatess_ = coordinatess;
|
this.coordinatess_ = coordinatess;
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ goog.inherits(ol.geom.MultiLineString, ol.geom.Geometry);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<Array.<ol.Coordinate>>} Coordinatess.
|
* @return {ol.geom.RawMultiLineString} Coordinatess.
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.getCoordinatess = function() {
|
ol.geom.MultiLineString.prototype.getCoordinatess = function() {
|
||||||
return this.coordinatess_;
|
return this.coordinatess_;
|
||||||
@@ -60,7 +60,7 @@ ol.geom.MultiLineString.prototype.getType = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Array.<Array.<ol.Coordinate>>} coordinatess Coordinatess.
|
* @param {ol.geom.RawMultiLineString} coordinatess Coordinatess.
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiLineString.prototype.setCoordinatess = function(coordinatess) {
|
ol.geom.MultiLineString.prototype.setCoordinatess = function(coordinatess) {
|
||||||
this.coordinatess_ = coordinatess;
|
this.coordinatess_ = coordinatess;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ goog.require('ol.geom.Geometry');
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.geom.Geometry}
|
* @extends {ol.geom.Geometry}
|
||||||
* @param {Array.<Array.<Array.<ol.Coordinate>>>} ringss Ringss.
|
* @param {ol.geom.RawMultiPolygon} ringss Ringss.
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon = function(ringss) {
|
ol.geom.MultiPolygon = function(ringss) {
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ ol.geom.MultiPolygon = function(ringss) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array.<Array.<Array.<ol.Coordinate>>>}
|
* @type {ol.geom.RawMultiPolygon}
|
||||||
*/
|
*/
|
||||||
this.ringss_ = ringss;
|
this.ringss_ = ringss;
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ ol.geom.MultiPolygon.prototype.getExtent = function(opt_extent) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<Array.<Array.<ol.Coordinate>>>} Ringss.
|
* @return {ol.geom.RawMultiPolygon} Ringss.
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.getRingss = function() {
|
ol.geom.MultiPolygon.prototype.getRingss = function() {
|
||||||
return this.ringss_;
|
return this.ringss_;
|
||||||
@@ -59,7 +59,7 @@ ol.geom.MultiPolygon.prototype.getType = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Array.<Array.<Array.<ol.Coordinate>>>} ringss Ringss.
|
* @param {ol.geom.RawMultiPolygon} ringss Ringss.
|
||||||
*/
|
*/
|
||||||
ol.geom.MultiPolygon.prototype.setRingss = function(ringss) {
|
ol.geom.MultiPolygon.prototype.setRingss = function(ringss) {
|
||||||
this.ringss_ = ringss;
|
this.ringss_ = ringss;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ goog.require('ol.geom.Geometry');
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.geom.Geometry}
|
* @extends {ol.geom.Geometry}
|
||||||
* @param {ol.Coordinate} coordinate Coordinate.
|
* @param {ol.geom.RawPoint} coordinate Coordinate.
|
||||||
*/
|
*/
|
||||||
ol.geom.Point = function(coordinate) {
|
ol.geom.Point = function(coordinate) {
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ ol.geom.Point = function(coordinate) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array.<number>}
|
* @type {ol.geom.RawPoint}
|
||||||
*/
|
*/
|
||||||
this.coordinate_ = coordinate;
|
this.coordinate_ = coordinate;
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ goog.inherits(ol.geom.Point, ol.geom.Geometry);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.Coordinate} Coordinate.
|
* @return {ol.geom.RawPoint} Coordinate.
|
||||||
*/
|
*/
|
||||||
ol.geom.Point.prototype.getCoordinate = function() {
|
ol.geom.Point.prototype.getCoordinate = function() {
|
||||||
return this.coordinate_;
|
return this.coordinate_;
|
||||||
@@ -56,7 +56,7 @@ ol.geom.Point.prototype.getType = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Coordinate} coordinate Coordinate.
|
* @param {ol.geom.RawPoint} coordinate Coordinate.
|
||||||
*/
|
*/
|
||||||
ol.geom.Point.prototype.setCoordinate = function(coordinate) {
|
ol.geom.Point.prototype.setCoordinate = function(coordinate) {
|
||||||
this.coordinate_ = coordinate;
|
this.coordinate_ = coordinate;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ goog.require('ol.geom.Geometry');
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.geom.Geometry}
|
* @extends {ol.geom.Geometry}
|
||||||
* @param {Array.<Array.<ol.Coordinate>>} rings Rings.
|
* @param {ol.geom.RawPolygon} rings Rings.
|
||||||
*/
|
*/
|
||||||
ol.geom.Polygon = function(rings) {
|
ol.geom.Polygon = function(rings) {
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ ol.geom.Polygon = function(rings) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {Array.<Array.<ol.Coordinate>>}
|
* @type {ol.geom.RawPolygon}
|
||||||
*/
|
*/
|
||||||
this.rings_ = rings;
|
this.rings_ = rings;
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ ol.geom.Polygon.prototype.getExtent = function(opt_extent) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<Array.<ol.Coordinate>>} Rings.
|
* @return {ol.geom.RawPolygon} Rings.
|
||||||
*/
|
*/
|
||||||
ol.geom.Polygon.prototype.getRings = function() {
|
ol.geom.Polygon.prototype.getRings = function() {
|
||||||
return this.rings_;
|
return this.rings_;
|
||||||
@@ -55,7 +55,7 @@ ol.geom.Polygon.prototype.getType = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Array.<Array.<ol.Coordinate>>} rings Rings.
|
* @param {ol.geom.RawPolygon} rings Rings.
|
||||||
*/
|
*/
|
||||||
ol.geom.Polygon.prototype.setRings = function(rings) {
|
ol.geom.Polygon.prototype.setRings = function(rings) {
|
||||||
this.rings_ = rings;
|
this.rings_ = rings;
|
||||||
|
|||||||
Reference in New Issue
Block a user