Tim Schaub
cf5eadebaa
Define options
2015-09-27 10:11:30 -06:00
Frédéric Junod
cb9054f7fd
Merge pull request #4060 from fredj/unnecessary_cast
...
Remove unnecessary cast
2015-09-07 09:33:03 +02:00
Frederic Junod
529f869803
Remove unnecessary cast
...
Found by the latest version of closure-compiler (v20150729)
2015-09-07 09:15:34 +02:00
Frederic Junod
5371d8dd34
Use a private variable to cache the default style array
...
See #1815
Fixes #4063
2015-09-07 09:12:52 +02:00
Pierre GIRAUD
de0266ded7
Add stroke to default editing style for geometry collections
2015-08-18 10:54:45 +02:00
Peter Robins
83c33a03c6
Remove further references to FeatureOverlay
2015-06-13 14:01:45 +00:00
Éric Lemoine
e45c44fa01
Add missing goog.provide's
2015-04-07 13:49:36 +02:00
Tim Schaub
50f71655e5
Style docs
2015-04-04 17:38:03 +02:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
Christopher S. Case
1fb932f7bb
Removed lurking console.log
2015-03-11 10:09:58 -05:00
Christopher S. Case
ae8321ab30
Added circle drawing to draw interaction.
2015-02-18 09:50:02 -06:00
Andreas Hocevar
784701641d
Add a getGeometry method
2014-12-18 10:28:21 +01:00
Andreas Hocevar
2bf191b5e3
Assert that feature.get('foo') returns a geometry
2014-12-18 10:08:35 +01:00
Andreas Hocevar
19015d2ca9
Create typedef
2014-12-18 10:07:57 +01:00
Andreas Hocevar
af30b88413
Allow geometryFunction to return undefined
2014-12-16 01:12:08 +01:00
Andreas Hocevar
2d12531105
Allow styles to override feature geometries
...
With this change, application developers are able to define styles that
render a different geometry than the feature geometry. This can e.g. be
used to render an interior point of a polygon instead of the polygon, or
to render symbols like arrows along lines.
2014-12-15 23:20:53 +01:00
Andreas Hocevar
267a950435
Mention the need to re-render in a single place only
2014-09-11 13:13:17 -07:00
Andreas Hocevar
0e14639633
Update docs for changes proposed in #2684
2014-09-04 21:01:50 -06:00
Andreas Hocevar
88c30795d3
Doc improvements
2014-09-04 13:20:25 -06:00
Andreas Hocevar
0c36d7606b
No need to have a mutable_ flag
...
Instead, educate users to call setStyle.
2014-09-04 11:47:32 -06:00
Andreas Hocevar
13d84e75ad
Additional documentation
2014-09-03 18:31:01 -06:00
Andreas Hocevar
a50f6d7a2f
Mutable symbolizer properties for style functions
...
This change adds setters for symbolizer properties. In addition, it
introduces a mutable flag on all styles. By default, this is set to
true. ol.style.createStyleFunction sets it to false for all static
styles.
The new setters assert that the mutable flag is true, so whenever an
application tries to set a symbolizer property on a style that was
assigned to a vector layer or feature overlay, the assertion will fail.
2014-09-03 16:57:50 -06:00
Peter Robins
4005c986f6
Minor improvement to comment in style/style
2014-08-26 17:34:05 +01:00
Éric Lemoine
0d92d7abc1
Better comments in ol.style.defaultStyleFunction
2014-08-26 17:10:07 +02:00
Éric Lemoine
89019ea233
Fix ol.style.defaultStyleFunction signature
2014-08-26 17:09:43 +02:00
Peter Robins
ed2f2befdf
Move createDefaultEditingStyles() to ol.style
2014-08-11 15:39:21 +00:00
Antoine Abt
4b8ceca8eb
Move defaults style into style.js
2014-07-25 09:50:53 +02:00
Antoine Abt
60f1874766
Give precedence to feature style
2014-07-16 11:25:16 +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
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
Tom Payne
061fed50b7
Move all styleFunction types into ol.feature
2014-01-03 17:23:11 +01:00
Éric Lemoine
1e24ec28be
Add getters to ol.style.Style
2013-12-19 11:32:57 +01:00
Tom Payne
31cd8da6f6
Make options argument to ol.style.Style optional
2013-12-13 22:58:01 +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
Tim Schaub
bfaed4d52d
Moving all style functionality from source to style
2013-11-27 12:20:43 -07:00
Éric Lemoine
317294756a
Style function takes a resolution arg
2013-11-26 14:19:24 +01:00
Éric Lemoine
3820caade1
Style function returns an array of styles
2013-11-26 14:19:24 +01:00
Bart van den Eijnden
25ae9fe784
change simple type values to undefined instead of null
2013-11-25 10:48:30 +01:00
Éric Lemoine
38bc0a28a6
Export ol.style.Style
2013-11-20 15:35:11 +01:00
Éric Lemoine
1cfd185355
Add ol.style.Style constructor
2013-11-20 15:35:09 +01:00
Tom Payne
4e65fefc00
Move vector code out of the way
2013-11-20 11:39:21 +01:00
Bart van den Eijnden
91e834674c
deal with elseFilter, some cleanup
2013-11-04 14:26:05 +01:00
Bart van den Eijnden
ee7d46cea1
Add initial pass of write support, always write out ol.style.Stroke as LineSymbolizer
2013-11-04 14:24:01 +01:00
Paul Spencer
bada596b45
Add default stability level to docs of exported things.
2013-10-24 18:20:24 -04:00
Tim Schaub
bbef15e50e
Consider resolution when applying rules
2013-09-27 11:46:48 +02:00
Tim Schaub
13a937fad7
Lazily create default style
2013-09-07 09:19:11 -06:00