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
Alexandre Dubé
5bffa99e83
Trivial - reorder methods & comment
2015-03-26 14:48:44 -04:00
Alexandre Dubé
49a3f0a0b7
Update geometry index inside Snap interaction
2015-03-26 12:24:54 -04:00
Tim Schaub
6e878468ae
Merge pull request #3401 from tschaub/geojson-orientation
...
Allow GeoJSON to be serialized according to the right-hand rule.
2015-03-26 08:44:57 -06:00
Alexandre Dubé
d1c3dc51ad
Fix Drag interaction, works with modify now
2015-03-26 08:36:24 -04:00
Frederic Junod
c0c3057498
Remove unused goog.require
2015-03-26 11:54:37 +01:00
Andreas Hocevar
362c9b6851
Clarification of the purpose of ol.proj.addProjection
2015-03-26 10:52:19 +01:00
Andreas Hocevar
338901774b
Configure proj4 options and transforms upon construction
2015-03-26 10:39:26 +01:00
Tim Schaub
be0c9f3c8a
Allow orienting coordinates when serializing GeoJSON
2015-03-25 18:32:31 -06:00
Tim Schaub
5d590bcf95
Allow access to right-hand oriented multi-polygon coordinates
2015-03-25 16:57:29 -06:00
Tim Schaub
7572f27cf9
Allow access to right-hand oriented polygon coordinates
2015-03-25 16:57:29 -06:00
Tim Schaub
ce36947bdb
Allow orienting with the right-hand rule
2015-03-25 16:57:25 -06:00
Tim Schaub
5f6ceff3a7
Use ol.geom.flat.orient namespace
2015-03-25 16:33:17 -06:00
Alexandre Dubé
d92917ac89
Fix Snap -> Interaction
...
This commit changes ol.Snap -> ol.interaction.Snap, which extends
ol.interaction.Pointer. The 'pointerdown', 'pointermove' and
'pointerup' map browser events are hanlded to edit the pixel and
coordinate properties to make them 'snap' to the closest feature.
2015-03-25 15:10:41 -04:00
Andreas Hocevar
1df8cba753
Make sure that the return value of wrapX() is stable
2015-03-25 15:59:59 +01:00
Frederic Junod
6a770f03b8
Move the compare function out of ol.interaction.Modify.handleDownEvent_
2015-03-25 14:41:40 +01:00
Andreas Hocevar
683097d62a
Merge pull request #3395 from fperucic/inteaction.modify-fix
...
ol.Interaction.Modify fixes
2015-03-25 14:16:37 +01:00