Commit Graph

46 Commits

Author SHA1 Message Date
Marc Jansen
fb9ba22c30 Add message to assertions. 2015-03-30 22:53:03 +02:00
Bart van den Eijnden
4569858882 Add image loading events to image sources 2015-03-17 12:56:39 +01:00
Bart van den Eijnden
ce8d57b534 Add setters and getters for imageLoadFunction 2015-02-05 10:53:21 +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
fed6376e26 Add imageLoadFunction option for ol.source.ImageWMS 2014-10-30 09:22:45 +01: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
7596133db1 Add @api stable annotations for ol.source.ImageWMS 2014-08-22 10:12:54 +02:00
Éric Lemoine
fbab52b09f Enable ProjectionLike on getGetFeatureInfoUrl
This commit follows up on #2348.
2014-08-21 11:45:10 +02:00
Éric Lemoine
d1bb2724a5 Stateless GetFeatureInfo for ol.source.ImageWMS 2014-08-21 11:29:44 +02: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
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
Frederic Junod
663e7af0d2 Use ol.extent.getWidth and ol.extent.getHeight 2014-04-17 15:54:13 +02:00
Éric Lemoine
ee1b4e08a1 Add ol.source.ImageWMS#getUrl 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
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
8b9c3558ee Add FIXME 2014-01-19 21:52:28 +01:00
Éric Lemoine
7cf69d0f58 Add ol.source.ImageWMS#getGetFeatureInfoUrl 2014-01-19 21:49:48 +01:00
Tom Payne
27ad19a613 Remember rendered revision in ol.source.ImageWMS 2014-01-16 18:28:34 +01:00
Éric Lemoine
5af738593e Image source refactoring 2014-01-09 15:57:04 +01:00
Tom Payne
46d8b81661 Factor out WMS version 1.3 check 2014-01-09 15:27:56 +01:00
Tom Payne
86f23aa615 Add ol.source.wms.DEFAULT_VERSION 2014-01-09 15:27:56 +01:00
Tom Payne
bcf38b1b21 Add ol.source.ImageWMS#setUrl 2014-01-09 15:27:55 +01:00
Tom Payne
e9d8401786 Refactor ol.source.ImageWMS URL logic
* Always request images of integer WIDTH and HEIGHT
* Match BBOX to requested size
* Handle integer-only DPIs in GeoServer
2014-01-09 13:12:49 +01:00
Frederic Junod
3e83809880 Add serverType option to ol.source.ImageWMS constructor 2013-12-18 09:08:37 +01:00
Frederic Junod
8e6b686f3d Add hidpi option to ol.source.ImageWMS and ol.source.MapGuide 2013-12-17 15:58:25 +01:00
Frederic Junod
c84782bfc6 Use the image pixelRatio in ol.renderer.canvas.ImageLayer 2013-12-17 13:31:11 +01:00
Frederic Junod
db322f9ade Add pixelRatio param to ol.Image constructor 2013-12-17 13:31:11 +01:00
Frederic Junod
78ec21fb85 Add pixelRatio to ol.source.Image#createImage 2013-12-17 13:31:11 +01:00
Frederic Junod
ca0b77d0e3 Add pixelRatio to ol.source.Image#getImage 2013-12-17 13:31:11 +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
É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
ahocevar
9d9c91bbf7 Add missing WMSGetFeatureInfo exports 2013-11-22 17:11:44 +01:00
Tom Payne
bd82e1aa1a Remove vector code from files 2013-11-20 11:41:04 +01:00
Tim Schaub
1af11e27ac Proper map extent for GetFeatureInfo request
Note that with and without this change, the pixel provided to the ol.source.wms.getFeatureInfo function will be wrong if the view has non-zero rotation.
2013-10-29 14:11:35 -06:00
Paul Spencer
bada596b45 Add default stability level to docs of exported things. 2013-10-24 18:20:24 -04:00
Tom Payne
abaa220314 Use URL instead of Url or url in comments and strings 2013-09-20 12:28:04 +01:00
Tim Schaub
e806f51b3d Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub
75cb19d7e1 Source updates for new extent structure 2013-09-14 21:13:46 -06:00
Tom Payne
a21ee997ba Rename ol.source.SingleImageWMS to ol.source.ImageWMS 2013-09-11 16:38:01 +02:00