euzuro
|
51ac2b4acf
|
remove useless or duplicate functions from Util.js -- no more: Array prepend() append() -- use push() and unshift(). clear() and indexOf() both removed as they are duplicated in Prototype.js -- all instances replaced and tests updated.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-08-09 03:31:06 +00:00 |
|
euzuro
|
5216e5b042
|
add comment -- limitSigDig only works with integers... for now
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1009 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-26 12:27:41 +00:00 |
|
euzuro
|
ce69912782
|
add limitSigDigs() function to number's prototype. tests included
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-26 12:22:12 +00:00 |
|
euzuro
|
c0e82d966f
|
consolodate usage of Math.random() in OpenLayers.Util.createUniqueID()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@971 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-18 16:23:12 +00:00 |
|
euzuro
|
0a1529e00a
|
lowercase functionname, indicate unique
git-svn-id: http://svn.openlayers.org/trunk/openlayers@969 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-18 16:12:31 +00:00 |
|
euzuro
|
788ee7fee2
|
add a util function to create a random id
git-svn-id: http://svn.openlayers.org/trunk/openlayers@968 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-18 16:10:38 +00:00 |
|
euzuro
|
f9034ac9a2
|
do not add null-valued parameters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@959 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-17 15:37:48 +00:00 |
|
euzuro
|
eb6c2a6346
|
first step of deprecating copyOf() functions, to be replaced with clone()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@943 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-14 12:59:08 +00:00 |
|
euzuro
|
9eb4f1967e
|
fix calculation for random ids
git-svn-id: http://svn.openlayers.org/trunk/openlayers@939 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-12 01:53:03 +00:00 |
|
euzuro
|
65ae34d4e7
|
add contains() function to string library. added tests too.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@859 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-03 19:54:00 +00:00 |
|
crschmidt
|
7f6ffe8164
|
Factor out getArgs into Util class, since we use it in other places as well. Modify Permalink Control to fit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@848 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-07-01 14:05:34 +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 |
|
euzuro
|
e9bc79203b
|
correct comment/JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@643 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-21 12:48:44 +00:00 |
|
crschmidt
|
35dc7ba8f0
|
In XHTML Transitional, using unitless values in Javascript to set width, height, etc. doesn't work. This change should make it so that openlayers works under XHTML 1.0 transitional in firefox and safari.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@617 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-19 17:19:36 +00:00 |
|
euzuro
|
86b99df3f3
|
modify all equals() functions in Util.js (Size, Pixel, LonLat, Bounds) such that if a null value is passed in, they return false. Tests updated to make sure this is true.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-17 14:12:56 +00:00 |
|
crschmidt
|
495b9f0134
|
Remove 'inherit' cursor, which does not work as expeted in IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@560 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-09 00:59:39 +00:00 |
|
crschmidt
|
bacb0a917c
|
Add vincenty great circle formula.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@554 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-08 03:37:20 +00:00 |
|
euzuro
|
450f7b0460
|
add a static function to make a Bounds from a Size. test included.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@531 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-06 16:52:45 +00:00 |
|
euzuro
|
c7aee7fd25
|
add OpenLayers.Util.upperCaseObject() function and test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@491 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-01 10:52:22 +00:00 |
|
euzuro
|
128825886e
|
move applyDefaults up to be next to (related) getParameterString()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@490 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-01 10:33:53 +00:00 |
|
euzuro
|
c5fc30cf97
|
adding OpenLayers.Bounds.fromArray() function and adaptor for fromString()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@486 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-01 00:33:15 +00:00 |
|
euzuro
|
7ff1332819
|
minor change to calculation of center points for bounds. less overhead.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@482 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-06-01 00:10:06 +00:00 |
|
euzuro
|
cd0b43d938
|
add OpenLayers.Util.modifyAlphaImage() function and tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@448 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-29 13:30:11 +00:00 |
|
euzuro
|
0985ac299e
|
add offset() operation to OpenLayers.Pixel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@444 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-29 11:48: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
|
04efcffb00
|
Crop the image to the size of the div. This is helpful in cases where the image is larger than the div -- such as when we're adjusting the height, in the zoombar, and have a significantly larger image that we want to crop to the size of the zoombar.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@396 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-26 11:42:52 +00:00 |
|
euzuro
|
75f9a6b2e0
|
add equals() function to OpenLayers.Bounds. plus test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-26 02:42:58 +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
|
0e7e831f0d
|
Fix lack of return value.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@383 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-26 00:46:12 +00:00 |
|
crschmidt
|
109773f56b
|
migrate out alphaHack checking into OpenLayers.Util.alphaHack().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@382 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-26 00:44:45 +00:00 |
|
euzuro
|
9a6b8b1404
|
porting/code-relocation error
git-svn-id: http://svn.openlayers.org/trunk/openlayers@378 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-25 23:44:31 +00:00 |
|
crschmidt
|
b75fd8ee2c
|
Change This back, undoing r374.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-25 23:39:48 +00:00 |
|
crschmidt
|
26d35788b7
|
Attempting to make IE happy.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@376 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-25 23:32:22 +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 |
|
euzuro
|
497123ffac
|
adjust inner image id, do not bother with trying to directly set width and height on image element, it doesnt work anyways
git-svn-id: http://svn.openlayers.org/trunk/openlayers@364 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-25 17:10:11 +00:00 |
|
euzuro
|
a844ccafe2
|
new function to create an alpha-transparency protected image -- burried in a div. This is for Ticket #25
git-svn-id: http://svn.openlayers.org/trunk/openlayers@362 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-25 16:13:23 +00:00 |
|
euzuro
|
022ffde95e
|
moved oppositeQuadrant() function from Anchored.js to Util.js, where it is now a static function on the OpenLayers.Bounds class. Updated usage in code accordingly. Added test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@343 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-25 00:54:45 +00:00 |
|
euzuro
|
b55debdd48
|
adding determineQuadrant() function to OpenLayers.Bounds. Tests included.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-24 23:43:09 +00:00 |
|
Schuyler Erle
|
b9ab087d32
|
Bug fix to Util.mouseLeft() for IE.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@309 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-24 03:25:17 +00:00 |
|
Schuyler Erle
|
0b7d1e6e1e
|
Bug fix and comments to Util.mouseLeft().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@307 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-24 03:14:05 +00:00 |
|
Schuyler Erle
|
259c17106e
|
Implemented OpenLayers.Util.mouseLeft to make up for a lack of onmouseleave in Mozilla.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@306 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-24 03:01:50 +00:00 |
|
euzuro
|
ad41a1df69
|
move xml helper functions into Util.js and adapt code to use them-- is this where we want to keep them? do we want to keep them? tests need to be written.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@292 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-23 17:35:16 +00:00 |
|
euzuro
|
d694efa60e
|
add indexOf() function to array - returns first index of a given element in an array. useful for testing, etc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 14:42:18 +00:00 |
|
euzuro
|
89a45025af
|
thank you testing. only set this if a value is passed in
git-svn-id: http://svn.openlayers.org/trunk/openlayers@151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 16:56:55 +00:00 |
|
euzuro
|
a177cdb508
|
oops. forgot to save Util.js before committing [149]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:43:14 +00:00 |
|
euzuro
|
8f95619539
|
coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:25:31 +00:00 |
|
euzuro
|
6eae15b4dc
|
JSDOC coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:24:32 +00:00 |
|
euzuro
|
2f9e809bad
|
removing unused function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:19:05 +00:00 |
|
euzuro
|
a3941b683e
|
change pt to px (point is now pixel)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:18:47 +00:00 |
|
euzuro
|
90918dad48
|
JSDOC / coding standards createDiv function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:11:13 +00:00 |
|