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
euzuro
77c168462b
need to make WMS & WFS case-independent. I dont know why I chose to move them all to uppercase instead of lowercase, but I did. This required changing the test cases and the 'srs' property which is set in Grid. Personally, I dont think that is the best place to set it, but so be it jedi. As long as I have the mic, i'd add that having 'projection' stored in both map and layer objects seems a bit redundant as well.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@493 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-06-01 11:54:31 +00:00
crschmidt
df375e7d29
This broke more than it fixed. Putting it back, and filing a bug on this issue.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@465 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 05:52:13 +00:00
crschmidt
bd0881d56b
If a layer is not visible when a zoomlevel changes, and the map view is then dragged, the map view will not be filled with tiles by the inittiles call. Always make sure that we fill the view, even if we just init-tiles'd.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@464 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-30 05:50:14 +00:00
crschmidt
1d1452da61
r439@creusa: crschmidt | 2006-05-29 13:32:54 -0400
...
Change Layer.js to call a moveTo function after visibility changes: This allows us to implement #56 . Layer/Grid.js now has code which shows how to have a layer which doesn't load when it's not visible: This code will be dependant on the layers, so this has to be implemented per class. However, classes like markers suffer very little performance cost for drawing, so Layer.Grid is the most important place for this improvement.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@458 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-29 19:18:29 +00:00
euzuro
0f7f771637
make tileSize member variable safe in Grid.js
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@330 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 23:04:35 +00:00
crschmidt
c0ec7f9a00
Change @require to @require:
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 17:17:22 +00:00
Schuyler Erle
5d1bc5ed78
Fixed redundant tileSize definition.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@318 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-24 06:26:54 +00:00
crschmidt
9190dd18d2
Add @require pragma to all source files.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@277 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-23 15:20:31 +00:00
crschmidt
2f5f40bfe1
Move projection information storage to map. Layer/Grid.js sets the projection when it creates a tile url, and it's no longer in the default params of WMS.js.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@240 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-21 18:34:01 +00:00