Commit Graph

26906 Commits

Author SHA1 Message Date
crschmidt
4eec3dae7a Add new tests for Icon cloning. Modify Icon.js to correct incorrect case in constructor call in clone().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:32:03 +00:00
crschmidt
04ca5d3695 Create a clone method for Icon.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@108 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:25:27 +00:00
crschmidt
4d0f98f4fe Add working code for Markers -- marker layer and marker object. Also add markers.html to demo use of markers functionality.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@107 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:21:57 +00:00
crschmidt
efbd12fc29 Can't return an extent before center is set.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@106 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:21:11 +00:00
euzuro
9235f04cce properly declare CLASS_NAME member as constant. Also, add <i> tags around examples in comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@105 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:11:32 +00:00
euzuro
ff2e3017f9 Changed constructor for bounds to take minlon, minlat, maxlon, maxlat as its arguments. changed all related usage and comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:50:12 +00:00
euzuro
fe360c91e5 another round of LatLon -> LonLat [99] revisions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:20:12 +00:00
crschmidt
1720fee550 The layer adds the marker to the div. Therefore, some of the code needs to move into the layer: the marker needs to know how to generate an HTML object that will represent it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@102 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:20:08 +00:00
euzuro
24c4b03d07 small updates to comments related to LatLon -> LonLat transition [99]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@101 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:11:18 +00:00
crschmidt
fc7bbe5beb Create "Marker" layer. Add appropriate tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:54:42 +00:00
euzuro
6f242f5746 Replace all instances and usages of LatLon to LonLat
git-svn-id: http://svn.openlayers.org/trunk/openlayers@99 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:51:37 +00:00
crschmidt
3d1b137009 Add OL.Tile.Image tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@98 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:28:40 +00:00
crschmidt
40a00ab46b this.img, not img
git-svn-id: http://svn.openlayers.org/trunk/openlayers@97 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:28:07 +00:00
crschmidt
2d312835ad Can't setPosition before image exists.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@96 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:11:31 +00:00
euzuro
7d38612688 JSDOC / coding standards for Util.Bounds
git-svn-id: http://svn.openlayers.org/trunk/openlayers@95 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 14:55:29 +00:00
crschmidt
f978b8ae51 Add Layer Switcher to main example.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@94 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 14:28:14 +00:00
crschmidt
8a5842a11c Add Height/Width to control div via Map.js -- this is good for when elements inside the div are absolutely positioned, and therefore have no width.
The LayerSwitcher now sets right, and *unsets* left. This is important because otherwise browsers get confused.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@93 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 14:03:33 +00:00
crschmidt
db2704c6ed Typos from erik's commit were causing Util.js to fail when loading.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@92 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 13:55:03 +00:00
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