Commit Graph

69 Commits

Author SHA1 Message Date
euzuro
f339e3a93d hash -> hashtable and Hash -> Object -- let there be no confusion, we are *not* using prototype
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1144 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 04:36:39 +00:00
crschmidt
bc780edcec Fix test failures by changing the failover mode to check for existince of needed variables rather than storing 'newGrid'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1141 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 04:18:18 +00:00
crschmidt
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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1137 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:47:33 +00:00
euzuro
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 03:31:06 +00:00
euzuro
f3a072b151 new layerswitcher, improved google layer, boxes layer, grid fix
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1096 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-08 18:20:24 +00:00
crschmidt
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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-03 17:27:47 +00:00
euzuro
3962b0a814 fixed tabs, multiple return (coding standards)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-26 14:42:50 +00:00
euzuro
96c3720aab protect for null bounds (not-loaded map)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@993 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-21 18:22:37 +00:00
euzuro
2e67a6aedf add getTile() function to Grid.js. with tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@981 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-19 15:20:25 +00:00
euzuro
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@961 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-18 11:56:13 +00:00
euzuro
fa090a0826 clear the grid if not visible
git-svn-id: http://svn.openlayers.org/trunk/openlayers@958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-17 13:09:39 +00:00
euzuro
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@950 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-16 16:55:20 +00:00
euzuro
a6870c66b0 grid's moveTo should also accept 'minor' even though it won't do anything with it.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-11 01:12:47 +00:00
euzuro
0144ee66ab fix the require
git-svn-id: http://svn.openlayers.org/trunk/openlayers@905 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 15:39:10 +00:00
euzuro
19adc2b155 require httprequest, not layer
git-svn-id: http://svn.openlayers.org/trunk/openlayers@904 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 15:27:03 +00:00
euzuro
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 13:03:27 +00:00
euzuro
c13f7f5d4d copy the actual tileSize object, not just the reference.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 12:47:09 +00:00
euzuro
3d52b3e4c5 nullify all Grid-specific values. just for good measure
git-svn-id: http://svn.openlayers.org/trunk/openlayers@899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 12:29:45 +00:00
euzuro
7f5ea40aca change function to use bl / tr
git-svn-id: http://svn.openlayers.org/trunk/openlayers@897 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 11:59:39 +00:00
euzuro
7b80623c5c update comment
git-svn-id: http://svn.openlayers.org/trunk/openlayers@896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 10:46:57 +00:00
euzuro
90933052aa give Grid a clone() function.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 02:19:04 +00:00
euzuro
43e1788f6f coding standards - no multiple returns
git-svn-id: http://svn.openlayers.org/trunk/openlayers@892 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 02:02:03 +00:00
euzuro
24503103b3 rearranging order of some functions, marking some of them private
git-svn-id: http://svn.openlayers.org/trunk/openlayers@891 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 01:57:53 +00:00
euzuro
f14a6049c1 coding standards for Grid.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@890 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 01:51:14 +00:00
euzuro
353c7b810d jsdoc Grid.js
git-svn-id: http://svn.openlayers.org/trunk/openlayers@889 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 01:39:19 +00:00
euzuro
b848e824d7 modify Grid to use HTTPRequest, update WMS & WFS with their necessary specifications -- capitalizing all parameters and adding SRS param from getProjection()
git-svn-id: http://svn.openlayers.org/trunk/openlayers@888 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-06 01:28:48 +00:00
euzuro
9cb9f6200c fix class name. coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@880 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-07-04 16:48:09 +00:00
crschmidt
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@843 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 23:59:42 +00:00
crschmidt
7313838f1f Grid.js has two other tile.draw methods, which need to now use the this.alpha flag.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@841 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 15:48:50 +00:00
Schuyler Erle
44fee8a018 Added an 'alpha' option to Layer.Grid by which Layers can have the PNG alpha hack enabled on a per-Layer basis.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@840 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-30 15:41:40 +00:00
crschmidt
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@820 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-28 02:51:37 +00:00
crschmidt
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).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@817 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-28 02:21:30 +00:00
crschmidt
38324e7295 Change Grid to not setTileSize if the tileSize passed is null. Also change WFS to not call setTileSize if it's null.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-28 00:33:28 +00:00
euzuro
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
git-svn-id: http://svn.openlayers.org/trunk/openlayers@806 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-27 23:16:26 +00:00
crschmidt
50babaeb34 Also pass the transparent param on to addTile in the column/row functions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:10:44 +00:00
crschmidt
8e0793b191 Only draw transparent images if the tiles are transparent.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 19:02:33 +00:00
crschmidt
7791ab952e Fix for #69: "Non-visible layers suffer deficiencies when turned on." Add the layerContainer offset to the pixel location of the images, to place them in the map correctly.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@669 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-22 11:36:25 +00:00
Schuyler Erle
ead31f6dc6 Added license headers to all JS source files.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@657 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-21 15:22:48 +00:00
crschmidt
4b9445115b Complete revert.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@598 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:12:20 +00:00
crschmidt
4ef444e821 Yeah, this didn't work out so well. This is neccesary code, but it doesn't work, and I can't figure out why. Moving out -- will work on this in a sandbox.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@597 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:07:45 +00:00
crschmidt
5cd7142e67 Remove left/right conditional aspects, since this is breaking somehow.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@596 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:06:16 +00:00
crschmidt
cd8fe2cc81 Remove console.log statement
git-svn-id: http://svn.openlayers.org/trunk/openlayers@595 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:03:43 +00:00
crschmidt
082133730e Fix conditional.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@594 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 17:02:27 +00:00
crschmidt
747573cfad When moving by long distances (whole screenfuls) via API setCenter calls, reinitialize the grid. This solves an 'infinite loop' like problem where if you jumped by a long way, where addColumn/addRow were simply looping for so long that the browser went unresponsive/broken. Fixes issue reported by NickH on users list as well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@593 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-15 16:37:15 +00:00
crschmidt
b0c86248e1 Change order of params: passed params should override existing params.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@559 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-08 17:11:36 +00:00
euzuro
85b14a3c93 when we destroy a grid layer, destroy all of its tiles
git-svn-id: http://svn.openlayers.org/trunk/openlayers@540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-07 16:07:26 +00:00
euzuro
d965444bea add a default addTile() class to grid. this is only a placeholder, as it is to be implemented by subclasses.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@517 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:21:50 +00:00
euzuro
182a74d6bf coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@516 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:20:59 +00:00
euzuro
c90a9e9f2b move the draw() call out of the addTile() function and into the grid code.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@515 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-05 16:19:47 +00:00
euzuro
e0aa067cb6 remove 'projection' member from Layer. keep single instance in map
git-svn-id: http://svn.openlayers.org/trunk/openlayers@496 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 12:30:46 +00:00