Tim Schaub
ec2daf2118
Make drawFeature() immediate
2016-03-18 17:26:10 -06:00
Tim Schaub
42c2dd8702
More geometry
2016-03-18 17:04:50 -06:00
Tim Schaub
42f41e1cf4
Variable named geometry
2016-03-18 17:04:50 -06:00
Tim Schaub
05cf57dcfc
Remove unused arg
2016-03-18 17:04:50 -06:00
Tim Schaub
51dfe89425
Add assert message
2016-03-18 17:04:49 -06:00
Tim Schaub
88f8515fb6
Shorter names for drawing methods
2016-03-18 17:04:44 -06:00
Tim Schaub
2133d6d081
Document the immediate rendering API
2016-03-18 17:03:18 -06:00
Tim Schaub
873e4176c6
Add vectorContext.drawGeometry() method
2016-03-18 17:03:17 -06:00
Tim Schaub
8f0f278832
Add vectorContext.setStyle() method
2016-03-18 17:03:17 -06:00
Frederic Junod
3793bb18ae
Add missing goog.inherits for ol.render.canvas.Immediate
2016-03-03 17:12:19 +01:00
Brett Johnson
7f02b63ccc
Overloading fill color (polygon or text) with CanvasPattern and CanvasGradient.
2016-02-15 08:30:56 -08:00
Nicholas L
d820b54443
Remove goog.array.equals and goog.array.stableSort
2016-02-03 11:41:39 +13:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Andreas Hocevar
a3147c5d08
Proper rounding for possibly negative numbers
2016-01-11 16:25:09 +01:00
Bart van den Eijnden
25e0053a13
Rename defaultSort to numberSafeCompareFunction on ol.array
2015-12-16 13:40:05 +01:00
Bart van den Eijnden
e0be143ed5
Always pass on a compare function to sort
2015-12-16 10:54:46 +01:00
Andreas Hocevar
257abb63d7
Allow rendering geometries to an arbitrary canvas
2015-12-07 17:27:04 +01:00
Frederic Junod
a4fb2501d8
Remove use of goog.array.sort
...
Fixes #4160
2015-11-19 16:53:11 +01:00
Andreas Hocevar
6e2f82c397
Introduce ol.render.Feature
2015-10-28 10:29:02 +01:00
Marc Jansen
31a68e21a5
Remove goog.isNull in render classes
2015-10-01 09:17:14 +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
Tim Schaub
b48cabee28
Remove unnecessary goog.isDefAndNotNull() calls
2015-09-29 09:32:51 -06:00
Frederic Junod
d2dd7584d8
Remove use of goog.object.getKeys
2015-09-29 14:24:34 +02:00
Frederic Junod
9e2a393426
Remove use of goog.array.map
2015-09-29 10:54:55 +02:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
6638ae855d
Inline simple !goog.isDef() checks
2015-09-27 10:23:30 -06:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
Andreas Hocevar
53d5d8c1d9
Get rid of ol.FeatureOverlay
...
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00
Guillaume Beraudo
0e32456108
Use an abstract base class instead of IVectorContext
...
By having the abstract methods in the base class, subclasses can simply
override the methods they actually provide.
Additionally, this change fixes a regression in webgl canvas immediate.
2015-04-04 13:47:53 +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
Andreas Hocevar
af30b88413
Allow geometryFunction to return undefined
2014-12-16 01:12:08 +01:00
Andreas Hocevar
6478454a93
Use getGeometryFunction() in immediate API
2014-12-15 23:22:26 +01:00
Éric Lemoine
fdf52c1865
Simplify hit detection code
2014-12-05 15:42:54 +01:00
Tim Schaub
947b049799
Rename ol.browserfeature to ol.has
2014-08-22 07:34:35 -06:00
Peter Robins
e35531e7c6
Rename BrowserFeature to browserfeature
2014-08-15 13:53:20 +00:00
Éric Lemoine
d57a35ffcb
Fix stride related bug in Canvas immediate API
2014-07-10 14:21:56 +02:00
Paul Spencer
570a0c23a7
Merge pull request #2183 from pagameba/classdesc
...
Use @classdesc notation
2014-07-07 08:30:33 -04:00
Tim Schaub
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
Paul Spencer
abe953e4e5
Use @classdesc notation (continuing #2178 )
2014-07-03 08:09:25 -04:00
Paul Spencer
a93f7b8190
Fix spelling of GEOMETRY_RENDERERS_
2014-07-02 21:54:53 -04:00
Frederic Junod
52b1ba30fa
Don't scale the text stroke width by pixel ratio
2014-06-16 15:34:54 +02:00
Tim Schaub
097909516a
Account for null or undefined geometry
...
The change in #2098 made it so a feature's geometry could be undefined. This is consistent with the return type for the getGeometry method. Where calling code needs to ensure that it has a geometry instance, it can use instanceof, goog.isDefAndNotNull(), or test for a truthy value.
2014-05-23 10:00:15 -06:00
Éric Lemoine
511e3f7810
Avoid defining default values at multiple locations
2014-05-07 09:58:56 +02:00
Éric Lemoine
6cd403945a
Set snapToPixel defaut value to true
2014-05-07 09:58:56 +02:00
Éric Lemoine
a7aab4eb47
Make Immediate API use ol.style.Image "origin"
2014-05-05 09:56:12 +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
e0278e0e9c
Scale the text offset by the device's pixel ratio
...
Fixes #1918
2014-03-28 12:22:12 +01:00