GaborFarkas
18cf6c30bd
Add basic polygon renderer.
2016-11-23 09:49:48 +01:00
GaborFarkas
638b7752fa
Fix bugs in LineStringReplay.
2016-11-23 09:49:47 +01:00
GaborFarkas
f96a4a7301
Properly handle zeros in stroke style.
2016-11-23 09:49:47 +01:00
GaborFarkas
1c7203a203
Add skipping capability to LineStringReplay
2016-11-23 09:49:47 +01:00
GaborFarkas
48d3bfe297
Take line width into account when forming miters.
2016-11-23 09:49:47 +01:00
GaborFarkas
16dfc5dfba
Adjust replays to new version.
2016-11-23 09:49:47 +01:00
GaborFarkas
2415050500
Add hit detection support to LineStringReplay
...
Also, making it more consistent with ImageReplay
2016-11-23 09:49:47 +01:00
GaborFarkas
b7396b0b94
Improve code quality
...
Cleaning up, making the code more consistent, and restructuring commonly used methods.
2016-11-23 09:49:47 +01:00
GaborFarkas
3897312af6
Add full support to different styles in one layer.
2016-11-23 09:49:47 +01:00
GaborFarkas
4d8777220a
Fix compiler and compiled lib related problems.
2016-11-23 09:49:47 +01:00
GaborFarkas
b0d11391b2
Fix rounding problems
...
Fragment shader does not know about the projection matrix, thus it has to take the pixel ratio into account.
2016-11-23 09:49:47 +01:00
GaborFarkas
249084dcd4
Eliminate overdraw with a nice little trick
2016-11-23 09:49:47 +01:00
GaborFarkas
c9c970303f
Handling sharp angles in linestring GLSL
2016-11-23 09:49:47 +01:00
GaborFarkas
3f828248b9
Rework isClosed with added tests
2016-11-23 09:49:47 +01:00
GaborFarkas
e64549c50c
Fix weird behaviour of boundaries
...
With drawElements, it seems like we cannot connect an old index with a much fresher one, as it will produce weird errors.
2016-11-23 09:49:47 +01:00
GaborFarkas
4be8de62ae
Refactor linestring geom validation
...
Now it only focuses on issues not addressed by ol.geom.flat.simplify methods.
2016-11-23 09:49:47 +01:00
GaborFarkas
f15a9652d8
Fix rendering of boundaries.
2016-11-23 09:49:47 +01:00
GaborFarkas
eba006b796
Falling back to bevel when exceeding miterLimit
2016-11-23 09:49:47 +01:00
GaborFarkas
8c561a45b9
Inspect linestring validity before drawing
2016-11-23 09:49:46 +01:00
GaborFarkas
99e4009b19
Minor improvements
...
ol.render.webgl.LineStringReplay.startIndices_ is initialized with a 0, and the end index of a valid line is added in every valid iteration.
drawElements_ is refactored for a clearer code.
2016-11-23 09:49:46 +01:00
GaborFarkas
e2ec6d0b82
Adding support for closed lines
2016-11-23 09:49:46 +01:00
GaborFarkas
0f8e1a7e40
Refactoring ol.render.webgl.LineStringReplay
2016-11-23 09:49:46 +01:00
GaborFarkas
c13d09ba23
Handle case of one segment lines with identical coordinates + quality improvements
2016-11-23 09:49:46 +01:00
GaborFarkas
fb71860a03
Adding linestring cap support
2016-11-23 09:49:46 +01:00
GaborFarkas
350d1add81
Change goog.base to call, and goog.inherits to ol.inherits
2016-11-23 09:49:46 +01:00
GaborFarkas
0972988bdb
Properly triangulate linestrings
2016-11-23 09:49:46 +01:00
GaborFarkas
c7edd21cc3
Extend linestring renderer with GLSL and indexed geometries.
2016-11-23 09:49:46 +01:00
GaborFarkas
caeb8e4820
Eliminating jitter by restructuring
2016-11-23 09:49:46 +01:00
GaborFarkas
6e958514ee
Taking line width into account
2016-11-23 09:49:46 +01:00
GaborFarkas
628db9146d
Creating a webgl.Replay struct, making the WebGL LineString renderer compilable
2016-11-23 09:49:46 +01:00
GaborFarkas
f5978c659c
Adding some defaults
2016-11-23 09:49:46 +01:00
GaborFarkas
a6ddee0c5f
Updating old code to current ol3 version
2016-11-23 09:49:46 +01:00
GaborFarkas
a052b645df
Fix dependencies
2016-11-23 09:49:46 +01:00
Guillaume Beraudo
e40b545e40
Add basic WEBGL LineString rendering
...
Use gl.LINES and hardcode a width.
Implement polygon stroking using the line string replay.
2016-11-23 09:49:46 +01:00
Guillaume Beraudo
581ea8c775
Add color to WEBGL polygons
2016-11-23 09:49:46 +01:00
Guillaume Beraudo
2519cf36fc
Basic WEBGL rendering of polygons
2016-11-23 09:49:46 +01:00
Andreas Hocevar
d1e4b33760
Rename goog.DEBUG to ol.DEBUG
2016-08-31 21:10:01 +02:00
Frederic Junod
d4ad9ad616
Add missing goog.require('ol')
2016-08-17 09:57:21 +02:00
Tim Schaub
9d276982b5
Assorted missing requires
2016-08-12 10:53:50 -06:00
Frederic Junod
fbb585c5d8
Remove goog.addSingletonGetter function
2016-08-09 11:28:02 +02:00
Tim Schaub
3a1bbc4248
Get rid of ol.render.IReplayGroup interface
2016-08-08 09:58:12 -06:00
Tim Schaub
907a65ab83
Remove unused goog.require() calls in the source
2016-08-08 09:58:10 -06:00
Tim Schaub
b47dc998a3
More WebGL name corrections
2016-08-07 10:49:12 -06:00
Tim Schaub
12e81e5487
Clean up WebGL provides
2016-08-07 10:49:12 -06:00
Tim Schaub
1b8310a6fe
Rename ol/objectutil.js to ol/obj.js
2016-08-07 10:49:12 -06:00
Tim Schaub
6b883afa35
Move render files so they are named like their provides
2016-08-07 10:49:11 -06:00
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
Peter Robins
f8f2cd11d5
Replace goog.getUid with ol.getUid
2016-07-20 11:01:00 +00:00