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
crschmidt
c8ed8cee87
Fix click-to-zoom.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@373 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 18:39:15 +00:00
euzuro
af4028879f
fix to PanZoom controls to make them alpha-clear. This is it for #25
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@363 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-25 16:38:07 +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
euzuro
06cbeb2f11
fix for #60
...
conversions to/from lonlat/px need to take into account
the offset of the layersContainerDiv.
I have introduced the following functions for converting
between layer and screen pixel values:
getLayerPxFromScreenPx() and getScreenPxFromLayerPx()
they are pretty self-explanitory.
I then renamed:
getPixelFromLonLat() and getLonLatFromPixel()
to:
getScreenPxFromLonLat() and getLonLatFroScreenmPx()
and added:
getLayerPxFromLonLat() and getLonLatFromLayerPx()
updates were made throughout the code, demos, and tests
so everything should still run smoothly.
-e-
git-svn-id: http://svn.openlayers.org/trunk/openlayers@329 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 18:45:50 +00:00
crschmidt
e5bb6b7dbd
Finish of r326, adding : to @require pragmas
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:39:21 +00:00
crschmidt
213a1b02d1
A couple changes got rolled into r326 that weren't meant to: Rolling them back out.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@327 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:38:27 +00:00
crschmidt
c0ec7f9a00
Change @require to @require:
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:17:22 +00:00
crschmidt
201e478c63
Complete refactoring of PanZoomBar. This changes all event handling to be through the Events class, which wasn't the case in the past: this has the result of changing the 'this' object from being the slider, div, etc. to being the Control itself, which simplifies much of the code, and probably removes a few circular references.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@323 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 13:44:29 +00:00
Schuyler Erle
7683e0853a
Fix to Control.MouseDefaults stops panning when dragging off the map. Closes #29 for good, I hope.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:20:22 +00:00
Schuyler Erle
a317e767ec
Some improvements to Control.PanZoomBar, mostly to make it work with the new graphics.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:39:07 +00:00
crschmidt
9190dd18d2
Add @require pragma to all source files.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:20:31 +00:00
crschmidt
81c9315c17
Finishing Schuyler's commit the other day, which was designed to change behavior on release of shift key, but failed to actually do so...
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@276 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 14:45:51 +00:00
euzuro
cd677b332d
small modification to r269 - making sure these get set in the instances and not the class (static).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@272 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 18:11:49 +00:00
Schuyler Erle
7378388d45
Added a position property to Control, which allows us to specify a default
...
location for each Control class, and saves us from *having* to supply a pixel
position to the map.addControl() method -- the sensible default will tend to be
used instead.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:25:46 +00:00