Commit Graph

139 Commits

Author SHA1 Message Date
euzuro
312e7cb7a8 JSDOC / codingstandards for Array/String extention functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@142 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:06:26 +00:00
euzuro
18f911af50 JSDOC
git-svn-id: http://svn.openlayers.org/trunk/openlayers@141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:58:38 +00:00
euzuro
eeba5a34c6 Changed OpenLayers.Bounds to use left, bottom, right, top INSTEAD OF minlon, minlat, maxlon, maxlat. Removed OpenLayers.Box which was not getting used. JSDOC/coding standard-ified the OpenLayers.Bounds code and wrote thorough testing for it. Should be all good.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:48:52 +00:00
crschmidt
6ab326f67d Changing all tabs to spaces, per CodingStandards.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:42:38 +00:00
crschmidt
147a45feff Test for r137, event constructor with null EventTypes.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:33:41 +00:00
crschmidt
e843291bce fix failing test in test_Marker: Events.js should not loop through a null eventTypes var.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:29:27 +00:00
crschmidt
6f997014c0 Test case for 'addlayer': check if markers.length is set correctly. (This would have failed with r133, had I written it earlier.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:23:42 +00:00
crschmidt
a360238d81 Markers -> this.markers, reverts a change I made and fixes a bug euzuro introduced. (But I don't have a test case for it yet, so it's not his fault.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@135 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 11:34:21 +00:00
crschmidt
213055fdaa Repeat after me: Test first, then commit. Test first, then commit. Test first, then commit.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 11:25:58 +00:00
crschmidt
575474654b Create a single HTML object, and modify its style attributes to move it whenever generate is called -- this will hopefully allow us to add events to it. Note that the event registration in this code currently fails: wehn triggerEvent is called, this.listeners['click'] is called, which is something I have not yet been able to fully understand.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 11:22:49 +00:00
euzuro
b4f80c494c added member variables for activeColor and nonActiveColor so that users can customize dynamically
git-svn-id: http://svn.openlayers.org/trunk/openlayers@132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 06:06:16 +00:00
euzuro
233a638e3e change diff to add in OpenLayers.LonLat. Even though it is not used, it is probably better to have all these Util objects be consistent. See [129]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:31:17 +00:00
euzuro
93f9f38b35 need to make sure a size has been declared before trying to set the offset. thank you automated testing for finding this one.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:25:09 +00:00
euzuro
bb55859445 remove unused diff and diffABS functions from OpenLayers.Pixel
git-svn-id: http://svn.openlayers.org/trunk/openlayers@129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:19:51 +00:00
euzuro
6b43a2d977 JSDOC / coding standards for OpenLayers.Icon
git-svn-id: http://svn.openlayers.org/trunk/openlayers@128 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:09:39 +00:00
euzuro
2086a1ad95 add 'offset' member to OpenLayers.Icon - and then use it in OpenLayers.Marker
git-svn-id: http://svn.openlayers.org/trunk/openlayers@127 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:04:06 +00:00
euzuro
19e6574395 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:56:06 +00:00
euzuro
eb0d4cbd49 we should always initialize objects in the class's constructor. otherwise, multiple instances of the class will share the same object. Thanks to Phil for finding this bug all over my code in the last version :-)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@125 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:51:59 +00:00
euzuro
2ad4e5dbb9 JSDOC / coding standards for Marker Layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:46:14 +00:00
euzuro
5d80d71f21 JSDOC and small update to use Pixel diff code
git-svn-id: http://svn.openlayers.org/trunk/openlayers@123 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:37:31 +00:00
euzuro
50d4546af4 udpated tests for completed util classes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:22:23 +00:00
euzuro
ac03c894dd small changes found during 5am test-writing spree
git-svn-id: http://svn.openlayers.org/trunk/openlayers@121 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:21:29 +00:00
crschmidt
89f3b83a4e Remove IE-specific line from example.html, and instead use the galleryImg IE specific attribute in Util.createImage. This should fix Ticket #34, but I don't have an IE to test on. galleryImg was discovered from multiple sources via google searches.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 03:48:27 +00:00
crschmidt
8cf86b2a10 Commit initial tests for inittiles.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 03:23:17 +00:00
crschmidt
fb8bfed69e element.getDimensions doesn't check styles of parent elements, so when an element is hideen because of a parent, this breaks. fall back to style.width/height in cases where we have a 0,0 size.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@118 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 03:22:28 +00:00
crschmidt
aa740e8bca fall back to Element.getDimensions when the element has no size (such as when it's hidden).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@117 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 03:16:55 +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
crschmidt
6c5b85626e Add tests for WMS layer. This is one of the first tests that probably will catch
real errors: addTile is probably relatively thoroughly covered in testing now.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 20:14:30 +00:00
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