Tim Schaub
109ef38d69
Exporting setMap so it is documented for custom controls
2013-08-31 16:40:46 -06:00
Éric Lemoine
96ef1ed3bd
Remove handleMapPostrender extension point
2013-08-31 23:25:08 +02:00
Tim Schaub
8844310bf4
Call setMap instead of passing map to control
2013-08-31 14:45:03 -06:00
Tim Schaub
3e1de0b1ad
Call addControl instead of passing map to control
2013-08-31 14:44:29 -06:00
Tim Schaub
6d9d5ecb4b
Update ZoomSlider example in docs
2013-08-31 07:29:44 -06:00
Tim Schaub
96dfe5656d
Merge pull request #950 from pagameba/doc-animations
...
Improve documentation for animation-related stuff.
2013-08-30 14:49:07 -07:00
Tim Schaub
b17feb4580
Add extra requires (see #958 )
2013-08-30 15:20:21 -06:00
ahocevar
d8bc769758
Do not delete from oldFeatureMap
2013-08-30 23:18:59 +02:00
ahocevar
cbf7f91cfb
instanceof check to avoid ducktyping
2013-08-30 23:18:17 +02:00
Tim Schaub
4679ba77c4
Don't export ol.control.Control.prototype.setMap
2013-08-30 14:59:47 -06:00
Tim Schaub
b479909e25
Remove map from control options
2013-08-30 14:59:21 -06:00
Tim Schaub
33f4d1e0ee
Add missing provide and require for ol.geom
2013-08-30 13:32:04 -06:00
Tim Schaub
58fe110419
Rename ol.geom.VertexArray to ol.CoordinateArray
2013-08-30 13:30:53 -06:00
Tim Schaub
7165d414c7
Use ol.Coordinate instead of ol.geom.Vertex
2013-08-30 13:30:25 -06:00
Tim Schaub
6f98a75fb8
Limit feature exports
2013-08-30 13:14:17 -06:00
Paul Spencer
bfa1fbc2cd
remove trailing whitespace to make the linter happy.
2013-08-30 13:31:10 -04:00
Paul Spencer
8c4c83b207
Improve documentation for animation-related stuff
...
The animation-related code is missing sufficient detail to make it
usable without digging in to the code. This adds some additional
detail to the ol.animation namespace, the related options, and makes
note of the existance of ol.animation in the documentation of
ol.Map.addPreRenderFunction(s).
2013-08-30 11:32:47 -04:00
Éric Lemoine
729039ba04
Adapt examples to new signature for ol.Attribution
2013-08-30 16:50:36 +02:00
Éric Lemoine
38ab64c3c3
Adapt sources to new signature for ol.Attribution
2013-08-30 16:50:36 +02:00
Éric Lemoine
818894bb56
ol.Attribution is a single-arg constructor
2013-08-30 16:50:36 +02:00
ahocevar
9dfbfab648
Follow-up improvements for #897
...
* Interaction is no goog.Disposable any more.
* Permanent cleanup during selection instead of disposeInternal.
* Moved selectionLayers creation outside feature loop.
* Maintain selectedFeatures and unselectedFeatures only for
layers that have a setRenderIntent method.
2013-08-30 16:26:49 +02:00
ahocevar
29317c3316
Merge pull request #897 from ahocevar/select
...
Select control
2013-08-30 06:25:14 -07:00
ahocevar
643eb5c4cc
Better initial extent
2013-08-30 14:46:32 +02:00
ahocevar
9dae49dc18
Symbolizer defaults for the select renderIntent
2013-08-30 13:47:43 +02:00
ahocevar
83720975f8
More specific INTENTCHANGE instead of SYMBOLIZER event
2013-08-30 12:10:55 +02:00
ahocevar
e2c4fec253
Let's at least be disposable, so we can clean up after ourselves
2013-08-30 12:00:06 +02:00
ahocevar
2a4aef0b58
THIS_IDENTIFIER no longer needed
2013-08-30 11:44:52 +02:00
ahocevar
6bb23cdda5
No longer inheriting from EventTarget
2013-08-30 11:43:35 +02:00
Éric Lemoine
1ee12e696e
Merge pull request #942 from elemoine/expr
...
Move and rename exports file for ol.expr
2013-08-29 13:01:47 -07:00
Éric Lemoine
ff30a89a49
Merge pull request #943 from elemoine/proj
...
Move exports file for proj
2013-08-29 13:00:46 -07:00
Éric Lemoine
2f5742bc1b
Merge pull request #941 from elemoine/feature
...
ol.Feature.prototype.get need not be exported
2013-08-29 13:00:11 -07:00
ahocevar
8a180e63b2
Filter layer by id
2013-08-29 16:50:55 +02:00
ahocevar
43c67ba09f
Do not dispatch selection events for now
2013-08-29 16:50:55 +02:00
ahocevar
95cf0e1264
Less closures
2013-08-29 16:50:55 +02:00
ahocevar
0c1f2328f9
Do not implement a specific clone method
...
What we need here is a mix of deep and shallow cloning, and we
do not want to do this in a generic ol.Feature#clone() method.
2013-08-29 16:50:55 +02:00
ahocevar
2394b39f6f
Use select as keyword
2013-08-29 16:50:54 +02:00
ahocevar
0fbf07fef1
Using a renderIntent lib function instead of this identifier
...
A 'this' identifier is quite useless with compressed JavaScript,
and in fact it turned out to fail in advanced mode when trying
to access a feature's renderIntent property with it. The added
renderIntent lib function as a Call expression does the job
well.
2013-08-29 16:50:54 +02:00
ahocevar
526dbebadc
Re-adding @requires that got lost during rebase.
2013-08-29 16:50:54 +02:00
ahocevar
c47634b2ee
Renaming condition to clickOnly, and fixing docs
2013-08-29 16:50:54 +02:00
Frederic Junod
89bdd3bc2c
Use a ol.interaction.condition in ol.interaction.Select
2013-08-29 16:50:54 +02:00
ahocevar
bb93a86528
Do not export 'dispose' for now
2013-08-29 16:50:54 +02:00
ahocevar
e5b095bfdf
Simplifying setRenderIntent API for bulk changing all features
2013-08-29 16:50:53 +02:00
ahocevar
100b85a7b0
Converting control to an interaction
...
To dispatch events, the interaction base class now inherits from
goog.events.EventTarget.
2013-08-29 16:50:53 +02:00
ahocevar
c6e61e2d23
Dynamic layers and lazy selection layer creation
...
With this change, the user provides a filter function instead of
an array of layers. Selection layers are created lazily, and
addition/removal of layers is not handled by the control to give
the user more options, as suggested by @elemoine.
2013-08-29 16:50:53 +02:00
ahocevar
a417b75c1f
Simplifying layer mapping
...
By making selectionLayer an object keyed by source layer UIDs,
we save some indexOf lookups.
2013-08-29 16:50:53 +02:00
ahocevar
d5c0fdd557
Removing addressed TODOs
2013-08-29 16:50:53 +02:00
ahocevar
0391a028c5
Adding layer visibility/addition/removal handling
...
The Select control creates a selection layer for each layer it
is configured with. When a configured layer is removed from the
map, the selection layer will be made invisible. For configured
layers on the map, the 'visible' property of the selection layer
is bound to the configured layer.
2013-08-29 16:50:53 +02:00
ahocevar
56c228d009
Removing option for temporary layer
...
Instead, adding setter and getter for a private temp_ property,
as suggested by @elemoine.
2013-08-29 16:50:52 +02:00
ahocevar
3a50a754aa
Implementing renderIntent handling
2013-08-29 16:50:52 +02:00
ahocevar
4f2d37b6a3
New ThisIdentifier expression
...
This allows member expressions to use the 'this' keyword.
2013-08-29 16:50:52 +02:00