Commit Graph
100 Commits
Author SHA1 Message Date
Tom Payne 733da2dd70 Clone extents in ol.structs.RBush to prevent modification 2013-11-26 12:15:40 +01:00
Tom Payne 85c9ca2000 Add optional destination argument to ol.extent.clone 2013-11-26 12:15:09 +01:00
Tom Payne 4de5cda4a1 Keep R-Tree up-to-date in ol.source.Vector 2013-11-26 11:57:38 +01:00
Tom Payne 55730e9279 Add ol.structs.RBush#update 2013-11-26 11:57:38 +01:00
Tom Payne 48e78533b9 Add FIXME 2013-11-26 11:57:38 +01:00
Tom Payne 2df03fbf96 Implement ol.structs.RBush#remove_ 2013-11-26 11:57:38 +01:00
Tom Payne d5f1a35f9a Don't check for under-full nodes when validating ol.structs.RBush
Removal can lead to under-full nodes.
2013-11-26 11:57:37 +01:00
Tom Payne 62b9aa0595 Refactor ol.structs.RBush tests 2013-11-26 11:57:37 +01:00
Tom Payne 4981552fb1 Add ol.structs.RBush#assertValid 2013-11-26 11:57:37 +01:00
Tom Payne e749715abd Move ol.structs.RTree out of the way 2013-11-26 11:57:37 +01:00
Tom Payne 9576473072 Port rtree example to ol.structs.RBush 2013-11-26 11:57:37 +01:00
Tom Payne 8294ca9f57 Port ol.source.Vector to ol.structs.RBush 2013-11-26 11:57:37 +01:00
Tom Payne 4cddee2a0e Add ol.structs.RBush 2013-11-26 11:57:37 +01:00
Tom Payne 7967edb8f0 Add ol.extent.getMargin 2013-11-26 11:57:37 +01:00
Tom Payne 8c6e5287b5 Add ol.extent.getIntersectionArea 2013-11-26 11:57:36 +01:00
Tom Payne 61afebb1ec Add ol.extent.getEnlargedArea 2013-11-26 11:57:36 +01:00
Tom Payne 0294691446 Add ol.extent.getArea 2013-11-26 11:57:36 +01:00
Tom Payne b99fac9901 Return extent from ol.extent.extend 2013-11-26 11:57:36 +01:00
Tom Payne b0d5f96b65 Rename ol.render.canvas.Replay#draw to replay 2013-11-25 20:03:21 +01:00
Tom Payne ae29e70cfd Use ol.style.Style in rtree example 2013-11-24 16:55:20 +01:00
Tom Payne d358e80937 Improve type checking in ol.TileRange 2013-11-24 14:33:58 +01:00
Tom Payne 6584ef985f Improve type checking in ol.renderer.canvas.Map 2013-11-24 14:33:47 +01:00
Tom Payne 617635ed80 Improve type checking in ol.renderer.webgl.Map 2013-11-24 14:28:44 +01:00
Tom Payne 9396df54c3 Always use a defined renderGeometryFunction, thanks @elemoine 2013-11-22 11:34:42 +01:00
Tom Payne fd48b06dc0 Skip rendering highlighted feature in vector-layer example 2013-11-22 11:34:42 +01:00
Tom Payne 13ed52d9e8 Add FIXME 2013-11-22 11:34:42 +01:00
Tom Payne 32833a15bb Implement skipping of LineString and MultiLineString geometries 2013-11-22 11:34:42 +01:00
Tom Payne a9af504a19 Factor out ol.render.canvas.LineStringReplay#setStrokeStyle_ 2013-11-22 11:34:42 +01:00
Tom Payne 1cccdfa9db Implement skipping of Point and MultiPoint geometries 2013-11-22 11:34:42 +01:00
Tom Payne 8b6f71f7f6 Factor out beginGeometry and endGeometry 2013-11-22 11:34:42 +01:00
Tom Payne 297251661a Implement skipping of Polygon and MultiPolygon geometries 2013-11-22 11:34:41 +01:00
Tom Payne d05530290f Add BEGIN_GEOMETRY instruction 2013-11-22 11:34:41 +01:00
Tom Payne a570261886 Pass renderGeometryFunction to ol.render.canvas.ReplayGroup 2013-11-22 11:34:41 +01:00
Tom Payne b11c34261b Rename renderFeatureFunction to renderGeometryFunction 2013-11-22 11:34:41 +01:00
Tom Payne 602f9642d4 Use ol.style.Style in GeoJSON example 2013-11-21 20:25:43 +01:00
Tom Payne 55a43c9a98 Use ol.style.Style and construct style object once 2013-11-21 18:22:01 +01:00
Tom Payne f09de84011 Fix typo 2013-11-21 12:31:23 +01:00
Tom Payne 114b48dcfb Use goog.vec.Mat4.getElement in ol.vec.Mat4.multVec2 2013-11-21 10:12:47 +01:00
Tom Payne 16957c9833 Only recompute pixel coordinates when transform has changed 2013-11-21 10:04:19 +01:00
Tom Payne 6872beb88a Add ol.vec.Mat4.equal2D 2013-11-21 10:03:34 +01:00
Tom Payne 760ee7c46f Use requestRenderFrame in vector layer example 2013-11-20 18:20:19 +01:00
Tom Payne d367560faf Avoid re-rendering map on every mousemove 2013-11-20 18:19:00 +01:00
Tom Payne f62b450cb7 Use goog.asserts.assertsInstanceOf 2013-11-20 12:34:47 +01:00
Tom Payne 3699510e63 Remove repeated Replay 2013-11-20 11:45:49 +01:00
Tom Payne 6fe7a980f2 Use ol.structs.PriorityQueue template in ol.renderer.webgl.Map 2013-11-20 11:45:49 +01:00
Tom Payne 479ec441ab Improve type checking in ol.renderer.canvas.VectorLayer 2013-11-20 11:45:25 +01:00
Tom Payne c29c292efd Mark constant RegExps, thanks @fredj 2013-11-20 11:45:24 +01:00
Tom Payne 1fe9f25359 Correct order of jsdoc comments, thanks @fredj 2013-11-20 11:45:24 +01:00
Tom Payne 0746715231 Remove unused RegExp, thanks @fredj 2013-11-20 11:45:23 +01:00
Tom Payne adfc56b14c Improve type checking in ol.render.canvas.Replay 2013-11-20 11:45:23 +01:00
Tom Payne f93ae0392a Improve type checking in ol.geom 2013-11-20 11:45:23 +01:00
Tom Payne 2ecd4013ea Improve type checking in ol.color 2013-11-20 11:45:23 +01:00
Tom Payne 4e3221810a Add immediate rendering of text 2013-11-20 11:44:50 +01:00
Tom Payne a2603e424f Add text replay skeleton 2013-11-20 11:44:50 +01:00
Tom Payne c7600b2cbc Add ol.style.Text 2013-11-20 11:44:49 +01:00
Tom Payne c03ea3d0ee Save six bytes 2013-11-20 11:44:49 +01:00
Tom Payne 6b61f45379 Remove support for 4- and 8- digit hex colors
These are not supported by canvas.
2013-11-20 11:44:49 +01:00
Tom Payne d60bc61a72 Allow ol.style.Stroke#width to be undefined 2013-11-20 11:44:49 +01:00
Tom Payne 6796b9735e Add ol.color.blend 2013-11-20 11:44:49 +01:00
Tom Payne 97745f06ac Allow named colors to be disabled 2013-11-20 11:44:49 +01:00
Tom Payne 1ae0e845f8 Allow colors in styles to be strings or arrays 2013-11-20 11:44:48 +01:00
Tom Payne 47820440ed Add ol.color.stringOrColorEquals 2013-11-20 11:44:48 +01:00
Tom Payne d882d00c65 Add ol.color.asArray and ol.color.asString 2013-11-20 11:44:48 +01:00
Tom Payne 02604745ca Add ol.color.equals 2013-11-20 11:44:48 +01:00
Tom Payne e1ba9c0322 Move color matrix code into ol.color.Matrix 2013-11-20 11:44:48 +01:00
Tom Payne e3c3170c39 Refactor ol.color to not use goog.color 2013-11-20 11:44:48 +01:00
Tom Payne 51c201acd7 Refactor ol.color to use Array.<number> 2013-11-20 11:44:48 +01:00
Tom Payne 24ca534c54 Use skip instead of xit to mark failing tests 2013-11-20 11:44:48 +01:00
Tom Payne aabd8541c2 Fix goog.require in layer clipping example 2013-11-20 11:44:47 +01:00
Tom Payne daf4231d00 Remove ol.geom2 2013-11-20 11:44:47 +01:00
Tom Payne 569811c52f Remove old replay code 2013-11-20 11:44:47 +01:00
Tom Payne 1acfa35783 Add ol.layer.Vector renderFeatureFunction 2013-11-20 11:44:47 +01:00
Tom Payne f9282c90e4 Make instructions responsible for incrementing the instruction index
This paves the way for skipping features (where both the instruction and
data indexes will need to be advanced).
2013-11-20 11:44:46 +01:00
Tom Payne 19758b6268 Rename variables for clarity 2013-11-20 11:44:46 +01:00
Tom Payne eb6dc88a9f Don't check examples that start with // NOCOMPILE 2013-11-20 11:44:46 +01:00
Tom Payne 9a0ea25f7e Don't rely on ol.style.DefaultStyleFunction in GeoJSON example 2013-11-20 11:44:46 +01:00
Tom Payne 90bc88082a Export ol.Map#requestRenderFrame 2013-11-20 11:44:46 +01:00
Tom Payne 67522815eb Don't rely on ol.geom.Type in GeoJSON example 2013-11-20 11:44:46 +01:00
Tom Payne 8a6242be88 Don't rely on goog.isNull in GeoJSON example 2013-11-20 11:44:46 +01:00
Tom Payne ba42abac68 Move wkt example out of the way 2013-11-20 11:44:46 +01:00
Tom Payne c47dee7b8c Allow fill, image, and stroke in ol.style.Style to be undefined 2013-11-20 11:44:45 +01:00
Tom Payne fc2fece872 Don't rely on goog.functions in vector-layer example 2013-11-20 11:44:45 +01:00
Tom Payne 946234ba27 Rename iimmediate.js to irender.js 2013-11-20 11:44:45 +01:00
Tom Payne ac2b650c96 Use consistent variable names 2013-11-20 11:44:45 +01:00
Tom Payne df423fda22 Move ol.geom.orientFlatLinearRings into ol.geom.flat 2013-11-20 11:44:45 +01:00
Tom Payne 0aa0cfd54b Move ol.geom.flatLinearRingIsClockwise into ol.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne 857c28a88b Move ol.geom.flatLinearRingContains to ol.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne ca639a057f Rename ol.test.geom to ol.test.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne 48d3402044 Move reverseFlatCoordinates into ol.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne 1757a62905 Move transformGeometry2D back into ol.geom 2013-11-20 11:44:44 +01:00
Tom Payne 16e5f238d2 Move inflateCoordinates into ol.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne dc1ad7bb83 Move deflateCoodinates into ol.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne 16994f1774 Rename ol.render to ol.geom.flat 2013-11-20 11:44:44 +01:00
Tom Payne e44dfb1c6c Avoid clearing canvas twice 2013-11-20 11:44:42 +01:00
Tom Payne 7fd4e1ba56 Rename ol.render.RenderEvent to ol.render.Event 2013-11-20 11:42:10 +01:00
Tom Payne cd9b52572a Replace ol.geom.GeometryType with ol.geom.Type 2013-11-20 11:42:09 +01:00
Tom Payne b9af8232d0 Use more consistent spacing 2013-11-20 11:42:09 +01:00
Tom Payne 7e40825869 Orient rings in MultiPolygons 2013-11-20 11:42:09 +01:00
Tom Payne af17797145 Use clockwise polygons in GeoJSON tests 2013-11-20 11:42:09 +01:00
Tom Payne 376bd6359b Add more exhaustive polygon tests (some fail for reasons not yet known) 2013-11-20 11:42:09 +01:00