Tim Schaub
bbc73a21d8
Update copyright date
2013-01-07 22:01:16 -05:00
Éric Lemoine
e0b93c2e45
The OpenLayers code is published under the 2-clause BSD license
2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1
change copyright header in every OpenLayers js file
2012-03-29 22:14:56 +02:00
ejn
fbc3b5475d
Improved regex, added tests
2012-03-05 12:14:56 +01:00
Xavier Mamano
9e48825205
Preserve the title and the className if they are set in createControlMarkup.
2012-02-28 22:28:33 +01:00
Éric Lemoine
3b7585be24
avoid useless deref
2012-02-28 22:28:33 +01:00
Éric Lemoine
5539f6e958
[Control.Panel] place code creating the control markup in a separate function
2012-02-28 22:28:33 +01:00
ahocevar
e7107b96cb
Fixing PanZoomBar and Panel issues after #164 .
...
For PanZoomBar, this fixes the slider behavior. Now the buttonclick listener argument also includes a buttonXY property, and PanZoomPanel does not need an Events instance for the zoombarDiv any more.
For Panel, this fixes events for panels outside the map. Just setting the element on the Events instance was no longer enough after e70569b2bb . Events::attachToElement is now used, and it needed to be modified to also work if the Events instance had no element previously.
Finally, I renamed the button property of the buttonclick listener argument to buttonElement, to not confuse it with the browser event button property, and added some more tests and documentation.
2012-01-22 21:30:40 +01:00
ahocevar
d9cc0c08ed
Check for outsideViewport - we may not have a parentNode yet.
2012-01-20 16:08:02 +01:00
ahocevar
e09ee34f23
Incorporate remaining review comments from @bartvde.
2012-01-20 14:18:15 +01:00
ahocevar
05de2b5109
Don't let button controls interfer with handlers.
...
This change involves removal of the map's eventsDiv and introduces an OpenLayers.Events.buttonclick component that adds a buttonclick event which makes sure that only events that are not related to clicking a button propagate. This allows button controls to be on the map's viewPortDiv again.
2012-01-20 03:37:11 +01:00
fredj
cbfb68f397
Change all 'Parameter:' to 'Parameters:' in documentation. Non functional change
2012-01-12 09:32:49 +01:00
tschaub
b844a3b11b
Happy New Year!
...
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
Éric Lemoine
45a6e24299
Panel iconOn and iconOff do not behave correctly if application-specific classes are set in the control
2011-12-14 15:49:19 +01:00
Tim Schaub
995d612caa
More robust array type check. p=mwootendev, r=me ( closes #2959 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12095 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-06-16 19:16:25 +00:00
Éric Lemoine
0d45c5f148
allow toggling TYPE_TOOL controls in panels, p=jorix, r=me ( closes #3294 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-05-10 07:13:22 +00:00
Éric Lemoine
6e3af67dab
change Panel to avoid redrawing every control on every activate/deactivate, p=jorix, r=me ( closes #2906 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11874 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-04-05 06:35:49 +00:00
Tim Schaub
ad54169479
Happy New Year.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:39:40 +00:00
ahocevar
ea3999d755
partially reverted r10732 (because we don't deactivate controls on destrly) and reverted r10810 (because it is not needed any more). r=elemoine ( closes #2864 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-10-14 10:57:31 +00:00
Éric Lemoine
233ffe6a10
Use div.childNodes instead of div.children, as div.children isn't supported by FireFox 3.0, p=fvanderbiest, r=me ( closes #2855 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-30 11:26:29 +00:00
ahocevar
c70a97fb77
Removing redundant redraw. This patch is an excellent example of how things should be done, well done jorix. p=jorix, r=me ( closes #2837 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10734 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-14 07:30:28 +00:00
ahocevar
a1f20ee345
Avoid panel being displayed after deactivate. p=jorix, r=me ( closes #2835 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10732 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-13 13:26:07 +00:00
crschmidt
f0d474e50b
Change license text to point to "OpenLayers contributors", referencing
...
authors.txt file. In reality, MetaCarta does not own copyright to these files,
they merely have a right to distribute them under the license terms agreed to
by the contributors. At this point, there is no longer any reference to
MetaCarta as a copyright holder in the OpenLayers project, only to its
individual contributors via the authors.txt file.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:06:31 +00:00
crschmidt
acae8a8013
Panel: Adding controls, unnecessarily activations occur followed by
...
deactivations (closes #2769 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10699 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-26 14:34:30 +00:00
ahocevar
ce0ba0b570
New saveState option to restore the active state of controls in a panel after re-activating the panel. r=crschmidt,jorix ( closes #2753 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 12:09:42 +00:00
crschmidt
3520c32140
In order to resolve a memory leak in IE, observable via drip, remove elemnts
...
from panels before calling innerHTML. This resolves the memory error. All
tests pass in FF and IE, and there are no obvious side effects I can imagine;
committing. Patch from aabt, r=me, (Closes #2745 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10665 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-21 16:10:21 +00:00
ahocevar
d965d4a1a0
fixed APIdocs. Non-functional change.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-05 14:30:46 +00:00
ahocevar
f0736370f3
Use a loop variable to avoid array lookups and use one if clause instead of two. Non-functional change (see #2764 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10577 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-04 08:10:40 +00:00
ahocevar
ea1290f8d8
Do not change the active state of button controls on a panel when a tool control is activated. p=jorix, r=me ( closes #2764 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-04 07:56:25 +00:00
Éric Lemoine
ab42111aac
code cleanup - remove unused variables and declare local variables, p=avlee, r=me ( closes #2326 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9766 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-10-27 12:15:22 +00:00
Tim Schaub
6f18a6abd0
Stopping double clicks on the panel control. Thanks for the patch sbenthall. r=me ( closes #2069 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-29 04:20:57 +00:00
Tim Schaub
8b741bc666
Adding an autoActivate property for controls. If this is set to true, the control will be activated when it is added to a map. This is true for the Navigation, NavigationHistory, KeyboardDefaults, and Panel controls. False for others. r=elemoine ( closes #2200 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9589 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 21:58:39 +00:00
Tim Schaub
fe0ddf9f21
Various other ndoc tweaks for controls.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9156 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 22:05:30 +00:00
crschmidt
95c178adf2
A brilliant patch adding better documentation to all of our controls from an
...
unnamed contributor on OpenLayers trac. (Closes #1751 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-03 06:30:15 +00:00
Tim Schaub
66a4c6fb0e
Caching array length instead of accessing it with each iteration. r=crschmidt ( closes #1636 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 04:44:25 +00:00
crschmidt
8c59d55658
Redraw control.panel when toggle controls are activated. Patch by
...
sbenthall (yay), r=me, (Closes #895 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 00:40:32 +00:00
Tim Schaub
209f8f68f8
Fixing links in documentation. Other Natural Docs changes. ( closes #1504 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6833 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-09 16:52:08 +00:00
Tim Schaub
0a8aa16f78
Control panels should deactivate all non-toggle type controls before activating a new control. r=me ( closes #1414 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6443 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-06 05:22:18 +00:00
ahocevar
886b963ce5
Fixed several destroy() methods to avoid running into undefined objects when the page unloads. r=crschmidt,me ( closes #1222 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6172 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 18:51:48 +00:00
Tim Schaub
bf224d699d
Giving all controls an events instance. You can now listen for activate and deactivate on any control. Panel controls do this to know when they should redraw. Navigation history control demonstrates the effect of this change. r=elemoine ( closes #1346 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6167 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 16:46:02 +00:00
crschmidt
ea5e96df85
Add support to set the 'title' property of a control such that it will
...
be displayed when hovering over the control in a control.panel via its
panel_div. r=me (Closes #822 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-27 14:44:16 +00:00
Tim Schaub
6048cdc108
Constructor doc comment for control panel.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-03 00:30:33 +00:00
crschmidt
09e0d3ec81
Update copyrights to 2008.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-01 08:14:55 +00:00
Tim Schaub
33e313b059
Separating jsdoc style docs into their own block. The new NaturalDocs doesn't parse these mixed blocks, giving us no class descriptions with the two together. ( closes #1229 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 08:28:09 +00:00
Tim Schaub
36e04a689f
Adding OpenLayers.Array.filter to mimic Array.prototype.filter. Adding panel.getControlsBy and related methods that use filter. Reworking map.getBy to use filter as well. r=elemoine ( closes #1203 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5532 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-20 08:12:19 +00:00
crschmidt
ed3221441c
Refactor SVN layout in compliance with RFC/LicenseChange. This hopefully
...
completes an important blocker for moving forward with OSGeo incubation.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 02:21:22 +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
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