Commit Graph

1311 Commits

Author SHA1 Message Date
Tim Schaub
8fbfac52d4 Avoid firing duplicate change events in ol.layer.Layer 2013-12-11 01:20:07 -07:00
Tim Schaub
3e905d804c Merge pull request #1335 from tschaub/geometry-type
Change geometry type enum and mark as stable.
2013-12-10 08:50:54 -08:00
Tom Payne
ecf9ace190 Add ol.format.GeoJSON 2013-12-10 15:35:50 +01:00
Tom Payne
6d96fbf44d Remove experimental ol.format code 2013-12-10 12:55:22 +01:00
Tom Payne
74bf8a7ecb Add ol.geom.closest 2013-12-09 16:40:53 +01:00
Tom Payne
b374d5c5b8 Avoid simplifying geometries when it will have no effect 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
e560192c0f Add ol.geom.Polygon#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
ec03be94d6 Add initial ol.geom.simplify 2013-12-09 16:37:32 +01:00
Frederic Junod
94393c0050 Don't use describe.only in test 2013-12-09 16:37:18 +01:00
Éric Lemoine
0d0b19128f Add ol.array.reverseSubArray 2013-12-08 21:35:27 +01:00
Tom Payne
550da14781 Merge remote-tracking branch 'openlayers/master' into vector-api 2013-12-06 16:29:13 +01:00
ahocevar
b3b9add06e Add Insert, Update and Delete writers
This change also adds some type annotations for better type
checking, introduces different write options for writing
transactions and queries, and provides new writeGetFeature and
writeTransaction methods.
2013-12-06 10:57:58 +01:00
ahocevar
af4308f481 Merge pull request #1336 from ahocevar/fix-writers-typo
Fix a typo - it's writers, not witers
2013-12-05 16:00:13 -08:00
ahocevar
1bf4b9bf49 Fix a typo - it's writers, not witers 2013-12-06 00:53:16 +01:00
Tim Schaub
2f7fa8f442 Using PascalCase for geometry enum values
This adds a bit more inconsistency to the library, but we didn't have complete consistency before.  Almost all existing string enum values are lowercase (a couple are camelCase and one is dash-separated).  The closure library isn't consistent either (with case for enum properties or values).  I imagine this could be justified in saying someone could blindly use GeoJSON type values in places, but in the end, you'll need to read the docs before guessing right.
2013-12-05 14:40:26 -07:00
Tim Schaub
4ee9605d61 Using CONSTANT_CASE for geometry type 2013-12-05 14:00:04 -07:00
Tim Schaub
3dc40f8cb6 Add ol.Observable for on, once, un, and unByKey methods 2013-12-05 12:27:30 -07:00
Bart van den Eijnden
9b1918c75c Add missing files needed for ol.parser tests 2013-12-05 18:14:15 +01:00
oterral
bd560bfb0f Add WMS GetCapabilties parser 2013-12-05 16:57:33 +01:00
Tom Payne
c2228b1d19 Rename ol.geom.Layout to ol.geom.GeometryLayout 2013-12-04 16:27:03 +01: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
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
1a9d19a2fb Allow geometries to have null coordinates and add setFlatCoordinates 2013-12-03 19:58:34 +01:00
Tom Payne
01c185ef57 Exploit known sense of rings to simplify area calculation 2013-12-02 12:15:07 +01:00
Tom Payne
e90776a099 Add ol.geom.flat.linearRingsArea 2013-12-02 12:07:33 +01:00
Tom Payne
f80cad531b Add ol.geom.flat.linearRingArea 2013-12-02 12:07:33 +01:00
Tom Payne
c3378d0bd5 Order test cases alphabetically 2013-12-02 12:07:10 +01:00
Tom Payne
b3473c3cba Add ol.geom.flat.flipXY 2013-12-02 09:08:06 +01:00
Tom Payne
321837f157 Add ol.geom.flat.lineStringInterpolate 2013-12-01 21:06:24 +01:00
Tom Payne
d2fd695635 Merge branch 'master' into vector-api 2013-11-28 21:00:18 +01:00
ahocevar
45d9f6ce0b Rename rbush test to match the naming scheme 2013-11-28 16:17:29 +01:00
ahocevar
d4bdac715b Get rid of ol.structs.RTree 2013-11-28 16:17:17 +01:00
Tim Schaub
b7b14420a4 Test removeFeatures and featureremove event 2013-11-27 12:22:34 -07:00
Tim Schaub
8b5dccb742 Test featureadd event 2013-11-27 12:22:34 -07:00
Tim Schaub
a5cadacb78 Test featureload event 2013-11-27 12:22:34 -07:00
Tim Schaub
f9710b6698 Test forEachFeatureInExtent 2013-11-27 12:22:33 -07:00
Tim Schaub
3bcd4bf833 Tests for getFeatures method 2013-11-27 12:22:33 -07:00
Tim Schaub
1f6d9fc5ae Test for vector source load method 2013-11-27 12:22:33 -07:00
Tim Schaub
1877f92d46 Add forEach method to rtree, use it in feature cache
This saves having to create feature lookup objects and iterate through lookup properties multiple times.
2013-11-27 12:22:33 -07:00
Tim Schaub
8cc4ae8dbd Separate load requests from feature requests
This separates the action of requesting an extent to be loaded from the action of requesting cached features.  The renderer (or any other consumer of a vector source) calls load to request a data extent.  A `featureload` event fires when new features are loaded.  The renderer (or any other consumer) separately asks for cached features given an extent.  This vector source only loads features once, but this separation will also work with sources that make multiple requests for data in different extents.

This also removes the `data` option from the vector source in favor of a `features` option.  Since we no longer have shared data structures for geometries, people can manually create features and pass them to a vector source.  The `addFeatures` method is exported as well.  This is used to add features to a source that don't have a representation on the "remote" (or server).
2013-11-27 12:22:32 -07:00
Tim Schaub
bfaed4d52d Moving all style functionality from source to style 2013-11-27 12:20:43 -07:00
Tim Schaub
01a0b9ff8d Private source methods 2013-11-27 12:20:42 -07:00
Tim Schaub
2000b0af78 Vector layer/source refactor
This moves the feature cache from ol.layer.Vector to ol.source.Vector.  These are the minimum changes required to maintain the existing functionality and make tests pass.  More refactoring to come.
2013-11-27 12:20:42 -07:00
Bart van den Eijnden
73a2ab2de1 make sure we can also read in CDATA fields with newlines 2013-11-27 16:09:36 +01:00
Éric Lemoine
1192162792 Merge branch 'master' into vector-api 2013-11-27 15:40:22 +01:00