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
euzuro
a758efb2f2
added getScaleFromResolution() function to util, also added tests for both directions of the scale<->resolution tranformation functions, as well as the normalizeScale() function
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-10-03 03:21:45 +00:00
crschmidt
651caa931a
When we set the background color for an erroring image, we also want to
...
*display* the image... otherwise that color never shows up.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1489 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-19 20:23:48 +00:00
euzuro
a210e16479
final update to r1438 -- forgot to test on ie. turns out the 'safe' part means not setting that returnValue property.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1440 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-13 08:27:24 +00:00
euzuro
7ce7f2484b
update default behaviour of popups. now you can click and drag inside a popup without the events dropping through to the map, yet if you are dragging a zoombox over a popup, it still responds. this is all thanks to a new function i am adding to Util.js which is called OpenLayers.Util.safeStopPropagaition(). Turns out the default Event.stop() from prototype.js is also calling a function called preventDefault() which disallows things like selecting text or clicking a hyperlink. all tests pass.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1438 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-13 08:20:02 +00:00
crschmidt
4a65590d3e
Tile opacity patch from tschaub: Fix for #235 . Also includes tests to ensure
...
that code works.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1433 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-09-11 14:30:25 +00:00
crschmidt
8be2cfbc71
Make image load error color configurable. Document it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1386 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-26 16:05:25 +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
748234606e
it's redundant for applyDefaults() to return anything. thx tschaub
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1255 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 19:16:46 +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
841fdcbfb3
split Util.js into two files. BaseTypes.js will contain all the OL Base types, such as Pixel, LonLat, Bounds, etc., as well as all the standard javascript basetypes (string, number, etc) extensions. All else remains in Util.js. In theory I have fixed all dependencies. If this doesn't work, I'll rollback.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 21:49:19 +00:00
euzuro
b63427037f
coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1201 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-12 16:24:33 +00:00
euzuro
375d968278
suggestion from #138
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1186 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-10 05:59:17 +00:00
Schuyler Erle
a2002868f1
Fix embarassing typo, part II.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1181 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 23:41:52 +00:00
Schuyler Erle
2d35451a2e
Fix embarassing typo.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 23:40:38 +00:00
Schuyler Erle
206e97ad0d
Check to see if values are NaN in *.equals().
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1179 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 23:39:47 +00:00
Schuyler Erle
0b41ad2cef
Check to see if values are NaN in *.equals().
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 23:38:48 +00:00
euzuro
bf41b45532
i broked ie. der problem is dat extra comma. ok for ffox but not for ie.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 22:20:50 +00:00
crschmidt
6efaf328e5
Commit scale-based methods back into trunk. Layers or Maps now support setting
...
a list of scales or resolutions in the options to the constructor, from which
resolutions are calculated. Map now has a 'setScale' function which will allow
you to zoom to as close to a given scale as possible.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 19:14:16 +00:00
crschmidt
e3df606001
Quote indexes into array.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1161 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 15:52:23 +00:00
Schuyler Erle
a6edeb64b5
Added normalizeScale and getResolutionFromScale to Util.js.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 14:55:32 +00:00
Schuyler Erle
3f5c2a8fb9
Moved INCHES_PER_UNIT and DOTS_PER_INCH into Util.js.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 14:47:26 +00:00