Commit Graph

156 Commits

Author SHA1 Message Date
Tim Schaub
0a5d7ba0bd add try/catch hack for IE so that it doesn't choke on offsetParent check. (Closes 798.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4061 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 19:33:43 +00:00
euzuro
39d9819f81 rename and deprecate getArgs() function in favor of getParameters(), make it such that it parses comma-separated values from key/value pairs into Arrays (since they are encoded that way). (Closes #860)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4052 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-27 15:08:09 +00:00
crschmidt
6194452b8a Since John already went ahead and committed the main change, I'm just going
to finish this one up. All commits are in comments, so a review doesn't seem
strictly neccesary. This closes #918 and fixes all the copyrights that I could 
find in the code.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:29:06 +00:00
Tim Schaub
e9a488c264 #875 - protect global property variable - with regression test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3837 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-02 17:45:19 +00:00
crschmidt
23cef65d0b Commit documentation changes from gstamp, patch from #869.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-30 00:21:02 +00:00
euzuro
b1097e31c0 fix for #859 - make default return from OpenLayers.Util.Try() explicitly null. Also add tests and documentations
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-26 19:20:33 +00:00
euzuro
8c552be94b as universally approved on discussions on dev list, replace new Array() with []. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:48:02 +00:00
euzuro
5f0bde51da as universally approved on discussions on dev list, replace new Object() with {}. all tests pass ff & ie6
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3814 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:39:28 +00:00
euzuro
e8a4938258 fix for #847 - use bind() instead of bindAsEventListener()= when appropriate
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3786 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:03:42 +00:00
Tim Schaub
cae56a65f0 #837 - modify Util.extend to deal with custom toString property - IE doesn't iterate over toString, this patch fixes this behavior for Util.extend
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3760 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 16:35:02 +00:00
euzuro
ad52e8c6fd fix for #787 - put clearArray() in its place ((marked as deprecated, throwing a console warning during use, all usage replaced in code))
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3636 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-06 22:55:17 +00:00
crschmidt
3948913bfc Merge all changes from the naturaldocs sandbox. This brings all the work that
has been done in the NaturalDocs branch back to trunk. Thanks to everyone who
helped out in making this happen. (I could list people, but the list would
be long, and I'm already mentally on vacation.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-29 15:59:20 +00:00
euzuro
385da5c614 2nd attempt fix for #734 -- tests pass in all browsers
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-14 19:11:45 +00:00
euzuro
eb2130617a fix to docstring of #755 -- no longer two-character codes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3325 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-12 19:44:09 +00:00
crschmidt
76f9234e3b Apply browser detection patch which will allow us to determine browser name
with a single line, which is useful for the places in the code where we care
about what browser we're dealing with.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3322 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-12 17:42:11 +00:00
euzuro
3eeaf81e64 rollback r3284, reopening #734. This patch causes tests to break in IE6. I will help to debug this at some point, but right now I am doing other things and I need all tests to pass or I can't move forward.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-11 19:28:48 +00:00
crschmidt
1c833a9b13 OpenLayers.Util.getArgs returns wrong result with fragment identifiers, null
values in params, etc. From fredj. With tests! (Hooray for fredj)
Closes #734.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-06-07 18:32:10 +00:00
euzuro
8a14f917dc fix for #671 - kill global variable usage
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3086 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-17 22:00:47 +00:00
euzuro
23131012dd fix for #624 - merge stop() and safeStopPropagation()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2994 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-04-03 17:15:57 +00:00
crschmidt
afa416fd2d Set the ID of the image before registering events on it. The Event.observe
call uses the element ID to cache the listeners for later deletion, 
so this closes a leak.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2911 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-28 21:08:27 +00:00
euzuro
d49f45dfcc coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-21 16:00:43 +00:00
Schuyler Erle
dbdf9a3df8 Switch to sequential ID numbering. Fixes #226.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2645 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-09 21:54:41 +00:00
crschmidt
c66f1ce360 Create a function -- OpenLayers.Util.getElement -- which replaces "$". This
should be used in all library code. This patch replaces all uses of "$()" in
existing code. The primary reason for this is to avoid conflicts with libraries
(like Prototype) which might redefine this function differently.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-03-08 20:14:03 +00:00
euzuro
9bbf96fd1d patch for #509 -- fixes script error when tile is destroyed before it is used. thx cr5
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-02-26 04:02:58 +00:00
crschmidt
1d06490b2c Change the encoding of parameters, as discussed in #491. The reason this
is important is that the WMS spec specifies that you should seperate layer
names with a ",", and we were encoding that, so compliant WMSes would attempt
to find a single layer with ","s in the name, instead of grabbing multiple
layers. The new way to specify multiple layers is to set:
  layers: ['global_modis','landsat'] 
or the like.
Includes tests, signoff from SDE.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-02-16 20:38:00 +00:00
euzuro
3309b0b12e fix for #480 -- addition of 'viewRequestID' variable to map to keep track of the changing view requests so that images dont load when they are no longer needed. muchas gracias to senior woodall for his help getting this patch together
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-02-16 20:24:56 +00:00
euzuro
8095e22600 patch for #499 - createImage used the wrong number of parameters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2229 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-02-16 18:58:22 +00:00
crschmidt
efe8f3c162 isEquivilantURL() support for browsers, as best we can figure it. Tested in
IE6, FF, Moz, Opera, IE7, Safari.

This may not work in all situations. It's included in util for utility, but
it is possible it may fail in some cases in some environments. If you find
this to be the case, please open a bug and we will work to resolve it.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2162 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-01-19 15:21:12 +00:00
euzuro
ebb575cec3 tests pass in ff, ie6, ie7, and more or less in opera. this is a fix for #470
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-01-11 22:04:59 +00:00
euzuro
0dbf64d096 applying patch from #455 - fixes url equivalence testing for Opera browser
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-01-03 01:00:51 +00:00
crschmidt
01cf10f53d Tests, example change, and Util addition, plus usage in Tile/Image to allow
use of relative URLs, urls with port 80 in them, etc. patch originally from
tschaub, revised by euzuro, reviewed by me. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2093 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-12-22 19:03:32 +00:00
crschmidt
2d7f2d2f47 Commit tschaub's patch for #447. This should let people who are having 'pink
tile' problems where right clicking returns the right tile not have problems
anymore. Note that this is seperate from TileCache related issues where 
OpenLayers doesn't request tiles on a grid. 

Note that I have no reason why this should work. In fact, I'd say it 
*shouldn't* work, but other people are seeing this problem, so I'm glad
to have the code in trunk, since it doesn't change teh default behavior.

Thanks to Tim for the patch.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@2048 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-12-13 20:22:30 +00:00
crschmidt
d77b849405 Parameters for URLs should be URI encoded. Add test for params that need
to be URI encoded in test_Util, and add Tim Schaub's patch from #381 to make
test pass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-11-18 15:35:02 +00:00
crschmidt
fb7b5fff56 Improve getArgs to not use deprecated features, and add support to pass a
URL to the function to parse instead of the window.location. Patch by
Tim Schaub, Closes #378 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1906 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-11-18 15:01:17 +00:00
crschmidt
786c2a20fb Change files to point to repository-license. Part of build process will now
be to change the licensing terms in the final build.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1721 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-24 18:16:39 +00:00
crschmidt
0450c8e21e Zac Barton reports that IEs4Lin does not like document.body.filters. (Confirmed
via forums for the product.) Although this is a bug in that browser, this work
around will allow OL to work for that browser, according to testing.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1700 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-16 13:51:48 +00:00
crschmidt
7c2a8a0cab The OpenLayers server threw a disk, and clobbered another, resulting in a loss
of data up to our last backup. In the previous subversion repository, this was
r1694->r1777. I'm sorry to all those of you who might have checked out that 
code, as this will surely cause problems for you. We're currently working to
figure out what went wrong, and how to prevent it in the future.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1695 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-13 20:41:21 +00:00
crschmidt
5280553306 IE, Safari, and Firefox all deal with XML elements with namespaces in different
ways. I can't even make thigns work in *two* browsers at once -- what a pain.
So, we'll wrap up all the browser-specific stuff in 
OpenLayers.Ajax.getElementsByTagNameNS(), which contains the browser funkies,
and as a benefit, we get working WFS in IE.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-06 15:33:33 +00:00
crschmidt
6de0698f43 By default, OpenLayers expects images in "../img" for non-single file builds,
and "./img" for single file builds. Allow anyone to override this by setting
OpenLayers.ImgPath = '/images/openlayers/' if they choose to. 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1601 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 17:40:19 +00:00
euzuro
07ef71b7b0 Array.indexOf(), though implemented in FF, is not standard javascript. we replace it with OpenLayers.Util.indexOf(), replace all usage
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 16:28:24 +00:00
Schuyler Erle
4739147a2f Removed modifications to Array.prototype and moved them into OL.Util instead. All tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1590 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 15:18:02 +00:00
Schuyler Erle
67ced536c0 Merged r1559:r1587 from source:/sandbox/crschmidt/noprototype. OpenLayers is now Prototype-free(tm).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1588 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-05 14:50:47 +00:00
euzuro
25da469210 replace useage of OpenLayers.Util.setOpacity() with OpenLayers.Util.modifyDOMElement(). Rewrite the former to use the latter, and mark the former as deprecated.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1551 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 19:38:15 +00:00
euzuro
66250b1342 add opacity support to createDiv() and createImage(). update their tests. also small update to modify tests for more completeness. updated one single complete usage of createImage() due to argument reordering
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1549 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 19:07:24 +00:00
euzuro
7280a6211e allow opacity to be set with OpenLayers.Util.modifyDOMElement(). added test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1547 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 18:50:44 +00:00
euzuro
4f8c62df3f revert previous commit. going to do this another way. apologies.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1546 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 18:45:12 +00:00
euzuro
3a3e412090 use already created OpenLayers.Util.setOpacity() function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 18:44:02 +00:00
euzuro
10e7761a97 now we can specify opacity on createAlphaImageDiv(). added tests. updated usage.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1544 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 18:38:40 +00:00
euzuro
348b0b388d allow for setting opacity of alpha image divs. also give both Icon and Marker setOpacity() functions. added tests and modified examples/markers.html to show how to do it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1541 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 17:36:03 +00:00
euzuro
628409a993 change getScaleFromResolution() to return big scale value instead of normalized. update tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 03:44:37 +00:00