Commit Graph

547 Commits

Author SHA1 Message Date
Frederic Junod b827bc126c Don't pass specific options to the parent constructor 2015-01-08 14:07:33 +01:00
Frederic Junod 91d2b3b87f Don't pass renderBuffer option to the parent constructor 2015-01-08 10:59:42 +01:00
Frederic Junod 55dda99cfe Assert that ol.layer.Tile#getUseInterimTilesOnError is always set 2015-01-07 16:59:44 +01:00
Frederic Junod df51e55781 Assert that ol.layer.Tile#getPreload is always set 2015-01-07 16:48:15 +01:00
Éric Lemoine 8e8fc9977c Add a renderBuffer option to ol.layer.Vector 2014-12-18 13:20:32 +01:00
Bart van den Eijnden 3db26f1d2b Use the layergroup's extent if no extent provided 2014-11-20 08:35:40 +01:00
Éric Lemoine 6fe80c4111 Use correct layer property names 2014-10-28 14:22:27 +01:00
Éric Lemoine dc7aee1974 Use ternary notation 2014-10-27 17:22:17 +01:00
Tim Schaub d712b2ba54 Allow source to be set after layer construction 2014-10-25 15:34:47 -06:00
Tim Schaub c06774acb5 Allow source to be set with set method as well 2014-10-25 15:31:08 -06:00
Tim Schaub 88030dbce7 Allow layer source to be set 2014-10-25 15:31:07 -06:00
Frederic Junod aaeb2b6938 Remove unnecessary parentheses 2014-09-29 09:05:22 +02:00
Frederic Junod 48b9475bb6 Export ol.layer.Base
See #2615
2014-09-25 10:40:03 +02:00
Andreas Hocevar b431487435 Merge pull request #2684 from ahocevar/notify-change
Rename ol.Observable#dispatchChangeEvent() to #changed()
2014-09-11 15:51:22 -07:00
Éric Lemoine 96f7d6323a Change signature of ol.layer.Group#getLayers
This commit changes the signature of ol.layer.Group#getLayers from {ol.Collection.<ol.layer.Base>|undefined} to {!ol.Collection.<ol.layer.Base>}. In this way the caller is guaranteed that getLayers returns a dereferencable object.
2014-09-08 15:45:58 +02: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
Frederic Junod b366407038 Set ol.layer.Tile#getSource return type to ol.source.Tile 2014-09-03 11:14:33 +02:00
Frederic Junod 0e964cb84c Set ol.layer.Image#getSource return type to ol.source.Image 2014-09-03 11:14:33 +02:00
Frederic Junod 568f854f29 Add olx.layer.ImageOptions typedef 2014-09-03 11:14:33 +02:00
Guillaume Beraudo da2a291208 ol.layer.Vector.getSource return type specialisation. 2014-09-02 15:14:01 +02:00
Éric Lemoine 03d321ce1f Better docs for ol.layer.Vector#setStyle 2014-08-27 12:26:10 +02:00
Éric Lemoine 9cc0841efb Allow passing undefined to ol.layer.Vector#setStyle 2014-08-27 12:26:10 +02:00
Éric Lemoine bbeb4442a5 Add @api annotations to ol.layer.Tile 2014-08-22 11:24:07 +02:00
Éric Lemoine 3ced2d8266 Add @api stable annotations to ol.layer.Vector 2014-08-22 11:24:07 +02:00
Éric Lemoine 1085d4f152 Add @api stable annotations to ol.layer.Tile 2014-08-22 11:24:07 +02:00
Éric Lemoine ee745f8c9e Add @api stable annotations to ol.layer.Image 2014-08-22 11:24:06 +02:00
Éric Lemoine e50ba2172f Add @api stable annotations to ol.layer.Group 2014-08-22 11:24:06 +02:00
Éric Lemoine 15487d1ce9 Add @api stable annotations to ol.layer.Layer 2014-08-22 11:24:06 +02:00
Éric Lemoine efc32b14df Add @api stable annotations to ol.layer.Base 2014-08-22 11:24:06 +02:00
Petr Sloup d7027a6a64 Export getLayers and setLayers methods of ol.layer.Group
This is nicer than having to use .get("layers") and .set("layers", x).
2014-08-18 13:48:42 +02:00
Frederic Junod 0277026624 Stricter typing for ol.Collection 2014-07-30 09:38:16 +02:00
Bart van den Eijnden f468239e71 Merge pull request #2394 from tonio/style_order
Give precedence to feature styles
2014-07-25 11:34:24 +02:00
Antoine Abt 4b8ceca8eb Move defaults style into style.js 2014-07-25 09:50:53 +02:00
Tim Schaub 1daf36956c Layer extent option
If provided, the layer extent will be used to limit data requests and rendering.  If undefined, to limit will be imposed.
2014-07-24 10:26:07 -06:00
Peter Robins 4dccb32545 Fix issue with layergroup event docs 2014-07-17 09:24:39 +00:00
Antoine Abt 60f1874766 Give precedence to feature style 2014-07-16 11:25:16 +02:00
Peter Robins 97f9527f41 Tag always exported methods as api/observable 2014-07-14 08:23:17 +00:00
Paul Spencer 4bcbda61c6 Merge pull request #2298 from probins/props
Document that options in layers and properties in features are set as object properties
2014-07-09 07:21:53 -04:00
Peter Robins 17d059f7bb Document that layer options are set as object properties 2014-07-09 06:40:28 -04:00
Tim Schaub d99a61545c Use @observable annotation instead of @todo observable 2014-07-05 16:16:44 -04:00
Tim Schaub 4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Éric Lemoine eafc2ac371 Change setValues to setProperties 2014-06-27 17:26:51 +02:00
Peter Robins 75be215497 Add standard docs text to abstract base classes 2014-06-14 07:20:33 -04:00
Peter Robins 41d9f0360a Add @classdesc to classes 2014-06-09 12:10:19 -04:00
Éric Lemoine fd8a46dcae Hit detection respects min and maxResolution 2014-05-25 14:35:07 +02:00
Frederic Junod 2f918ea2a4 Remove unused goog.require 2014-05-21 16:06:32 +02:00
Andreas Hocevar b2805c58de Better document which events are fired
The map does not fire ol.render.Event#render. Change events are
now only listed for classes that fire them, and a description
about when they are fired is added.
2014-05-15 20:28:09 +02:00
Andreas Hocevar 8ee9f7cb6a Simplify the way we annotate observable properties
We no longer add observable annotations to the constructor.
Instead, we just mark getters (and for read/write properties
also setters) with an observable annotation.
2014-05-03 16:04:25 -04:00
Andreas Hocevar 0f072c0ec1 List subclasses for each class
With this change, we no longer need to link to implementations
or subclasses manually.
2014-05-03 15:32:39 -04:00
Andreas Hocevar 7271b50d5a Simplify fires annotations 2014-05-01 22:17:56 +02:00