Bare bones geom package
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
goog.provide('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @interface
|
||||||
|
*/
|
||||||
|
ol.geom.Geometry = function() {};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
goog.provide('ol.geom.LineString');
|
||||||
|
|
||||||
|
goog.require('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @implements {ol.geom.Geometry}
|
||||||
|
* @param {Array} coordinates Coordinates array.
|
||||||
|
*/
|
||||||
|
ol.geom.LineString = function(coordinates) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Array}
|
||||||
|
*/
|
||||||
|
this.coordinates = coordinates;
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
goog.provide('ol.geom.MultiLineString');
|
||||||
|
|
||||||
|
goog.require('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @implements {ol.geom.Geometry}
|
||||||
|
* @param {Array} coordinates Coordinates array.
|
||||||
|
*/
|
||||||
|
ol.geom.MultiLineString = function(coordinates) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Array}
|
||||||
|
*/
|
||||||
|
this.coordinates = coordinates;
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
goog.provide('ol.geom.MultiPoint');
|
||||||
|
|
||||||
|
goog.require('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @implements {ol.geom.Geometry}
|
||||||
|
* @param {Array} coordinates Coordinates array.
|
||||||
|
*/
|
||||||
|
ol.geom.MultiPoint = function(coordinates) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Array}
|
||||||
|
*/
|
||||||
|
this.coordinates = coordinates;
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
goog.provide('ol.geom.MultiPolygon');
|
||||||
|
|
||||||
|
goog.require('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @implements {ol.geom.Geometry}
|
||||||
|
* @param {Array} coordinates Coordinates array.
|
||||||
|
*/
|
||||||
|
ol.geom.MultiPolygon = function(coordinates) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Array}
|
||||||
|
*/
|
||||||
|
this.coordinates = coordinates;
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
goog.provide('ol.geom.Point');
|
||||||
|
|
||||||
|
goog.require('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @implements {ol.geom.Geometry}
|
||||||
|
* @param {Array} coordinates Coordinates array.
|
||||||
|
*/
|
||||||
|
ol.geom.Point = function(coordinates) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Array}
|
||||||
|
*/
|
||||||
|
this.coordinates = coordinates;
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
goog.provide('ol.geom.Polygon');
|
||||||
|
|
||||||
|
goog.require('ol.geom.Geometry');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @implements {ol.geom.Geometry}
|
||||||
|
* @param {Array} coordinates Coordinates array.
|
||||||
|
*/
|
||||||
|
ol.geom.Polygon = function(coordinates) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {Array}
|
||||||
|
*/
|
||||||
|
this.coordinates = coordinates;
|
||||||
|
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user