Commit Graph

31001 Commits

Author SHA1 Message Date
euzuro
fc2082fd6a svn copying WMS.js to WFS.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@154 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 17:54:49 +00:00
euzuro
5a01d3b510 last test function for Util.js. In theory, that entire file is now fully tested
git-svn-id: http://svn.openlayers.org/trunk/openlayers@153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 17:13:47 +00:00
euzuro
db33b7b260 more tests! createDiv and createImage now testable.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 16:59:39 +00:00
euzuro
89a45025af thank you testing. only set this if a value is passed in
git-svn-id: http://svn.openlayers.org/trunk/openlayers@151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 16:56:55 +00:00
euzuro
a177cdb508 oops. forgot to save Util.js before committing [149]
git-svn-id: http://svn.openlayers.org/trunk/openlayers@150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:43:14 +00:00
euzuro
60013db953 correctly identify getParameterString as a Util function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:42:14 +00:00
euzuro
233600a284 new util test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:41:19 +00:00
euzuro
8f95619539 coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@147 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:25:31 +00:00
euzuro
6eae15b4dc JSDOC coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:24:32 +00:00
euzuro
2f9e809bad removing unused function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@145 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:19:05 +00:00
euzuro
a3941b683e change pt to px (point is now pixel)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:18:47 +00:00
euzuro
90918dad48 JSDOC / coding standards createDiv function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@143 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:11:13 +00:00
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