cercalia.Control = cercalia.Control || {};
/**
* `cercalia.MapControls.CustomControl`<br/>
* `cercalia.MapControls.CustomSwitcherControl`<br/>
* `cercalia.MapControls.CleanControl`<br/>
* `cercalia.MapControls.DragControl`<br/>
* `cercalia.MapControls.DrawControl`<br/>
* `cercalia.MapControls.FullScreen`<br/>
* `cercalia.MapControls.GasStations`<br/>
* `cercalia.MapControls.Isochrones`<br/>
* `cercalia.MapControls.LayerSwitcher`<br/>
* `cercalia.MapControls.Logistics`<br/>
* `cercalia.MapControls.MeteoControl`<br/>
* `cercalia.MapControls.MeasureControl`<br/>
* `cercalia.MapControls.RotateNorth`<br/>
* `cercalia.MapControls.ScaleLine`<br/>
* `cercalia.MapControls.StreetView`<br/>
* `cercalia.MapControls.Traffic`<br/>
* `cercalia.MapControls.Zoom`<br/>
* `cercalia.MapControls.ZoomSlider`
* @enum {string}
*/
cercalia.MapControls = {
CustomControl: "CustomControl",
CustomSwitcherControl: "CustomSwitcherControl",
CleanControl: "CleanControl",
DragControl: "DragControl",
DrawControl: "DrawControl",
FullScreen: "FullScreenControl",
GasStations: "GasStations",
Isochrones: "Isochrones",
LayerSwitcher: "LayerSwitcherControl",
LogisticsControl: "LogisticsControl",
MeteoControl: "MeteoControl",
MeasureControl : "MeasureControl",
MeasureControlOptions: {
LINE : 'line',
ROAD : 'road',
AREA : 'area'
},
RotateNorth: "RotateNorthControl",
ScaleLine: "ScaleLineControl",
StreetView : "StreetViewControl",
Traffic : "TrafficControl",
TrafficOptions: {
LIVE : 'live',
PREDICTED : 'predicted',
AFFECTATIONS : 'affectations',
CAMERAS : 'cameras',
PKS : 'pks',
WORKS : 'works'
},
Zoom: "ZoomControl",
ZoomSlider: "ZoomSlider"
};
/**
* @return {string} class
*/
ol.control.Control.prototype.getClass = function(){
return this.CLASS_NAME_;
};
/**
* Returns the control name
* @return {string} Control name
*/
ol.control.Control.prototype.getName = function(){
return this.name_;
};
/**
* Shows the control
*/
ol.control.Control.prototype.show = function() {
var elem = this.element_ ? this.element_ : this.element;
if(this.element){
cercalia.jQuery(elem).show();
}
};
/**
* Hide the control
*/
ol.control.Control.prototype.hide = function() {
var elem = this.element_ ? this.element_ : this.element;
if(this.element){
cercalia.jQuery(elem).hide();
}
};
/**
* Obtain the control DOM element
* @return {HTMLElement} DOM Element
*/
ol.control.Control.prototype.getElement = function() {
return this.element_ ? this.element_ : this.element;
};