Tim Schaub
0ed59f7be3
Merge pull request #1348 from tschaub/beforechange
...
Add `ol.ObjectEvent` for changes to `ol.Object` properties. Previously, `ol.Object` dispatched instances of `goog.events.Event` with type `change`. Now `ol.ObjectEvent` instances will be dispatched on property changes. The events include a `getKey` method to get the name of the property being changed. The `beforepropertychange` type event is fired before a property value changes, and the `propertychange` type event fires after the property value changes.
2013-12-13 07:28:36 -08:00
Tom Payne
594cee01e4
Use Schaub's topology-preserving simplification method for Polygons and MultiPolygons
2013-12-13 13:59:29 +01:00
Tom Payne
5b1bbe15dd
Add ol.geom.simplify.schaub
2013-12-13 13:59:29 +01:00
Éric Lemoine
35d5158454
Merge remote-tracking branch 'upstream/master' into vector-api
...
Conflicts:
src/objectliterals.jsdoc
src/ol/attribution.js
src/ol/geom/geometry.js
src/ol/geom/geometrycollection.js
src/ol/geom/linestring.js
src/ol/layer/vectorlayer.exports
src/ol/layer/vectorlayer.js
src/ol/map.js
src/ol/proj/proj.js
src/ol/renderer/canvas/canvasvectorlayerrenderer.js
src/ol/source/imagewmssource.js
src/ol/source/tilewmssource.js
src/ol/source/vectorsource.exports
src/ol/source/vectorsource.js
src/ol/source/wmssource.js
src/ol/style/style.js
src/ol/tilegrid/tilegrid.js
src/ol/tilegrid/wmtstilegrid.js
src/ol/tilegrid/xyztilegrid.js
2013-12-13 12:53:57 +01:00
Éric Lemoine
93e605b119
Merge pull request #1350 from elemoine/gutter
...
Add gutter support to ol.source.TileWMS
2013-12-13 01:11:42 -08:00
Tim Schaub
20d74810ab
Export a getKey method on ol.ObjectEvent
2013-12-12 16:59:34 -07:00
ahocevar
4d03c0bfaa
Show an issue with ol.structs.RBush
...
Note that the same test passes in the original implementation.
2013-12-12 17:03:40 +01:00
Tom Payne
ccf96ea415
Fix ol.geom.GeometryCollection test
2013-12-12 11:30:33 +01:00
Éric Lemoine
e14d8add85
Add gutter support to TileUrlFunction
2013-12-12 10:59:31 +01:00
Tim Schaub
69385f4ff0
More consistent event types
2013-12-11 16:54:01 -07:00
Tim Schaub
625007f364
Make enum property name like its value
...
Where an enum value is used as an event type, it should be alllowercase (to follow DOM events). Property names should be ALLUPPERCASE in this case (just as camelCase and PascalCase are converted to CONSTANT_CASE).
2013-12-11 16:54:01 -07:00
Tom Payne
dd3c39bb12
Add deep clone test
2013-12-11 22:05:33 +01:00
Tim Schaub
17e91feb52
Listen for property changes in layer group
...
This avoids a future bug when the ol.ObjectEventType.CHANGE value becomes something different than the goog.events.EventType.CHANGE value.
2013-12-11 12:23:05 -07:00
Tim Schaub
1783776976
Getting explicit about which type
2013-12-11 11:36:04 -07:00
Tim Schaub
153cb307e0
Handle beforechange events for bound properties
2013-12-11 11:25:51 -07:00
Tim Schaub
9d3a4e3c6c
Add beforechange event type and provide key with change events
...
If you know ahead of time that you only want to listen for changes for a specific property, the foo:change type events can be useful. If you want to listen for changes on all properties, the change event becomes more useful if it provides information on what changed. And the beforechange event allows listeners to access values before they change.
2013-12-11 11:25:50 -07:00
Tom Payne
bde17b2ac8
Add ol.geom.GeometryCollection support to ol.format.GeoJSON
2013-12-11 17:28:00 +01:00
Tom Payne
d7eb4db69e
Add ol.geom.GeometryCollection
2013-12-11 16:49:47 +01:00
Tim Schaub
8b8563f0fd
Test change events on layer groups
2013-12-11 01:46:23 -07:00
Tim Schaub
a792a224f6
Avoid duplicate change event on visibility change
2013-12-11 01:28:55 -07:00
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