Commit Graph

65 Commits

Author SHA1 Message Date
Marc Jansen e1f477ad8c Remove goog.isNull in source classes 2015-10-01 09:18:52 +02:00
Tim Schaub ab87eb8af0 Remove remaining goog.isDefAndNotNull() calls 2015-09-29 09:51:41 -06:00
Tim Schaub 27d1e808b8 Replace goog.isDef(foo[bar]) with bar in foo 2015-09-27 10:58:39 -06:00
Tim Schaub 83c59ee255 Inline goog.isDef() calls for properties 2015-09-27 10:40:20 -06:00
Tim Schaub 36e336f406 Inline !goog.isDef() calls for properties 2015-09-27 10:37:20 -06:00
Tim Schaub e3951fa3c6 Inline simple goog.isDef() calls 2015-09-27 10:34:44 -06:00
Tim Schaub a86c270f6a Inline simple !goog.isDef() calls 2015-09-27 10:31:16 -06:00
Tim Schaub cf5eadebaa Define options 2015-09-27 10:11:30 -06:00
Frederic Junod 0d23ab44b3 Remove use of goog.array.isEmpty 2015-09-22 11:25:04 +02:00
Andreas Hocevar af319c259b Do not transform tile coordinates for tileUrlFunction 2015-06-19 18:34:09 +02:00
Andreas Hocevar 4b3aac32c3 Return transformed tile coordinates from ol.TileGrid's API methods 2015-06-12 09:47:32 +02:00
Andreas Hocevar a116878a57 Allow extents to restrict tile ranges requested from the server
The addition of full extent tile ranges also allows us to simplify wrapX
handling for tile layers. By limiting wrapX to true and false as possible
values, we can remove a lot of guessing logic.
2015-05-05 18:52:33 +02:00
Bart van den Eijnden f0bef58ba3 Do not overwrite FORMAT_OPTIONS if it is present already 2015-04-23 20:03:33 +02:00
Tim Schaub c31ae25892 Replace non-breaking space (U+00A0) with regular space (U+0020) 2015-04-22 10:41:10 -06:00
Marc Jansen 99e39fe06e Add basic documentation to @api symbols 2015-04-17 22:38:29 +02:00
Andreas Hocevar 2b75341068 Add support for non-square tiles 2015-04-14 22:54:57 +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
Frederic Junod 31f61121d9 Remove unnecessary newlines 2015-02-02 14:38:39 +01:00
Tim Schaub 1ff43686f5 Use bracket notation instead of goog.object.get 2015-01-07 22:31:01 -07:00
Tim Schaub f9a92c422c Use bracket notation instead of goog.object.set 2015-01-07 21:08:24 -07:00
Andreas Hocevar ebe3b48e0a Rename ol.Observable#dispatchChangeEvent() to #changed()
Since dispatchChangeEvent does not only dispatch a change event, but
also increases the revision counter, the method name should reflect
this.
2014-09-04 19:30:48 -06:00
Éric Lemoine 68fc7e5251 Add @api stable annotations for ol.source.TileWMS 2014-08-22 10:12:54 +02:00
Éric Lemoine 5a9d75a04f Stateless GetFeatureInfo for ol.source.TileWMS 2014-08-21 11:29:44 +02:00
Frederic Junod 0f4e56978b Remove unnecessary newlines 2014-08-19 11:58:25 +02:00
Éric Lemoine ba035abb1f Change ol.TileCoord to an Array 2014-08-18 09:33:24 +02:00
Peter Robins 7b32b8e561 Enable ProjectionLike on getGetFeatureInfoUrl 2014-08-15 08:42:40 +00: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
Peter Robins 5fb78fb352 Add ol.source.TileWMS#setUrls and setUrl 2014-07-11 12:07:07 +02:00
Éric Lemoine 2b4b2dadf7 Be stricter with the type of ol.source.TileWMS#_urls 2014-07-11 12:03:02 +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
Tim Schaub 24498fa9d0 Defines in a namespace that can be required
For consistency, all defines are in the ol namespace.  If they are to be moved to another namespace, they need to be requireable.
2014-04-30 09:14:10 -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
Andreas Hocevar c17ac0cae3 Greatly simplify and document the usage of JSDoc
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.

As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.

This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub fb497f5288 Annotations for exports 2014-04-29 09:53:05 -06:00
Éric Lemoine e4c2cf0b63 Add ol.source.TileWMS#getUrls 2014-04-10 09:16:24 +02:00
Tom Payne aeb1626b08 Suppress jshint warnings about use of String as a constructor 2014-03-23 19:59:49 +01:00
Tom Payne 2482a3fb9f Add support for Carmenta Server hi-DPI WMS requests 2014-03-03 14:18:24 +01:00
Ivan Grcic 34d5f24816 Do not load tiles outside extents for TileWMS source 2014-02-17 01:23:23 +01:00
Tom Payne d4ebfac74a Allow ol.source.{Image,Tile}WMS serverType option to be a string 2014-02-06 22:33:42 +01:00
Éric Lemoine 65dea74427 Calculate pixelRatio before using it
This fixes a regression introduced by https://github.com/openlayers/ol3/commit/646dd18 where the device pixel ratio was used to determine the tile size even though serverType was not defined for the source.
2014-01-30 09:50:34 +01:00
Éric Lemoine 8b9c3558ee Add FIXME 2014-01-19 21:52:28 +01:00
Éric Lemoine 3327f9223b Add ol.source.TileWMS#getGetFeatureInfoUrl 2014-01-19 21:52:28 +01:00
Tom Payne 2253be7adc Add HiDPI support to ol.source.TileWMS 2014-01-15 15:55:20 +01:00
Tom Payne 091888aaca Use ol.source.Tile#getTileGridForProjection 2014-01-15 15:55:19 +01:00
Tom Payne 33f0024747 Add pixelRatio to ol.TileUrlFunction 2014-01-15 15:53:46 +01:00
Tom Payne d5c1e53e48 Only support square tiles 2014-01-15 09:45:49 +01:00
Tom Payne c5a5acbf89 Refactor ol.source.TileWMS URL logic 2014-01-09 15:27:56 +01:00
Éric Lemoine 35d5158454 Merge remote-tracking branch 'upstream/master' into vector-api
Conflicts:
	src/objectliterals.jsdoc
	src/ol/attribution.js
	src/ol/geom/geometry.js
	src/ol/geom/geometrycollection.js
	src/ol/geom/linestring.js
	src/ol/layer/vectorlayer.exports
	src/ol/layer/vectorlayer.js
	src/ol/map.js
	src/ol/proj/proj.js
	src/ol/renderer/canvas/canvasvectorlayerrenderer.js
	src/ol/source/imagewmssource.js
	src/ol/source/tilewmssource.js
	src/ol/source/vectorsource.exports
	src/ol/source/vectorsource.js
	src/ol/source/wmssource.js
	src/ol/style/style.js
	src/ol/tilegrid/tilegrid.js
	src/ol/tilegrid/wmtstilegrid.js
	src/ol/tilegrid/xyztilegrid.js
2013-12-13 12:53:57 +01:00