Schuyler Erle
b06c49e1da
Added directory for documentation.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@660 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 16:38:13 +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
Schuyler Erle
60e994f36b
Rolled back accidental changes to zoombar.svg.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@655 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:17:15 +00:00
Schuyler Erle
65cc8e0ab7
Added full text of license to repository.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@654 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:15:53 +00:00
Schuyler Erle
b6f7222282
Bug fix to map.updateSize for IE when size is a percentage. Calls Element.getDimensions from Prototype.js, which hopefully is the right thing to do. Fixes ticket #37 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@638 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 02:35:04 +00:00
Schuyler Erle
351ebb0d52
Fix minor typo introduced in r619. Thanx, euzuro\!
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@620 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-20 14:57:29 +00:00
Schuyler Erle
9e8c2f3802
Augment r618 by allowing the more prosaic and self-documenting { maxResolution: 'auto' }.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@619 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-19 21:09:31 +00:00
Schuyler Erle
2f9c7dfbd3
Fixed MouseDefaults so that click doesn't fire immediately after drag. This needs to be tested in IE.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@571 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 00:32:48 +00:00
Schuyler Erle
55937eeb1f
Refactored event handling to allow unregistration of event listeners.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@570 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-12 00:16:02 +00:00
Schuyler Erle
abc1fd092e
Added click demo, via Chris.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@569 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-11 23:52:07 +00:00
Schuyler Erle
e6028f9ead
Moved OL WMS to new home at http://labs.metacarta.com/wms/vmap0 .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@562 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-09 04:01:07 +00:00
Schuyler Erle
e148bc7ad8
Set jsmin.py executable.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@561 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-09 01:28:15 +00:00
Schuyler Erle
53f13ab054
Renamed _sfl_header.js to something a bit more comprehensible.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@524 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 18:27:26 +00:00
Schuyler Erle
fc2eb32f5c
Added arrow and zoom-world SVG sources files from Mk III.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@472 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 19:36:36 +00:00
Schuyler Erle
5d1bc5ed78
Fixed redundant tileSize definition.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 06:26:54 +00:00
Schuyler Erle
0e6b61c352
All tests now pass in IE.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@315 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 05:46:54 +00:00
Schuyler Erle
cfb1b472a7
Calling map.destroy() twice previously an error in IE. Fixed.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@314 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 05:44:43 +00:00
Schuyler Erle
0417c9feb5
Fix test_Layer_Text.html, which was also broken by r301.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@313 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 04:34:27 +00:00
Schuyler Erle
3ebbf969f2
Fix test_Layer_WMS.html, which was broken by r301.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@312 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 04:31:57 +00:00
Schuyler Erle
b7e9c0596f
Fix test function names in test_Layer_Markers.html.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@311 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 04:23:48 +00:00
Schuyler Erle
b4f7d528d0
Always disable dragstart in IE on Events objects, so that mousedown/move/up works normally.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@310 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:43:34 +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
7683e0853a
Fix to Control.MouseDefaults stops panning when dragging off the map. Closes #29 for good, I hope.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 03:20:22 +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
Schuyler Erle
e0bfdd2a97
Oops, moved HTML files but forgot to fix the reference to OpenLayers.js. Fixed.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@303 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 02:02:31 +00:00
Schuyler Erle
c90158a2d7
Moved all the HTML files into examples/.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 00:22:55 +00:00
Schuyler Erle
45fc70cbc7
If map.maxResolution is not set, set it to display the entire maxExtent in whatever the current map size is by default.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@301 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 22:41:28 +00:00
Schuyler Erle
a317e767ec
Some improvements to Control.PanZoomBar, mostly to make it work with the new graphics.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@281 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:39:07 +00:00
Schuyler Erle
3bf34940ca
New images for the zoombar, plus an art directory to hold vector drawings, etc.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@274 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 21:03:14 +00:00
Schuyler Erle
43d9a488df
Cleanup the getZoomForExtent() code -- thanks to crschmidt for discovering that I had the ratio of max to current resolution flipped.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@270 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:50:51 +00:00
Schuyler Erle
7378388d45
Added a position property to Control, which allows us to specify a default
...
location for each Control class, and saves us from *having* to supply a pixel
position to the map.addControl() method -- the sensible default will tend to be
used instead.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 17:25:46 +00:00
Schuyler Erle
0cc4aa316d
Set up a resize event listener to call map.updateSize() as necessary.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@262 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 14:08:15 +00:00
Schuyler Erle
27c99baacb
Make it possible to supply an empty list to the Map() constructor, to disable the default controls.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@261 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 14:06:09 +00:00
Schuyler Erle
af7dc7661a
Commented out code to cancel zoom box if shift key is released before left mouse button. I find myself doing this consistently by accident, so we should probably find another way to cancel the zoom, like hittin ESC or something.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@245 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 03:47:19 +00:00
Schuyler Erle
7999253c74
Make the zoom box thicker and semi-opaque.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-22 03:27:51 +00:00
Schuyler Erle
3470045a93
Added proxy.cgi from Mk II(I).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@195 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-19 19:48:02 +00:00
Schuyler Erle
006053f769
Added CLASS_NAME to OpenLayers.Map.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 19:36:32 +00:00
Schuyler Erle
a5d6ad32da
Added test for fix in r114. (take two)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 01:03:29 +00:00
Schuyler Erle
1c73ef0250
Added test for fix in r114.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 01:03:12 +00:00
Schuyler Erle
644dc8dcb2
Fixed OpenLayers.Util.getImagesLocation(), at least until we get the single file version working again.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 01:00:11 +00:00
Schuyler Erle
2160d1e2bd
Added NASA Global Mosaic and DM Solutions' Canada map to example.html.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@113 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 20:58:30 +00:00
Schuyler Erle
4d0179df50
Added additional sensible defaults to Layer.WMS.DEFAULT_PARAMS, and fixed constructor to only set defaults on param keys that aren't already set (e.g. format). Added tests, which pass.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@112 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 20:58:00 +00:00
Schuyler Erle
11e66c0286
Create applyDefaults() function that works similarly to extend(), but without replacing existing keys.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@111 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 20:57:05 +00:00
Schuyler Erle
ed9b57b6df
Fixed zoomend event code; changed semantics of the argument to moveToNewExtent to make the argument be the *previous* zoom level. Added tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@66 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 23:46:41 +00:00
Schuyler Erle
c494b8ef2d
Laid in some calls to various application events in Map; also, refactored zoomIn and zoomOut to use zoomTo underlyingly.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@65 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 23:17:44 +00:00
Schuyler Erle
55732b8934
Added setTileSize() method to Layer.Grid. Also, added clone() method to Layer.WMS to make up for lack of a separate data source class.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@63 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 22:26:47 +00:00
Schuyler Erle
8218798cf9
Added check for layer.map === map to Map tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@62 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 22:26:24 +00:00
Schuyler Erle
ce6c4acd63
Made Events class more generic; the Events constructor now takes a list of supported application event types. Added tests for the Events class.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@61 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:48:56 +00:00
Schuyler Erle
d4fd4f7803
Added test for Map.getResolution() bug created in r[56] and fixed in r[59].
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@60 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:09:39 +00:00
Schuyler Erle
dc13cd1ab6
Bug fix for r[56].
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@59 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:06:07 +00:00
Schuyler Erle
00da133a5e
Updated example.html to reflect r[57].
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@58 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:32:40 +00:00
Schuyler Erle
143fd8d170
Map constructor now calls on div argument, so that developer doesn't need to.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@57 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:31:59 +00:00
Schuyler Erle
47bf4cdad8
Changed DEFAULT_ZOOM_LEVELS to maxZoomLevel, DEFAULT_FULL_EXTENT to maxExtent,
...
and RESOLUTION_AT_ZOOM_LEVEL_0 to maxResolution. These values are no longer constants,
but have (thanks to JavaScript object prototyping) sensible defaults.
These defaults can now be overridden by passing a hash as the second argument of
the Map constructor.
Added tests to verify.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@56 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:27:22 +00:00
Schuyler Erle
58b202b359
Added addLayers() method to Map class; also, added tests to support it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@55 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:16:02 +00:00
Schuyler Erle
1b00201377
Removed red background and centered map at (0,0) in example.html.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@54 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:58:08 +00:00
Schuyler Erle
c0bea6397a
Eliminate any possible circular references to controls in OpenLayers.Map.destroy().
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@17 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:38:33 +00:00
Schuyler Erle
aceaa334b3
Fixed incorrect plan in test_Layer.html.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@16 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:37:29 +00:00
Schuyler Erle
250b7758da
Got tests working.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@15 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:36:52 +00:00
Schuyler Erle
ab312e867d
Added basic tests for Map, Layer, and Control base classes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@14 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:31:14 +00:00
Schuyler Erle
50caed2d35
One last fix to make OpenLayers.js work with the new directory scheme.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@13 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:15:56 +00:00
Schuyler Erle
6f421094d2
Fixed example.html and OpenLayers.js to use lib/ instead of js/.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:02:21 +00:00
Schuyler Erle
04ba28f5a4
Revised directory structure (js/ -> lib/, test/ -> tests/) to match JSAN distribution standards, as documented at http://www.openjsan.org/documentation/dists.html .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 21:15:53 +00:00
Schuyler Erle
059cef7570
Add test/ directory, including run-tests.html from Test.AnotherWay, and some of Phil's work from the original Hunut code base. Test.AnotherWay lives at http://www.openjsan.org/src/a/ar/artemkhodush/Test.AnotherWay-0.51/doc/ .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 21:12:41 +00:00
Schuyler Erle
9b7861b42c
Removed SVN commit garbage. Oops.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 19:36:22 +00:00
Schuyler Erle
6810d70bdd
Importing OpenLayers "newAPI" branch.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 19:35:22 +00:00