Commit Graph

7981 Commits

Author SHA1 Message Date
Tim Schaub
11ac778b29 Mark propertychange as stable 2015-04-02 12:04:01 +02:00
Tim Schaub
d541ae49d0 Mark moveend as stable 2015-04-02 12:03:21 +02:00
Tim Schaub
56a942e9cf Stable map browser events 2015-04-02 11:57:43 +02:00
Andreas Hocevar
84b6114f02 Remove ol.format.GMLBase from the API
There is no need to have this exportable; the api annotation was probably
a leftover from the GML -> GMLBase renaming.
2015-04-02 10:52:58 +02:00
Éric Lemoine
5293cdc780 Merge pull request #3446 from elemoine/updatewhileinteracting
Add updateWhileInteracting to olx.layer.VectorOptions
2015-04-02 09:14:53 +02:00
Éric Lemoine
6d55e4aa99 Merge pull request #3438 from gberaudo/parser_documentation
Parser documentation and XML readme
2015-04-01 14:16:03 +02:00
Guillaume Beraudo
7765d7304c Fix assertion message 2015-04-01 11:29:28 +02:00
Éric Lemoine
42c4ae9ced Add updateWhileInteracting to olx.layer.VectorOptions 2015-04-01 08:27:29 +02:00
Andreas Hocevar
5579dc53a2 Add fromLonLat and toLonLat convenience functions 2015-03-31 19:27:35 +02:00
Guillaume Beraudo
aa63f1ad6a Add some documentation to ol.xml. 2015-03-31 19:25:44 +02:00
Guillaume Beraudo
2ba2162416 Add a readme about XML parser and format
The readme content is the result of the merge of two wiki pages.
2015-03-31 19:25:41 +02:00
Éric Lemoine
fc9563ad65 Merge pull request #3423 from gberaudo/parse_extrude_and_altitudeMode
Parse extrude and altitude mode
2015-03-31 18:29:34 +02:00
Frédéric Junod
4619cac9ce Merge pull request #3431 from fredj/cleanup
Better typing
2015-03-31 17:38:00 +02:00
Guillaume Beraudo
f25302f8b7 Parse KML extrude and altitudeMode from multi geometries
Handle MultiPoint, MultiLineString, MultiPolygon.
LinearRing properties are not handled.

An 'extrude' boolean array property is set in the geometry properties.
An 'altitudeMode' string array property is set in the geometry properties.
2015-03-31 17:21:12 +02:00
Guillaume Beraudo
5bd63f7e2c Parse KML extrude and altitudeMode of simple geometries
Point, LineString and Polygon are handled.
LinearRing properties are not handled.

An 'extrude' boolean property is set in the geometry properties.
An 'altitudeMode' string property is set in the geometry properties.
2015-03-31 15:30:58 +02:00
Guillaume Beraudo
ea8ee16f49 Fix return type of ol.xml.pushParseAndPop 2015-03-31 15:28:20 +02:00
Guillaume Beraudo
567a9d7a5a Make ol.geom.Geometry inherit from ol.Object
This will allow storing per-geometry properties.
2015-03-31 15:28:20 +02:00
Frederic Junod
4bfe49723e Add missing goog.provide/goog.require ol.source.TileEvent 2015-03-31 15:06:36 +02:00
Frederic Junod
d138b2d1d5 Better typing 2015-03-31 14:32:23 +02:00
Éric Lemoine
c993964d27 Merge pull request #3422 from elemoine/multi-filter
Fix Select behavior when multi is false
2015-03-31 14:16:32 +02:00
Marc Jansen
e5f6bae49b Merge pull request #3428 from marcjansen/reorder-assertions
Reorder assertions and variable declarations.
2015-03-31 10:31:34 +02:00
Marc Jansen
2077211e67 Reorder assertions and variable declarations. 2015-03-31 10:19:04 +02:00
Frédéric Junod
afa2238ccd Merge pull request #3414 from fredj/require-atlas-manager
Add missing ol.style.AtlasManager goog.require
2015-03-31 10:14:58 +02:00
Pierre GIRAUD
4b453f5be6 Adding missing provide for SelectFilterFunction 2015-03-31 09:36:25 +02:00
Bart van den Eijnden
47ce127a10 Add assert messages for all assertions up until ol.renderer.vector. 2015-03-30 22:55:23 +02:00
Marc Jansen
fb9ba22c30 Add message to assertions. 2015-03-30 22:53:03 +02:00
Éric Lemoine
2c40d74a15 Merge pull request #3425 from elemoine/olol
Fix typo in ol.js
2015-03-30 21:29:09 +02:00
Éric Lemoine
28d00c9676 Fix typo in ol.js 2015-03-30 21:02:40 +02:00
Tim Schaub
255e1de3a4 Remove @api annotation from ol.WEBGL_MAX_TEXTURE_SIZE 2015-03-30 20:57:41 +02:00
Éric Lemoine
9022530bf9 Fix Select behavior when multi is false
This commit addresses https://github.com/openlayers/ol3/pull/3402#issuecomment-87701660.
2015-03-30 18:32:36 +02:00
Éric Lemoine
f1d7e2ec85 Unregister tile change listeners
When the tile queue loads a tile it registers a "change" listener on that tile. But currently that listener is not unregistered, unless the tile cache containing that tile fills up and "dipose" is called on that tile.

This commit makes handleTileChange deregister the "change" listener on the tile, if the tile is now in "loaded" state.
2015-03-30 16:54:09 +02:00
Éric Lemoine
192c9d697e Unregister the viewport listener on setTarget(null)
This commit unregisters the viewport resize listener when setTarget(null) is called, and registers it when setTarget(target) is called, and when we don't have that listener registered yet.

This prevents memory leaks where references to map objects are retained because of these viewport resize listeners.
2015-03-30 16:50:58 +02:00
Andreas Hocevar
9add762f63 Merge pull request #3417 from fperucic/ol.interaction.Snap-extentFix
ol.interaction.Snap extent fix
2015-03-30 16:08:57 +02:00
Fran Peručić
6343c0420d fix: prevent indexed extent from beeing overwitten
when using ol.source.Vector with snap, indexedFeaturesExtents_ is updated whenever source calls geometry#getExtent
2015-03-30 15:13:09 +02:00
Fran Peručić
60dbe93f7f fix: set pendingFeatures_ as object on init 2015-03-30 15:01:23 +02:00
Éric Lemoine
7c55639632 Merge pull request #3410 from gberaudo/ol_object_unset
Add ol.Object.unset() method
2015-03-30 13:45:58 +02:00
Éric Lemoine
91d14a35bb Merge pull request #3402 from elemoine/selectfilter
Add "filter" option to Select interaction
2015-03-30 13:45:46 +02:00
Guillaume Beraudo
6e7221ca28 Add ol.Object.unset() method
Allow deleting a property.
2015-03-30 13:30:10 +02:00
acanimal
1f0c21ac60 Add "filter" option to Select interaction 2015-03-30 13:07:02 +02:00
Frederic Junod
632205d902 Add missing ol.style.AtlasManager goog.require 2015-03-30 09:27:13 +02:00
Fran Peručić
4168cda453 add: listen for 'change:geometry'
Geometry index won't be updated correctly if feature geometry is changed using `feature.setGeometry(new_geometry)`
ol.interaction.Snap should listen for a 'change:geometry' event on ol.Feature
2015-03-29 18:55:08 +02:00
Fran Peručić
4b85f5737c replaced ol.Collection with Array 2015-03-29 10:57:44 +02:00
Andreas Hocevar
254039a6ab Merge pull request #3109 from fperucic/snap-feature
Snap feature
2015-03-27 14:45:57 +01:00
Alexandre Dubé
d740640321 Fix type of source and features 2015-03-27 09:07:34 -04:00
Andreas Hocevar
056c3ad23e Add consistency for pointer event handlers
Now all are private static functions.
2015-03-27 08:58:28 -04:00
Alexandre Dubé
b34d7ce6cc Fix - support ol.Collection only as features 2015-03-27 08:58:21 -04:00
Fran Peručić
42d2adb1cf fix: repeating sort function + js annotation
Sort function is now bind to this, and it uses a pixelCoordinate_ member.
ol.interaction.Snap.handleEvent is removed
js annotations are modified
2015-03-27 12:48:52 +01:00
Fran Peručić
ebc18b4f68 fix: updateing geometry index
More than one features can be be changed while handlingDownUpSequence
exampe: ol.interaction.Modify supports simultaneous editing of multiple features

When a geometry changes old indexed segments are searched by the feature extend and removed. New ones are added.
Old feature extent sholud be used when removing the old indexed segments.
2015-03-26 23:49:29 +01:00
Fran Peručić
299647a957 remove unnecessary flag dragging_ 2015-03-26 22:36:38 +01:00
Alexandre Dubé
1a5d7b85d2 Add/remove features in setMap 2015-03-26 15:19:33 -04:00