euzuro
17581c714d
Remove the concept of min/max zoom level from Map. Replace it with concept of num zoom levels. Bit of rearrangement in the initResolutions() function in HTTPRequest.js. Adapt all of OL to deal with numZoomLevels instead of min/max. Fix PanZoomBar so that it listens for change of baselayer and redraws itself. fix all tests so they pass. Add zoomLevels.html example for playing around with different methods of setting zoomlevels.
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1302 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-19 02:09:29 +00:00
euzuro
7ae04f7423
the 'alpha' property belongs to Layer, and it's a boolean so no need to null it anyways
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1288 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-17 18:53:57 +00:00
euzuro
d8d2b225e4
remove unused getTile() method and related tests
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1287 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-17 18:17:48 +00:00
euzuro
5952a7e3af
mark a few functions as private
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1286 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-17 18:15:29 +00:00
euzuro
8d1fe36b0f
add comments for spiralTileLoad() function
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1285 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-17 17:43:27 +00:00
euzuro
fa3b3a3d0c
move baselayer functions down and separated from private layer functions
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1284 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-17 17:36:17 +00:00
euzuro
a90c976375
always get the resolution from the map -- this grid might not be the base layer
...
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1280 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-17 16:15:45 +00:00
euzuro
0f9a02bf61
no longer need to worry about grid moving around when it's invisible.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 18:14:10 +00:00
euzuro
f3c12c729d
remove deprecated methods for 2.0 release. Documentation available at ReleaseNotes2.0
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-16 02:26:12 +00:00
euzuro
c1b8c8dd60
change the '@require:' to '@requires' so as to be compatible with JSDOC standards. put these directly inside the class definition comment block. update script to suggest this and update all source files to follow pattern. Caught a missing @requires in the EventPane.js file
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1206 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 23:05:05 +00:00
euzuro
841fdcbfb3
split Util.js into two files. BaseTypes.js will contain all the OL Base types, such as Pixel, LonLat, Bounds, etc., as well as all the standard javascript basetypes (string, number, etc) extensions. All else remains in Util.js. In theory I have fixed all dependencies. If this doesn't work, I'll rollback.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1205 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-14 21:49:19 +00:00
euzuro
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
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1199 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-12 15:58:25 +00:00
crschmidt
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.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 19:14:16 +00:00
crschmidt
fb3ff32919
Grid.js no longer uses the 'newGrid' variable.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1157 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 13:39:10 +00:00
euzuro
bc6b2e690d
copy/paste bug
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 06:20:51 +00:00
euzuro
3d13e1f60d
coding standards
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 06:20:01 +00:00
euzuro
960a70ec07
use new clearGrid()
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 06:15:32 +00:00
euzuro
3b929fd7a2
clean up clearGrid()
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1150 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 06:14:05 +00:00
euzuro
b262f2fb71
hack hack hack
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1146 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-08-09 04:41:21 +00:00
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