Commit Graph
100 Commits
Author SHA1 Message Date
Tom Payne e6becd3e92 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-13 21:35:29 +01:00
Tom Payne f1efb502ca Merge pull request #1379 from twpayne/observable-struct
Make ol.Observable and ol.Object @structs
2013-12-13 12:33:40 -08:00
Tom Payne 91197b5537 Merge pull request #1369 from gjn/dev_export_dragbox
[vector-api] Exporting ol.render.DragBox
2013-12-13 12:30:53 -08:00
Tom Payne 90e44c3979 Make ol.Observable a @struct 2013-12-13 20:44:10 +01:00
Tom Payne d63fec80d1 Use goog.object.get to suppress compiler warning about use of [] with struct 2013-12-13 20:36:32 +01:00
Tom Payne 6e3bcc7478 Make ol.Object#listeners_ a private renameable property 2013-12-13 20:35:27 +01:00
Tom Payne b48fd51561 Make ol.Object#accessors_ a private renameable property 2013-12-13 20:34:56 +01:00
Tom Payne b59eec7a83 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-13 20:22:06 +01:00
Tom Payne b242756f03 Merge pull request #1377 from twpayne/struct
Improve type checking with @struct
2013-12-13 10:39:21 -08:00
Tom Payne fdbb9f8d9e Fix type errors in vector-layer-sld example 2013-12-13 19:30:11 +01:00
Tom Payne 4470480dc9 Improve use of view in device-orientation example 2013-12-13 19:27:52 +01:00
Tom Payne ee2098743d Correct types in ol.layer.Group 2013-12-13 19:16:31 +01:00
Tom Payne e96d56215b Add typecasts so examples compile 2013-12-13 19:16:05 +01:00
Tom Payne 59779bdcc5 Correct return types of ol.layer.Base methods 2013-12-13 18:59:26 +01:00
Tom Payne d19ce18a31 Fix return type of ol.Map#getView 2013-12-13 18:59:26 +01:00
Tom Payne 9dc3dc6c11 Make ol.renderer.Layer a @struct 2013-12-13 18:59:26 +01:00
Tom Payne a11c64934c Make ol.renderer.Map a @struct 2013-12-13 18:59:26 +01:00
Tom Payne fbc23499e4 Add @struct annotation for simple classes 2013-12-13 18:59:26 +01:00
Tom Payne 2bcfa9ee00 Fix type errors in ol.renderer.webgl.Map 2013-12-13 18:59:25 +01:00
Tom Payne fd733eca82 Use assertInstanceof instead of typecast 2013-12-13 18:59:25 +01:00
Tom Payne b12bed8949 Use assertInstanceof instead of getImageSource 2013-12-13 18:59:25 +01:00
Tom Payne c9b0d0bf0e Use assertInstanceof instead of getImageLayer 2013-12-13 18:59:25 +01:00
Tom Payne e11d8bf717 Use assertInstanceof instead of getTileSource 2013-12-13 18:59:25 +01:00
Tom Payne 8d5e46622c Use assertInstanceof instead of getTileLayer 2013-12-13 18:59:25 +01:00
Tom Payne 3681b3c669 Always use goog.vec.Mat4.Number instead of goog.vec.Mat.AnyType 2013-12-13 18:59:25 +01:00
Tom Payne 5f0ea858ec Fix multiple type errors in getFeatureInfoForPixel 2013-12-13 18:59:24 +01:00
Tom Payne a93e0b85df Improve type checking in ol.interaction.DragPan 2013-12-13 18:59:24 +01:00
Tom Payne 6dedac6ed8 Improve type checking in ol.interaction.TouchPan 2013-12-13 18:59:24 +01:00
Tom Payne 408a75426b Improve type checking in ol.control.Zoom 2013-12-13 18:59:24 +01:00
Tom Payne 35768f8b48 Improve type checking in ol.interaction.Interaction 2013-12-13 18:59:24 +01:00
Tom Payne b39ae367e7 Improve type checking in ol.canvas.SUPPORTED 2013-12-13 18:59:24 +01:00
Tom Payne 8f6952c56c Fix use of ol.IView2D in ol.interaction.TouchPan 2013-12-13 18:59:24 +01:00
Tom Payne 49369b8800 Fix use of ol.IView2D in ol.interaction.DragRotate 2013-12-13 18:04:48 +01:00
Tom Payne d43eb6dcb7 Fix use of ol.IView2D in ol.interaction.DragRotateAndZoom 2013-12-13 18:04:48 +01:00
Tom Payne d81c8d6f92 Fix use of ol.IView2D in ol.interaction.DragPan 2013-12-13 18:04:48 +01:00
Tom Payne 2bf7dc5568 ol.interaction.Interaction methods should take ol.IView2Ds, not ol.View2Ds 2013-12-13 18:04:48 +01:00
Tom Payne 3bb2306f79 Work around compiler not detecting implementation of abstract methods 2013-12-13 18:04:47 +01:00
Tom Payne 0b1a2325cd Define isDef on ol.IView2D, ol.IView3D and ol.View 2013-12-13 18:04:47 +01:00
Tom Payne c2a97ced7d Merge pull request #1364 from twpayne/rbush-new-error
Add missing "new"s in ol.structs.RBush
2013-12-12 04:26:26 -08:00
Tom Payne 7b7ebb8609 Add missing "new"s in ol.structs.RBush 2013-12-12 13:01:25 +01:00
Tom Payne cbc71686df Merge pull request #1363 from twpayne/vector-api-fix-geometry-collection-test
[vector-api] Fix ol.geom.GeometryCollection test
2013-12-12 02:37:48 -08:00
Tom Payne ccf96ea415 Fix ol.geom.GeometryCollection test 2013-12-12 11:30:33 +01:00
Tom Payne e4d85e27b1 Merge pull request #1358 from twpayne/vector-api-geometry-collection
[vector-api] Add ol.geom.GeometryCollection
2013-12-11 13:07:05 -08:00
Tom Payne dd3c39bb12 Add deep clone test 2013-12-11 22:05:33 +01:00
Tom Payne a03bf6d447 Add GeometryCollection to geojson example 2013-12-11 17:52:24 +01:00
Tom Payne 0943bbf070 Don't use postcompose in geojson example 2013-12-11 17:52:24 +01:00
Tom Payne bde17b2ac8 Add ol.geom.GeometryCollection support to ol.format.GeoJSON 2013-12-11 17:28:00 +01:00
Tom Payne 4205c01414 Add ol.geom.GeometryCollection rendering 2013-12-11 16:49:47 +01:00
Tom Payne d7eb4db69e Add ol.geom.GeometryCollection 2013-12-11 16:49:47 +01:00
Tom Payne 802d1644bb Implement clone for simple geometries 2013-12-11 16:49:47 +01:00
Tom Payne 6295fa6088 Add ol.geom.Geometry#clone 2013-12-11 16:49:47 +01:00
Tom Payne 76a6e08ec1 Factor out ol.geom.SimpleGeometry 2013-12-11 16:49:47 +01:00
Tom Payne cdc1039e23 Merge pull request #1353 from twpayne/vector-api-format
[vector-api] ol.format.Format
2013-12-11 05:37:33 -08:00
Tom Payne 7b3721fa3f Use ol.source.GeoJSON in complex-geometry example 2013-12-11 14:14:33 +01:00
Tom Payne b31385fcb6 Use ol.source.GeoJSON in vector-layer example 2013-12-11 14:14:33 +01:00
Tom Payne a814dd11ca Use ol.source.GeoJSON in icon example 2013-12-11 14:14:33 +01:00
Tom Payne 94d392c0c6 Use ol.source.GeoJSON in geojson example 2013-12-11 14:14:33 +01:00
Tom Payne df975aa558 Add ol.source.GeoJSON 2013-12-11 14:14:32 +01:00
Tom Payne 28c7ecc014 Add ol.source.VectorFile 2013-12-11 14:14:32 +01:00
Tom Payne 514ebb752b Use ol.format.GeoJSON in icon example 2013-12-10 15:35:50 +01:00
Tom Payne 0941f06c0b Use ol.format.GeoJSON in geojson example 2013-12-10 15:35:50 +01:00
Tom Payne ecf9ace190 Add ol.format.GeoJSON 2013-12-10 15:35:50 +01:00
Tom Payne aa0002d880 Add ol.format.XML 2013-12-10 14:43:45 +01:00
Tom Payne 8c7ff29470 Add ol.format.Text 2013-12-10 14:43:45 +01:00
Tom Payne 409cde83bf Add ol.format.JSON 2013-12-10 14:43:45 +01:00
Tom Payne 1187466ebf Add ol.format.Format 2013-12-10 12:55:22 +01:00
Tom Payne 6d96fbf44d Remove experimental ol.format code 2013-12-10 12:55:22 +01:00
Tom Payne ed5b8b6512 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-10 12:54:27 +01:00
Tom Payne 496c9c4250 Add and improve comments 2013-12-09 18:56:34 +01:00
Tom Payne b4c6a36a4f Fix and accelerate ol.source.Vector#getClosestFeatureToCoordinate
The previous implementation contained a bug (the reduced extent was
calculated around the closest point found, it should have been
calculated around the coordinate being searched for).  This allows a
speed-up that requires only a single traversal of the R-Tree (as opposed
to many traversals).
2013-12-09 18:45:16 +01:00
Tom Payne f4fe0046b2 Check closest point against extent 2013-12-09 16:40:55 +01:00
Tom Payne 66f1826358 Add ol.extent.closestSquaredDistanceXY 2013-12-09 16:40:54 +01:00
Tom Payne 3178331bab Reduce garbage generation 2013-12-09 16:40:54 +01:00
Tom Payne 5e710b4e57 Add snapping to synthetic points example (to be removed) 2013-12-09 16:40:54 +01:00
Tom Payne d0d36193a7 Have some fun in the complex-geometry example 2013-12-09 16:40:54 +01:00
Tom Payne 1076c5cad1 Add ol.source.Vector#getClosestFeatureToCoordinate 2013-12-09 16:40:54 +01:00
Tom Payne 77a658ddee Add ol.geom.MultiPolygon#closestPointXY 2013-12-09 16:40:54 +01:00
Tom Payne 128e174ee2 Add ol.geom.MultiLineString#closestPointXY 2013-12-09 16:40:54 +01:00
Tom Payne 99042c956a Add ol.geom.MultiPoint#closestPointXY 2013-12-09 16:40:54 +01:00
Tom Payne cf659f0753 Add ol.geom.Polygon#closestPointXY 2013-12-09 16:40:53 +01:00
Tom Payne 0c2a70f3a2 Add ol.geom.LinearRing#closestPointXY 2013-12-09 16:40:53 +01:00
Tom Payne a19daf4b1d Add ol.geom.LineString#closestPointXY 2013-12-09 16:40:53 +01:00
Tom Payne 1add41033a Add ol.geom.Point#closestPointXY 2013-12-09 16:40:53 +01:00
Tom Payne 35c20bea79 Add ol.geom.Geometry#getClosestPoint 2013-12-09 16:40:53 +01:00
Tom Payne 74bf8a7ecb Add ol.geom.closest 2013-12-09 16:40:53 +01:00
Tom Payne 5d36c2a55e Add ol.geom.flat.closestPoint 2013-12-09 16:40:53 +01:00
Tom Payne ee58e334a5 Move squaredDistance and squaredSegmentDistance in to ol.geom.flat 2013-12-09 16:37:33 +01:00
Tom Payne 90738d559a Add complex-geometry example 2013-12-09 16:37:33 +01:00
Tom Payne b374d5c5b8 Avoid simplifying geometries when it will have no effect 2013-12-09 16:37:33 +01:00
Tom Payne c6181ea9d1 Render simplified geometries in replay mode 2013-12-09 16:37:33 +01:00
Tom Payne d3320da7c6 Add ol.geom.MultiPolygon#getSimplifiedGeometryInternal 2013-12-09 16:37:33 +01:00
Tom Payne 0845c866d5 Add ol.geom.MultiLineString#getSimplifiedGeometryInternal 2013-12-09 16:37:33 +01:00
Tom Payne e560192c0f Add ol.geom.Polygon#getSimplifiedGeometryInternal 2013-12-09 16:37:32 +01:00
Tom Payne 956bff0fe2 Add ol.geom.LinearRing#getSimplifiedGeometryInternal 2013-12-09 16:37:32 +01:00
Tom Payne 6275d8528e Add ol.geom.LineString#getSimplifiedGeometryInternal 2013-12-09 16:37:32 +01:00
Tom Payne 9612182f70 Add ol.geom.Geometry#getSimplifiedGeometry 2013-12-09 16:37:32 +01:00
Tom Payne 7981d86bcd Add ol.geom.simplify.douglasPeukerss 2013-12-09 16:37:32 +01:00
Tom Payne abe0cd27f6 Add ol.geom.simplify.douglasPeukers 2013-12-09 16:37:32 +01:00
Tom Payne ec03be94d6 Add initial ol.geom.simplify 2013-12-09 16:37:32 +01:00
Tom Payne 554e17ac22 Set geometry to null if no geometry given 2013-12-07 19:51:54 +01:00