Commit Graph

  • e3386b3d50 Consistency is key. Mousmove->redraw in remaining location. crschmidt 2006-10-06 20:34:51 +00:00
  • a9baa4798f This is why I should never just 'go ahead and commit'. Also why I should write tests. This should be setMap: fixes the MousePosition control. crschmidt 2006-10-06 20:32:48 +00:00
  • 4f22f0738a Jeff Dege contributed a MousePosition Control, which this commit adds to trunk. Reviewed by Erik on Trac and in person. crschmidt 2006-10-06 19:20:23 +00:00
  • 4aef16e1bd Jeff Dege contributed a MousePosition Control, which this commit adds to trunk. Reviewed by Erik on Trac and in person. crschmidt 2006-10-06 19:20:23 +00:00
  • 185fd44437 Committing change for #328 . This will allow us to clone layers after they have been added to a map, using the resolutions/scales/etc. that were originally set, and also keeping ahold of all the new options set on the layer since we created it, like isBaseLayer, to correspond to behavior of Size.clone and the like. crschmidt 2006-10-06 18:57:44 +00:00
  • 8b909e9e53 bringing down r1660 from sandbox/euzuro/layerclone euzuro 2006-10-06 18:23:51 +00:00
  • 9bae3e8848 Changes to Layer.Google and to default theme to move the GMaps chrome over to the lower left side to yield up the valuable lower right corner for our own stuff. Schuyler Erle 2006-10-06 17:28:01 +00:00
  • f27cbc855f Add CSS classes to GMaps Terms of Use and Copyright elements. Schuyler Erle 2006-10-06 17:18:29 +00:00
  • e7834c8922 OpenLayers has been broken in Opera since we removed prototype. Now it's not. crschmidt 2006-10-06 16:25:32 +00:00
  • 9b73a9a4c9 if there is no old base layer, dont try to get the zoom from it euzuro 2006-10-06 16:17:10 +00:00
  • 5425ea861c ie on win does not like 'grey' euzuro 2006-10-06 16:14:38 +00:00
  • 6387b71d88 copy over newOptions, don't re-copy all of the old options euzuro 2006-10-06 16:11:38 +00:00
  • 53d2fd3033 super seems to be a reserved word (at least in mozilla) euzuro 2006-10-06 16:03:35 +00:00
  • 3be99e67e6 Convert all classes to use new-style class definitions. All tests pass. Schuyler Erle 2006-10-06 15:57:33 +00:00
  • 5280553306 IE, Safari, and Firefox all deal with XML elements with namespaces in different ways. I can't even make thigns work in *two* browsers at once -- what a pain. So, we'll wrap up all the browser-specific stuff in OpenLayers.Ajax.getElementsByTagNameNS(), which contains the browser funkies, and as a benefit, we get working WFS in IE. crschmidt 2006-10-06 15:33:33 +00:00
  • 95ec8bdc82 Update Layer classes to use new Class.create/inherit functions. Schuyler Erle 2006-10-06 15:33:29 +00:00
  • f49885444b Include tests for r1647. Schuyler Erle 2006-10-06 15:33:00 +00:00
  • 8e4b06effd Added Class.inherit, changed Class.create to make it unnecessary to check for arguments.length > 0 in initialize(). Schuyler Erle 2006-10-06 15:32:38 +00:00
  • 990f01a9c2 These changes shouldn't have needed to be there. We don't need to add code to core to help cope with Safari's inadequacies. crschmidt 2006-10-06 15:31:53 +00:00
  • f97ffae403 OpenLayers.js changes didn't suit Safari very well. crschmidt 2006-10-06 15:29:47 +00:00
  • c6d40eb2d3 Apparently Safari doesn't always load these in order. Let's just put a check around these to make sure we always have what we need. crschmidt 2006-10-06 15:04:11 +00:00
  • a5483e0f6d Fix plan in the Map tests for r1639. Schuyler Erle 2006-10-06 14:35:55 +00:00
  • 9e8f7f796c Move permalink up after moving its styling information into style.css. crschmidt 2006-10-06 11:28:48 +00:00
  • dd3562c26a 1. Move scalebar styling into CSS. 2. Move scalebar up, so we can move Permalink up slightly (that's the next commit) to not block google copyright. crschmidt 2006-10-06 11:14:29 +00:00
  • 89e06f398d Commit changes to code for skinning, including doc/customization, which documents the class style naming for OL, although it isn't implemented yet, so that we have a standard to work against. Update release scripts, tests, and create a 'theme' directory which will hold theme information as it is developed. crschmidt 2006-10-06 04:03:58 +00:00
  • 7e5cd23ad0 Commit changes to code for skinning, including doc/customization, which documents the class style naming for OL, although it isn't implemented yet, so that we have a standard to work against. Update release scripts, tests, and create a 'theme' directory which will hold theme information as it is developed. crschmidt 2006-10-06 04:03:58 +00:00
  • 5364ce73e5 break permalink into two controls: permalink and argparser. make the arg parser a default control that is added to the map. furthermore, make it such that on addition to the map, the permalink will hunt through the maps controls to make sure there is an argparser control loaded, and if not it will load one itself. now we add a new parameter to the permalink suite: 'layer'. the application will now save the layer visibility information. finally, update tests so nothing breaks. euzuro 2006-10-06 03:28:53 +00:00
  • 781fbf1822 Event.Stop caused us to lose the ability to click on our permalink. We like clicking on our permalink. bring that functionality back. crschmidt 2006-10-06 03:19:01 +00:00
  • 99ea5db027 only draw the layer when it needs to be drawn euzuro 2006-10-06 02:16:40 +00:00
  • fbd82a300b Oops, forgot to check in the tests that prove that r1616 actually works. Schuyler Erle 2006-10-06 02:07:28 +00:00
  • 7562f7097f Add revision property. This should allow us to check what version of the code people are using, useful for debugging. crschmidt 2006-10-06 01:03:13 +00:00
  • dd2a5df781 allow permalink to store layer information. update tests so they pass euzuro 2006-10-06 00:44:14 +00:00
  • f5d644733b once we have set the layer's resolutions array, we can set its inRange euzuro 2006-10-06 00:13:53 +00:00
  • 5d4ba864dc move addlayer event trigger to after the baselayer has been set euzuro 2006-10-05 23:17:54 +00:00
  • 407604cc35 Set the new layer.grid to a new Array object, rather than null, in Layer.Grid.clone(). Passes all tests. Fixes #203. Schuyler Erle 2006-10-05 21:04:28 +00:00
  • 7ba704305a make setVisibility() actually call display(). also add some comments on this rather funky situation. euzuro 2006-10-05 20:56:40 +00:00
  • a1ca8ebd08 Move the branding/ToS stuff up to the event pane in Layer.Google. Fixes #185. A big hurrah for the Uzmeister and his suggestion that solved this conundrum. Schuyler Erle 2006-10-05 20:46:58 +00:00
  • 7a1d3601a1 Change Layer.EventPane to override Layer.display() rather than Layer.setVisibility(). Also, add setZIndex() there to update the pane's z-index when the div's changes. Schuyler Erle 2006-10-05 20:45:12 +00:00
  • bf075e63e0 Add Layer.setZIndex so that layers can add behavior when their div's z-index changes. Also, change Map.setLayerZIndex() to use it. Schuyler Erle 2006-10-05 20:34:21 +00:00
  • a0ed21125c typo euzuro 2006-10-05 20:21:48 +00:00
  • 46b0402b0b oops. need to show/hide the layer when we change it. euzuro 2006-10-05 20:11:53 +00:00
  • ad545a0280 only move the visible and in range layers. the rest can redraw themselves when they come back into the picture. euzuro 2006-10-05 20:07:42 +00:00
  • 6366edc515 reinsertion of r1572 euzuro 2006-10-05 20:01:09 +00:00
  • 2b7c6cc844 refactor range checking into map and store a state variable in layer so that we dont fire changelayer every time user zooms euzuro 2006-10-05 19:32:07 +00:00
  • b2b66334ef Documentation and tests to close #259 . crschmidt 2006-10-05 19:31:00 +00:00
  • 3cf66a5779 Documentation and tests to close #259 . crschmidt 2006-10-05 19:31:00 +00:00
  • fee4d6f973 Add map.getNumLayers(), map.getLayerIndex(), map.setLayerIndex(), map.raiseLayer() to support moving layers up and down in the map stack. Schuyler Erle 2006-10-05 19:07:19 +00:00
  • 8782ee3e15 no need to get this again. euzuro 2006-10-05 18:56:17 +00:00
  • 1f4a53291f Fix uninitialized var error introduced in r1600. Schuyler Erle 2006-10-05 18:31:32 +00:00
  • 6de0698f43 By default, OpenLayers expects images in "../img" for non-single file builds, and "./img" for single file builds. Allow anyone to override this by setting OpenLayers.ImgPath = '/images/openlayers/' if they choose to. crschmidt 2006-10-05 17:40:19 +00:00
  • 9e4bf497ca Remove check for Prototype.js. Schuyler Erle 2006-10-05 17:20:58 +00:00
  • 3a177683d5 rollback previous changeset. overriding inRange() not necessary euzuro 2006-10-05 17:17:17 +00:00
  • ab4f69ac48 special cased inRange() to return true if getResolution() returns null -- this way we get through and actually do load 3rd party layers. euzuro 2006-10-05 17:08:27 +00:00
  • a1a1128ac7 for fixed zoom layers, be careful that if the 3rd party tool is not loaded, they wont be able to return a valid getExtent() and therefore neither a valid getResolution(). Make sure those return null without crashing. euzuro 2006-10-05 17:07:15 +00:00
  • 07ef71b7b0 Array.indexOf(), though implemented in FF, is not standard javascript. we replace it with OpenLayers.Util.indexOf(), replace all usage euzuro 2006-10-05 16:28:24 +00:00
  • d81c2f0187 Test for the presence of OpenLayers.Control before attempting to load controls. Makes it possible to run Map.js in the lightweight version. Schuyler Erle 2006-10-05 15:55:47 +00:00
  • deb64d31fe Update build tools to make it possible to build a 'lite' version of the single file library. Schuyler Erle 2006-10-05 15:53:41 +00:00
  • 0da08584d8 Added simplest useful example. Schuyler Erle 2006-10-05 15:47:07 +00:00
  • 17eecb955d Removed unnecessary meta tags from all the other examples. Golly. Schuyler Erle 2006-10-05 15:44:33 +00:00
  • c6db421ae6 Removed unnecessary meta tag from WMS example. Schuyler Erle 2006-10-05 15:42:55 +00:00
  • 4739147a2f Removed modifications to Array.prototype and moved them into OL.Util instead. All tests pass. Schuyler Erle 2006-10-05 15:18:02 +00:00
  • efa9499d57 add outgoing layers information to permalink euzuro 2006-10-05 15:09:56 +00:00
  • 67ced536c0 Merged r1559:r1587 from source:/sandbox/crschmidt/noprototype. OpenLayers is now Prototype-free(tm). Schuyler Erle 2006-10-05 14:50:47 +00:00
  • 33c37ef78b fix for #191 - graceful dealing with setCenter() on lonlat out of maxexteng (on first setcenter() call). added test euzuro 2006-10-05 06:20:47 +00:00
  • fcc84782df now the scrollbar works again. that pesky results div was sitting on top of it, is what the problem was. euzuro 2006-10-05 05:56:50 +00:00
  • fe4ae239d5 numbering euzuro 2006-10-05 05:51:15 +00:00
  • 3a611993ce update example.html to showcase fixes for #182 and #262 euzuro 2006-10-05 05:06:57 +00:00
  • 1414f0f656 fix for #182 and #262 -- pick the best new resolution when changing baselayers, instead of just using the same index into the resolutions array. euzuro 2006-10-05 05:06:33 +00:00
  • abde2fbc23 don't disable baselayers in the layerswitcher euzuro 2006-10-05 05:02:06 +00:00
  • 5d724258e1 update example.html to show scale-dependent layer visibility. this pretty much finishes off #99 euzuro 2006-10-05 04:21:59 +00:00
  • dc34753b50 oops. update test. euzuro 2006-10-05 04:21:10 +00:00
  • 510ab8561c add a new property to layer.js called 'visibility' which we now need to store instead of reading directly from the visiblity of the div itself, since the div might be hidden, but only because it is out of range. we thus add a new method on layer called inRange() which returns whether or not the layer's max/min resolution settings allow it to be displayed at the current map's resolution. to make sure that min/max resolution, scale, etc are set for *all* layers, we remove the if statement limiting the running of initResolution() to only baselayers, and we add code at the end of that function that, once the resolutions array has been calculated, then goes back and sets min/max scale and resolution. now what we have to do is every time moveTo() is called on a layer, if the zoom has changed, then we must check if the layer is inRange() and update the display accordingly. on that same note, the layerswitcher must now be attentive to these changes, so we set it to redraw every time the zoom changes. in the layerswitcher code, we now add special code to disable a layer if it is out of range. must add the superclass call to moveTo() for all of the layers to ensure this code is executed for all. update test. euzuro 2006-10-05 04:20:16 +00:00
  • f428473283 Safari is a bit pickier on syntax than other browsers. These two errors were breaking Safari... but no longer! crschmidt 2006-10-05 02:37:23 +00:00
  • 1935953796 minor update to r1558 for coding standards, comments, etc euzuro 2006-10-04 20:57:25 +00:00
  • 844f92afe5 Introducing a horrible bug in OpenLayers. crschmidt 2006-10-04 20:27:47 +00:00
  • 3ece418354 correct the class name euzuro 2006-10-04 19:19:30 +00:00
  • 86d573dd83 Test for null. Testing for existence means that when we pass toBBOX(0), we want to round to whole numbers, not to 6 decimal places. (Thanks tschaub.) crschmidt 2006-10-04 16:02:45 +00:00
  • dc7c266f1f Fix requires statement. Single file build of OpenLayers broken prior to this. (Thx jrf) crschmidt 2006-10-04 15:33:02 +00:00
  • 8dfb4c3ce9 Add rounding support to the default toBBOX() call. Now, toBBOX() will by default return values which are rounded to 6 decimal places. If you wish more or less accuracy, you can change it by passing a numeric argument with the accuracy you want to toBBOX(), and that accuracy will be used instead. Updated tests to test rounding to various levels. This functionality should help prevent different browsers from hitting different caches. At the equator, this rounding difference is only 4", and smaller as you head towards the poles. crschmidt 2006-10-04 14:05:34 +00:00
  • e1a36bdc58 Some lessons learned from other untiled layers: * Use existing Tile Class * Make the area double the current area, so we don't reload on one-pixel drag. crschmidt 2006-10-04 10:56:02 +00:00
  • 9f9c53218a Change timeout to 6 seconds instead of 4. We were still getting some reported timeouts. crschmidt 2006-10-04 03:02:44 +00:00
  • 4a14ae5346 Add MapServer layer. crschmidt 2006-10-03 21:29:44 +00:00
  • 994230e580 simplify defaultIcon now that default Icon sets offset to center euzuro 2006-10-03 20:52:29 +00:00
  • 91505ff5d6 make default behaviour for an icon with no specified offset or calcuateOffset() function be to have a standard calculateOffset() function setting the offset point at the center of the icon euzuro 2006-10-03 20:51:39 +00:00
  • 526c8a6e1e nullify these grids on exit so that we dont try to destroy them... which was raising errors when running tests on IE euzuro 2006-10-03 19:52:19 +00:00
  • 25da469210 replace useage of OpenLayers.Util.setOpacity() with OpenLayers.Util.modifyDOMElement(). Rewrite the former to use the latter, and mark the former as deprecated. euzuro 2006-10-03 19:38:15 +00:00
  • 7fa0910fcf update all opacity tests so they pass in IE euzuro 2006-10-03 19:37:14 +00:00
  • 66250b1342 add opacity support to createDiv() and createImage(). update their tests. also small update to modify tests for more completeness. updated one single complete usage of createImage() due to argument reordering euzuro 2006-10-03 19:07:24 +00:00
  • 964f777e64 Different browsers de-innerHTMLize differently. Just look for the words. crschmidt 2006-10-03 18:55:05 +00:00
  • 7280a6211e allow opacity to be set with OpenLayers.Util.modifyDOMElement(). added test. euzuro 2006-10-03 18:50:44 +00:00
  • 4f8c62df3f revert previous commit. going to do this another way. apologies. euzuro 2006-10-03 18:45:12 +00:00
  • 3a3e412090 use already created OpenLayers.Util.setOpacity() function euzuro 2006-10-03 18:44:02 +00:00
  • 10e7761a97 now we can specify opacity on createAlphaImageDiv(). added tests. updated usage. euzuro 2006-10-03 18:38:40 +00:00
  • 8fe89ba734 opacity is float, not string euzuro 2006-10-03 18:30:56 +00:00
  • 3e4109781b test for alpha hack, not just ie vs. mozilla euzuro 2006-10-03 18:26:43 +00:00
  • 348b0b388d allow for setting opacity of alpha image divs. also give both Icon and Marker setOpacity() functions. added tests and modified examples/markers.html to show how to do it. euzuro 2006-10-03 17:36:03 +00:00
  • 634588abf0 If we're not running under IE, we should append script tags via the DOM. This works in Safari, Firefox, Opera, and we check for IE and do it the old way for them. Closes #177 . crschmidt 2006-10-03 14:11:43 +00:00
  • 4f58bd4368 Add 'ascending' flag to LayerSwitcher. Update docs. Add Demo. Add tests. Closes #256 . crschmidt 2006-10-03 12:37:25 +00:00
  • 7e11c37610 Add 'ascending' flag to LayerSwitcher. Update docs. Add Demo. Add tests. Closes #256 . crschmidt 2006-10-03 12:37:25 +00:00
  • 6fa8994d61 changing 'minor' parameter name to 'dragging' for consistency euzuro 2006-10-03 04:35:04 +00:00