Bare bones geom package
This commit is contained in:
7
src/ol/geom/geometry.js
Normal file
7
src/ol/geom/geometry.js
Normal file
@@ -0,0 +1,7 @@
|
||||
goog.provide('ol.geom.Geometry');
|
||||
|
||||
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
ol.geom.Geometry = function() {};
|
||||
19
src/ol/geom/linestring.js
Normal file
19
src/ol/geom/linestring.js
Normal file
@@ -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;
|
||||
|
||||
};
|
||||
19
src/ol/geom/multilinestring.js
Normal file
19
src/ol/geom/multilinestring.js
Normal file
@@ -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;
|
||||
|
||||
};
|
||||
19
src/ol/geom/multipoint.js
Normal file
19
src/ol/geom/multipoint.js
Normal file
@@ -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;
|
||||
|
||||
};
|
||||
19
src/ol/geom/multipolygon.js
Normal file
19
src/ol/geom/multipolygon.js
Normal file
@@ -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;
|
||||
|
||||
};
|
||||
19
src/ol/geom/point.js
Normal file
19
src/ol/geom/point.js
Normal file
@@ -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;
|
||||
|
||||
};
|
||||
19
src/ol/geom/polygon.js
Normal file
19
src/ol/geom/polygon.js
Normal file
@@ -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