cercalia.Control = cercalia.Control || {};
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"
};
ol.control.Control.prototype.getClass = function(){
return this.CLASS_NAME_;
};
ol.control.Control.prototype.getName = function(){
return this.name_;
};
ol.control.Control.prototype.show = function() {
var elem = this.element_ ? this.element_ : this.element;
if(this.element){
cercalia.jQuery(elem).show();
}
};
ol.control.Control.prototype.hide = function() {
var elem = this.element_ ? this.element_ : this.element;
if(this.element){
cercalia.jQuery(elem).hide();
}
};
ol.control.Control.prototype.getElement = function() {
return this.element_ ? this.element_ : this.element;
};