crschmidt
24200f73d8
Tag RC3
...
git-svn-id: http://svn.openlayers.org/tags/openlayers/release-2.5-rc3@4433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-21 13:41:47 +00:00
crschmidt
8a3fb3dce3
"Layer Switcher does not do sufficient layer state information storage",
...
review by e-dog. (Closes #970 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4336 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-16 16:22:45 +00:00
Tim Schaub
2478677985
Deprecating all prototype extensions. This puts all OpenLayers functionality in the OpenLayers namespace. If you are using any of the Function, String, or Number prototype extensions, start using the functional equivalents in the OpenLayers namespace - the prototype extensions will be gone in 3.0 ( closes #712 ).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-14 20:08:47 +00:00
euzuro
0e8e7ab620
making the layerswitcher a little smarter. Instead of fancy 'noEvent' parameters, we just keep track of the state at each redraw. When asked to redraw, we then check first to see if anything has changed before going ahead with the redraw. Also in this patch, we add a 'visibilitychanged' event to the layer's events object -- upon request by users. ( Closes #878 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-12 04:00:31 +00:00
euzuro
dab3144c16
coding standards - mostly 4ixing spacing issues with ND comments.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 10:34:45 +00:00
Tim Schaub
c2148651ed
Filling our log with cruft, adding meaningless conflicts for merges, and changing a comment style that ndocs could care less about, this commit changes Return to Returns ( closes #945 ).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:44:10 +00:00
euzuro
b5ef77096c
wiki/NaturalDocs says we should be using 'Return:' and not 'Returns:' so this patch is fixing that. Of course, in the process, I came across not a few instances where other ND related whitespace or typos were at odds with a peaceful, uniform OL codebase. No functional changes here, just makin' things pretty.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:08:32 +00:00
crschmidt
6194452b8a
Since John already went ahead and committed the main change, I'm just going
...
to finish this one up. All commits are in comments, so a review doesn't seem
strictly neccesary. This closes #918 and fixes all the copyrights that I could
find in the code.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:29:06 +00:00
Tim Schaub
9cc8aed695
#892 - give layer switcher isMouseDown property to differentiate from mouseDown method
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-14 13:36:19 +00:00
crschmidt
73d2825c4e
Commiting fix for #716 , "Make LayerSwitcher support displayInLayerSwitcher
...
for Base Layers", reviewed by Erik, tested by tschaub.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-04 12:14:32 +00:00
euzuro
cf5a53959e
ND Update: make array's say what they're made of, and a few other small bits, like mistyped and a couple missing <>s
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-31 20:02:03 +00:00
euzuro
8c552be94b
as universally approved on discussions on dev list, replace new Array() with []. all tests pass ff & ie6
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:48:02 +00:00
euzuro
fd4d2918f1
fix for #853 - remove JSDOC comments from CLASS_NAME variables
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3787 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:09:09 +00:00
Tim Schaub
cc1b0269c9
#823 New class style. Instead of OldStyle = Class.create(); OldStyle.prototype = Class.inherit(Parent, prototype), we now use NewStyle = OpenLayers.Class(Parent, prototype). New style classes allow for backwards compatibility [you can use OldStyle = Class.create(); Class.inherit(NewStyle, prototype)]. The Class.create and Class.inherit functions are deprecated. Backwards compatibility will be removed at 3.0. Thanks Erik for the careful review.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 20:25:11 +00:00
crschmidt
3948913bfc
Merge all changes from the naturaldocs sandbox. This brings all the work that
...
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who
helped out in making this happen. (I could list people, but the list would
be long, and I'm already mentally on vacation.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 15:59:20 +00:00
crschmidt
39c3d11043
Patch from #674 , approved by SDE, plus an example.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 19:19:06 +00:00
crschmidt
15465a455b
Move LayerSwitcher control down so that it doesn't overlay with the editing
...
controls. Patch from #641 by penyaskito . Thanks!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3068 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-12 10:59:17 +00:00
Schuyler Erle
e1590b2a20
Destroy fix for Control.LayerSwitcher. Fixes #593 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2934 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-30 21:57:07 +00:00
crschmidt
861c105071
Due to circular references, the layer switcher could prevent layers from
...
being cleared in Internet Explorer. This patch fixes #577 . Patch from Erik.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2918 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-29 02:38:19 +00:00
crschmidt
3ca974acec
Merge vector-2.4 branch back to trunk.
...
svn merge sandbox/vector-2.4/@2307 sandbox/vector-2.4/@HEAD trunk/openlayers/
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2803 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-16 13:23:56 +00:00
euzuro
112978ac3d
patch for #441 - resolving Rico namespace conflict
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2094 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-12-22 19:31:32 +00:00
crschmidt
786c2a20fb
Change files to point to repository-license. Part of build process will now
...
be to change the licensing terms in the final build.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-24 18:16:39 +00:00
euzuro
5425ea861c
ie on win does not like 'grey'
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1654 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 16:14:38 +00:00
Schuyler Erle
3be99e67e6
Convert all classes to use new-style class definitions. All tests pass.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 15:57:33 +00:00
euzuro
2b7c6cc844
refactor range checking into map and store a state variable in layer so that we dont fire changelayer every time user zooms
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1606 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 19:32:07 +00:00
Schuyler Erle
67ced536c0
Merged r1559:r1587 from source:/sandbox/crschmidt/noprototype. OpenLayers is now Prototype-free(tm).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 14:50:47 +00:00
euzuro
abde2fbc23
don't disable baselayers in the layerswitcher
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1580 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 05:02:06 +00:00
euzuro
510ab8561c
add a new property to layer.js called 'visibility' which we now need to store instead of reading directly from the visiblity of the div itself, since the div might be hidden, but only because it is out of range. we thus add a new method on layer called inRange() which returns whether or not the layer's max/min resolution settings allow it to be displayed at the current map's resolution. to make sure that min/max resolution, scale, etc are set for *all* layers, we remove the if statement limiting the running of initResolution() to only baselayers, and we add code at the end of that function that, once the resolutions array has been calculated, then goes back and sets min/max scale and resolution. now what we have to do is every time moveTo() is called on a layer, if the zoom has changed, then we must check if the layer is inRange() and update the display accordingly. on that same note, the layerswitcher must now be attentive to these changes, so we set it to redraw every time the zoom changes. in the layerswitcher code, we now add special code to disable a layer if it is out of range. must add the superclass call to moveTo() for all of the layers to ensure this code is executed for all. update test.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 04:20:16 +00:00
crschmidt
7e11c37610
Add 'ascending' flag to LayerSwitcher. Update docs. Add Demo. Add tests.
...
Closes #256 .
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1539 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 12:37:25 +00:00
euzuro
36a76054a4
allow layers to prevent themselves from displaying in the layer switcher via the 'displayInLayerSwitcher' boolean option. modify example.html to show usage
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1528 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-02 23:24:02 +00:00
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