Commit Graph

95 Commits

Author SHA1 Message Date
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
euzuro
f339e3a93d hash -> hashtable and Hash -> Object -- let there be no confusion, we are *not* using prototype
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 04:36:39 +00:00
crschmidt
0ba7961df4 Commit tile-reuse branch back to trunk. This branch offers numerous performance
improvements in the form of reduced memory use and lower element creating costs,
hopefully making the OpenLayers code more usable in internet explorer as well
as less of a memory hog in Firefox and other browsers. Additionally, a buffer
is available around the main map grid which allows tiles to be loaded outside
of the viewing area for faster dragging.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:47:33 +00:00
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