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
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