Commit Graph

  • 525c40fd4d take advantage of createImage to set the position on creation. change point to pixel euzuro 2006-05-18 18:29:31 +00:00
  • 4d27baa639 JSDOC / coding standards OpenLayers.Tile.Image euzuro 2006-05-18 18:25:36 +00:00
  • 14ee4e1146 coding standards. define CLASS_NAME euzuro 2006-05-18 18:01:20 +00:00
  • 18e0393d00 renamed to WFS euzuro 2006-05-18 17:58:10 +00:00
  • c8d2628f0d set default parameters (taken from old trunk) euzuro 2006-05-18 17:55:53 +00:00
  • fc2082fd6a svn copying WMS.js to WFS.js euzuro 2006-05-18 17:54:49 +00:00
  • 5a01d3b510 last test function for Util.js. In theory, that entire file is now fully tested euzuro 2006-05-18 17:13:47 +00:00
  • db33b7b260 more tests! createDiv and createImage now testable. euzuro 2006-05-18 16:59:39 +00:00
  • 89a45025af thank you testing. only set this if a value is passed in euzuro 2006-05-18 16:56:55 +00:00
  • a177cdb508 oops. forgot to save Util.js before committing [149] euzuro 2006-05-18 13:43:14 +00:00
  • 60013db953 correctly identify getParameterString as a Util function euzuro 2006-05-18 13:42:14 +00:00
  • 233600a284 new util test euzuro 2006-05-18 13:41:19 +00:00
  • 8f95619539 coding standards euzuro 2006-05-18 13:25:31 +00:00
  • 6eae15b4dc JSDOC coding standards euzuro 2006-05-18 13:24:32 +00:00
  • 2f9e809bad removing unused function euzuro 2006-05-18 13:19:05 +00:00
  • a3941b683e change pt to px (point is now pixel) euzuro 2006-05-18 13:18:47 +00:00
  • 90918dad48 JSDOC / coding standards createDiv function euzuro 2006-05-18 13:11:13 +00:00
  • 312e7cb7a8 JSDOC / codingstandards for Array/String extention functions euzuro 2006-05-18 13:06:26 +00:00
  • 18f911af50 JSDOC euzuro 2006-05-18 12:58:38 +00:00
  • 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. euzuro 2006-05-18 12:48:52 +00:00
  • 6ab326f67d Changing all tabs to spaces, per CodingStandards. crschmidt 2006-05-18 12:42:38 +00:00
  • 147a45feff Test for r137, event constructor with null EventTypes. crschmidt 2006-05-18 12:33:41 +00:00
  • e843291bce fix failing test in test_Marker: Events.js should not loop through a null eventTypes var. crschmidt 2006-05-18 12:29:27 +00:00
  • 6f997014c0 Test case for 'addlayer': check if markers.length is set correctly. (This would have failed with r133, had I written it earlier.) crschmidt 2006-05-18 12:23:42 +00:00
  • 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.) crschmidt 2006-05-18 11:34:21 +00:00
  • 213055fdaa Repeat after me: Test first, then commit. Test first, then commit. Test first, then commit. crschmidt 2006-05-18 11:25:58 +00:00
  • 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. crschmidt 2006-05-18 11:22:49 +00:00
  • b4f80c494c added member variables for activeColor and nonActiveColor so that users can customize dynamically euzuro 2006-05-18 06:06:16 +00:00
  • 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] euzuro 2006-05-18 05:31:17 +00:00
  • 93f9f38b35 need to make sure a size has been declared before trying to set the offset. thank you automated testing for finding this one. euzuro 2006-05-18 05:25:09 +00:00
  • bb55859445 remove unused diff and diffABS functions from OpenLayers.Pixel euzuro 2006-05-18 05:19:51 +00:00
  • 6b43a2d977 JSDOC / coding standards for OpenLayers.Icon euzuro 2006-05-18 05:09:39 +00:00
  • 2086a1ad95 add 'offset' member to OpenLayers.Icon - and then use it in OpenLayers.Marker euzuro 2006-05-18 05:04:06 +00:00
  • 19e6574395 coding standards euzuro 2006-05-18 04:56:06 +00:00
  • 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 :-) euzuro 2006-05-18 04:51:59 +00:00
  • 2ad4e5dbb9 JSDOC / coding standards for Marker Layer euzuro 2006-05-18 04:46:14 +00:00
  • 5d80d71f21 JSDOC and small update to use Pixel diff code euzuro 2006-05-18 04:37:31 +00:00
  • 50d4546af4 udpated tests for completed util classes euzuro 2006-05-18 04:22:23 +00:00
  • ac03c894dd small changes found during 5am test-writing spree euzuro 2006-05-18 04:21:29 +00:00
  • 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. crschmidt 2006-05-18 03:48:27 +00:00
  • 8cf86b2a10 Commit initial tests for inittiles. crschmidt 2006-05-18 03:23:17 +00:00
  • 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. crschmidt 2006-05-18 03:22:28 +00:00
  • aa740e8bca fall back to Element.getDimensions when the element has no size (such as when it's hidden). crschmidt 2006-05-18 03:16:55 +00:00
  • a5d6ad32da Added test for fix in r114. (take two) Schuyler Erle 2006-05-18 01:03:29 +00:00
  • 1c73ef0250 Added test for fix in r114. Schuyler Erle 2006-05-18 01:03:12 +00:00
  • 644dc8dcb2 Fixed OpenLayers.Util.getImagesLocation(), at least until we get the single file version working again. Schuyler Erle 2006-05-18 01:00:11 +00:00
  • 2160d1e2bd Added NASA Global Mosaic and DM Solutions' Canada map to example.html. Schuyler Erle 2006-05-17 20:58:30 +00:00
  • 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. Schuyler Erle 2006-05-17 20:58:00 +00:00
  • 11e66c0286 Create applyDefaults() function that works similarly to extend(), but without replacing existing keys. Schuyler Erle 2006-05-17 20:57:05 +00:00
  • 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. crschmidt 2006-05-17 20:14:30 +00:00
  • 4eec3dae7a Add new tests for Icon cloning. Modify Icon.js to correct incorrect case in constructor call in clone(). crschmidt 2006-05-17 17:32:03 +00:00
  • 04ca5d3695 Create a clone method for Icon. crschmidt 2006-05-17 17:25:27 +00:00
  • 4d0f98f4fe Add working code for Markers -- marker layer and marker object. Also add markers.html to demo use of markers functionality. crschmidt 2006-05-17 17:21:57 +00:00
  • efbd12fc29 Can't return an extent before center is set. crschmidt 2006-05-17 17:21:11 +00:00
  • 9235f04cce properly declare CLASS_NAME member as constant. Also, add <i> tags around examples in comments euzuro 2006-05-17 17:11:32 +00:00
  • ff2e3017f9 Changed constructor for bounds to take minlon, minlat, maxlon, maxlat as its arguments. changed all related usage and comments euzuro 2006-05-17 16:50:12 +00:00
  • fe360c91e5 another round of LatLon -> LonLat [99] revisions euzuro 2006-05-17 16:20:12 +00:00
  • 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. crschmidt 2006-05-17 16:20:08 +00:00
  • 24c4b03d07 small updates to comments related to LatLon -> LonLat transition [99] euzuro 2006-05-17 16:11:18 +00:00
  • fc7bbe5beb Create "Marker" layer. Add appropriate tests. crschmidt 2006-05-17 15:54:42 +00:00
  • 6f242f5746 Replace all instances and usages of LatLon to LonLat euzuro 2006-05-17 15:51:37 +00:00
  • 3d1b137009 Add OL.Tile.Image tests. crschmidt 2006-05-17 15:28:40 +00:00
  • 40a00ab46b this.img, not img crschmidt 2006-05-17 15:28:07 +00:00
  • 2d312835ad Can't setPosition before image exists. crschmidt 2006-05-17 15:11:31 +00:00
  • 7d38612688 JSDOC / coding standards for Util.Bounds euzuro 2006-05-17 14:55:29 +00:00
  • f978b8ae51 Add Layer Switcher to main example. crschmidt 2006-05-17 14:28:14 +00:00
  • 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. crschmidt 2006-05-17 14:03:33 +00:00
  • db2704c6ed Typos from erik's commit were causing Util.js to fail when loading. crschmidt 2006-05-17 13:55:03 +00:00
  • 169dbb3755 JSDOC / coding standards for Util.LatLon euzuro 2006-05-17 13:44:47 +00:00
  • f7b33fb581 JSDOC / coding standards for Util.Size euzuro 2006-05-17 13:20:31 +00:00
  • 8b6348c7b2 add 'data' member to Marker class euzuro 2006-05-17 13:02:34 +00:00
  • 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? crschmidt 2006-05-17 12:24:08 +00:00
  • 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. crschmidt 2006-05-17 12:16:23 +00:00
  • 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. euzuro 2006-05-17 04:35:14 +00:00
  • 70d425580c Add empty class definitions for Icon, Marker to be filled in as part of bugs #5 and #6 respectively crschmidt 2006-05-17 03:50:53 +00:00
  • 401aa4d69a decomposed layerswitcher euzuro 2006-05-17 03:39:39 +00:00
  • 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. crschmidt 2006-05-17 03:36:11 +00:00
  • 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. crschmidt 2006-05-17 03:17:55 +00:00
  • 9def710214 always delete everything and rebuild everything on redraw(). Just simpler this way euzuro 2006-05-17 03:13:41 +00:00
  • ca0a8407b4 move the append up into the loop, so as not to repeatedly append extant divs euzuro 2006-05-17 02:59:37 +00:00
  • b0020d6f40 push constant variables out of the class, make them static. other small coding standards changes. euzuro 2006-05-17 02:52:57 +00:00
  • 90460002cb Register 'zoomend' event. Use zoomend event registration to move zoomer when zoom level changes. And it even works right. crschmidt 2006-05-17 02:48:18 +00:00
  • 5a739abc8e adding comment euzuro 2006-05-17 02:27:41 +00:00
  • a9a24c291c JSDOC, coding standards euzuro 2006-05-17 02:25:15 +00:00
  • e5914e6c50 add constants for active/deactive switcher controls euzuro 2006-05-17 02:16:57 +00:00
  • d260d7c3ae JSDOC, coding standards euzuro 2006-05-17 02:08:21 +00:00
  • 029683e84e JSDOC updates euzuro 2006-05-17 02:02:30 +00:00
  • aa1630bf41 Rearrange Rico includes. crschmidt 2006-05-17 01:50:02 +00:00
  • e77be72a77 This was named the same as PanZoom, and was overriding this class when included. crschmidt 2006-05-17 01:49:19 +00:00
  • c351058c24 Move rico dir. Add Color.js crschmidt 2006-05-17 01:42:41 +00:00
  • b81d81b67b Add Rico/Corner back to code from old OpenLayers codebase. crschmidt 2006-05-17 01:24:52 +00:00
  • 27baf53e18 JSAN/JSDOC, coding standards euzuro 2006-05-16 23:58:14 +00:00
  • 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. crschmidt 2006-05-16 23:54:34 +00:00
  • ed9b57b6df Fixed zoomend event code; changed semantics of the argument to moveToNewExtent to make the argument be the *previous* zoom level. Added tests. Schuyler Erle 2006-05-16 23:46:41 +00:00
  • c494b8ef2d Laid in some calls to various application events in Map; also, refactored zoomIn and zoomOut to use zoomTo underlyingly. Schuyler Erle 2006-05-16 23:17:44 +00:00
  • 0b596a94f4 Add zoomin, zoomout tests crschmidt 2006-05-16 22:41:36 +00:00
  • 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. Schuyler Erle 2006-05-16 22:26:47 +00:00
  • 8218798cf9 Added check for layer.map === map to Map tests. Schuyler Erle 2006-05-16 22:26:24 +00:00
  • ce6c4acd63 Made Events class more generic; the Events constructor now takes a list of supported application event types. Added tests for the Events class. Schuyler Erle 2006-05-16 21:48:56 +00:00
  • d4fd4f7803 Added test for Map.getResolution() bug created in r[56] and fixed in r[59]. Schuyler Erle 2006-05-16 21:09:39 +00:00