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
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
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
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
euzuro
08e7a5f10f
update Control, Marker, and Popup such that they all have draw(px) and move(px) functions. standardization. update tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 12:50:09 +00:00
crschmidt
3dca1fffb6
PanZoomBar is now a subclass of PanZoom, and can drop a lot of its functions in favor of inheriting from that class. hooray for less code duplication.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@83 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:36:11 +00:00
crschmidt
ebcebe6ef7
Add code to capture 'clicks' on the zoombar, and deliver the zoom to that level. This matches the Google Maps expectation of being able to click on a 'rung' and zoom in to that level.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@82 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:17:55 +00:00
crschmidt
90460002cb
Register 'zoomend' event. Use zoomend event registration to move zoomer when zoom level changes. And it even works right.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@78 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:48:18 +00:00
crschmidt
e77be72a77
This was named the same as PanZoom, and was overriding this class when included.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@71 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 01:49:19 +00:00
euzuro
bd16aa9cdf
replaced calls to addX and addY with calls to add. Simplify
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@51 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:32:11 +00:00
crschmidt
b27500e511
Add PanZoomBar, make PanZoom not also have a bar, remove LayerSwitcher control for the time being.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@33 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-15 18:28:57 +00:00