Commit Graph

21 Commits

Author SHA1 Message Date
crschmidt
eb783aab37 If we choose to switch to a mode via the toolbar, don't leave that mode
until we're explicitly told to. This allows users to click the zoombox
and zoom several times.


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-24 05:01:10 +00:00
crschmidt
a7da80c24b Until we have line drawing, there's no need for ruler-ing. It's confusing
users. 


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1339 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-23 20:39:22 +00:00
crschmidt
00dfc669d2 If we're zooming with this tool, we only want to actually change the zoom if
the box was bigger than 5px in one direction or another. If it was smaller 
than that, the user probably just clicked, rather than drawing a box, because 
the MouseToolbar icon is kind of misleading.


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1338 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-23 20:37:16 +00:00
crschmidt
4847d66d6a Post-drag 'click' events aren't really clicks. Don't let them fall through to
the map.


git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1316 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-19 15:57:14 +00:00
crschmidt
c4541115f9 Stop click events from falling through to the map.
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-19 15:03:45 +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
51ac2b4acf remove useless or duplicate functions from Util.js -- no more: Array prepend() append() -- use push() and unshift(). clear() and indexOf() both removed as they are duplicated in Prototype.js -- all instances replaced and tests updated.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:31:06 +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
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
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
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
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
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
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
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