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
Andreas Hocevar
e58a470e69
Merge pull request #3387 from ahocevar/wmts-wrapx
...
Add wrapX option for ol.source.WMTS
2015-03-25 14:01:04 +01:00
Fran Peručić
56067d1cda
Prevent unnecessary function calls
...
handlePointerMove_ doesn't need to be called when dragging.
handleDragEvent_ takes care of the event in that case.
in handleDragEvent_, createOrUpdateVertexFeature_ doesn't need to be called for each dragged segment. it can be called only once with current vertex.
fixes made to pass the build
2015-03-25 11:19:24 +01:00
Fran Peručić
279d1829bb
fix: ol.interaction.Select conflict
...
Prevent vertexFeature_ from ol.interaction.Modify from being selected by ol.interaction.Select.
The bug occurs when an delete attempt fails. ex: clicikng on the first or last node of LineString,
or clicking a line segment between two nodes.
2015-03-25 10:52:29 +01:00
Fran Peručić
eb6d61e6d1
fix: modifying the closed LineString
...
This commit fixes the bug that occurs when trying to modify
a closed LineString by clicking on the starting/ending node.
Such a closed line is added to the modify-test example.
2015-03-25 10:44:35 +01:00
Fran Peručić
7dff739bce
Deleting a duplicate node
...
Fix a bug in ol.interaction.Modify when trying to delete nodes
on a geometry that has duplicate nodes. A bug occurs when
clicking on the duplicate node.
2015-03-25 10:34:36 +01:00
Frédéric Junod
8beeee8a95
Merge pull request #3393 from fredj/cleanup
...
Remove unused define
2015-03-25 08:54:27 +01:00
Andreas Hocevar
ebb40c8046
Clean up docs and consistently work with resolutions
2015-03-24 19:03:33 +01:00
Andreas Hocevar
4822ca273f
Give tile grids a width
2015-03-24 19:03:09 +01:00
Andreas Hocevar
57d9b87fb3
Add wrapX option for ol.source.WMTS
2015-03-24 17:13:07 +01:00
Frederic Junod
4c36e05f27
Remove unused define
...
Should have been removed in #40
2015-03-24 17:10:27 +01:00
tsauerwein
eb7dde6d0f
Fix class name of full-screen control
2015-03-24 17:07:55 +01:00
Frédéric Junod
1d04eabeda
Merge pull request #3391 from fredj/cleanup
...
Minor code cleanup
2015-03-24 14:57:51 +01:00
Frederic Junod
6a8b236d82
Remove unnecessary newlines
2015-03-24 14:41:40 +01:00
Frederic Junod
e669b20ed5
Add new geometry layout option for polyline format
...
To be able to choose the geometry layout of the feature geometries created by
the format reader.
Default is `ol.geom.GeometryLayout.XY`
2015-03-24 11:39:18 +01:00
Éric Lemoine
ae2c9144e1
Merge pull request #3385 from elemoine/getzforresolution
...
Fix ol.tilegrid.TileGrid#getZForResolution
2015-03-23 18:31:42 +01:00
Andreas Hocevar
45e9695239
Merge pull request #3377 from ahocevar/attribution-wrapx
...
Support wrapX for attributions
2015-03-23 18:05:13 +01:00
Éric Lemoine
79748c6f0c
Fix ol.tilegrid.TileGrid#getZForResolution
...
This fixes a bug in ol.tilegrid.TileGrid#getZForResolution where this function doesn't take minZoom and maxZoom into account when selecting a zoom level for a resolution.
Fixes #2780 .
2015-03-23 18:04:13 +01:00
Andreas Hocevar
d9c04cd925
Support wrapX for attributions
2015-03-23 16:55:50 +01:00
Andreas Hocevar
3e18b85206
Add ol.source.Tile support for wrapping around the x-axis
2015-03-22 14:27:19 +01:00
Frederic Junod
f474e7ccd9
Don't unlisten image twice when disposing an ol.ImageTile
...
Fixes #3325
2015-03-18 10:33:41 +01:00
Andreas Hocevar
7916f36f7a
Merge pull request #3363 from bill-chadwick/master
...
New ol.proj features
2015-03-18 00:22:34 +01:00