Commit Graph
100 Commits
Author SHA1 Message Date
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
Tom Payne 87f147db60 Merge pull request #1341 from twpayne/mapguide-clean-ups
Tidy up ol.source.MapGuide and add ratio option
2013-12-06 12:50:43 -08:00
Tom Payne 1ae13f152d Fire change event when an ol.geom.Geometry is transformed 2013-12-06 21:12:32 +01:00
Tom Payne 43e4292ec9 Tidy up ol.source.MapGuide and add ratio option 2013-12-06 18:11:01 +01:00
Tom Payne 0a5cc8812c Merge pull request #1236 from jumpinjackie/master
MapGuide untiled map support
2013-12-06 08:59:57 -08:00
Tom Payne 6c5f1fbcce Make ol.geom.Geometry inherit from ol.Observable 2013-12-06 16:30:00 +01:00
Tom Payne 550da14781 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-06 16:29:13 +01:00
Tom Payne 1dd5f7f7c8 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-05 16:53:04 +01:00
Tom Payne fac8936688 Merge pull request #1333 from twpayne/object-get-properties
Add ol.Object#getProperties
2013-12-05 07:40:32 -08:00
Tom Payne 7ae7c8e41e Merge pull request #1334 from twpayne/build-check
Don't build ol.css in check target
2013-12-05 07:40:13 -08:00
Tom Payne dfdec96ba7 Export ol.Object#getProperties 2013-12-05 16:32:41 +01:00
Tom Payne 82fa4861e7 Allow ol.geom.LinearRings to have null coordinates and add setFlatCoordinates 2013-12-05 16:23:56 +01:00
Tom Payne 72cf6e03cd Add ol.Object#getProperties 2013-12-05 16:23:56 +01:00
Tom Payne d9c94c7012 Don't build ol.css in check target 2013-12-05 13:12:39 +01:00
Tom Payne f795adcd56 Add ol.Object#getProperties 2013-12-04 19:19:51 +01:00
Tom Payne 057cda42be Rename ol.geom.Type to ol.geom.GeometryType 2013-12-04 16:28:36 +01:00
Tom Payne c2228b1d19 Rename ol.geom.Layout to ol.geom.GeometryLayout 2013-12-04 16:27:03 +01:00
Tom Payne 600cb3a0ff Add @struct annotation where possible 2013-12-04 16:07:39 +01:00
Tom Payne bcda3aa3c2 Merge pull request #1331 from twpayne/rbush-is-empty
Add ol.structs.RBush#isEmpty
2013-12-04 06:26:41 -08:00
Tom Payne 2be40a1ae6 Add ol.structs.RBush#isEmpty 2013-12-04 15:05:43 +01:00
Tom Payne aa0a02b935 Enable remaining ol.source.Vector tests 2013-12-04 15:03:20 +01:00
Tom Payne 79c6787e52 Add ol.source.Vector#clear 2013-12-04 14:59:30 +01:00
Tom Payne ae3ab95b56 Factor out ol.source.Vector#removeFeatureInternal_ 2013-12-04 14:59:18 +01:00
Tom Payne 66457a7aaf Add ol.source.Vector#isEmpty 2013-12-04 14:49:25 +01:00
Tom Payne d5e5749967 Add ol.structs.RBush#isEmpty 2013-12-04 14:48:21 +01:00
Tom Payne b64e899b92 Merge pull request #1330 from twpayne/fail-if-major-performance-caveat
Don't use WebGL if there as a major performance caveat
2013-12-04 04:58:46 -08:00
Tom Payne 0d3583bd8d Improve type checking in WebGL support test 2013-12-04 11:59:29 +01:00
Tom Payne d6dc1a2c6f Don't use WebGL if there is a major performance caveat 2013-12-04 11:58:05 +01:00
Tom Payne a836d6924d Add FIXME 2013-12-04 00:05:45 +01:00
Tom Payne 9d57b53c0f Add optional layerFunction to ol.Map#forEachFeatureAtPixel 2013-12-04 00:05:45 +01:00
Tom Payne 5acc673c68 Add layer to forEachFeatureAtPixel callbacks in examples 2013-12-04 00:05:45 +01:00
Tom Payne e9267e401c Pass layer to forEachFeatureAtPixel callback 2013-12-04 00:05:45 +01:00
Tom Payne f1a9f76841 Break out of forEachFeatureAtPixel as soon as hit detected in vector-layer example 2013-12-04 00:05:45 +01:00
Tom Payne 41811e6566 Break out of forEachFeatureAtPixel as soon as hit detected in synthetic-points example 2013-12-04 00:05:45 +01:00
Tom Payne 15fd9f7662 Break out of forEachFeatureAtPixel as soon as hit detected in icon example 2013-12-04 00:05:44 +01:00
Tom Payne d7591594ca Allow forEachFeatureAtPixel callback to break out of loop 2013-12-04 00:05:44 +01:00
Tom Payne 1a9d19a2fb Allow geometries to have null coordinates and add setFlatCoordinates 2013-12-03 19:58:34 +01:00
Tom Payne 580f7d2022 Ensure endss is truncated if needed in ol.geom.flat.deflateCoordinatesss 2013-12-03 19:43:00 +01:00
Tom Payne b06ef0290c Add ol.geom.flat.deflateCoordinate 2013-12-03 16:53:23 +01:00