Commit Graph

492 Commits

Author SHA1 Message Date
Frederic Junod
ffe1ad5fe3 Remove ol.DragBoxEvent, ol.DrawEvent, ol.ObjectEvent, ol.source.VectorEvent symbols
These objects will never be constructed by the application
2014-01-22 17:20:42 +01:00
oterral
cbe1650c79 Finish polygon drawing on last point 2014-01-22 09:55:55 +01:00
Éric Lemoine
9d6d0e03c2 Configure draw interaction with a vector source 2014-01-20 16:09:48 +01:00
Tom Payne
7d5b1265b7 Add styleFunction option to ol.interaction.DragAndDrop 2014-01-16 22:44:19 +01:00
oterral
7f12ac90da Add draw interaction events 2014-01-14 17:38:05 +01:00
Frederic Junod
79c8f17e83 Add encoding param to goog.fs.FileReader.readAsText
This is a workaround for https://code.google.com/p/closure-library/issues/detail?id=524
2014-01-13 13:51:09 +01:00
Frederic Junod
f68631d61c Use goog.asserts.assertInstanceof to check the getSource return type
See 1499af397d
2014-01-13 10:29:29 +01:00
Frederic Junod
f5ce88789e Use goog.isNull in if statements 2014-01-13 10:28:42 +01:00
Frederic Junod
b53ddf5b42 Create 'type' annotation for 'const' variables 2014-01-13 08:53:36 +01:00
oterral
f27e42068f Manage multi geometries modes 2014-01-10 14:01:35 +01:00
oterral
235af49f0b Add goog.provide('ol.geom.GeometryType') 2014-01-10 14:00:30 +01:00
Tom Payne
e83e79626a Only use color arrays in the library 2014-01-09 21:55:17 +01:00
Tom Payne
3b3b5013ad Merge remote-tracking branch 'openlayers/master' into vector-api 2014-01-09 15:33:58 +01:00
Frederic Junod
9f79d33486 Create 'type' annotation for 'const' variables
From https://developers.google.com/closure/compiler/docs/js-for-compiler:
  "The type declaration and additional comment are optional. If you
  provide a type declaration, put the declaration on a separate line."
2014-01-09 09:53:20 +01:00
oterral
34260399e7 Add draw features interaction 2014-01-08 16:40:14 +01:00
Antoine Abt
6dd504dcb2 Animate DragZoom 2014-01-03 16:38:25 +01:00
Antoine Abt
3461b026b6 Do not draw a rotated box, in dragbox/dragzoom
Use pixels to draw a straight box, perserving rotation while zooming
2014-01-03 11:55:28 +01:00
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