euzuro
74f5b814eb
update id system -- now control and layer divs take their classname and add a random number
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-06 20:44:55 +00:00
euzuro
e1a1b94582
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
2006-08-31 15:27:10 +00:00
crschmidt
7a1ae31fc4
Fix for Ticket #201 , reported by Steve Pomeroy. Thanks Steve!
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1393 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-29 11:25:54 +00:00
crschmidt
104e509eb9
Merge 2.0 branch to trunk.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-25 18:17:06 +00:00
euzuro
c1b8c8dd60
change the '@require:' to '@requires' so as to be compatible with JSDOC standards. put these directly inside the class definition comment block. update script to suggest this and update all source files to follow pattern. Caught a missing @requires in the EventPane.js file
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 23:05:05 +00:00
euzuro
b2ab65df12
fixing bug introduced with r1134
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 20:10:10 +00:00
crschmidt
0ba7961df4
Commit tile-reuse branch back to trunk. This branch offers numerous performance
...
improvements in the form of reduced memory use and lower element creating costs,
hopefully making the OpenLayers code more usable in internet explorer as well
as less of a memory hog in Firefox and other browsers. Additionally, a buffer
is available around the main map grid which allows tiles to be loaded outside
of the viewing area for faster dragging.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:47:33 +00:00
euzuro
f2a3cf9348
don't allow a baselayer to unselect itself
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:10:57 +00:00
euzuro
864e54b8e7
if there are no overlays then don't display the overlay label
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-08 22:02:28 +00:00
euzuro
f3a072b151
new layerswitcher, improved google layer, boxes layer, grid fix
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-08 18:20:24 +00:00
euzuro
620cebb79c
add a 'changelayer' event that fires when a layer's visibility changes. listen for this in the layerswitcher
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1050 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-02 16:08:09 +00:00
Schuyler Erle
c92cd6d88a
Pulled down bug fixes, example updates, etc. r717:r787 from source:/branches/openlayers/1.0.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@788 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 04:40:52 +00:00
Schuyler Erle
ead31f6dc6
Added license headers to all JS source files.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:22:48 +00:00
follower
e023b4c075
Fix #57 . Add event handlers to the spans created by adding corners to the layer switcher tabs. (Somewhat hacky.)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@603 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:35:21 +00:00
follower
084a3e6989
Extract the event handler setting functionality into its own method in preparation for our fix for #57 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@600 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:26:39 +00:00
follower
239f542783
Rename 'doubleClick' to 'ignoreEvent' now the method is being used to stop events in more than one situation.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@599 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:19:07 +00:00
crschmidt
b30a4c4f3e
Return false from DoubleClick and Click events in controls so that these events don't filter through and hit the onclick handlers that we might register on the map.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@572 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 02:03:53 +00:00
euzuro
eba9f241a0
set LayerSwitcher to listen for removed layers
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@537 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 14:54:22 +00:00
euzuro
51371a1ecf
this is a suggested fix to #57 , but it doesnt seem to work.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 16:57:19 +00:00
crschmidt
44454ba193
Implement radio button support in LayerSwitcher. Pass in {mode:'radio'} to constructor to switch away from checkbox mode, which is default. This allows us to complete the original part of #32 , although we do not yet support the concept of 'base layers' described in that ticket, which has been split to #62 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@361 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 15:29:53 +00:00
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