udpate id's of control divs. This is for #226
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -8,6 +8,9 @@
|
|||||||
OpenLayers.Control = Class.create();
|
OpenLayers.Control = Class.create();
|
||||||
OpenLayers.Control.prototype = {
|
OpenLayers.Control.prototype = {
|
||||||
|
|
||||||
|
/** @type String */
|
||||||
|
id: null,
|
||||||
|
|
||||||
/** this gets set in the addControl() function in OpenLayers.Map
|
/** this gets set in the addControl() function in OpenLayers.Map
|
||||||
* @type OpenLayers.Map */
|
* @type OpenLayers.Map */
|
||||||
map: null,
|
map: null,
|
||||||
@@ -57,6 +60,10 @@ OpenLayers.Control.prototype = {
|
|||||||
draw: function (px) {
|
draw: function (px) {
|
||||||
if (this.div == null) {
|
if (this.div == null) {
|
||||||
this.div = OpenLayers.Util.createDiv();
|
this.div = OpenLayers.Util.createDiv();
|
||||||
|
this.div.id = "Control";
|
||||||
|
if (this.id != null) {
|
||||||
|
this.div.id += "_" + this.id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (px != null) {
|
if (px != null) {
|
||||||
this.position = px.clone();
|
this.position = px.clone();
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ OpenLayers.Control.LayerSwitcher = Class.create();
|
|||||||
OpenLayers.Control.LayerSwitcher.prototype =
|
OpenLayers.Control.LayerSwitcher.prototype =
|
||||||
Object.extend( new OpenLayers.Control(), {
|
Object.extend( new OpenLayers.Control(), {
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "LayerSwitcher",
|
||||||
|
|
||||||
/** @type String */
|
/** @type String */
|
||||||
activeColor: "darkblue",
|
activeColor: "darkblue",
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ OpenLayers.Control.LayerTabs.NONACTIVE_COLOR = "lightblue";
|
|||||||
OpenLayers.Control.LayerTabs.prototype =
|
OpenLayers.Control.LayerTabs.prototype =
|
||||||
Object.extend( new OpenLayers.Control(), {
|
Object.extend( new OpenLayers.Control(), {
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "LayerTabs",
|
||||||
|
|
||||||
/** @type String */
|
/** @type String */
|
||||||
activeColor: "",
|
activeColor: "",
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ OpenLayers.Control.MouseToolbar.prototype =
|
|||||||
Object.extend( new OpenLayers.Control(),
|
Object.extend( new OpenLayers.Control(),
|
||||||
Object.extend( new OpenLayers.Control.MouseDefaults(), {
|
Object.extend( new OpenLayers.Control.MouseDefaults(), {
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "MouseToolbar",
|
||||||
|
|
||||||
mode: null,
|
mode: null,
|
||||||
|
|
||||||
buttons: null,
|
buttons: null,
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ OpenLayers.Control.PanZoom.Y = 4;
|
|||||||
OpenLayers.Control.PanZoom.prototype =
|
OpenLayers.Control.PanZoom.prototype =
|
||||||
Object.extend( new OpenLayers.Control(), {
|
Object.extend( new OpenLayers.Control(), {
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "PanZoom",
|
||||||
|
|
||||||
/** @type int */
|
/** @type int */
|
||||||
slideFactor: 50,
|
slideFactor: 50,
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ OpenLayers.Control.PanZoomBar.X = 4;
|
|||||||
OpenLayers.Control.PanZoomBar.Y = 4;
|
OpenLayers.Control.PanZoomBar.Y = 4;
|
||||||
OpenLayers.Control.PanZoomBar.prototype =
|
OpenLayers.Control.PanZoomBar.prototype =
|
||||||
Object.extend( new OpenLayers.Control.PanZoom(), {
|
Object.extend( new OpenLayers.Control.PanZoom(), {
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "PanZoomBar",
|
||||||
|
|
||||||
/** @type Array(...) */
|
/** @type Array(...) */
|
||||||
buttons: null,
|
buttons: null,
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ OpenLayers.Control.Permalink = Class.create();
|
|||||||
OpenLayers.Control.Permalink.prototype =
|
OpenLayers.Control.Permalink.prototype =
|
||||||
Object.extend( new OpenLayers.Control(), {
|
Object.extend( new OpenLayers.Control(), {
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "Permalink",
|
||||||
|
|
||||||
/** @type DOMElement */
|
/** @type DOMElement */
|
||||||
element: null,
|
element: null,
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ OpenLayers.Control.Scale.prototype =
|
|||||||
/** @type DOMElement */
|
/** @type DOMElement */
|
||||||
element: null,
|
element: null,
|
||||||
|
|
||||||
|
/** For div.id
|
||||||
|
* @type String */
|
||||||
|
id: "Scale",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user