Commit Graph

  • 2597f97165 cleaning up examples a little bit euzuro 2006-08-14 21:17:36 +00:00
  • b6a8ead478 useless comment euzuro 2006-08-12 17:40:37 +00:00
  • b63427037f coding standards euzuro 2006-08-12 16:24:33 +00:00
  • 2a496c840c rename setScale() to zoomToScale() and move it down a few lines in the code euzuro 2006-08-12 16:23:01 +00:00
  • 0f9065cd11 clean up code a wee lite bit in the initGrid() function... then remove the draw() call and change the moveTo() call to not trigger a redraw() on the tile. This way the initTiles() goes through and configures the tiles with everything they need... but without actually redrawing them. Then we add the spiralTileLoad() function which will go through and actually trigger the redraw on the tiles, but in that spiraling outwards way euzuro 2006-08-12 15:58:25 +00:00
  • 96c56e9d84 added 'drawn' property to all tiles. removed redraw() and adapted all draw()s to auto handle redraw. remove getPosition() accessor that noone was using. set generic Tile's moveTo() to auto trigger the clear() and the redraw() (if desired). Update Image and WFS tile classes correspondingly. also update tests euzuro 2006-08-12 15:54:51 +00:00
  • 0a04ee3d1b remove extraneous setVisibility calls... with new baselayers stuff they are auto set to invisible euzuro 2006-08-12 15:41:15 +00:00
  • 1454e3df90 fix test to access position directly -- so we can eliminate the extraneous getPosition() handler euzuro 2006-08-12 15:35:52 +00:00
  • 8f33a633aa Fixed Layer.Google to subclass Layer.EventPane. Still need to fix z-index of copyright divs. Schuyler Erle 2006-08-11 18:03:50 +00:00
  • 3b134deace Tests for EventPane class. 1 test still fails. (the one that actually tests the event passage.) Schuyler Erle 2006-08-11 18:01:22 +00:00
  • b6d91edda4 EventPane now works -- puts a transparent pane over a layer and passes events through it down to the map. Schuyler Erle 2006-08-11 18:00:07 +00:00
  • 1726680b10 Separated out attachToElement() so that a single Events object can capture browser events from more than one object. Intended for use by Layer.EventPane. Schuyler Erle 2006-08-11 17:57:41 +00:00
  • 45bea9f9f4 Fix in Layer.setName for test failure caused by r1188. Schuyler Erle 2006-08-10 21:41:13 +00:00
  • 16a0ecf41a rewrite but this time not killing array structure by setting to a new var euzuro 2006-08-10 06:36:14 +00:00
  • a6af08b092 fix for #120 euzuro 2006-08-10 06:08:34 +00:00
  • 76f38a5a36 fix for #136 euzuro 2006-08-10 06:02:14 +00:00
  • 375d968278 suggestion from #138 euzuro 2006-08-10 05:59:17 +00:00
  • ef4c2b07e5 no use to set vis false euzuro 2006-08-10 01:07:41 +00:00
  • 94e823defc copied from openlayers.org homepage euzuro 2006-08-10 00:50:21 +00:00
  • d2f4337828 Updated tests to match recent developments. Schuyler Erle 2006-08-10 00:26:38 +00:00
  • 02e8c1ba00 Fix kaMap test to account for tile buffering. Schuyler Erle 2006-08-09 23:44:59 +00:00
  • a2002868f1 Fix embarassing typo, part II. Schuyler Erle 2006-08-09 23:41:52 +00:00
  • 2d35451a2e Fix embarassing typo. Schuyler Erle 2006-08-09 23:40:38 +00:00
  • 206e97ad0d Check to see if values are NaN in *.equals(). Schuyler Erle 2006-08-09 23:39:47 +00:00
  • 0b41ad2cef Check to see if values are NaN in *.equals(). Schuyler Erle 2006-08-09 23:38:48 +00:00
  • c7e43b67f3 We removed support for this from Map unneccesarily. crschmidt 2006-08-09 23:20:50 +00:00
  • bf41b45532 i broked ie. der problem is dat extra comma. ok for ffox but not for ie. euzuro 2006-08-09 22:20:50 +00:00
  • b3ab32950d Added Layer.EventPane stub that subclasses Layer, as a possible superclass for Layer.Google/VE/etc. Doesn't do anything special yet. Schuyler Erle 2006-08-09 22:09:15 +00:00
  • d76e18ac65 Fix the dreaded resize bug so that the map recenters automatically when relatively-sized map divs change size. Schuyler Erle 2006-08-09 21:17:06 +00:00
  • 1b26e9cb69 Differentiated the z-index base of base layers versus popups. Schuyler Erle 2006-08-09 20:47:07 +00:00
  • b2ab65df12 fixing bug introduced with r1134 euzuro 2006-08-09 20:10:10 +00:00
  • 6efaf328e5 Commit scale-based methods back into trunk. Layers or Maps now support setting a list of scales or resolutions in the options to the constructor, from which resolutions are calculated. Map now has a 'setScale' function which will allow you to zoom to as close to a given scale as possible. crschmidt 2006-08-09 19:14:16 +00:00
  • e3df606001 Quote indexes into array. crschmidt 2006-08-09 15:52:23 +00:00
  • a6edeb64b5 Added normalizeScale and getResolutionFromScale to Util.js. Schuyler Erle 2006-08-09 14:55:32 +00:00
  • 3f5c2a8fb9 Moved INCHES_PER_UNIT and DOTS_PER_INCH into Util.js. Schuyler Erle 2006-08-09 14:47:26 +00:00
  • 088dd71754 Moved declaration of mouseDragStart property from Map to Control. Schuyler Erle 2006-08-09 14:37:21 +00:00
  • fb3ff32919 Grid.js no longer uses the 'newGrid' variable. crschmidt 2006-08-09 13:39:10 +00:00
  • 7a3f9b8444 KaMap uses a different initTiles because it doesn't use the same starting point for '0,0'. This meant that with the new initTiles change, we were not adding enough buffer tiles around the kamap layers, so they would display funkily. This fixes that issue. crschmidt 2006-08-09 13:38:59 +00:00
  • 2991ae3191 implement clear() in Image euzuro 2006-08-09 06:25:54 +00:00
  • 5d64ebdf94 updates so WFS *should* work with new tiling algorithm euzuro 2006-08-09 06:24:28 +00:00
  • bc6b2e690d copy/paste bug euzuro 2006-08-09 06:20:51 +00:00
  • 3d13e1f60d coding standards euzuro 2006-08-09 06:20:01 +00:00
  • 960a70ec07 use new clearGrid() euzuro 2006-08-09 06:15:32 +00:00
  • 3b929fd7a2 clean up clearGrid() euzuro 2006-08-09 06:14:05 +00:00
  • b3c10c0892 remove unused remove function, add new clear() function euzuro 2006-08-09 06:11:31 +00:00
  • 8e5acd019a declare urls property in wfs tile euzuro 2006-08-09 05:58:37 +00:00
  • f3d6fb8718 add JSDOC commenting and stub moveTo function in WFS tile euzuro 2006-08-09 05:42:42 +00:00
  • b262f2fb71 hack hack hack euzuro 2006-08-09 04:41:21 +00:00
  • 3a9d4e8852 we have no logger now and i doubt we ever will euzuro 2006-08-09 04:39:33 +00:00
  • f339e3a93d hash -> hashtable and Hash -> Object -- let there be no confusion, we are *not* using prototype euzuro 2006-08-09 04:36:39 +00:00
  • f65ea55fa3 str -> String euzuro 2006-08-09 04:23:27 +00:00
  • 0332bd09ec event -> Event euzuro 2006-08-09 04:21:29 +00:00
  • bc780edcec Fix test failures by changing the failover mode to check for existince of needed variables rather than storing 'newGrid' crschmidt 2006-08-09 04:18:18 +00:00
  • c0e06dae19 grid is always loaded. check only if we have a map euzuro 2006-08-09 03:59:06 +00:00
  • 69876208f4 fix tests that do double-test to check lonlat or xy or wh instead of using the equals() functions euzuro 2006-08-09 03:56:32 +00:00
  • 31af99c64d Fix new test failures with the tile-reuse branch crschmidt 2006-08-09 03:54:10 +00:00
  • 0ba7961df4 Commit tile-reuse branch back to trunk. This branch offers numerous performance improvements in the form of reduced memory use and lower element creating costs, hopefully making the OpenLayers code more usable in internet explorer as well as less of a memory hog in Firefox and other browsers. Additionally, a buffer is available around the main map grid which allows tiles to be loaded outside of the viewing area for faster dragging. crschmidt 2006-08-09 03:47:33 +00:00
  • 51ac2b4acf remove useless or duplicate functions from Util.js -- no more: Array prepend() append() -- use push() and unshift(). clear() and indexOf() both removed as they are duplicated in Prototype.js -- all instances replaced and tests updated. euzuro 2006-08-09 03:31:06 +00:00
  • f2a3cf9348 don't allow a baselayer to unselect itself euzuro 2006-08-09 03:10:57 +00:00
  • 864e54b8e7 if there are no overlays then don't display the overlay label euzuro 2006-08-08 22:02:28 +00:00
  • 9ebdfabd30 Change this to use dev version as is practice for examples. crschmidt 2006-08-08 18:37:40 +00:00
  • 7cbb36a5ea Commit XHTML example page. crschmidt 2006-08-08 18:33:34 +00:00
  • f3a072b151 new layerswitcher, improved google layer, boxes layer, grid fix euzuro 2006-08-08 18:20:24 +00:00
  • 138d22af3f Commit with no zoom passed. crschmidt 2006-08-08 15:34:59 +00:00
  • e60734747d Commit example for testing of bug reports on mailing list. Will deliver this URL to users and see if they can reproduce the problem in a simple test case that mimicks this. crschmidt 2006-08-08 14:21:10 +00:00
  • adc561b38f When panning by large distances, OpenLayers previously created all the grid space inbetween. This no longer happens -- instead, the grid will re-init if the bounds is not at least partially contained by the existing box. crschmidt 2006-08-03 17:27:47 +00:00
  • 236b39138d add new layerswitcher icons euzuro 2006-08-03 11:57:11 +00:00
  • 29aec75256 update wiki link euzuro 2006-08-02 18:11:55 +00:00
  • 94072f8dfe update wiki link euzuro 2006-08-02 18:11:11 +00:00
  • 620cebb79c add a 'changelayer' event that fires when a layer's visibility changes. listen for this in the layerswitcher euzuro 2006-08-02 16:08:09 +00:00
  • 443f28dee8 change warning background color to darkblue. lets try to be consistent here euzuro 2006-07-31 18:35:22 +00:00
  • 0343f5a35e The old Marker wasn't displaying in the right position when you zoomed out -- no Icon.Offset was being set. (The code was copy pasted from before such a thing existed.) Change to the OpenLayers marker style, instead of some random image I grabbed off a website -- using the default icon means our offset is set right, so the markers end up in the right place. crschmidt 2006-07-29 12:28:20 +00:00
  • 6d330f1f05 no reason to exclude VE. it is mostly done euzuro 2006-07-27 00:55:30 +00:00
  • a559e87775 decomposed in r989 but forgot to put the link. euzuro 2006-07-26 21:14:39 +00:00
  • 6c22690d8b removing JSON handling code from Ajax.js. It is not currently needed in this library. euzuro 2006-07-26 15:52:33 +00:00
  • 88e1b772b9 only call the concluding setCenter() (which generally will do no more than fire the 'moveend' event) if the drag was actually performed. otherwise, it was just a click, and no need. euzuro 2006-07-26 15:33:12 +00:00
  • a171ae13b6 fixing more tabs. all tests pass euzuro 2006-07-26 14:44:44 +00:00
  • 3962b0a814 fixed tabs, multiple return (coding standards) euzuro 2006-07-26 14:42:50 +00:00
  • 5216e5b042 add comment -- limitSigDig only works with integers... for now euzuro 2006-07-26 12:27:41 +00:00
  • ce69912782 add limitSigDigs() function to number's prototype. tests included euzuro 2006-07-26 12:22:12 +00:00
  • 317c15a5ce readibility / coding standards euzuro 2006-07-26 10:17:21 +00:00
  • 63396d27d0 r1005 introduced some infinite recursion. no good. split addControl() into two functions, one public, which adds to internal this.controls arrray... and one private addControlToMap() which does the same, but without adding it to this.controls euzuro 2006-07-26 10:13:33 +00:00
  • d079f0bbca allow user to specify initial controls via 'controls' array option, instead of simply passing an empty array and then later adding. that seems extraneous euzuro 2006-07-26 10:01:45 +00:00
  • 04a2e9472d allow an option to kill all other popups on addition of new one euzuro 2006-07-25 21:43:28 +00:00
  • 65da9e491e '=' != '==' oops. euzuro 2006-07-25 21:40:02 +00:00
  • d221e33ba6 More documentation, link to wiki. crschmidt 2006-07-24 12:37:23 +00:00
  • d87312cb49 Add ka-map example file. This is a PHP file, slightly modified from the distribution, and combining the tile.php and config.php files into one, so that users only have to use one file to set up a ka-map backend. crschmidt 2006-07-24 12:33:51 +00:00
  • 975377fb89 KaMap tests. This led to r999, relating to base layer differences, and is in large part a copy of the Grid layer, so it could use some more tests to ensure it Does The Right thing with regard to the different initTiles functionality that kamap requires. crschmidt 2006-07-24 12:18:51 +00:00
  • 5eb1fdfaca When we remove a layer from the map, if it is the base Layer, we need to find *another* base layer to replace it, otherwise when we call getExtent, etc. it will be on the *old* base layer, which no longer has a map object defined. crschmidt 2006-07-24 12:17:48 +00:00
  • 2afe7dbab4 Set OpenLayers.ProxyHost on examples that make use of loadURL. crschmidt 2006-07-24 11:38:48 +00:00
  • 162f0a408b Add require statements to feature classes, so that single file build works correctly. crschmidt 2006-07-24 11:30:50 +00:00
  • b5fb825788 Change freemap mapfile. crschmidt 2006-07-24 11:29:46 +00:00
  • b063447471 move getFeature() to the Layer euzuro 2006-07-21 19:19:54 +00:00
  • 82d335df03 add a getFeature() to Tile.WFS euzuro 2006-07-21 19:07:33 +00:00
  • 96c3720aab protect for null bounds (not-loaded map) euzuro 2006-07-21 18:22:37 +00:00
  • 02efb5c213 Edit out toJSON() prototypes since they're breaking unit tests. crschmidt 2006-07-21 03:40:31 +00:00
  • 4f208e2207 now with multiple wfs servers, we do NOT want to clear this list. argh. euzuro 2006-07-20 18:01:37 +00:00
  • 3351e2ceb1 decompose addResults() function euzuro 2006-07-20 16:41:38 +00:00
  • 339026faf6 update tests to new feature id euzuro 2006-07-20 16:10:25 +00:00
  • 16b0f1b3ef always give features random id's. this prevents duplicate issues on zooming euzuro 2006-07-20 16:00:43 +00:00