Commit Graph

71 Commits

Author SHA1 Message Date
euzuro
d260d7c3ae JSDOC, coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@74 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:08:21 +00:00
euzuro
029683e84e JSDOC updates
git-svn-id: http://svn.openlayers.org/trunk/openlayers@73 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:02:30 +00:00
crschmidt
aa1630bf41 Rearrange Rico includes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@72 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 01:50:02 +00:00
crschmidt
e77be72a77 This was named the same as PanZoom, and was overriding this class when included.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@71 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 01:49:19 +00:00
crschmidt
c351058c24 Move rico dir. Add Color.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@70 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 01:42:41 +00:00
crschmidt
b81d81b67b Add Rico/Corner back to code from old OpenLayers codebase.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@69 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 01:24:52 +00:00
euzuro
27baf53e18 JSAN/JSDOC, coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@68 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 23:58:14 +00:00
crschmidt
a06bc351e4 Create redraw() function. This function does all of the drawing in the control: the draw function merely calls out to it. In addition, draw now does initialization of an event listener, listening for layers being added. This allows you to add the layer control before you've added all your layers, which was not possible before. It also allows, if desired, for us to add the LayerSwitcher control to the default controls, since it now will draw the layer switchers as they are added.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@67 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 23:54:34 +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
crschmidt
0b596a94f4 Add zoomin, zoomout tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@64 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 22:41:36 +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
euzuro
b0c78422aa remove extraneous diff functions. none of these was being used anyways. now all diffs return an OpenLayers.Pixel variable.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@53 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:56:49 +00:00
euzuro
a70c7c9f86 replace 'who()' function with CLASS_NAME member constant. As per email discussion
git-svn-id: http://svn.openlayers.org/trunk/openlayers@52 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:35:15 +00:00
euzuro
bd16aa9cdf replaced calls to addX and addY with calls to add. Simplify
git-svn-id: http://svn.openlayers.org/trunk/openlayers@51 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:32:11 +00:00
euzuro
a2ef49dd9c addSize() is never used. Keep it Simple
git-svn-id: http://svn.openlayers.org/trunk/openlayers@50 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:25:40 +00:00
euzuro
ca8d9c1157 copy/paste oversight
git-svn-id: http://svn.openlayers.org/trunk/openlayers@49 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:25:03 +00:00
euzuro
6605cd0984 add new 'add' method to OpenLayers.Pixel -- eventually this will replace addX, addY, and addSize.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@48 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:24:33 +00:00
euzuro
57752d9cd4 added who() function to OpenLayers.Size
git-svn-id: http://svn.openlayers.org/trunk/openlayers@47 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:21:59 +00:00
euzuro
aca2bc30b4 fixed tab / spacing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@46 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:21:29 +00:00
euzuro
3948a4d5a3 samePt() function never used and also duplicates functionality of equal() function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@45 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:13:31 +00:00
euzuro
9d00e3830f JSAN for OpenLayers.Util
git-svn-id: http://svn.openlayers.org/trunk/openlayers@44 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:12:26 +00:00
euzuro
d3401763f3 JSAN for OpenLayers.Pixel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@43 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:11:31 +00:00
euzuro
bdd3fe8448 new code seems to be using 'who()' function instead of 'getName()'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@42 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:50:28 +00:00
euzuro
a8bf08cca3 coding standards proposal using logger to document unimplemented functions in subclasses
git-svn-id: http://svn.openlayers.org/trunk/openlayers@41 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:48:04 +00:00
euzuro
ac918d50a4 JSAN
git-svn-id: http://svn.openlayers.org/trunk/openlayers@40 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:39:30 +00:00
euzuro
db1c5afc7b found and noted unused variable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@39 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:27:52 +00:00
euzuro
39622d5676 JSAN
git-svn-id: http://svn.openlayers.org/trunk/openlayers@38 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:26:53 +00:00
euzuro
27f2842519 removed 'status' variable. no reason to duplicate the storage of visibility when it can always be read directly from the layer's div.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@37 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:25:12 +00:00
euzuro
d20e764172 JSAN commenting
git-svn-id: http://svn.openlayers.org/trunk/openlayers@36 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:05:43 +00:00
euzuro
3cb109fe70 if the triggerMapEvent takes a variable 'type', which is coming directly from evt.type, then we might as well keep things consistent and use it in our register function as well
git-svn-id: http://svn.openlayers.org/trunk/openlayers@35 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 17:04:52 +00:00
euzuro
a9b696d000 JSAN commenting
git-svn-id: http://svn.openlayers.org/trunk/openlayers@34 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 16:54:27 +00:00
crschmidt
b27500e511 Add PanZoomBar, make PanZoom not also have a bar, remove LayerSwitcher control for the time being.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@33 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-15 18:28:57 +00:00
crschmidt
a6f794be8d Modify tests to work in FF on Mac -- functions are not run alphabetically there, so work needs to be repeated in 'subsequent' calls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@32 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:50:38 +00:00
crschmidt
54c0403850 add LayerSwitcher control. Currently, when added, this will simply loop through all the map layers, display a div (with text in it) which allows you tu turn the layer on or off. Layer visibility is a new concept in Layer.js, including a getter and setter, which uses the style.visibility prop to change the status of the layer.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@31 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:44:49 +00:00
crschmidt
45655e12a2 Change Google Maps API key to be a key for localhost (127.0.0.1) so that people can test it on their own local webservers.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@30 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:06:06 +00:00
crschmidt
46035298a5 Begin work on Google Maps Layer. In order to create this layer, layer div creation has been moved into Layer.js, and the div that is created is then slotted into the right place by the map.addLayer function. (This is so that, at layer creation time, a div is available). However, it seems like Google Maps does not know how large the div is for reasons I don't yet understand, and there'se also the fact that our zoom levels differ from Google's at the moment. But it's getting there.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@29 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 16:11:52 +00:00
crschmidt
7b62f33544 More zoom level bounds checking.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@28 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 15:25:28 +00:00
crschmidt
8dc75d0d7c Convert zoom levels to be a slider. Graphics need much improvement, and the code also needs a good twice over, but it works.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@27 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 14:13:32 +00:00
crschmidt
89d7a7d852 Convert tabs to spaces. (need to fix vi on my linux machine.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@26 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 12:10:51 +00:00
crschmidt
d5e46cd5d8 Reorder tests by dependancy.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@25 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:48:25 +00:00