Commit Graph

101 Commits

Author SHA1 Message Date
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
crschmidt
8dd38fe945 Add some jsdoc commenting into PanZoomBar (part of testing svk)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@420 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-27 10:29:42 +00:00
euzuro
542e9fa258 allow for user to set the sizing method. make default 'scale'. set to 'crop' as desired for panzoombar in r396. removed outdated tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@401 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 15:47:07 +00:00
crschmidt
db6049d3b4 * Refactor PanZooMBar so that we don't have three functions that do the exact same thing: These are simply passing information on to the slider, which then actually does the moving, so we'll create passToSlider.
* Alter the dragging code so that you can't drag above or below the top/bottom of the bar.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@397 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 12:16:02 +00:00
crschmidt
1f89f13fb5 Adding events to map while dragging in the zoombar, then removing them afterwards. This neccessitated adding a 'remove' to Events, to pop events off the end. No more problems with dragging off into the map accidentally.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 02:17:43 +00:00
crschmidt
ae5ff749da Add missing Event.stop() on slider div move event.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@387 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 02:00:54 +00:00
euzuro
e54c008a98 more updates i missed in r384
git-svn-id: http://svn.openlayers.org/trunk/openlayers@385 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 01:42:32 +00:00
euzuro
f115b797a3 Changed around the order of arguments for createImage, createDiv, and createAlphaImage. bubbled out helper function OpenLayers.Util.modifyDOMElement() to handle common mods. Official order now is: id, px, sz, imgURL, position, border[, overflow]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 01:23:11 +00:00
crschmidt
dccc884faa Fix a swap Pixel->Size from r363
git-svn-id: http://svn.openlayers.org/trunk/openlayers@380 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-26 00:00:42 +00:00
crschmidt
d7a27bc959 Changing the IE Specific code. We create a regular alphaImageDiv, then resize it after we get it back. Hopefully this makes IE less cranky.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@379 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 23:45:25 +00:00
crschmidt
5f4a8d2b0d Make a first attempt at making the zoombar div transparency work in IE. Since this image is a background image, I want to be able to set different sizes for the img and the div. I'm nt sure how well this attempt will work. However, the code still works in FF on OS X. Someone with IE test when they get a bit?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@374 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 19:46:49 +00:00