Commit Graph

  • e75ece7909 Add JSON parser and exporter, to allow people to more safely parse and use JSON in their OpenLayers applications. crschmidt 2006-07-20 14:23:05 +00:00
  • 9783a64c64 update comment euzuro 2006-07-20 13:47:55 +00:00
  • b6e937e877 add addScript() function for loading JSON scripts (or any scripts, for that matter) euzuro 2006-07-20 13:46:33 +00:00
  • 9a5f6c8d33 start tile & layer id's with standard strings, to avoid funky characters when later these ids are used as parameters euzuro 2006-07-19 17:09:18 +00:00
  • ca8993dd68 only send up arguments if not blank euzuro 2006-07-19 16:41:36 +00:00
  • 2e67a6aedf add getTile() function to Grid.js. with tests euzuro 2006-07-19 15:20:25 +00:00
  • 2def6f6327 give Tile a unique id. add tests euzuro 2006-07-19 14:47:41 +00:00
  • 96d0f62c59 add getLayer() function to Map euzuro 2006-07-19 14:42:20 +00:00
  • 5855e1cb1f move clear button down with the run buttons. euzuro 2006-07-19 14:41:18 +00:00
  • f71f3d0cfb give layer a unique id. udpate tests euzuro 2006-07-19 14:30:46 +00:00
  • 3f07472d5d rollback of r975 euzuro 2006-07-18 18:39:15 +00:00
  • abeb2ce686 give the map div a reference back to the OpenLayers.Map object euzuro 2006-07-18 18:13:33 +00:00
  • 4709d697b7 add appropriate requirements now that we are using an Util.js function in Feature.js euzuro 2006-07-18 17:21:36 +00:00
  • e08ab3371c use built-in VE translation functions euzuro 2006-07-18 16:43:34 +00:00
  • a046bb2b31 bug hidden from change to multiple WFS euzuro 2006-07-18 16:31:39 +00:00
  • c0e82d966f consolodate usage of Math.random() in OpenLayers.Util.createUniqueID() euzuro 2006-07-18 16:23:12 +00:00
  • ab98af7635 add test for OpenLayers.Util.createUniqueID() euzuro 2006-07-18 16:17:01 +00:00
  • 0a1529e00a lowercase functionname, indicate unique euzuro 2006-07-18 16:12:31 +00:00
  • 788ee7fee2 add a util function to create a random id euzuro 2006-07-18 16:10:38 +00:00
  • 1a71ac6199 update to new way of specifying feature class. OpenLayers.Feature.WFS is actually the default, so this technically doesnt even need to be done, but just for example. euzuro 2006-07-18 15:46:38 +00:00
  • 692d0f6113 Fix broken units: inches was missing, and dd was in place of images. crschmidt 2006-07-18 14:37:40 +00:00
  • f873f81545 Scale control file was not included via the non-single file version. crschmidt 2006-07-18 14:32:53 +00:00
  • 3c4d324f12 allow for user to specify an alternate tile class to use with WFS euzuro 2006-07-18 14:19:12 +00:00
  • 17426fcfc4 no longer need to set this parameter here now that we are correctly bubbling the setMap() call up to its two superclasses. Before, when we didnt define setMap() in WFS.js, then it was only bubbling up to Markers.js, which means that it wasnt getting the default tileSize from the map which happens in Grid.js. euzuro 2006-07-18 14:07:32 +00:00
  • 7651590f7d make sure setMap() bubbles up correctly to both superclasses euzuro 2006-07-18 13:37:04 +00:00
  • e91d0546ee replace all usage of copyOf() with clone(). Now copyOf() is officially deprecated and unused. supported only if users out there have used it, but we can phase it out in the next official release. euzuro 2006-07-18 11:56:13 +00:00
  • fc41d9dac1 update projection processing. if a layer (or the map) declares its projection as 'none' then no SRS parameter is added to the WMS/WFS requests euzuro 2006-07-17 15:39:44 +00:00
  • f9034ac9a2 do not add null-valued parameters euzuro 2006-07-17 15:37:48 +00:00
  • fa090a0826 clear the grid if not visible euzuro 2006-07-17 13:09:39 +00:00
  • 7994088a7a update WFS to new clone() euzuro 2006-07-17 12:59:12 +00:00
  • 0bcf214ddc update ve.html example euzuro 2006-07-16 18:57:35 +00:00
  • fca63a4ffe two changes I had to scour the net to find. First off, PixelToLatLong() does not take the arguments that the official SDK tell us it does. Thanks to Denis of ViaVirtualEarth.com for the workaround. Next, the olPix-vePix conversion, the actual mysterious undocumented 'Pixel' class appears to be Msn.VE.Pixel -- thanks to blogs.msdn.com/virtualearth for that one. if only things were a little more *open* we wouldnt have to hunt for things like this <exclamation>. euzuro 2006-07-16 18:49:39 +00:00
  • 500cc01778 rearrange loading structure to account for ve libraries not being loaded and for the mozilla match bug euzuro 2006-07-16 18:18:29 +00:00
  • 63b8cd6210 ve still doesnt totally work, but soon it will... and at any case it no longer auto-includes the script euzuro 2006-07-16 17:11:06 +00:00
  • 54f37fe30a oops. carryover from google.js copy :-( euzuro 2006-07-16 17:07:44 +00:00
  • d15d941d68 we now can remove the getExtent() function from Google.js and VirtualEarth.js euzuro 2006-07-16 16:56:15 +00:00
  • 3776a5d729 establish generic getExtent() function in Layer. Move resolution-based calculation up into Grid.js. This prevents infinite loops and is more useful to generic layers like Gmaps, VE, etc. euzuro 2006-07-16 16:55:20 +00:00
  • 629e62b82b protect google base layer functions from an uncentered gmaps object euzuro 2006-07-16 16:41:54 +00:00
  • 460446f558 actually don't have to use hacked functions afterall :-) euzuro 2006-07-16 15:34:08 +00:00
  • f013e9c2e5 removed auto-script loader from VirtualEarth.js, beginning adding accessor and translation functions so that it can be used as a base layer. still not complete. euzuro 2006-07-14 19:01:45 +00:00
  • e645fb03ac update warning message to users euzuro 2006-07-14 16:23:04 +00:00
  • 35aebd03fd give the warning message a bit of padding euzuro 2006-07-14 15:51:37 +00:00
  • e5dbb97ef2 even if the wrong key is provided to gmaps, it still loads the GMap2 object. When you try to instantiate it, however, it errors. So we use a try statement and on error, we display the warning message. Nice euzuro 2006-07-14 15:51:01 +00:00
  • eb6c2a6346 first step of deprecating copyOf() functions, to be replaced with clone() euzuro 2006-07-14 12:59:08 +00:00
  • a3aa327d2f only add extra urls if this.urls actually exists euzuro 2006-07-13 12:42:19 +00:00
  • bd9ee403f2 updates to allow a wfs layer to query multiple wfs servers with the same parameters. untested, but all tests pass. euzuro 2006-07-13 12:33:22 +00:00
  • 1e5e8d1490 coding standards euzuro 2006-07-13 11:26:38 +00:00
  • 9eb4f1967e fix calculation for random ids euzuro 2006-07-12 01:53:03 +00:00
  • 68e58ab679 comments and spacing euzuro 2006-07-12 00:35:46 +00:00
  • 488b41a50b put destroy after init euzuro 2006-07-12 00:34:47 +00:00
  • ec33ac4a84 give Control classes same setMap() functionality as Layer euzuro 2006-07-12 00:16:14 +00:00
  • a52b1fc8f1 update moveTo() function to take the 'minor' argument euzuro 2006-07-11 15:06:06 +00:00
  • e0e5dd544b update comment, adding 'minor' param euzuro 2006-07-11 14:55:50 +00:00
  • 63e0242ca9 update comment euzuro 2006-07-11 14:54:34 +00:00
  • fe6ede2c87 check for transparency was not correct euzuro 2006-07-11 13:52:16 +00:00
  • ba157b6645 update clone to correct class name euzuro 2006-07-11 12:18:34 +00:00
  • d747bc1d83 rewrite of Untiled.js to only create the div's once, and from then on just modify the attributes. this should be faster. euzuro 2006-07-11 12:17:59 +00:00
  • 1fa74c7c68 rewrite of Untiled class to use HTTPRequest class and not to use the Grid.js class. This speeds it up a bit, I think. all tests still pass. euzuro 2006-07-11 01:15:59 +00:00
  • a6870c66b0 grid's moveTo should also accept 'minor' even though it won't do anything with it. euzuro 2006-07-11 01:12:47 +00:00
  • 3030c421b5 if we allow a non-minor setCenter to get into this loop, then even if the last setCenter() on a drag is to the same center point and zoom, the moveTo()s of the layers will still get called with non-minor parameter -- in the case of Untiled, we need this to redraw the layer on move end. euzuro 2006-07-11 01:01:23 +00:00
  • 5a5c0f349d somehow this got left off during the LayersReworking fiasco. Luckily only Untiled.js was actually using it. tests seem to pass, seems alright euzuro 2006-07-11 00:50:32 +00:00
  • 37e47ad612 Added rounding in updateScale(). crschmidt 2006-07-08 06:35:47 +00:00
  • 3d59c93b9d Removed unnecessary base param from Scale control. crschmidt 2006-07-08 06:20:36 +00:00
  • 70df45d160 Created scale indicator based on Chris's Permalink.js. Schuyler Erle 2006-07-08 06:17:33 +00:00
  • 3a018dbb45 Declared vars in Permalink.js as lexical. Schuyler Erle 2006-07-08 06:05:48 +00:00
  • 03272cc894 add tests for passing null values to translation functions euzuro 2006-07-07 17:05:16 +00:00
  • 6f17fbf54a configure google zoom translation to return null if null passed in euzuro 2006-07-07 17:00:34 +00:00
  • b0d9a997c1 update comments euzuro 2006-07-07 16:58:23 +00:00
  • 8e2448413e add tests for google layer euzuro 2006-07-07 16:45:09 +00:00
  • 5769205acb give google layer a destroy() function euzuro 2006-07-07 16:05:14 +00:00
  • b84b3763a6 remove fixed layers from the viewport, not the layercontainer euzuro 2006-07-07 16:04:32 +00:00
  • 83fe2a828a created new GMaps API key for higher level directory. this way we can use the same key for the tests euzuro 2006-07-07 15:46:48 +00:00
  • f8e38a7b4d change heading on example euzuro 2006-07-07 15:28:08 +00:00
  • e9d7ff12b4 add GMaps API key for http://openlayers.org/dev/examples/ euzuro 2006-07-07 15:27:03 +00:00
  • 517282baa4 if gmaps is unable to load, well then we will show the user some help euzuro 2006-07-07 14:50:46 +00:00
  • 2897834520 tag fromLatLngToContainerPixel() function directly onto the GMap2 object. Cleaner code. Easier to distinguish where the hack is, and it is not completely separate of any OL code. euzuro 2006-07-07 13:20:33 +00:00
  • 10d55bd72a remove document.write() call that loaded the gmaps script in google.js. from now on, the user is responsible for adding that script tag to his/her page. Add a test to make sure gmaps code base is loaded before trying to initialize new gmap2. update isBaseLayer() to return true only if gmaps is correctly loaded. finally, protect all methods if this.gmap is null, do nothing. update OpenLayers.js to now include Google.js and library.cfg to not exclude it. euzuro 2006-07-07 12:55:39 +00:00
  • 3b1545eadc if we cant translate our lonlat to px, then dont try to draw. euzuro 2006-07-07 12:22:01 +00:00
  • d4587b06c0 make sure grid is set before trying to reinit tiles euzuro 2006-07-06 17:08:49 +00:00
  • a6d4a42058 add a destroy() function and a clone() function -- they are mostly empty but they are there for people to add on. Also added a check to make sure that a grid has been loaded before trying to re-init tiles after a mergeParams. added extensive tests. euzuro 2006-07-06 17:07:51 +00:00
  • 9b263461c0 update comments to reflect new function name euzuro 2006-07-06 16:55:42 +00:00
  • 0144ee66ab fix the require euzuro 2006-07-06 15:39:10 +00:00
  • 19adc2b155 require httprequest, not layer euzuro 2006-07-06 15:27:03 +00:00
  • 304b61f8f8 add tests for Layer.Grid euzuro 2006-07-06 13:04:04 +00:00
  • aa30c9cae4 switch order of superclass.clone() (as in r901). then make sure that tileSize gets copied using copyOf(), and that the reference to the old grid does not get carried over. euzuro 2006-07-06 13:03:27 +00:00
  • 6b8bde0ff4 switch around order of call to superclass.clone() and the setting of noninit/nonsimple vars. that needs to be done *afterwards*. there is no functional difference in this commit -- it is only for good precedence. euzuro 2006-07-06 13:00:24 +00:00
  • c13f7f5d4d copy the actual tileSize object, not just the reference. euzuro 2006-07-06 12:47:09 +00:00
  • 3d52b3e4c5 nullify all Grid-specific values. just for good measure euzuro 2006-07-06 12:29:45 +00:00
  • 774db5dbca add test for visibility accessors for Layer euzuro 2006-07-06 12:14:58 +00:00
  • 7f5ea40aca change function to use bl / tr euzuro 2006-07-06 11:59:39 +00:00
  • 7b80623c5c update comment euzuro 2006-07-06 10:46:57 +00:00
  • 986eaaf7a4 add hook to trigger the drawing of a layer upon addition to the map (assuming a center has been set) euzuro 2006-07-06 02:20:06 +00:00
  • 90933052aa give Grid a clone() function. euzuro 2006-07-06 02:19:04 +00:00
  • 8c6972bb06 uberminor change - spacing/alignment in jsdoc comments euzuro 2006-07-06 02:05:24 +00:00
  • 43e1788f6f coding standards - no multiple returns euzuro 2006-07-06 02:02:03 +00:00
  • 24503103b3 rearranging order of some functions, marking some of them private euzuro 2006-07-06 01:57:53 +00:00
  • f14a6049c1 coding standards for Grid.js euzuro 2006-07-06 01:51:14 +00:00
  • 353c7b810d jsdoc Grid.js euzuro 2006-07-06 01:39:19 +00:00
  • b848e824d7 modify Grid to use HTTPRequest, update WMS & WFS with their necessary specifications -- capitalizing all parameters and adding SRS param from getProjection() euzuro 2006-07-06 01:28:48 +00:00
  • 5debdb69ec make sure clone() of a layer does not copy the reference in the 'map' property. that should always be null as a cloned layer will still need to be added to the map via map.addLayer() euzuro 2006-07-06 01:02:02 +00:00