Commit Graph

  • 4182cc1955 adding new HTTPRequest class that adds a 'url' and 'params' properties to a Layer, and gives a getFullRequestString() function. Thorough tests. euzuro 2006-07-06 00:32:11 +00:00
  • dfbbd74d00 tighten up tests for Layer euzuro 2006-07-05 16:24:09 +00:00
  • 96a32e8fb0 make a safe copy of options on initialization, utilize applyDefaults() on clone to pick up stray addons. dont need the if in addOptions, as extend can safely handle a null source euzuro 2006-07-05 15:31:08 +00:00
  • 23c2ea1c04 set all properties of layer to null on destroy. add test. euzuro 2006-07-04 23:55:34 +00:00
  • 63e0b37c67 lets have clone() just take no arguments and return an exact copy. then we can add modify functions that can be used to set the particular things the user wants changed, and s/he can do it him/herself. also a change here is that layer.options will always be initialized, never null. euzuro 2006-07-04 17:48:50 +00:00
  • 199ad05b5c readability, setting precedent. euzuro 2006-07-04 17:00:52 +00:00
  • 9cb9f6200c fix class name. coding standards euzuro 2006-07-04 16:48:09 +00:00
  • f528178e53 add clone() method to Layer class, add test. euzuro 2006-07-04 16:32:08 +00:00
  • 9149468971 store a reference to the options. this will be used for cloning. euzuro 2006-07-04 15:49:05 +00:00
  • 718d84d6d2 when cloning an icon, set the calculateOffset() function too, if it exists. euzuro 2006-07-04 15:30:11 +00:00
  • 4ba3a290b8 change these alerts so as not to confuse ourselves when grepping for alerts to remove debugging code. :-) euzuro 2006-07-04 14:02:02 +00:00
  • 076632122b update triggerEvent() so that it doesnt bomb if user tries to trigger a non-enabled event. Added thorough testing. euzuro 2006-07-04 13:54:04 +00:00
  • 91f17f20ff added some more just-in-case tests to test the unregister() function euzuro 2006-07-04 13:27:51 +00:00
  • 56472f15a0 protect unregister() from someone trying to unregister an un-enabled event. total extreme case, but whatever. added test. euzuro 2006-07-04 13:23:11 +00:00
  • 83eb0e1b34 do not let users register on an event that has not been specifically enabled at initialize. add test. euzuro 2006-07-04 13:18:16 +00:00
  • 585ec9e192 fix remove() function and add test euzuro 2006-07-04 13:13:41 +00:00
  • abac8a5d44 fixed functionality of unregister() function, added ability to pass null value for obj. Added tests. euzuro 2006-07-04 12:57:34 +00:00
  • 7d6f4dea78 changing functionality of Events.register(). Now if a null callback is passed in, no action is taken. If a null *obj* is passed in, however, the obj used is this.object (the Events Object's related object). Added tests to make sure this works. euzuro 2006-07-04 12:44:29 +00:00
  • 7671f43bb1 updating tests for Events.js euzuro 2006-07-04 12:37:02 +00:00
  • e59c5e08f3 once property is set, use it instead of the argument. euzuro 2006-07-04 11:58:38 +00:00
  • 10cbef9274 since we can technically register events for any domelement, there is no reason this variable should be named 'div'. Change it to 'element' and update its use everywhere. euzuro 2006-07-04 11:57:18 +00:00
  • 994e00ad20 add more complete comment to register function, sort of explaining binding. euzuro 2006-07-04 11:42:20 +00:00
  • 5544bbf134 adding commenting/readability to initialize() euzuro 2006-07-04 11:25:54 +00:00
  • 1301102b1a adding commenting/readability to triggerEvent() euzuro 2006-07-04 11:18:06 +00:00
  • 9746ac23fe adding comments, coding standards, jsdoc euzuro 2006-07-04 11:10:27 +00:00
  • 2bea4fed77 jsdoc euzuro 2006-07-04 10:34:15 +00:00
  • 397b4cc7ba hack to catch as best as possible the resize event in both mozilla and IE. we cant catch the actual resize on the div in IE, so we do that. in mozilla the best we can do is catch the resize of the window. so that is what we do. euzuro 2006-07-03 20:08:02 +00:00
  • 65ae34d4e7 add contains() function to string library. added tests too. euzuro 2006-07-03 19:54:00 +00:00
  • 74b3e153f8 add a location so that init GeoRSS does not crash. Now all tests pass again euzuro 2006-07-03 14:19:30 +00:00
  • 98302beddd same-case these functions for if there is no baselayer. in theory, these should never be called if no baselayer is set... but one never knows what a user will do. So instead of crashing, we will just return null. euzuro 2006-07-03 14:11:48 +00:00
  • af5e930c0a coding standards euzuro 2006-07-03 00:15:42 +00:00
  • e34d5e2e96 jsdoc euzuro 2006-07-03 00:06:28 +00:00
  • c776967e66 looks like the theArgs controls and layers should be initialized as comma separated string values, rather than arrays. also remove repeated line euzuro 2006-07-02 20:48:00 +00:00
  • 16d9da1268 coding standards euzuro 2006-07-02 18:49:07 +00:00
  • 70af5bbb7f jsdoc euzuro 2006-07-02 18:43:50 +00:00
  • 50c00d35d9 Fix a lint error in Javascript, thanks to Safari. (Found by a user of the Boston Freemap.) crschmidt 2006-07-01 19:36:42 +00:00
  • 32acc4ad3a Change MVS example to use Util.getArgs(), now that it exists. crschmidt 2006-07-01 14:07:42 +00:00
  • 7f6ffe8164 Factor out getArgs into Util class, since we use it in other places as well. Modify Permalink Control to fit. crschmidt 2006-07-01 14:05:34 +00:00
  • 15a47c6513 Add support to Permalink control to automatically create Permalink inside map div if no element is given. This isn't pretty, but it's a good way to quickly/easily add a permalink to your map. crschmidt 2006-07-01 02:41:21 +00:00
  • 9f0a77aa92 Add PermaLink control. Add test for permalink control. This control will automatically center and zoom the map to lat/lon/zoom args, and allows you to set an <a> element whose href is modified when the map moves. controls.html implements an example. crschmidt 2006-07-01 02:14:03 +00:00
  • 72e44d6638 Commit GeoRSS tests. crschmidt 2006-07-01 01:32:18 +00:00
  • 0389b8cfb5 Er, right. bitnerd did the original here, not hobu :) crschmidt 2006-07-01 00:03:08 +00:00
  • 2117aa0539 Commit a 'changeParams' method, along with test and example, to show how it would be possible to use WMS-T with changeParams. ChangeParams sets the new params, then recalls initTiles with the new params set. crschmidt 2006-06-30 23:59:42 +00:00
  • c958f9f88a KaMap needs to reimplement initTiles because it uses 0-based indexing instead of lower-left corner indexing, which means that we need to have the tile.draw method also modified here to use this.alpha, and also add the options hash as a param. We should probably move resolution/units into the options param too? crschmidt 2006-06-30 15:49:48 +00:00
  • 7313838f1f Grid.js has two other tile.draw methods, which need to now use the this.alpha flag. crschmidt 2006-06-30 15:48:50 +00:00
  • 44fee8a018 Added an 'alpha' option to Layer.Grid by which Layers can have the PNG alpha hack enabled on a per-Layer basis. Schuyler Erle 2006-06-30 15:41:40 +00:00
  • b064dce7f5 Ignore files starting with ".". On MacOS, these may be resource forks, but in any case, ignoring dotfiles is relatively standard practice. crschmidt 2006-06-30 04:10:14 +00:00
  • 2e79e399b2 updated comment euzuro 2006-06-30 01:12:03 +00:00
  • aaa0555b7a the case is never closed, and the sun never sets. this is old code that is no longer used. euzuro 2006-06-30 01:07:02 +00:00
  • a02c0ea8b7 you wanted viewportpx from latlon? well, you got it mister. using a small and but ingenious hack by the astute dr. steven erle, we are able to fix the last remaining (famous last words) kink in the google layer. seems like it should be all a-o-k now. Changed the getLonLatFromViewPortPx() to use the Container as well. Case closed. euzuro 2006-06-30 01:04:10 +00:00
  • 5524399a3e This is a demo of using OpenLayers.Layer.WMS to fetch from a non-WMS source, specifically, OpenStreetMap. However, it seems that there's something wrong with the source data here, since there's a definite disconnect at tile boundaries. crschmidt 2006-06-30 00:16:33 +00:00
  • afeb15b3e7 set defaults correctly euzuro 2006-06-29 23:24:48 +00:00
  • 4fe8729895 Commit new version of MVS, nasa turned off by default. crschmidt 2006-06-29 15:32:22 +00:00
  • a6f999970a Use OpenLayers.loadURL so that we get the benefit of ProxyHost. crschmidt 2006-06-29 00:32:55 +00:00
  • d2270377ef We lost a whole bunch of MVS functionality when branching for 1.0. I'm not sure why. crschmidt 2006-06-29 00:09:58 +00:00
  • 5fda900240 Commit a test for maxResolution: 'auto', maxResolution: null crschmidt 2006-06-28 23:49:49 +00:00
  • 43a2f03b2b the 'moveend' event was not getting properly triggered on the end of a drag... because the setCenter() was not passing a new center or zoom. move it outside the if clause and all is well. euzuro 2006-06-28 23:44:24 +00:00
  • b789fe22fd Change TIGER ka-Map example to be a freemap instance of ka-Map which caches the Open Plans tiger instead of using DM Solutions TIGER product demo. crschmidt 2006-06-28 13:34:12 +00:00
  • d2d3eb075f We round these values to four decimale places: This saves us on rounding errors on the client-side, which could theoretically increase our cache size when we hit them, and in the case of the left/top values, this also makes sure that we get the closest pixel value, not the integer of it -- this is important when we get around to requesting the tiles, since otherwise we end up a pixel off, and then we don't get our images back. crschmidt 2006-06-28 12:38:05 +00:00
  • dcb0f24f50 Move getZoomForExtent from WMS to Grid. This also applies to WorldWind and KaMap, so having it in Grid.js means we can use it in more cases where it will matter. crschmidt 2006-06-28 02:51:37 +00:00
  • 69c599b881 If there's no options passed, this would fail. So let's check that crschmidt 2006-06-28 02:38:05 +00:00
  • e7b45c4731 Commit change to WFS layer. It was breaking before, due to a lack of tileSize. This is not fixed, but is a temporary patch until I figure out the deeper reasons why. crschmidt 2006-06-28 02:32:59 +00:00
  • 9ea5b2aa31 This is needed to allow KaMap and WorldWind to work. It may need to be removed in cases where it's not appropriate, but prevents infinite loops in the meantime (I think). crschmidt 2006-06-28 02:21:30 +00:00
  • 38324e7295 Change Grid to not setTileSize if the tileSize passed is null. Also change WFS to not call setTileSize if it's null. crschmidt 2006-06-28 00:33:28 +00:00
  • 0763e08c12 If we don't have a tileSize when we're cloning, that means we're going to pick up the default from the Map Real Soon Now (tm), so we'll just not bother setting the tile size on our cloned layer. crschmidt 2006-06-28 00:29:39 +00:00
  • 843abf10bb Let's keep null around. At least one example (*cough* openlayers homepage *cough*) uses it, although that should obviously have been documented in a test. crschmidt 2006-06-28 00:07:00 +00:00
  • 162d05cb25 Convert KaMap and WorldWind to be isBaseLayers, and change FullExtent to MaxExtent. crschmidt 2006-06-27 23:51:01 +00:00
  • 239a1cefa9 Actually return the extent. crschmidt 2006-06-27 23:49:18 +00:00
  • f51e970ab1 oops. our API promises zoomToFullExtent() and getFullExtent(), so we have to deliver them. Agreed that the name change to max should stay, but for the time being, have to maintain our API. both of these functions are marked as deprecated, and a ticket is being made to eventually remove them. euzuro 2006-06-27 23:47:36 +00:00
  • 7d810b47d1 Change zoomToFullExtent to zoomToMaxExtent. crschmidt 2006-06-27 23:47:28 +00:00
  • 1cf12e8d34 set the options *after* the call to updateSize() has been made euzuro 2006-06-27 23:39:19 +00:00
  • 563d91c4fd extra dereferencing.... copy/paste error euzuro 2006-06-27 23:35:05 +00:00
  • 9b53d22a31 allow for accessing of default map values even if baseLayer has still not been set euzuro 2006-06-27 23:31:47 +00:00
  • ff0e83d0a0 bringing all changes from sandbox/euzuro/LayersReworking down into the trunk. this is a merge of r656:HEAD http://svn.openlayers.org/sandbox/euzuro/LayersReworking euzuro 2006-06-27 23:16:26 +00:00
  • 63bd624827 Commit change to GeoRSS -- once we parse the RSS file, set the layer name. crschmidt 2006-06-27 22:20:37 +00:00
  • 102820ad77 Commit a GeoRSS example which allows you to enter the URL yourself, and display multiple GeoRSS results. crschmidt 2006-06-27 20:23:37 +00:00
  • c20390c864 KaMap can't round. It works fine for degrees, but when you're working in inches, feet, meters, the rounding errors become quite significant. crschmidt 2006-06-27 20:17:37 +00:00
  • 6abc62718c aughhhh. This pains me, but it's in the spec. (Support ',' as a seperator for georss:point data.) crschmidt 2006-06-27 12:53:50 +00:00
  • f62eb0f687 Make the world fit in the map window using auto. crschmidt 2006-06-27 12:33:27 +00:00
  • f4342723e4 use bound's built in getCenter() function. euzuro 2006-06-27 10:47:48 +00:00
  • fbbf1b317a Applied Corey Puffault's zoomToExtent() patch from #107. Schuyler Erle 2006-06-27 04:42:17 +00:00
  • 0cb0cdccd4 Pulled down bug fixes, example updates, etc. r717:r787 from source:/branches/openlayers/1.0. Schuyler Erle 2006-06-27 04:40:52 +00:00
  • c92cd6d88a Pulled down bug fixes, example updates, etc. r717:r787 from source:/branches/openlayers/1.0. Schuyler Erle 2006-06-27 04:40:52 +00:00
  • 88033f1b4e Tagging release 1.0. release-1.0 Schuyler Erle 2006-06-27 04:32:18 +00:00
  • 521d45c091 Fixed up examples for 1.0 release. Schuyler Erle 2006-06-27 04:25:23 +00:00
  • ea959e5740 Made WFS at least display points by default. Schuyler Erle 2006-06-27 04:23:43 +00:00
  • ef65e851b9 Fix ProxyHost. crschmidt 2006-06-27 04:05:29 +00:00
  • 067bbb5d75 Refactor GeoRSS Layer to support 'real' GeoRSS :) (geo:lat, geo:lon). crschmidt 2006-06-27 04:04:41 +00:00
  • d7bb634cce Add GeoRSS layer and example. Only support for georss:point for the time being. Probably has a fair number of cases where it can fail, but it works for a first run, and the community can build from here :) crschmidt 2006-06-27 03:35:55 +00:00
  • a80110add2 Fixed check for image location in single-file version. Schuyler Erle 2006-06-26 22:55:04 +00:00
  • 35a73b2942 Build Ka-Map support by default. (Note that this is in trunk, *not* 1.0: 1.0 will not include ka-Map support). crschmidt 2006-06-26 16:58:04 +00:00
  • 4934b386df Fixed tests following r770. Schuyler Erle 2006-06-26 15:55:15 +00:00
  • d5f36de60f Last round of left click checks added following r769 and r770. Schuyler Erle 2006-06-26 15:46:46 +00:00
  • 7bbfffa6d6 Applied similar change to r769 to MouseDefaults.js. Schuyler Erle 2006-06-26 15:43:38 +00:00
  • f90e4044e0 Applied patch from Corey Puffault, checking for left click only in mouse toolbar, fixing #101. Schuyler Erle 2006-06-26 15:32:15 +00:00
  • 793bca701d Bug fix overflow: 'none' -> 'clip' for IE. Schuyler Erle 2006-06-26 15:28:27 +00:00
  • 00540c6d07 Fixed unit tests following r729. Schuyler Erle 2006-06-26 15:11:27 +00:00
  • 05025e97d0 Round the scale value. KaMap rounds internally, so adding extra precision here only breaks client-side caching. crschmidt 2006-06-26 14:29:37 +00:00
  • 3546cad5a1 Add more descriptive names to the example. crschmidt 2006-06-26 13:55:45 +00:00
  • a3e5944e4e KaMap layer now sublasses initTiles, to implement the kamap 0-based tiling scheme instead of the OpenLayers/WW -180,-90 method. This means that there are no longer any restrictions on using ka-Map with other layers! woohoo! You can use ka-map on top of WorldWind, or with another ka-map layer, even if it has differently sized tiles. yay! crschmidt 2006-06-26 13:54:14 +00:00