Bart van den Eijnden
47ce127a10
Add assert messages for all assertions up until ol.renderer.vector.
2015-03-30 22:55:23 +02:00
tsauerwein
eb7dde6d0f
Fix class name of full-screen control
2015-03-24 17:07:55 +01:00
Andreas Hocevar
d9c04cd925
Support wrapX for attributions
2015-03-23 16:55:50 +01:00
Andreas Hocevar
2e3d0d57d5
Handle all non-degree units in ol.control.ScaleLine
2015-03-03 21:06:12 +01:00
Frederic Junod
65c2f7de5f
Remove unused goog.require
2015-02-05 10:56:44 +01:00
Frederic Junod
0f65d7778a
Remove unnecessary newlines
2015-02-02 09:11:35 +01:00
Tobias Sauerwein
aa67078d74
Merge pull request #3135 from tsauerwein/control-label
...
Make changing the label of ZoomToExtent/FullScreen control consistent
2015-01-29 15:03:53 +01:00
Éric Lemoine
4b3726fe71
Merge pull request #3139 from elemoine/control-setmap
...
Add ol.control.Control#setTarget
2015-01-16 11:16:30 +01:00
tsauerwein
fbb2883f6e
Add Node to control label type
2015-01-16 10:14:39 +01:00
Éric Lemoine
79312c2083
Add ol.control.Control#setTarget
...
This commit adds a setTarget method to ol.control.Control. This function can be used in cases where the target cannot be set at control construction time. For example, with Angular, it makes sense to create the control instance in an Angular controller, and have a "control" directive insert the control into the DOM.
2015-01-16 09:27:30 +01:00
tsauerwein
7679069520
Add label option to FullScreen control
2015-01-16 09:05:51 +01:00
tsauerwein
0d26a9aa87
Add label option to ZoomToExtent
2015-01-15 09:58:05 +01:00
sirtet
66fea4dec9
Add a space between scale -value and -unit
...
For improved readability. Issue #3116
2015-01-13 16:16:20 +01:00
Éric Lemoine
df170859cc
Add a "render" control option
2014-12-12 18:30:02 +01:00
Frederic Junod
26ce8032eb
Use ol.Map#getEventPixel in mouse position control
2014-12-01 10:56:34 +01:00
Frederic Junod
4c8d8c21dc
Remove 'pointerup' listener in ol.control.OverviewMap
2014-11-04 09:21:41 +01:00
Frederic Junod
e32be091a4
Remove 'pointerup' listener in ol.control.Attribution
2014-11-04 09:21:41 +01:00
Frederic Junod
cc442d964b
Remove 'pointerup' listener in ol.control.ZoomToExtent
2014-11-04 09:21:40 +01:00
Frederic Junod
e55caef0d2
Remove 'pointerup' listener in ol.control.Rotate
2014-11-04 09:21:40 +01:00
Frederic Junod
c7a3fcd426
Remove 'pointerup' listener in ol.control.Zoom
2014-11-04 09:21:40 +01:00
Frederic Junod
224d86802e
Remove 'pointerup' listener in ol.control.FullScreen
2014-11-04 09:21:40 +01:00
Frederic Junod
6ca1640659
Don't pass an object to goog.dom.createDom for the class name
...
If the second argument to goog.dom.createDom is a string, then this is
the className of the new element.
2014-10-30 16:53:42 +01:00
Frédéric Junod
2d53eb7667
Merge pull request #2781 from fredj/button-title
...
Use a standard title attribute for the control buttons
2014-10-30 16:52:09 +01:00
Frédéric Junod
ffeda3f25a
Merge pull request #2852 from fredj/issue-2845
...
Add missing space between class names
2014-10-30 12:17:54 +01:00
Frederic Junod
9ebde652dc
Use a standard title attribute for the control buttons
2014-10-28 15:22:46 +01:00
Tim Schaub
d712b2ba54
Allow source to be set after layer construction
2014-10-25 15:34:47 -06:00
Frederic Junod
d8d0f87ad6
Add missing space between class names
...
Fixes #2845
2014-10-18 12:06:24 +02:00
Tim Schaub
d2bea2692c
Renaming for clarity
2014-10-13 10:29:33 -06:00
Tim Schaub
c1afd513b7
Account for the thumb size when handling clicks
2014-10-13 10:13:50 -06:00
Tim Schaub
9dd5b611c7
Give container ol-control class and tidy css
2014-10-13 09:22:21 -06:00
Tim Schaub
b8369ad3f0
Allow thumb to range over the entire container size
2014-10-13 08:40:51 -06:00
Tim Schaub
6f20afeba9
Set interaction hint while dragging
2014-10-12 19:16:49 -06:00
Tim Schaub
d45283c55e
Animate from the current resolution
2014-10-12 18:59:58 -06:00
Tim Schaub
164407bc83
(x - 1) * -1 == 1 - x
2014-10-12 18:21:27 -06:00
Alexandre Dubé
ddc6138dbf
Add OverviewMap control
2014-10-09 10:10:14 -04:00
Frederic Junod
be6c6ee93c
Remove unused ResetRotation name attribute
2014-10-07 12:25:41 +02:00
Frederic Junod
0cf83c2047
Add missing 'button' type attribute to html button
2014-10-07 12:25:01 +02:00
Frédéric Junod
7dcb54fb58
Merge pull request #2616 from fredj/attributions-target
...
Target for attribution links differs between maps
2014-09-23 14:46:11 +02:00
Éric Lemoine
f7e81f84db
Zoom control should not act on a null view
2014-09-17 13:32:45 +02:00
Éric Lemoine
79932ee2f2
Rotate control should not act on a null view
2014-09-17 13:32:31 +02:00
Éric Lemoine
cb8b896230
Make ol.Map#setView do not accept undefined
...
With this change map.setView(null) is permitted, but map.setView(undefined) is not. map.getView now always returns a defined value, which may be null is setView was called with null.
2014-09-17 11:47:24 +02:00
Frederic Junod
0938ab654a
Remove target attribute on attributions link
2014-09-17 11:26:15 +02:00
Frederic Junod
e136b4b4db
Change the control visibility by using css class
...
Instead of changing the button opacity in the control, only add/remove
a css class (ol-hidden). This let the developer easily change the
behavior by updating the css.
2014-09-16 11:00:44 +02:00
Frederic Junod
2b395d3160
Add missing goog.require
2014-09-09 15:03:18 +02:00
Frederic Junod
58e3561ba5
Take the 'us' and 'nautical' units into account
...
When converting pointResolution from degrees to meters
2014-08-26 10:36:55 +02:00
Éric Lemoine
55db958290
Merge pull request #2564 from elemoine/apistable4
...
Add @api stable annotations for the ol.control namespace
2014-08-21 11:02:56 +02:00
Frederic Junod
7f086e138a
Remove unnecessary local variable
2014-08-20 11:17:44 +02:00
Frederic Junod
27ae50e673
Only update rotate control element when it's needed
...
To avoid a lot of 'Recalculate style' events by the browser.
2014-08-20 10:58:18 +02:00
Frederic Junod
7c14399133
Add missing jsdoc tag
2014-08-20 10:58:18 +02:00
Frederic Junod
113888120f
Use goog.math.toDegrees
2014-08-20 10:58:17 +02:00