Andreas Hocevar
e0015b3d4e
Use goog.DEBUG instead of ol.DEBUG for now
2016-08-04 11:29:54 +02:00
Andreas Hocevar
6f5ed17fc5
Remove goog.asserts.*
...
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Andreas Hocevar
7da5a5ae92
Make XHR work for file:// urls
...
The response status will be 0 instead of a HTTP status code for file urls,
so we need to consider a status of 0 as success too.
2016-07-28 13:46:43 +02:00
Frederic Junod
e289bfbb7d
Use ol.inherits instead of goog.inherits
2016-06-08 08:38:12 +02:00
Frederic Junod
4157882f2e
Add new ol.source.TileJSON#getTileJSON function
2016-03-09 10:55:19 +01:00
Tim Schaub
1877910b7e
Handle more XHR errors in the TileJSON source
2016-03-02 14:42:28 -07: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
Andreas Hocevar
78f44dcc8a
Improve XHR and ol.net.jsonp result/failure handling
2016-02-03 11:19:38 +01:00
Andreas Hocevar
136c8af878
Add tests and documentation for ol.net.jsonp
...
ol.net.Jsonp was renamed to ol.net.jsonp, because it is not a constructor.
2016-02-03 11:19:38 +01:00
Andreas Hocevar
d7497f9686
Always provide useCapture and async args to browser
2016-02-03 11:19:38 +01:00
Andreas Hocevar
f35d0106b8
Remove goog.net.* and goog.async.AnimationDelay
2016-02-03 11:19:38 +01:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Nicholas L
db3ad70a3d
Remove use of goog.bind and use ES5 .bind
2016-01-15 22:10:55 +13:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Petr Sloup
bc0d783f50
Use XHR by default to load TileJSON in ol.source.TileJSON
2016-01-07 09:19:23 +01:00
Petr Sloup
ffd9ace84e
Add option to load TileJSON via XHR
2016-01-05 13:40:20 +01:00
Petr Sloup
168b675191
Add reprojectionErrorThreshold option to the tiled image sources
2015-10-16 09:28:41 +02:00
Marc Jansen
e1f477ad8c
Remove goog.isNull in source classes
2015-10-01 09:18:52 +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
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
b36d697585
Inline goog.isDef() property checks
2015-09-27 10:21:50 -06:00
Frederic Junod
0578e8f2f6
Handle JSONP errors in ol.source.TileJSON
...
Fixes #3938
2015-08-10 15:28:26 +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
f40aa54c18
Use the correct TileCoord transform function
2015-05-22 09:19:59 +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
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
Andreas Hocevar
3e18b85206
Add ol.source.Tile support for wrapping around the x-axis
2015-03-22 14:27:19 +01:00
Tim Schaub
e79211e0c1
Respect attributions passed to TileJSON source
2015-02-11 10:15:29 -07:00
Éric Lemoine
1f54b33961
Add wrapX option to TileJSON source
2014-10-27 17:23:00 +01:00
Éric Lemoine
4cc9187414
Add @api stable annotations for ol.source.TileJSON
2014-08-22 10:12:54 +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
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
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
Tim Schaub
015aab8af3
Rename ol.extent.transform to ol.extent.applyTransform
...
This gives more consistency with ol.proj.applyTransform, allowing us to add a more convenient ol.extent.transform method that takes projection-like arguments.
2014-05-02 10:13:28 -06: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
Frederic Junod
1d688ad29d
Use goog.net.Jsonp instead of goog.net.jsloader
2014-04-22 14:44:55 +02: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
167b309242
Replace source ready flag with loading/ready/error enum
2013-09-30 13:30:54 +02:00
Frederic Junod
331005468c
Allow tileLoadFunction override for ol.source.TileJSON
2013-09-24 13:33:01 +02:00
Tom Payne
56e352b7aa
Dispatch change events instead of load events when sources change
2013-09-20 13:37:31 +01:00
Tim Schaub
97d614285e
New extent structure for TileJSON
...
The change in e806f51b3d neglected to correct the extent handling for the TileJSON source.
2013-09-15 22:22:20 -06:00
Tim Schaub
75cb19d7e1
Source updates for new extent structure
2013-09-14 21:13:46 -06:00
Tom Payne
0235caa1e0
Rename ol.source.ImageTileSource to ol.source.TileImage
2013-09-09 15:09:25 +02:00
Éric Lemoine
38ab64c3c3
Adapt sources to new signature for ol.Attribution
2013-08-30 16:50:36 +02:00
Tom Payne
46553c719c
Rename ol.projection to ol.proj
2013-05-30 18:55:58 +02:00