euzuro
88ff0bc9af
give our events model the option of allowing events to fall through so that they can be picked up in lower layers. change the panzoombar and the mousetoolbar to use this new fallthrough option so that we aren't causing bugs when the drag zoom rectangle gets dropped over them, they dont freak out. next up i am going to re-fix the popup events code to use this feature.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1468 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-14 20:25:23 +00:00
euzuro
74f5b814eb
update id system -- now control and layer divs take their classname and add a random number
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-06 20:44:55 +00:00
euzuro
e1a1b94582
udpate id's of control divs. This is for #226
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1398 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-31 15:27:10 +00:00
crschmidt
104e509eb9
Merge 2.0 branch to trunk.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1369 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-25 18:17:06 +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
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
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
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
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
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
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
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