Commit Graph

111 Commits

Author SHA1 Message Date
crschmidt
692d0f6113 Fix broken units: inches was missing, and dd was in place of images.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@966 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-18 14:37:40 +00:00
euzuro
e91d0546ee replace all usage of copyOf() with clone(). Now copyOf() is officially deprecated and unused. supported only if users out there have used it, but we can phase it out in the next official release.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@961 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-18 11:56:13 +00:00
crschmidt
37e47ad612 Added rounding in updateScale().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@925 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-08 06:35:47 +00:00
crschmidt
3d59c93b9d Removed unnecessary base param from Scale control.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@924 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-08 06:20:36 +00:00
Schuyler Erle
70df45d160 Created scale indicator based on Chris's Permalink.js.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@923 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-08 06:17:33 +00:00
Schuyler Erle
3a018dbb45 Declared vars in Permalink.js as lexical.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-08 06:05:48 +00:00
euzuro
10cbef9274 since we can technically register events for any domelement, there is no reason this variable should be named 'div'. Change it to 'element' and update its use everywhere.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-04 11:57:18 +00:00
euzuro
af5e930c0a coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@856 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-03 00:15:42 +00:00
euzuro
e34d5e2e96 jsdoc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@855 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-03 00:06:28 +00:00
euzuro
16d9da1268 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@853 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-02 18:49:07 +00:00
euzuro
70af5bbb7f jsdoc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@852 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-02 18:43:50 +00:00
crschmidt
50c00d35d9 Fix a lint error in Javascript, thanks to Safari. (Found by a user of the Boston Freemap.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@850 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 19:36:42 +00:00
crschmidt
7f6ffe8164 Factor out getArgs into Util class, since we use it in other places as well. Modify Permalink Control to fit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 14:05:34 +00:00
crschmidt
15a47c6513 Add support to Permalink control to automatically create Permalink inside map div if no element is given. This isn't pretty, but it's a good way to quickly/easily add a permalink to your map.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 02:41:21 +00:00
crschmidt
9f0a77aa92 Add PermaLink control. Add test for permalink control. This control will automatically center and zoom the map to lat/lon/zoom args, and allows you to set an <a> element whose href is modified when the map moves. controls.html implements an example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@846 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-01 02:14:03 +00:00
euzuro
ff0e83d0a0 bringing all changes from sandbox/euzuro/LayersReworking down into the trunk. this is a merge of r656:HEAD http://svn.openlayers.org/sandbox/euzuro/LayersReworking
git-svn-id: http://svn.openlayers.org/trunk/openlayers@806 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 23:16:26 +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
crschmidt
7584d12ae5 Turn off selecting in IE, so we don't end up selecting tiles while dragging a box.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@680 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 18:53:36 +00:00
crschmidt
2dc364f417 In IE, we use the image hack, so changing the img.src doesn't help.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@679 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 18:47:51 +00:00
Schuyler Erle
bf6ad055df Renamed zoomExtent to zoomToFullExtent, added tests for it and for the new lonlat/px convenience functions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 17:12:19 +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
euzuro
abb950a7c3 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@651 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:32:27 +00:00
euzuro
705555f1f7 add concept of slideFactor to panzoom
git-svn-id: http://svn.openlayers.org/trunk/openlayers@650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:31:34 +00:00
euzuro
61a93c8d38 add() method on lonlat does not modify actual lonlat, but rather creates new lonlat with the add affected. must therefore assign from return value.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@649 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:29:06 +00:00
euzuro
91e9c17c98 small fix - context was not correctly set to get the slide factor
git-svn-id: http://svn.openlayers.org/trunk/openlayers@648 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 14:06:21 +00:00
euzuro
82f40f8f3f commenting/JSDOC/coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@647 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:44:30 +00:00
euzuro
ee2b60ff6b allow user to set the slide factor in keyboarddefauls
git-svn-id: http://svn.openlayers.org/trunk/openlayers@646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:09:17 +00:00
euzuro
1cca9fcde7 one last small optimisation / readability fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:05:50 +00:00
euzuro
3323a0e2a8 small code reorganization and bringing up to date with JSDOC and coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@644 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 13:03:00 +00:00
euzuro
ed3c2a6f0b change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 22:51:55 +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
Schuyler Erle
2f9c7dfbd3 Fixed MouseDefaults so that click doesn't fire immediately after drag. This needs to be tested in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 00:32:48 +00:00
crschmidt
20e77d1f3b zIndex setting wasn't doing anything for us other than making it so that there was a CSS error, since this.div has no zIndex, apparently.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-11 23:23:56 +00:00
crschmidt
7d0b489e42 Commit changes to include a 'minor' flag on setCenter, that indicates that a map should not call the moveend trigger.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@558 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-08 16:13:42 +00:00
crschmidt
84a7d8583c Change it such that the Control location and direction can be selected.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@556 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-08 03:46:33 +00:00
crschmidt
9ebfa46552 Add support for distance measuring. Do more catching errors and the like. Move icons to be vertical, below panzoombar -- this is not yet configurable, but needs to be.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@555 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-08 03:38:02 +00:00
crschmidt
5b8c48d8ed r3113@creusa: crschmidt | 2006-06-07 12:19:31 -0400
Changes to MouseToolbar: images are correct, fixes to various small mouse issues when combining clicked icons with modifier keys.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 19:09:39 +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
crschmidt
22d122d2ee Remove additional line that doesn't do anything useful.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@509 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 13:52:24 +00:00
crschmidt
6347973fd2 r1112@creusa: crschmidt | 2006-06-05 09:53:14 -0400
MouseToolbar work. This is working for zoombox -- except for clicking for a second time to turn off the mode in the modal toolbar. 
 
 Also, no support for other tools yet.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@507 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 13:47:09 +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
cdd26c1df2 fix map.zoomExtent().
Re-add zoomToWorld button to PanZoom control.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 21:10:53 +00:00
crschmidt
f11bdcef95 Commit visual tweaks to controls for #55 .
git-svn-id: http://svn.openlayers.org/trunk/openlayers@460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 19:31:11 +00:00
crschmidt
88bb94133f r404@creusa: crschmidt | 2006-05-27 12:19:43 -0400
Removing unmodified 'destroy' function, adding CLASS_NAME per codingstyle.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@428 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:35 +00:00
crschmidt
bd42f1f91f r403@creusa: crschmidt | 2006-05-27 12:19:00 -0400
Reorganization of PanZoomBar, adding of documentation to all functions.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@427 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:32 +00:00
crschmidt
1dd5d5b632 r402@creusa: crschmidt | 2006-05-27 12:13:02 -0400
Finish previous commit.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@426 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:29 +00:00
crschmidt
d647218db6 r401@creusa: crschmidt | 2006-05-27 12:12:17 -0400
Don't create local variable zoomStopSize. Remove sz variable -- it was only being modified, so create it inside the function instead.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@425 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 19:17:24 +00:00