Antoine Abt
39cf993b39
Revert "Remove DragZoom from default interactions"
...
This reverts commit c2330b9786 .
2014-01-03 11:55:27 +01:00
Antoine Abt
c2330b9786
Remove DragZoom from default interactions
...
As it only works with canvas renderer.
2013-12-20 15:24:53 +01:00
Antoine Abt
adfe20dd12
Make DragBox interaction dispatch events
...
- boxstart/boxend events are dispatched,
- behavior is removed,
- geometry drawn by box render is a simple polygon instead of one with hole.
2013-12-20 15:24:53 +01:00
Antoine Abt
43b8a72e62
Add ol.DragBoxEvent
2013-12-20 15:24:52 +01:00
Éric Lemoine
cf8adffdb2
Add style option to DragZoom interaction
2013-12-20 10:21:18 +01:00
Éric Lemoine
eb840777e8
Add style option to DragBox interaction
2013-12-20 10:21:18 +01:00
Éric Lemoine
de329b02d3
Rename drag zoom interaction exports file
2013-12-20 10:21:18 +01:00
Éric Lemoine
0960584cfc
Make DragZoom interaction inherit from DragBox
2013-12-20 10:21:18 +01:00
Éric Lemoine
6b305cd146
Add ol.interaction.DragBox
2013-12-20 10:21:18 +01:00
Tom Payne
5c517cde19
Add ol.interaction.DragAndDrop
2013-12-19 17:54:13 +01:00
Tom Payne
7cadb6824e
Merge remote-tracking branch 'openlayers/master' into vector-api
2013-12-18 17:09:19 +01:00
Éric Lemoine
28738af844
Merge pull request #1395 from elemoine/exports
...
Fix exports (remove export_as hack)
2013-12-18 07:17:24 -08:00
Éric Lemoine
1b084dba06
Do not use export_as for interactiondefaults exports
2013-12-18 08:25:14 +01:00
Tom Payne
79ade07fb7
Merge remote-tracking branch 'openlayers/master' into vector-api
2013-12-17 12:55:36 +01:00
Éric Lemoine
d3f90418df
Make Interaction inherit from Observable
2013-12-17 10:39:40 +01:00
Tim Schaub
5caa0eb659
Geometries inherit from ol.Observable
...
Because ol.Observable is now a struct, we have stricter type checking (hence the extra assertions).
2013-12-13 14:18:10 -07:00
Tom Payne
b59eec7a83
Merge remote-tracking branch 'openlayers/master' into vector-api
2013-12-13 20:22:06 +01:00
Tom Payne
a93e0b85df
Improve type checking in ol.interaction.DragPan
2013-12-13 18:59:24 +01:00
Tom Payne
6dedac6ed8
Improve type checking in ol.interaction.TouchPan
2013-12-13 18:59:24 +01:00
Tom Payne
35768f8b48
Improve type checking in ol.interaction.Interaction
2013-12-13 18:59:24 +01:00
Tom Payne
8f6952c56c
Fix use of ol.IView2D in ol.interaction.TouchPan
2013-12-13 18:59:24 +01:00
Tom Payne
49369b8800
Fix use of ol.IView2D in ol.interaction.DragRotate
2013-12-13 18:04:48 +01:00
Tom Payne
d43eb6dcb7
Fix use of ol.IView2D in ol.interaction.DragRotateAndZoom
2013-12-13 18:04:48 +01:00
Tom Payne
d81c8d6f92
Fix use of ol.IView2D in ol.interaction.DragPan
2013-12-13 18:04:48 +01:00
Tom Payne
2bf7dc5568
ol.interaction.Interaction methods should take ol.IView2Ds, not ol.View2Ds
2013-12-13 18:04:48 +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
b8a0112a91
Merge pull request #930 from elemoine/externs
...
Use @exportSymbol instead of @exportClass|Function
2013-12-12 23:40:44 -08:00
ahocevar
95c717ad32
Merge pull request #1370 from ahocevar/unnest-loops
...
Unnest loops
2013-12-12 15:12:19 -08:00
ahocevar
c4ec53bbdb
Unnest loops
...
Reusing the iterator in a nested loop is not a good idea. And in
this case it is better to not have nested loops at all, because
we only have to create one array.
2013-12-12 17:57:14 +01:00
Éric Lemoine
7b81bfab5c
Change @exportClass to @exportSymbol
...
sed command used: find src/ol -name '*.exports' -exec sed -ri 's/@exportClass\s+(\S+)\s+(\S+)$/@exportSymbol \1/' \{\} \;
2013-12-12 15:05:52 +01:00
Éric Lemoine
d9e293109e
Change @exportFunction to @exportSymbol
...
sed command used: find src/ol -name '*.exports' -exec sed -ri 's/@exportFunction\s+(\S+)\s+(\S+)\s+(\S+)$/@exportSymbol \1 \1/' \{\} \;
2013-12-12 15:05:39 +01:00
Éric Lemoine
315c42f0a7
Use olx namespace for options types in source code
...
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01: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
ahocevar
211e288f33
Remove original handling on ol.Feature
...
This is another attempt to bring master closer to the
vector-api branch. In anticipation of the ability to keep track
of modifications on ol.Object through a beforechange event
(d7e4be0), we will be able to manage originals on the
application level or in a separate component outside of
ol.Feature.
2013-12-09 18:33:34 +01:00
ahocevar
8d55e14986
Safeguard against the case where no features are modifiable
2013-12-09 13:25:14 +01:00
Tim Schaub
4ee9605d61
Using CONSTANT_CASE for geometry type
2013-12-05 14:00:04 -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
ec02e09ce8
Move render intent enum to feature
2013-11-27 12:22:32 -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
Tom Payne
c00d748384
Update ol.interaction.Modify to use ol.structs.RTree#getAllInExtent
2013-11-27 15:11:42 +01:00
ahocevar
137f797bee
Use ol.structs.RBush in ol.interaction.Modify
...
This is one more step to bring the master and vector-api
branches closer together. I am well aware that the current
Modify interaction will probably be rewritten as part of the
vector-api effort, but with changes like this we will eventually
be able to remove ol.structs.RTree from master.
2013-11-27 14:48:06 +01:00
ahocevar
cf5e9ecd4f
Segment distance calculation fails when modifying points
...
By providing a segment even for points, we have less distinction
points between points and other geometry types, and are able to
do the segment distance calculation also for points.
2013-11-23 11:49:42 +01:00
Tom Payne
e81965d5b3
Use ol.render.DragBox in ol.interaction.DragZoom
2013-11-20 11:42:06 +01:00
Tom Payne
4e65fefc00
Move vector code out of the way
2013-11-20 11:39:21 +01:00
Tim Schaub
15b73ca87e
Merge pull request #1293 from tschaub/event-element
...
Correctly handle layer add/remove in modify interaction.
2013-11-19 09:53:25 -08:00
Tim Schaub
3fbbdb78d5
Call getElement to get layer
2013-11-19 09:52:27 -07:00
ahocevar
936f86568e
Merge pull request #1284 from ahocevar/null-vertexfeature
...
Protect from null vertexFeature
2013-11-18 12:23:00 -08:00
ahocevar
aa5358203e
Protect from null vertexFeature
...
When dragging the map before a vertexFeature was created, it can
be null, so we cannot get its renderIntent.
2013-11-18 10:43:37 +01:00
Tim Schaub
b0362b8c0a
Only set interacting hint when modifying the view
2013-11-14 14:21:01 -07:00
Tim Schaub
a2b55b04e8
Rename layerFilter option to layers and accept array
2013-11-12 22:08:59 -07:00