Éric Lemoine
a24716ac8a
Merge pull request #3048 from elemoine/drag-features
...
Add a drag-features example
2014-12-19 08:49:11 +01:00
Éric Lemoine
14ea2bf413
Add ol.geom.Geometry#translate
2014-12-18 18:42:36 +01:00
Éric Lemoine
374f916b3a
Add ol.geom.flat.transform.translate
2014-12-18 18:42:36 +01:00
Éric Lemoine
4a311e66d7
Add ol.Map#getTargetElement
...
ol.Map#getTarget returns an element or a string, depending on what was passed to setTarget. This commit adds a getTargetElement method that always returns an Element.
2014-12-18 14:13:44 +01:00
Éric Lemoine
6b46d5c76a
Make shouldStopEvent default to the identity func
2014-12-18 14:13:44 +01:00
Éric Lemoine
1907de667a
Make ol.interaction.Pointer call handleMoveEvent
2014-12-18 14:13:44 +01:00
Éric Lemoine
711ec705b7
Add handle*Event options to ol.interaction.Pointer
...
More specifically: handleDownEvent, handleDragEvent, handleMoveEvent, and handleUpEvent.
2014-12-18 14:13:44 +01:00
Andreas Hocevar
fe0e17fdaf
Merge pull request #3010 from ahocevar/style-geometry
...
Allow styles to override feature geometries
2014-12-18 10:45:50 +01:00
Andreas Hocevar
784701641d
Add a getGeometry method
2014-12-18 10:28:21 +01:00
Andreas Hocevar
2bf191b5e3
Assert that feature.get('foo') returns a geometry
2014-12-18 10:08:35 +01:00
Andreas Hocevar
19015d2ca9
Create typedef
2014-12-18 10:07:57 +01:00
Frédéric Junod
e95a350203
Merge pull request #3056 from fredj/memory-extent
...
Reuse previousExtent_ local variable
2014-12-17 13:53:16 +01:00
Frederic Junod
7c6ccca572
Reuse previousExtent_ local variable
2014-12-17 10:36:31 +01:00
Frederic Junod
2ea685e18f
Add 'opt_' prefix to optional param
2014-12-17 10:29:49 +01:00
Bart van den Eijnden
13ce41a1d5
Merge pull request #3044 from gberaudo/api_image_style_constructor_properties
...
Mark Image style constructor properties `@api`
2014-12-17 10:25:20 +01:00
Andreas Hocevar
af30b88413
Allow geometryFunction to return undefined
2014-12-16 01:12:08 +01:00
Andreas Hocevar
6478454a93
Use getGeometryFunction() in immediate API
2014-12-15 23:22:26 +01:00
Andreas Hocevar
2d12531105
Allow styles to override feature geometries
...
With this change, application developers are able to define styles that
render a different geometry than the feature geometry. This can e.g. be
used to render an interior point of a polygon instead of the polygon, or
to render symbols like arrows along lines.
2014-12-15 23:20:53 +01:00
Bart van den Eijnden
a1c6662812
Do not quote featureNS and featureType in options
2014-12-15 20:28:13 +01:00
Bart van den Eijnden
babc33fcb0
Add getter functions for points and angle in ol.style.RegularShape
2014-12-15 17:04:43 +01:00
Andreas Hocevar
5eb1537f48
Need exportable constructor for constructor options in olx
...
When a constructor options object is created in the olx namespace,
the constructor that uses it must be exportable as well.
2014-12-15 16:15:30 +01:00
Guillaume Beraudo
ae998a7585
Mark Image style constructor properties @api
2014-12-15 14:41:35 +01:00
Éric Lemoine
86561e5ef2
Merge pull request #3032 from elemoine/custom-components
...
Extension points for custom controls and interactions
2014-12-15 13:41:56 +01:00
Andreas Hocevar
e0f574bd25
Merge pull request #3033 from ahocevar/select-return
...
Allow custom mousemove conditions for Select interaction
2014-12-15 13:26:40 +01:00
Frédéric Junod
f5722bbbf9
Merge pull request #3040 from fredj/memory
...
Transform the coordinates in place
2014-12-15 11:32:41 +01:00
Andreas Hocevar
9b0b1543e0
Allow custom mousemove conditions
...
When configuring a Select interaction with a custom condition that
includes mousemove, panning the map will not work any more. This is
because the return value of handleMapBrowserEvent is determined by
checking for a default condition function. By checking for the
underlying event type instead, we gain flexibility with custom condition
functions.
2014-12-15 11:28:45 +01:00
Antoine Abt
aafe698285
Merge pull request #3036 from tonio/modify_stride
...
Respect geometry stride in modify interaction
2014-12-15 09:46:56 +01:00
Frederic Junod
c167b2b49d
Transform the coordinates in place
2014-12-15 09:30:37 +01:00
Éric Lemoine
a9f3367310
Rename handleMapPostrender to render (overlay)
2014-12-12 18:30:43 +01:00
Éric Lemoine
d07185e8f2
Add an "handleEvent" interaction option
2014-12-12 18:30:31 +01:00
Éric Lemoine
df170859cc
Add a "render" control option
2014-12-12 18:30:02 +01:00
Bart van den Eijnden
38dca7792c
Implement rotation for ol.style.RegularShape
2014-12-12 15:19:31 +01:00
Andreas Hocevar
2c9fab22c8
Merge pull request #3015 from klokantech/utfgrid
...
UTFGrid Support
2014-12-12 12:37:37 +01:00
Petr Sloup
65583a8b77
preemptive is now true by default + improved documentation
2014-12-12 12:19:20 +01:00
Petr Sloup
7bcd925cdb
Minor code style fix
2014-12-12 11:55:55 +01:00
Petr Sloup
82a30b4cd5
Modified the sync/async behavior logic of the forDataAtCoordinate* methods
2014-12-12 11:47:35 +01:00
Antoine Abt
e7db23761c
Respect geometry stride in modify interaction
2014-12-12 11:22:15 +01:00
Frederic Junod
1238ab0df0
Remove ol.Object.capitalize and use goog.string.capitalize
2014-12-09 11:55:27 +01:00
Frederic Junod
f8b59dbd53
Use goog.array.extend instead of ol.array.safeExtend
...
The upstream implementation now supports large arrays.
See https://github.com/google/closure-library/pull/356
2014-12-09 11:55:27 +01:00
Frederic Junod
aaf689bbec
Uppercase ol.format.WFS.SCHEMA_LOCATION const
2014-12-09 09:19:15 +01:00
Frederic Junod
7922c08fe0
Uppercase ol.format.WFS.XMLNS const
2014-12-09 09:18:12 +01:00
Frederic Junod
045109aaab
Uppercase ol.format.WFS.FEATURE_PREFIX const
2014-12-09 09:16:41 +01:00
Frederic Junod
de058c7889
Remove unneeded type cast
2014-12-09 09:15:00 +01:00
Frederic Junod
0c7e9a823c
Remove loader function return type
2014-12-08 14:56:25 +01:00
Éric Lemoine
bcd983723f
Merge pull request #3013 from gberaudo/performance_vector_source_clear
...
Improve vector source clear() performance
2014-12-08 14:05:24 +01:00
Bart van den Eijnden
b7d0e06f05
Merge pull request #3017 from bartvde/format-write-string-example
...
Use writeFeatures instead of writeFeaturesNode in GPX and KML example (r=@elemoine)
2014-12-07 18:14:49 +01:00
Bart van den Eijnden
0fef608683
Use writeFeatures instead of writeFeaturesNode in GPX and KML example
2014-12-07 18:04:35 +01:00
Petr Sloup
d28ffc4808
Use null instead of undefined in the callback
2014-12-06 15:42:40 +01:00
Petr Sloup
b03b762500
More properties made private
2014-12-06 15:26:49 +01:00
Petr Sloup
250a1e4da3
Various code style fixes
2014-12-06 14:13:22 +01:00