Commit Graph
39 Commits
Author SHA1 Message Date
GaborFarkas 269c3eb943 Set WebGL LineString threshold to 14.6
This commit will be a fixup for the previous one, or get deleted eventually.
2016-11-23 09:49:48 +01:00
GaborFarkas e893603966 Add tests to LineStringReplay 2016-11-23 09:49:47 +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 c966e21e40 Fix black canvas when image is missing 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 9d6a860cd1 Fix overdraw issue with Firefox
As usual, Firefox is the good guy here, too, and this is an issue with Chrome
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
GaborFarkas 2e68be13f6 Create a dedicated function to changeType. 2016-07-03 11:14:53 +02:00
GaborFarkas 27e3124dca Set changeType when the map exists 2016-07-01 18:28:36 +02:00
GaborFarkas 34cc5c6bde Fix error from early enum of CHANGETYPE 2016-07-01 18:06:11 +02:00