Control in the ol.control namespace.
This commit is contained in:
@@ -12,7 +12,7 @@ goog.require('goog.events.EventType');
|
|||||||
goog.require('goog.object');
|
goog.require('goog.object');
|
||||||
goog.require('goog.style');
|
goog.require('goog.style');
|
||||||
goog.require('ol.Collection');
|
goog.require('ol.Collection');
|
||||||
goog.require('ol.Control');
|
goog.require('ol.control.Control');
|
||||||
goog.require('ol.CoverageArea');
|
goog.require('ol.CoverageArea');
|
||||||
goog.require('ol.layer.Layer');
|
goog.require('ol.layer.Layer');
|
||||||
goog.require('ol.MapProperty');
|
goog.require('ol.MapProperty');
|
||||||
@@ -22,7 +22,7 @@ goog.require('ol.TileCoverageArea');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.Control}
|
* @extends {ol.control.Control}
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
*/
|
*/
|
||||||
ol.control.Attribution = function(map) {
|
ol.control.Attribution = function(map) {
|
||||||
@@ -77,7 +77,7 @@ ol.control.Attribution = function(map) {
|
|||||||
this.handleMapLayersChanged();
|
this.handleMapLayersChanged();
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.control.Attribution, ol.Control);
|
goog.inherits(ol.control.Attribution, ol.control.Control);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
goog.provide('ol.Control');
|
goog.provide('ol.control.Control');
|
||||||
|
|
||||||
goog.require('ol.Map');
|
goog.require('ol.Map');
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ goog.require('ol.Map');
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
*/
|
*/
|
||||||
ol.Control = function(map) {
|
ol.control.Control = function(map) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -22,12 +22,12 @@ ol.Control = function(map) {
|
|||||||
/**
|
/**
|
||||||
* @return {Element} Element.
|
* @return {Element} Element.
|
||||||
*/
|
*/
|
||||||
ol.Control.prototype.getElement = goog.abstractMethod;
|
ol.control.Control.prototype.getElement = goog.abstractMethod;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.Map} Map.
|
* @return {ol.Map} Map.
|
||||||
*/
|
*/
|
||||||
ol.Control.prototype.getMap = function() {
|
ol.control.Control.prototype.getMap = function() {
|
||||||
return this.map_;
|
return this.map_;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ goog.provide('ol.control.MousePosition');
|
|||||||
|
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
goog.require('goog.events.EventType');
|
goog.require('goog.events.EventType');
|
||||||
goog.require('ol.Control');
|
goog.require('ol.control.Control');
|
||||||
goog.require('ol.MapProperty');
|
goog.require('ol.MapProperty');
|
||||||
goog.require('ol.Object');
|
goog.require('ol.Object');
|
||||||
goog.require('ol.Projection');
|
goog.require('ol.Projection');
|
||||||
@@ -14,7 +14,7 @@ goog.require('ol.TransformFunction');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.Control}
|
* @extends {ol.control.Control}
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
* @param {ol.Projection=} opt_projection Projection.
|
* @param {ol.Projection=} opt_projection Projection.
|
||||||
* @param {ol.CoordinateFormatType=} opt_coordinateFormat Coordinate format.
|
* @param {ol.CoordinateFormatType=} opt_coordinateFormat Coordinate format.
|
||||||
@@ -68,7 +68,7 @@ ol.control.MousePosition =
|
|||||||
this.handleMapProjectionChanged();
|
this.handleMapProjectionChanged();
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.control.MousePosition, ol.Control);
|
goog.inherits(ol.control.MousePosition, ol.control.Control);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user