Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
e8c99e4e63
Allow style function to return a style
2015-11-11 17:21:24 -07:00
Marc Jansen
e479411614
Remove goog.isNull in feature class
2015-10-01 09:18:53 +02:00
Tim Schaub
6bdacced92
Merge pull request #4176 from tschaub/remove-isdefandnotnull
...
Remove use of goog.isDefAndNotNull().
2015-10-01 00:05:57 -06:00
Marc Jansen
cd5b15fa55
Remove use of goog.functions.constant
2015-09-29 20:28:06 +02:00
Tim Schaub
ac7db89a91
Replace goog.isDefAndNotNull() with truthy checks
2015-09-29 09:32:51 -06:00
Tim Schaub
0927c55b3c
Toward natural JavaScript syntax
2015-09-25 12:16:42 -06:00
Tim Schaub
5350e9ba37
Remove goog.isDef from device orientation, dom, extent, and feature
2015-09-25 11:28:54 -06:00
Tim Schaub
d3a4fd115b
Merge pull request #4083 from tschaub/missing-description
...
Add API descriptions.
2015-09-08 22:35:31 -06:00
Frederic Junod
529f869803
Remove unnecessary cast
...
Found by the latest version of closure-compiler (v20150729)
2015-09-07 09:15:34 +02:00
Tim Schaub
0bfd22b235
Missing ol.Feature#getId description
2015-09-06 07:54:38 -06:00
Marc Jansen
c2f4b38981
Correct documentation for ol.FeatureStyleFunction
2015-08-20 10:39:59 +02:00
Peter Robins
4f703efd23
Correct event notations in ol.Feature
2015-07-04 11:43:06 +01:00
Marc Jansen
dd16bb984c
Remove docs referring to removed feature overlay
2015-06-11 17:47:16 +02:00
Tim Schaub
f0c0c28f04
Rename ol.feature.FeatureStyleFunction to ol.FeatureStyleFunction
2015-04-20 13:47:34 -06:00
Tim Schaub
0189e11931
Remove unconditionally exported methods
2015-04-07 08:35:47 -06:00
Pierre GIRAUD
5eb13660d3
Dispatch change event even when geometry is set to null
2015-04-07 12:12:07 +02:00
Tim Schaub
16c6ccf40c
Feature docs
2015-04-04 17:36:47 +02:00
Bart van den Eijnden
47ce127a10
Add assert messages for all assertions up until ol.renderer.vector.
2015-03-30 22:55:23 +02:00
Frederic Junod
1dcde66839
Fix ol.Feature 'change' event documentation
...
Setting the id also dispatch a `change` event
2014-09-23 17:40:46 +02:00
Éric Lemoine
d335318496
Make ol.Feature#setStyle accept null
2014-09-17 17:52:51 +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
Éric Lemoine
239a90cd55
Add @api stable annotations for ol.Feature
2014-08-19 17:12:46 +02:00
Peter Robins
ed2f2befdf
Move createDefaultEditingStyles() to ol.style
2014-08-11 15:39:21 +00:00
Peter Robins
bf3770a9da
Improve docs for style
2014-08-05 09:04:35 +00:00
Antoine Abt
60f1874766
Give precedence to feature style
2014-07-16 11:25:16 +02:00
Paul Spencer
685265e1db
Improve documentation for ol.Feature
2014-07-15 13:09:43 -04: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
9915bb873c
Document that feature properties are set as object properties
2014-07-09 06:39:42 -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
Éric Lemoine
ec6a0548d1
Add ol.Feature#clone
2014-06-25 09:31:15 +02:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
Tim Schaub
34cabd1579
Dispatch change on feature id change
2014-05-23 16:35:06 -06:00
Tim Schaub
a4d31147bc
Do not set geometry by default
...
A feature can have a geometry whose value is an ol.geom.Geometry instance or null. A feature can also have no geometry property. By default, a feature has no geometry property. To set a geometry, one can be passed to the constructor (including null) or passed to setGeometry().
2014-05-21 09:16:54 -06: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
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
74d83f29d2
Dispatch a change event when the geometry is set
...
Fixes #2016
2014-04-26 08:09:28 +02:00
Antoine Abt
5cc1a986c2
Share editing default styles
2014-03-31 10:24:17 +02:00
Tim Schaub
c2400f6dba
Merge pull request #1815 from Intermedix/lazy-style-function
...
Lazily create styles returned by ol.defaultFeatureStyleFunction.
2014-03-12 17:26:49 -04:00
Éric Lemoine
814e5d2790
Re-render on feature changes
2014-03-12 10:03:42 +01:00
Austin Hyde
0e21d2c99d
Lazily create ol.defaultFeatureStyleFunction
...
Besides the slight performance benefit of not prerendering the default
circle style until we need to, this change also allows loading OL3
in browsers that don't support the canvas API (IE 7-8). If the circle
style is rendered on load, the lack of HTMLCanvasElement#getContext
causes IE 7-8 to bomb, regardless of if vector styles are used at all.
2014-03-06 15:31:26 -05:00
Tim Schaub
0015331273
Provide a default style function
2014-02-20 08:57:11 -07:00
Éric Lemoine
aee620d2d9
Initialize properties in the constructor
2014-02-19 00:13:39 +01:00
Tim Schaub
a549df459b
Merge pull request #1690 from tschaub/style
...
Accept a style option and provide setStyle and getStyle methods.
2014-02-14 13:44:15 -07:00
Bart van den Eijnden
87d651af04
Add documentation for API typedef functions
2014-02-14 15:32:12 +01:00
Tim Schaub
e9b4e42d84
Create anonymous functions in an execution context with limited scope
2014-02-13 10:49:01 -07:00