Andreas Hocevar
e18d41b5e0
Remove gratuitous debug assertions
2016-08-04 11:29:54 +02:00
Andreas Hocevar
e0015b3d4e
Use goog.DEBUG instead of ol.DEBUG for now
2016-08-04 11:29:54 +02:00
Andreas Hocevar
6f5ed17fc5
Remove goog.asserts.*
...
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Frederic Junod
3d46a0bfaa
Remove unused goog.provide
2016-08-03 12:49:01 +02:00
Frederic Junod
b8ce70fbf0
Get rid of goog.isFunction
2016-06-20 16:09:25 +02:00
Peter Robins
2c29512c80
Remove sub-namespaces from all remaining typedefs
2016-06-09 10:01:52 +00:00
Peter Robins
4f0b4dacbd
Move sub-namespace typedefs to typedefs.js
...
Here too there is one problem case.
2016-05-11 19:45:59 +00:00
Peter Robins
f57065c412
Remove unneeded goog.provides/requires for typedefs
...
In general, typedefs do not need and should not have goog.require/provide
2016-05-09 13:21:25 +00:00
Peter Robins
2a64d9ef55
Minor correction of StyleFunction docs
2016-04-08 18:35:16 +01:00
Frederic Junod
80e984a9c3
Use Array.isArray instead of goog.isArray
2016-04-04 09:06:29 +02:00
Frederic Junod
f7e20377ec
Make ol.style.Style a @struct
...
And take into account that `styles` may be a style or an array of style.
2016-02-10 17:07:10 +01:00
Marc Jansen
efa82dccf9
Remove use of goog.isString()
2016-02-06 12:56:55 +01:00
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
Andreas Hocevar
6e2f82c397
Introduce ol.render.Feature
2015-10-28 10:29:02 +01:00
Marc Jansen
f9b07991e1
Remove goog.isNull in style classes
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
83c59ee255
Inline goog.isDef() calls for properties
2015-09-27 10:40:20 -06:00
Tim Schaub
b36d697585
Inline goog.isDef() property checks
2015-09-27 10:21:50 -06:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
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