Commit Graph
100 Commits
Author SHA1 Message Date
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
Tom Payne fe06c97a08 Orient rings in ol.geom.Polygon 2013-11-20 11:42:09 +01:00
Tom Payne 23777e5949 Add ol.geom.orientFlatLinearRings{,s} 2013-11-20 11:42:09 +01:00
Tom Payne 43d67736a8 Add ol.geom.flatLinearRingIsClockwise 2013-11-20 11:42:09 +01:00
Tom Payne 72f64bd37a Add ol.geom.reverseFlatCoordinates 2013-11-20 11:42:08 +01:00
Tom Payne 809fee8988 Add missing whitespace 2013-11-20 11:42:08 +01:00
Tom Payne b9614d027d Rename countries example to vector-layer and add mouseover 2013-11-20 11:42:08 +01:00
Tom Payne 8d3811a79c Add ol.Feature exports 2013-11-20 11:42:08 +01:00
Tom Payne 8626da50ea Read GeoJSON feature id 2013-11-20 11:42:08 +01:00
Tom Payne 8edefc3fee Add GeoJSONFeature#id to externs file 2013-11-20 11:42:08 +01:00
Tom Payne 30503f5665 Add ol.Feature#{get,set}Id 2013-11-20 11:42:08 +01:00
Tom Payne 0221fd2216 Add ol.source.Vector#getAllFeaturesAtCoordinate 2013-11-20 11:42:08 +01:00
Tom Payne afca110b49 Add ol.source.Vector#forEachFeatureAtCoordinate 2013-11-20 11:42:07 +01:00
Tom Payne aa70030a43 Move containsCoordinate to ol.geom.Geometry 2013-11-20 11:42:07 +01:00
Tom Payne b60956baf6 Add ol.geom.MultiPolygon#containsCoordinate 2013-11-20 11:42:07 +01:00
Tom Payne 029d978949 Add ol.geom.Polygon#containsCoordinate 2013-11-20 11:42:07 +01:00
Tom Payne f2865e6dbf Add coordinate in LinearRing functions 2013-11-20 11:42:07 +01:00
Tom Payne c9d6445c45 Fix title of GeoJSON example, thanks @fredj 2013-11-20 11:42:07 +01:00
Tom Payne 8e55cad4e0 Add R-Tree visualisation example
This demonstrates how awful ol.structs.RTree is.
2013-11-20 11:42:07 +01:00