Commit Graph

56 Commits

Author SHA1 Message Date
Tim Schaub
a948d4b3ea Demonstrate how source.setUrl() works 2016-05-18 21:35:47 -06:00
Tim Schaub
2c1353f6e9 Allow XYZ source construction without options 2016-05-18 21:13:55 -06:00
Frederic Junod
548e4abd35 Support minZoom in ol.source.Stamen 2016-04-01 09:46:36 +02:00
Frederic Junod
58d8b290af Add new cacheSize option to ol.source
Option added to:
 - olx.source.BingMapsOptions
 - olx.source.MapQuestOptions
 - olx.source.OSMOptions
 - olx.source.StamenOptions
 - olx.source.TileArcGISRestOptions
 - olx.source.TileImageOptions
 - olx.source.TileJSONOptions
 - olx.source.TileWMSOptions
 - olx.source.VectorTileOptions
 - olx.source.XYZOptions
 - olx.source.WMTSOptions
 - olx.source.ZoomifyOptions
2016-03-01 09:05:12 +01:00
Tim Schaub
13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Andreas Hocevar
72ec3fd48d Pass 'opaque' option on to superclass 2015-12-27 17:08:54 +01:00
Andreas Hocevar
4784b7f2e2 Handle urls and templates in ol.source.UrlTile
This makes url templates available for ol.source.VectorTile.
2015-10-28 10:29:03 +01:00
Petr Sloup
168b675191 Add reprojectionErrorThreshold option to the tiled image sources 2015-10-16 09:28:41 +02:00
Andreas Hocevar
8248ec63ba Fix {-y} template calculation for custom (TMS) tile grids
Previously, {-y} only worked for the standard web mercator tile grid. Now
a tile grid with an extent is required (which we get from
ol.tilegrid.createXYZ() anyway), and then the y calculation for TMS style
tile grids works as expected.
2015-09-30 09:07:55 +02:00
Tim Schaub
83c59ee255 Inline goog.isDef() calls for properties 2015-09-27 10:40:20 -06:00
Tim Schaub
b36d697585 Inline goog.isDef() property checks 2015-09-27 10:21:50 -06:00
Johannes Weskamm
a6c49dabcf Add a getUrls Method to ol.source.XYZ
Added the getUrls method to get access to the url / urls property.
When using a tileUrlFunction, getUrls should return null.
This should fix issue #3886
2015-08-19 12:43:35 +02:00
Frederic Junod
0a6745f1e4 Remove unused goog.require
Found by the latest version of closure-compiler (v20150729)
2015-08-04 10:01:11 +02:00
Peter Robins
44fdfaa630 Expand description for XYZ source 2015-07-28 12:54:01 +00:00
Petr Sloup
5993b45c63 Allow custom tileGrid in ol.source.XYZ 2015-06-19 19:58:06 +02:00
Andreas Hocevar
6a4d1c9b89 Pass transformed tile coordinates to the tileUrlFunction 2015-06-12 09:45:03 +02:00
Andreas Hocevar
5ae2521724 Make tileCoordTransform configurable
Instead of using the static createOriginTopLeftTileCoordTransform
function, the correct transform is now a non-API config option of the tile
grid.
2015-05-31 22:22:41 +02:00
Andreas Hocevar
b05193fa45 Replace ol.tilegrid.XYZ with an ol.tilegrid.createXYZ function 2015-05-05 18:52:33 +02:00
Marc Jansen
99e39fe06e Add basic documentation to @api symbols 2015-04-17 22:38:29 +02:00
Andreas Hocevar
3e18b85206 Add ol.source.Tile support for wrapping around the x-axis 2015-03-22 14:27:19 +01:00
Andreas Hocevar
ec00cd3222 Make tileSize a config option for ol.source.XYZ 2014-09-04 11:59:43 -06:00
Éric Lemoine
0fc4d0de98 Add @api stable annotations for ol.source.XYZ 2014-08-22 10:19:37 +02:00
Tim Schaub
ee487ca308 Sources may be configured with a projection, tile grids with an extent
An XYZ tile grid is constructed with an extent defining the bounds of the tile grid.
2014-08-19 10:30:27 -06:00
Tim Schaub
e97f79b4ab Respect XYZ source projection 2014-08-18 23:03:33 -06:00
Tim Schaub
caa0b568ad Remove extent option for sources
Most of our uses of source extent were cargo cult programming.  The source extent was seldom and inconsistently used.  Instead, layers can now be configured with an extent, and layer renderers limit rendering (and data requests) to the layer extent.

For vector sources, the `getExtent` method returns the extent of currently loaded features (this was the case before and after this change).  For tile based sources, we will likely want to allow easy construction of tile grids based on an extent (this is not possible before or after this change, but could be added later).
2014-07-24 10:30:06 -06:00
Petr Pridal
1a933febcd Add tilePixelRatio option to ol.source.XYZ 2014-07-11 12:03:55 +02:00
Éric Lemoine
4e0d48386b Use inheritDoc for ol.source.XYZ#setTileUrlFunction 2014-07-06 11:49:19 +02:00
Tim Schaub
4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Peter Robins
41d9f0360a Add @classdesc to classes 2014-06-09 12:10:19 -04:00
Andreas Hocevar
fbdbbfb7a7 Get rid of stability annotations and document stability with api
This change adds a stability value to the api annotation, with
'experimental' as default value.

enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.

Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Tim Schaub
fb497f5288 Annotations for exports 2014-04-29 09:53:05 -06:00
Tom Payne
27943d9ed6 Tidy up setting of default projection 2014-03-17 14:08:41 +01:00
Tom Payne
2100cd30df Add wrapX option to ol.source.XYZ 2014-03-17 14:08:41 +01:00
Éric Lemoine
315c42f0a7 Use olx namespace for options types in source code
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01:00
Paul Spencer
bada596b45 Add default stability level to docs of exported things. 2013-10-24 18:20:24 -04:00
Tom Payne
f3d5a5c37b Add tileLoadFunction option to ol.source.XYZ 2013-09-18 13:40:07 +01:00
Tom Payne
1ef4c379b2 Add ol.source.XYZ#setUrl and friends 2013-09-11 17:12:57 +02:00
Tim Schaub
cf37566606 Remove unused require
This was unused before 03f7bb66374b162aab26289b761e7918b79c0ca7 as well.  It would be interesting to see how many other unused requires there are (types that are only referenced in comments but not used in code).
2013-09-11 00:17:02 -06:00
Tim Schaub
843334627e Moving maxZoom default to XYZ source.
No reason this convenience should be restricted to the OSM layer.
2013-09-11 00:17:01 -06:00
Tim Schaub
8d7d1412c9 Adding XYZOptions to objectliterals.jsdoc
I remain uncertain about when to use the @exportClass annotation and when to use the @exportSymbol.  osmsource.exports seems to get away with simply @exportSymbol, but many other sources use @exportProperty.
2013-09-11 00:17:01 -06:00
Tim Schaub
0df6cebff9 minZoom is not a supported property of ol.tilegrid.XYZOptions 2013-09-11 00:17:01 -06:00
Tom Payne
0235caa1e0 Rename ol.source.ImageTileSource to ol.source.TileImage 2013-09-09 15:09:25 +02:00
Tom Payne
46553c719c Rename ol.projection to ol.proj 2013-05-30 18:55:58 +02:00
Tom Payne
6976fd96e3 Refactor tile functions
* Add support for minZoom in XYZ tile grids and tile sources
* Factor out common tile coordinate transforms
2013-04-29 19:54:26 +02:00
Tom Payne
e868954d9c Port ol.source.TileSource to new extents 2013-04-19 10:03:34 +02:00
Tom Payne
fe03ebe99c Re-use ol.Extent objects 2013-04-09 19:19:45 +02:00
Tom Payne
5bd67e1325 Re-use ol.TileCoord objects 2013-04-09 19:19:11 +02:00
Tom Payne
a537632199 Be more consistent with source options 2013-04-07 11:44:58 +02:00
Tom Payne
a876332f0e Add logo option to ol.source.Source subclasses 2013-04-05 18:12:12 +02:00
Bruno Binet
875ead58ab Remove expandUrl duplicated code from createFromTemplate
and make use of expandUrl function instead.
2013-03-13 16:52:54 +01:00