Éric Lemoine
a898b9588e
Handle click on zoom slider
2013-11-17 00:05:16 +01:00
Éric Lemoine
9ff7470f65
Change ol.control.ZoomSlider#amountDragged_ signature
2013-11-17 00:05:15 +01:00
Éric Lemoine
14f5e5aedc
Do not pretend the zoom slider supports touch
2013-11-17 00:05:15 +01:00
Éric Lemoine
559cad4cf3
Simplify zoom slider code
2013-11-16 23:29:22 +01:00
Éric Lemoine
16b0e73666
Better use of good.dom.createDom in zoom slider
2013-11-16 23:22:41 +01:00
Paul Spencer
bada596b45
Add default stability level to docs of exported things.
2013-10-24 18:20:24 -04:00
Tim Schaub
8ca3f13bd2
Instead of providing animation functions, provide the namespace
...
This follows the convention in the Closure Library of providing either namespace objects (where the property starts with a lowercase letter), constructors (where the property starts with an uppercase letter), or enums (all uppercase properties, only one instance of this in the closure library).
2013-09-04 13:55:36 -06:00
Tim Schaub
dc76b81780
Rename addPreRenderFunction to beforeRender and remove the plural
2013-09-03 10:57:31 -06:00
Tim Schaub
6d9d5ecb4b
Update ZoomSlider example in docs
2013-08-31 07:29:44 -06:00
Tim Schaub
b479909e25
Remove map from control options
2013-08-30 14:59:21 -06:00
Éric Lemoine
77adbdfa7a
Use per-animation function modules
...
Currently the animation functions share the same module, namely ol.animation. We do differently for ol.control.defaults and ol.interaction.defaults, with ol.control.defaults and ol.interaction.defaults module. This commit replaces the ol.animation module by four modules, one for each animation function.
This makes things more consistent, and will make it possible to use the @exportFunction annotation for the exporting of the animation functions.
2013-08-19 14:25:38 +02:00
Éric Lemoine
44a9c181aa
handleMapPostrender may get a null frameState
2013-07-09 10:06:01 +02:00
Éric Lemoine
ccf6aa10ac
Zoomslider cannot be added to a map with no target
...
The zoom slider control's initSlider_ function requires that the control's element is inserted in the document. So if initSlider_ is called before the map have a target then the slider isn't correctly initialized. This commit fixes that by defering the slider initialization until the first handleMapPostrender call.
2013-07-09 10:05:15 +02:00
Bart van den Eijnden
8dc97790bc
Add more content for the API doc
...
Involves additions to (there will be subsequent pull requests for other
classes):
- ol.Attribution
- ol.Collection
- ol.Expression
- ol.Feature
- ol.Geolocation
- ol.Map
- ol.Object
- ol.Overlay
- ol.Projection
- ol.View2D
- ol.control.Attribution
- ol.control.Control
- ol.control.FullScreen
- ol.control.Logo
- ol.control.MousePosition
- ol.control.ScaleLine
- ol.control.Zoom
- ol.control.ZoomSlider
- ol.dom.Input
- ol.filter.Filter
- ol.filter.Geometry
- ol.filter.Logical
2013-06-11 20:56:04 +02:00
Tom Payne
b698b1736f
Add className option to ol.control.ZoomSlider
2013-05-07 16:36:25 +02:00
Tom Payne
9c59116dd1
Make zoom slider control options optional
2013-05-07 16:31:39 +02:00
Tom Payne
ab9fc9cc71
Inline simple function that is only called once
2013-05-07 16:28:22 +02:00
Tom Payne
43cfc2a4cd
Initialize all properties in constructor in controls
2013-04-18 21:01:58 +02:00
Éric Lemoine
6f34595312
ZoomSlider uses non-existing View2D functions
2013-04-17 10:53:23 +02:00
Éric Lemoine
fb5ca531d0
Do not assume map.getView returns an ol.View2D
2013-04-08 12:55:00 +02:00
Éric Lemoine
8c9153ffca
ZoomSlider animates to final resolution
2013-04-08 12:51:29 +02:00
Éric Lemoine
516f21eb17
Make ZoomSlider use View2D value/resolution funcs
2013-04-08 12:51:14 +02:00
Éric Lemoine
6163f05b2b
ZoomSlider setMap deals with undefined resolution
2013-04-08 12:50:12 +02:00
Tom Payne
ea22f0f8cc
Be more consistent with control options
2013-04-06 20:44:23 +02:00
Tom Payne
4be8c991f7
Add missing Closure Library requires
2013-04-06 14:28:12 +02:00
Tom Payne
06bcab8374
Move postrender event listening into base class
2013-04-05 20:59:16 +02:00
Tom Payne
da1e5aadd3
Factor out css.js and fix requires
2013-04-05 20:59:16 +02:00
Marc Jansen
250e17561a
Use CSS class constant in zoomslider.
2013-03-15 10:02:12 +01:00
Bruno Binet
81089b2199
Remove unused goog.require directives
2013-03-14 12:39:51 +01:00
Marc Jansen
e872a49beb
Use getContentBoxSize() for slider initialisation.
...
Initial note to revisit this came from @twpayne; thanks.
2013-03-14 09:37:36 +01:00
Marc Jansen
94d7379ba3
Correct API documentation.
2013-03-14 09:37:35 +01:00
Marc Jansen
220c7bd6f8
More specific argument type of callback method.
2013-03-14 09:37:35 +01:00
Marc Jansen
bc07722816
Unregister previous event listeners, if any.
...
Thanks for spotting this, @twpayne.
2013-03-14 09:37:35 +01:00
Marc Jansen
d77a8b0a1d
Add an assertion to the dragchange handler.
...
This ensures that the result of resolution calculation stays inside of the
allowed bounds.
2013-03-14 09:37:35 +01:00
Marc Jansen
ce67625b20
Use OSM resolutions as fallback resolutions.
...
Hat tip to @twpayne for suggesting this change in the defaults.
2013-03-14 09:37:35 +01:00
Marc Jansen
8bf71ebb3a
Add a zoomslider control.
2013-03-14 09:37:35 +01:00