crschmidt
e5bb6b7dbd
Finish of r326, adding : to @require pragmas
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:39:21 +00:00
crschmidt
213a1b02d1
A couple changes got rolled into r326 that weren't meant to: Rolling them back out.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@327 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:38:27 +00:00
crschmidt
c0ec7f9a00
Change @require to @require:
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:17:22 +00:00
crschmidt
9190dd18d2
Add @require pragma to all source files.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:20:31 +00:00
euzuro
9fd1d458ae
coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 12:36:14 +00:00
euzuro
2e4f6129f6
forgot that these declarations are still only statically initialized. even though the chance of somebody *modifying* one of these strings (rather than just replacing it) is rather low... we might as well do things the right way
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 16:02:29 +00:00
euzuro
b4f80c494c
added member variables for activeColor and nonActiveColor so that users can customize dynamically
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 06:06:16 +00:00
euzuro
9235f04cce
properly declare CLASS_NAME member as constant. Also, add <i> tags around examples in comments
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:11:32 +00:00
crschmidt
8a5842a11c
Add Height/Width to control div via Map.js -- this is good for when elements inside the div are absolutely positioned, and therefore have no width.
...
The LayerSwitcher now sets right, and *unsets* left. This is important because otherwise browsers get confused.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@93 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 14:03:33 +00:00
euzuro
605ba7a066
bring in code from old switcher.js to make the switcher tabs prettier. unfortunately, they refuse to right-align. If i wasnt as cracked-out as I am right now, i would continue plugging away. As it is, however, my faculties are waning. Off to bed.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@86 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 04:35:14 +00:00
euzuro
401aa4d69a
decomposed layerswitcher
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@84 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:39:39 +00:00
euzuro
9def710214
always delete everything and rebuild everything on redraw(). Just simpler this way
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@81 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:13:41 +00:00
euzuro
ca0a8407b4
move the append up into the loop, so as not to repeatedly append extant divs
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@80 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:59:37 +00:00
euzuro
b0020d6f40
push constant variables out of the class, make them static. other small coding standards changes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@79 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:52:57 +00:00
euzuro
e5914e6c50
add constants for active/deactive switcher controls
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@75 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:16:57 +00:00
euzuro
d260d7c3ae
JSDOC, coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@74 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:08:21 +00:00
crschmidt
a06bc351e4
Create redraw() function. This function does all of the drawing in the control: the draw function merely calls out to it. In addition, draw now does initialization of an event listener, listening for layers being added. This allows you to add the layer control before you've added all your layers, which was not possible before. It also allows, if desired, for us to add the LayerSwitcher control to the default controls, since it now will draw the layer switchers as they are added.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@67 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 23:54:34 +00:00
euzuro
bd16aa9cdf
replaced calls to addX and addY with calls to add. Simplify
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@51 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:32:11 +00:00
crschmidt
54c0403850
add LayerSwitcher control. Currently, when added, this will simply loop through all the map layers, display a div (with text in it) which allows you tu turn the layer on or off. Layer visibility is a new concept in Layer.js, including a getter and setter, which uses the style.visibility prop to change the status of the layer.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@31 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:44:49 +00:00