Éric Lemoine
2dfe36b588
Map target may be undefined
2013-04-23 10:42:18 +02:00
Tom Payne
8264343e54
Cache array length in ol.control.Attribution
2013-04-22 10:05:21 +02:00
Tom Payne
43cfc2a4cd
Initialize all properties in constructor in controls
2013-04-18 21:01:58 +02:00
Éric Lemoine
5d86674b32
Merge pull request #553 from elemoine/fix-zoomslider
...
ZoomSlider example is broken
2013-04-17 11:41:36 -07:00
Éric Lemoine
6f34595312
ZoomSlider uses non-existing View2D functions
2013-04-17 10:53:23 +02:00
Tom Payne
3867d0cd28
Give defaults.{js,exports} unique filenames
2013-04-16 19:18:14 +02:00
Frederic Junod
7b0e036b83
Hide the control if the Fullscreen API is not supported
2013-04-11 18:25:31 +02:00
Frederic Junod
8206cf111f
Fix full screen button state
2013-04-11 18:25:31 +02:00
Tim Schaub
93041becbe
Toggle css class and use css content for anchor
2013-04-11 18:25:31 +02:00
Tom Payne
cef6fe4930
Add full screen control
2013-04-11 18:25:31 +02:00
Éric Lemoine
2d5381ae41
Move zoom from View2D to Interaction
2013-04-10 08:52:07 +02:00
Tom Payne
e132943eef
Use goog.asserts.fail
2013-04-08 19:14:16 +02:00
Tom Payne
24cfd8a9be
Merge pull request #496 from twpayne/check-whitespace
...
Check whitespace
2013-04-08 06:06:15 -07:00
Éric Lemoine
879ea4f488
Merge pull request #473 from elemoine/value-resolution
...
Exponential scaling to ZoomSlider
2013-04-08 05:22:38 -07:00
Tom Payne
a4763e0b69
Fix whitespace errors in exports
2013-04-08 13:25:01 +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
ahocevar
949a4a59fa
Shuffling jsdoc files, as suggested by @elemoine
2013-04-08 11:16:08 +02:00
ahocevar
c832a47575
Documentation for exported object literals
...
This adds the infrastructure that we need for documenting
exported object literals. This is best done by using *.jsdoc
files, which are parsed by JSDoc but not the Closure Compiler.
In addition to adding the documentation of the objects literal
properties, the respective namespaces must also be annotated.
Restricting the API docs to the exported API will be added as a
separate pull request.
2013-04-07 18:00:10 +02:00
Tom Payne
f724e40179
Add ol.control.Logo exports
2013-04-07 12:53:52 +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
25eb18d2c8
Handle unlistening in base class
2013-04-05 20:59:16 +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
Tom Payne
6cd7acfb8e
Merge pull request #480 from twpayne/logo-control
...
Add logo control
2013-04-05 10:47:49 -07:00
Tom Payne
cfe5234104
Add logo control by default
2013-04-05 18:38:52 +02:00
Tom Payne
dfed88a8c2
Add ol.control.Logo
2013-04-05 18:38:52 +02:00
Tom Payne
78abd1b103
Minor attribution control clean-ups
2013-04-05 18:19:20 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Marc Jansen
523506ef86
Rename *.exports to match their *.js counterparts.
2013-04-04 07:40: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
Marc Jansen
5e5e4d110a
Use constant for CSS class 'ol-unselectable'.
2013-03-12 10:34:49 +01:00
Tom Payne
21d34f1cc8
Rename projection functions for a friendlier API
...
The following functions are renamed:
getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform
With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00
Tom Payne
eaa17758bd
Allow strings to be used wherever projections are needed
2013-03-07 13:29:40 +01:00
Tom Payne
afcbec469a
Rename ol.projection.getFromCode to ol.projection.get
2013-03-07 13:29:39 +01:00
Tom Payne
09b75f8044
Don't include scale line in default controls
2013-03-06 20:46:52 +01:00
Tom Payne
363cb87e1a
Use an array to specify additional controls
2013-03-06 13:19:34 +01:00
Tom Payne
8ae009d401
Add ol.control.defaults
2013-03-06 12:36:48 +01:00
Tom Payne
1ae20641ef
Make mouse position control options argument optional
2013-03-05 18:58:29 +01:00