Commit Graph

232 Commits

Author SHA1 Message Date
ahocevar
08af94cf84 We never need to retile when the zoom didn't change. 2011-12-03 00:13:44 +01:00
ahocevar
84b30d3699 Don't rely on the bounds of the top-right tile.
When the grid crosses the dateline, the top-right tile is in a different world than the bottom-left one. Instead, use the grid size and tile width/height to calculate the top-right coordinate.
2011-12-03 00:05:26 +01:00
ahocevar
c15631ae3e Remove code that never gets called.
OpenLayers.Map has no wrapDateLine property.
2011-12-02 23:57:39 +01:00
fredj
6f78dc4c8f Remove call to deprecated events.addEventType function 2011-11-30 09:29:24 +01:00
fredj
6836f4dcdf Remove unneeded requires 2011-11-15 10:11:36 +01:00
fredj
1ed137bd0a move Layer.Grid.getGridBounds function into deprecated.js 2011-11-15 09:06:44 +01:00
Éric Lemoine
db08102fe4 correct bug where the value stored for the top-left corner of the back buffer may be incorrect, thanks @ahocevar for catching the issue 2011-10-30 23:20:42 +01:00
Éric Lemoine
c0d210ef05 just skip tiles that are currently loading when creating the back buffer 2011-10-29 21:11:14 +02:00
Éric Lemoine
8df1ae0e09 comparing backBufferData.resolution and serverResolution to know if backbuffering should be applied is wrong 2011-10-29 21:10:23 +02:00
Éric Lemoine
c80746b890 Tile.Image.cloneMarkup renamed Tile.Image.createBackBuffer 2011-10-29 12:22:08 +02:00
Éric Lemoine
f3e0ac9425 remove double variable declarations, and make jslint happier 2011-10-28 23:00:13 +02:00
Éric Lemoine
2f80d52bfd in single tile mode with no transition effect remove the back buffer when zooming 2011-10-28 22:57:10 +02:00
Éric Lemoine
46de595f55 Merge branch 'master' into bigbackbuffer 2011-10-28 21:26:59 +02:00
Éric Lemoine
7ad7e4d57c better comments for Layer.Grid.getServerResolution, no functional change 2011-10-21 09:35:30 +02:00
Éric Lemoine
abcc74cbc7 give a class to the back buffer 2011-10-21 00:13:16 +02:00
Éric Lemoine
667d21137f purely cosmetic change 2011-10-20 23:05:34 +02:00
Éric Lemoine
76e8a800da special precautions must be taken in updateBackBufferData 2011-10-19 23:47:25 +02:00
Éric Lemoine
f9ae12f227 minor refactoring in Layer.Grid - add a removeBackBuffer function 2011-10-19 20:42:34 +02:00
Éric Lemoine
475f96db96 back buffer is not correctly repositioned 2011-10-18 08:11:43 +02:00
Éric Lemoine
5ae65d413a the layer may not be in the map anymore when a tile is received 2011-10-16 22:40:11 +02:00
Éric Lemoine
bea037679f better back buffer code, and support for singleTile 2011-10-16 22:31:37 +02:00
Éric Lemoine
69d3c76254 a "big back buffer" attempt 2011-10-15 23:48:13 +02:00
ahocevar
8c43c4537c Merge branch 'master' into 3526 2011-10-09 09:54:45 +02:00
Éric Lemoine
fed387804e base-10 parseInt 2011-10-07 13:43:55 +02:00
Éric Lemoine
85d3e8d5e9 Merge branch 'master' into clientzoom 2011-10-07 13:36:58 +02:00
Éric Lemoine
ded64c00d4 apply patch-3531-A0.diff from trac ticket #3531 2011-10-01 21:41:35 +02:00
ahocevar
2e6c9bfdc2 Remove action that is now covered by wrapDateLine.
With the changes in wrapDateLine, we don't have to shift the bounds here any more.
2011-09-29 13:53:32 -06:00
ahocevar
99d012f321 only change bounds when wrapDateLine is true; remove unused variable 2011-09-27 07:38:22 -06:00
ahocevar
61a3c2a072 only change bounds when wrapDateLine is true; remove unused variable 2011-09-27 07:37:08 -06:00
Bart van den Eijnden
720184e9cd add missing requires, non-functional change 2011-09-19 17:41:24 +02:00
ahocevar
8bf0d74291 reverting accidently committed changes
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12358 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-12 04:31:16 +00:00
ahocevar
22bd5fa546 also consider the resolutions array if no zoomOffset is provided. r=bartvde (closes #3485)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12357 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-12 04:26:32 +00:00
Éric Lemoine
89957b8399 the map isn't correctly positioned when dragging with singleTile true, r=bartvde,ahocevar (references #3361)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-07-04 20:34:47 +00:00
Tim Schaub
2f93c18bd5 Getting rid of global tlViewPort in Grid.js (thanks jorix for the report).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-08 06:54:48 +00:00
Frédéric Junod
82a64751af fix Natural Docs comments, no functional change. p=jorix, r=me (closes #2989)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11576 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 08:19:18 +00:00
Frédéric Junod
1887969a3c move addTile code to the base class (OpenLayers.Layer.Grid). r=crschmidt (closes #2904)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11575 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-28 08:12:05 +00:00
ahocevar
2d5f29c55e New private movePyPx method to avoid going through all the unnecessary pixel-lonlat conversions. p=elemoine,me (closes #3062)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11535 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 18:02:12 +00:00
Éric Lemoine
4a4d9b29cd the grid layer needs to clear its tile loading timeout when it's removed from the map, or moveGriddedTiles can be called with this.map set to null, r=crschmidt (closes #3110)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11482 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 12:02:29 +00:00
crschmidt
339d1ebaef Default the buffer to 0 instead of 2. On small maps (or fullscreen
maps on small devices) this is a huge win: instead of downloading
*42 tiles* on a 500x500 div, we now download just 12, a 3.5x savings
in downloads by default. The buffer of 2 was originally chosen when
most maps were based on slow-loading WMS laeyrs and having an area
to pan into was more important. That default no longer makes sense.

(Closes #3111) r=tschaub


git-svn-id: http://svn.openlayers.org/trunk/openlayers@11481 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-25 11:50:30 +00:00
ahocevar
bc81882a8e removing unused _bounds member variable. non-functinal change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-22 09:06:50 +00:00
Éric Lemoine
08acb65e0e deferred tile loading, i.e. the Google Maps way, p=pgiraud,ahocevar,me, r=ahocevar,me (closes #2998)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11159 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-21 09:45:22 +00:00
Tim Schaub
441a5408cd Adding support for a tileOrigin property to all gridded layers. If working with a cache of tiles that don't align with the bottom left corner of the layer's maxExtent property, set the layer's tileOrigin property. This change also removes the tileExtent property (not in any release), favoring tileOrigin as the way to determine how the grid is aligned. r=ahocevar (closes #3011).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-14 15:56:07 +00:00
Tim Schaub
373dc629bb For gridded layers where the tile lattice on the server doesn't align with the maxExtent on the client, set the layer tileExtent property. r=ahocevar (closes #3002)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11002 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-05 17:21:58 +00:00
Tim Schaub
ad54169479 Happy New Year.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:39:40 +00:00
ahocevar
ce90aebfd0 Made Tile.Image.IFrame an addin which will be used only if a layer is configured with the maxGetUrlLength option. This deprecates Layer.WMS.Post. r=tschaub (closes #2824)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10755 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-16 21:54:22 +00:00
crschmidt
f0d474e50b Change license text to point to "OpenLayers contributors", referencing
authors.txt file. In reality, MetaCarta does not own copyright to these files,
they merely have a right to distribute them under the license terms agreed to
by the contributors. At this point, there is no longer any reference to
MetaCarta as a copyright holder in the OpenLayers project, only to its
individual contributors via the authors.txt file.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:06:31 +00:00
Éric Lemoine
6e28a7cafd Layer: add getter method for maxExtent, p=regli_dominik, r=me
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10681 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-08-23 12:37:39 +00:00
Frédéric Junod
ae5d20b39f don't clone the size from map.getSize(). r=elemoine (closes #2603)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10377 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-06 07:28:59 +00:00
ahocevar
50f26e3313 Changing our layers' clone methods so they create a clone of the layer state at the time of clone creation, not at the time the original was created. r=tschaub (closes #2477)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10045 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-02-10 21:29:37 +00:00
crschmidt
b72748e2c6 Fix silly typo in @requires statements.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8949 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:23:23 +00:00