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
crschmidt
2f367f6b8c
OpenLayers.Console is used throughout the code, but not added as a dependancy.
...
Add @requires statements to pull it in everywhere it is needed. Since Console
is so small -- 634 bytes -- this should have a limited impact on anyone with a
custom build profile. (Closes #1549 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8948 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-05 13:07:42 +00:00
Frédéric Junod
ad6d0bd997
Add missing semi-colons. ( closes #1762 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8130 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-10-17 08:06:59 +00:00
Tim Schaub
66a4c6fb0e
Caching array length instead of accessing it with each iteration. r=crschmidt ( closes #1636 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7627 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-31 04:44:25 +00:00
crschmidt
87f26c231e
Use the maxExtent of the layer in Grid layers instead of the maxExtent of the
...
map (since the two can differ). Patch from kleptog. (Closes #1552 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7298 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-05-31 16:56:41 +00:00
Paul Spencer
d15ab68360
quick lint before rc1, only some missing missing semi-colons.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6748 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-04-01 00:14:34 +00:00
crschmidt
cde39e98ae
Improve the handling of tile events with regard to tiles being unloaded before
...
their load events fire by adding an 'unload' event to the tile, and calling
it from the places where we're about to stop listening to events. In the longer
term, it might make sense to have this be automatic, but this resolves issues
with map resizes screwing with tile events, and reverts a previous,
incomplete solution to solve a problem with untiled tiles not resizing when
the map size changes. r=ahocevar, checked out by bartvde (Closes #1417 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6495 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-12 12:53:34 +00:00
ahocevar
155d86f070
updated ND comment (see #1417 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 15:11:21 +00:00
ahocevar
0a8ffebb85
resizing the map quickly messes up tile load events (singleTile). Thanks bartvde for the patch. r=me ( closes #1417 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6436 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-03-05 14:41:32 +00:00
Frédéric Junod
279af295f1
Add missing ND comments. (non-functional changes)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6418 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-29 14:16:10 +00:00
crschmidt
dd1f4d1fa9
We split the grid init into a seperate function, and use that as the
...
controlling mechanism, to reduce code duplication between Grid/KaMap/other
layers that need a different grid origin. r=euzuro (Closes #1349 )
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6231 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-12 18:24:15 +00:00
Éric Lemoine
06571e2cf3
fix indent (non-functional change)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6178 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 20:33:47 +00:00
crschmidt
431b882630
Don't redraw the single tile if the layer is not visible; it will be redrawn
...
by setCenter since we clear the grid anyway.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6168 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-09 16:51:39 +00:00
Tim Schaub
f27833f1db
Trigger feature related events with feature information and layer related events with layer information. Also adding events.on and events.un convenience methods. r=crschmidt ( closes #1343 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-02-08 23:31:27 +00:00
crschmidt
09e0d3ec81
Update copyrights to 2008.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-01-01 08:14:55 +00:00
Tim Schaub
33e313b059
Separating jsdoc style docs into their own block. The new NaturalDocs doesn't parse these mixed blocks, giving us no class descriptions with the two together. ( closes #1229 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5553 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-12-21 08:28:09 +00:00
Paul Spencer
24d4fdc1bd
apply patch from #1106 , minor tweaks for performance. ( Closes #1106 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5243 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-11-21 20:14:50 +00:00
euzuro
4564090ee7
readability fix for setTileSize(). No reason to be re-declaring the size variable -- it already exists as a parameter. Thanks to pvalsecc for spotting this one. :-) (See #1094 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 15:28:54 +00:00
crschmidt
ed3221441c
Refactor SVN layout in compliance with RFC/LicenseChange. This hopefully
...
completes an important blocker for moving forward with OSGeo incubation.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4985 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-10-17 02:21:22 +00:00
euzuro
eacfa2b88a
Remove 'drawn' property from Tiles. ( Closes #1018 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4557 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 20:45:31 +00:00
Paul Spencer
8c003733cf
add missing semicolons.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4505 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-28 17:17:45 +00:00
Schuyler Erle
c941651e72
Correctly size Layer.Grid and Layer.KaMap in rows/cols for all values of Grid.buffer.
...
Closes bug #928 . Thanks a mil to bartvde for identifying the solution.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 14:48:22 +00:00
Schuyler Erle
cab8696707
Doc change to clarify the purpose of Layer.Grid.buffer.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4313 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-15 03:56:02 +00:00
Tim Schaub
c2148651ed
Filling our log with cruft, adding meaningless conflicts for merges, and changing a comment style that ndocs could care less about, this commit changes Return to Returns ( closes #945 ).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-29 18:44:10 +00:00
Tim Schaub
472ce374e6
Correcting the ndoc typo I made in r4088. Now layer.getTilesBounds and layer.getTileBounds are properly documented (see #482 ).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4089 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 23:30:23 +00:00
Tim Schaub
d7776e77a7
Add a getTileBounds method to gridded layers. Thanks to crschmidt for the tests on this one. Committed with a few minor ndoc changes (closes 482).
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4088 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-28 23:16:23 +00:00
crschmidt
6194452b8a
Since John already went ahead and committed the main change, I'm just going
...
to finish this one up. All commits are in comments, so a review doesn't seem
strictly neccesary. This closes #918 and fixes all the copyrights that I could
find in the code.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-23 11:29:06 +00:00
euzuro
238385157c
4or whatever reason, the 'singleFile' property was never properly documented on grid
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3900 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-14 13:53:27 +00:00
crschmidt
e3490e7aba
Two size/resize issues on singleTile layers, #886 , with tests by Andreas.
...
Many thanks, Andreas!
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3861 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-08-05 13:38:55 +00:00
euzuro
cf5a53959e
ND Update: make array's say what they're made of, and a few other small bits, like mistyped and a couple missing <>s
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3829 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-31 20:02:03 +00:00
euzuro
8c552be94b
as universally approved on discussions on dev list, replace new Array() with []. all tests pass ff & ie6
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3815 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-25 22:48:02 +00:00
euzuro
fd4d2918f1
fix for #853 - remove JSDOC comments from CLASS_NAME variables
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3787 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-23 15:09:09 +00:00
Tim Schaub
cc1b0269c9
#823 New class style. Instead of OldStyle = Class.create(); OldStyle.prototype = Class.inherit(Parent, prototype), we now use NewStyle = OpenLayers.Class(Parent, prototype). New style classes allow for backwards compatibility [you can use OldStyle = Class.create(); Class.inherit(NewStyle, prototype)]. The Class.create and Class.inherit functions are deprecated. Backwards compatibility will be removed at 3.0. Thanks Erik for the careful review.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3767 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-16 20:25:11 +00:00
crschmidt
aad458eeb4
Commit fix for "getGridBounds calls 'getTileBounds' instead of
...
this.getTileBounds", #840 . Reviewed by Euz.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-15 19:47:46 +00:00
euzuro
921347a81a
patch for #831 - simplify the notion of untiled (now an option on grid layers called 'singleTile') and implementing loading events for gridded/untiled layers. thanks tim and chris for reviewing this beast.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-07-12 22:42:34 +00:00