Merge pull request #1859 from pgiraud/geolocation_tracking_orientation

Geolocation tracking with orientation example
This commit is contained in:
Tom Payne
2014-03-24 12:53:53 +01:00
13 changed files with 1028 additions and 16 deletions

View File

@@ -13,13 +13,14 @@ goog.require('ol.geom.flat.deflate');
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPoint} center Center.
* @param {number=} opt_radius Radius.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.Circle = function(center, opt_radius, opt_layout) {
goog.base(this);
var radius = goog.isDef(opt_radius) ? opt_radius : 0;
this.setCenterAndRadius(center, radius, opt_layout);
this.setCenterAndRadius(center, radius,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.Circle, ol.geom.SimpleGeometry);

View File

@@ -15,7 +15,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawLinearRing} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.LinearRing = function(coordinates, opt_layout) {
@@ -34,7 +34,8 @@ ol.geom.LinearRing = function(coordinates, opt_layout) {
*/
this.maxDeltaRevision_ = -1;
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.LinearRing, ol.geom.SimpleGeometry);

View File

@@ -19,7 +19,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawLineString} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.LineString = function(coordinates, opt_layout) {
@@ -50,7 +50,8 @@ ol.geom.LineString = function(coordinates, opt_layout) {
*/
this.maxDeltaRevision_ = -1;
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.LineString, ol.geom.SimpleGeometry);

View File

@@ -19,7 +19,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiLineString} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.MultiLineString = function(coordinates, opt_layout) {
@@ -44,7 +44,8 @@ ol.geom.MultiLineString = function(coordinates, opt_layout) {
*/
this.maxDeltaRevision_ = -1;
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.MultiLineString, ol.geom.SimpleGeometry);

View File

@@ -17,12 +17,13 @@ goog.require('ol.math');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiPoint} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.MultiPoint = function(coordinates, opt_layout) {
goog.base(this);
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.MultiPoint, ol.geom.SimpleGeometry);

View File

@@ -24,7 +24,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawMultiPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.MultiPolygon = function(coordinates, opt_layout) {
@@ -73,7 +73,8 @@ ol.geom.MultiPolygon = function(coordinates, opt_layout) {
*/
this.orientedFlatCoordinates_ = null;
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.MultiPolygon, ol.geom.SimpleGeometry);

View File

@@ -13,12 +13,13 @@ goog.require('ol.math');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPoint} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.Point = function(coordinates, opt_layout) {
goog.base(this);
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.Point, ol.geom.SimpleGeometry);

View File

@@ -23,7 +23,7 @@ goog.require('ol.geom.flat.simplify');
* @constructor
* @extends {ol.geom.SimpleGeometry}
* @param {ol.geom.RawPolygon} coordinates Coordinates.
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
* @param {ol.geom.GeometryLayout|string=} opt_layout Layout.
* @todo stability experimental
*/
ol.geom.Polygon = function(coordinates, opt_layout) {
@@ -72,7 +72,8 @@ ol.geom.Polygon = function(coordinates, opt_layout) {
*/
this.orientedFlatCoordinates_ = null;
this.setCoordinates(coordinates, opt_layout);
this.setCoordinates(coordinates,
/** @type {ol.geom.GeometryLayout|undefined} */ (opt_layout));
};
goog.inherits(ol.geom.Polygon, ol.geom.SimpleGeometry);