Commit Graph

25388 Commits

Author SHA1 Message Date
euzuro
169dbb3755 JSDOC / coding standards for Util.LatLon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@91 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 13:44:47 +00:00
euzuro
f7b33fb581 JSDOC / coding standards for Util.Size
git-svn-id: http://svn.openlayers.org/trunk/openlayers@90 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 13:20:31 +00:00
euzuro
8b6348c7b2 add 'data' member to Marker class
git-svn-id: http://svn.openlayers.org/trunk/openlayers@89 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 13:02:34 +00:00
crschmidt
fad697dc5a Add tile tests. Next to do is to figure out how to set up tests for subclasses... should they go in the parent level test object, or in a seperate test object?
git-svn-id: http://svn.openlayers.org/trunk/openlayers@88 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 12:24:08 +00:00
crschmidt
66edc6dcb7 Fill out more of Icon and Marker classes. In the XP world, supposedly we test first -- and I actually did in this case. Kind of a nifty trick: you work out what the function is supposed to do solely from the tests you want to write, and then you go and actually write the code that does it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@87 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 12:16:23 +00:00
euzuro
605ba7a066 bring in code from old switcher.js to make the switcher tabs prettier. unfortunately, they refuse to right-align. If i wasnt as cracked-out as I am right now, i would continue plugging away. As it is, however, my faculties are waning. Off to bed.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@86 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 04:35:14 +00:00
crschmidt
70d425580c Add empty class definitions for Icon, Marker to be filled in as part of bugs #5 and #6 respectively
git-svn-id: http://svn.openlayers.org/trunk/openlayers@85 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:50:53 +00:00
euzuro
401aa4d69a decomposed layerswitcher
git-svn-id: http://svn.openlayers.org/trunk/openlayers@84 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:39:39 +00:00
crschmidt
3dca1fffb6 PanZoomBar is now a subclass of PanZoom, and can drop a lot of its functions in favor of inheriting from that class. hooray for less code duplication.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@83 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:36:11 +00:00
crschmidt
ebcebe6ef7 Add code to capture 'clicks' on the zoombar, and deliver the zoom to that level. This matches the Google Maps expectation of being able to click on a 'rung' and zoom in to that level.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@82 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:17:55 +00:00
euzuro
9def710214 always delete everything and rebuild everything on redraw(). Just simpler this way
git-svn-id: http://svn.openlayers.org/trunk/openlayers@81 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 03:13:41 +00:00
euzuro
ca0a8407b4 move the append up into the loop, so as not to repeatedly append extant divs
git-svn-id: http://svn.openlayers.org/trunk/openlayers@80 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:59:37 +00:00
euzuro
b0020d6f40 push constant variables out of the class, make them static. other small coding standards changes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@79 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:52:57 +00:00
crschmidt
90460002cb Register 'zoomend' event. Use zoomend event registration to move zoomer when zoom level changes. And it even works right.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@78 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:48:18 +00:00
euzuro
5a739abc8e adding comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@77 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:27:41 +00:00
euzuro
a9a24c291c JSDOC, coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@76 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:25:15 +00:00
euzuro
e5914e6c50 add constants for active/deactive switcher controls
git-svn-id: http://svn.openlayers.org/trunk/openlayers@75 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 02:16:57 +00:00
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