-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
- tilejsonsource.js, line 33
+
+
+
+
+
+
+
+
diff --git a/wmts-hidpi/apidoc/global.html b/wmts-hidpi/apidoc/global.html new file mode 100644 index 0000000000..3ae819fc36 --- /dev/null +++ b/wmts-hidpi/apidoc/global.html @@ -0,0 +1,129 @@ + + +
+ +See the class list to the right and especially take a look at ol.Map and ol.layer.Layer because those are the central objects.
+In general every use of OpenLayers starts by initializing a map, then adding the required layers. Controls and interactions can be added to change the behavior of the map.
+A ol.proj.Projection defines which point on earth is represented by a pair of coordinates. +Coordinates within OpenLayers can be used in various projections where some common projections are always supported, +others can be used via Proj4js.
+A map in OpenLayers is essentially a staple of layers that is viewed from the top. Layers are responsible for retrieving data and displaying it.
+See CONTRIBUTING.md for instructions +on building and testing OpenLayers. The file does also describe how to commit your changes to OpenLayers.
Create a new attribution to be associated with a layer source.
+Example:
+source: new ol.source.OSM({
+ attributions: [
+ new ol.Attribution({
+ html: 'All maps © ' +
+ '<a href="http://www.opencyclemap.org/">OpenCycleMap</a>'
+ }),
+ ol.source.OSM.DATA_ATTRIBUTION
+],
+..
+ | Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.AttributionOptions + + + + | + + + + + +Attribution options. |
+
The ratio between physical pixels and device-independent pixels
+(dips) on the device (window.devicePixelRatio).
True if browser supports Canvas.
+Indicates if DeviceOrientation is supported in the user's browser.
+Is HTML5 geolocation supported in the current browser?
+True if browser supports touch events.
+True if browser supports WebGL.
+A mutable MVC Array.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
array |
+
+
+ + + +Array + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Array. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
length |
+ + + +number + + + + | +no | +change:length |
+ the length of the array | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Remove all elements from the collection.
+Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
arr |
+
+
+ + + +Array + + + + | + + + + + +Array. |
+
This collection.
+Iterate over each element, calling the provided callback.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The function to call + for every element. This function takes 3 arguments (the element, the + index and the array). The return value is ignored. |
+
this |
+
+
+ + + +S + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get a reference to the underlying Array object. Warning: if the array +is mutated, no events will be dispatched by the collection, and the +collection's "length" property won't be in sync with the actual length +of the array.
+Array.
+Get the element at the provided index.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
Element.
+Get the length of this collection.
+Length.
+Get an object of all property names and values.
+Object.
+Insert an element at the provided index.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
elem |
+
+
+ + + +* + + + + | + + + + + +Element. |
+
Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Remove the last element of the collection.
+Element.
+Insert the provided element at the end of the collection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
elem |
+
+
+ + + +* + + + + | + + + + + +Element. |
+
Length.
+Removes the first occurence of elem from the collection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
elem |
+
+
+ + + +* + + + + | + + + + + +Element. |
+
The removed element or undefined if elem was not found.
+Remove the element at the provided index.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
Value.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Set the element at the provided index.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
elem |
+
+
+ + + +* + + + + | + + + + + +Element. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
The element that is added to or removed from the collection.
+Triggered when an item is added to the collection.
+Triggered when an item is removed from the collection.
+The ol.DeviceOrientation class provides access to DeviceOrientation +information and events, see the HTML 5 DeviceOrientation Specification for more details.
+Many new computers, and especially mobile phones +and tablets, provide hardware support for device orientation. Web +developers targetting mobile devices will be especially interested in this +class.
+Device orientation data are relative to a common starting point. For mobile +devices, the starting point is to lay your phone face up on a table with the +top of the phone pointing north. This represents the zero state. All +angles are then relative to this state. For computers, it is the same except +the screen is open at 90 degrees.
+Device orientation is reported as three angles - alpha, beta, and
+gamma - relative to the starting position along the three planar axes X, Y
+and Z. The X axis runs from the left edge to the right edge through the
+middle of the device. Similarly, the Y axis runs from the bottom to the top
+of the device through the middle. The Z axis runs from the back to the front
+through the middle. In the starting position, the X axis points to the
+right, the Y axis points away from you and the Z axis points straight up
+from the device lying flat.
The three angles representing the device orientation are relative to the
+three axes. alpha indicates how much the device has been rotated around the
+Z axis, which is commonly interpreted as the compass heading (see note
+below). beta indicates how much the device has been rotated around the X
+axis, or how much it is tilted from front to back. gamma indicates how
+much the device has been rotated around the Y axis, or how much it is tilted
+from left to right.
For most browsers, the alpha value returns the compass heading so if the
+device points north, it will be 0. With Safari on iOS, the 0 value of
+alpha is calculated from when device orientation was first requested.
+ol.DeviceOrientation provides the heading property which normalizes this
+behavior across all browsers for you.
It is important to note that the HTML 5 DeviceOrientation specification
+indicates that alpha, beta and gamma are in degrees while the
+equivalent properties in ol.DeviceOrientation are in radians for consistency
+with all other uses of angles throughout OpenLayers.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.DeviceOrientationOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
alpha |
+ + + +number + + + + | +no | +change:alpha |
+ the euler angle in radians of the + device from the standard X axis | +
beta |
+ + + +number + + + + | +no | +change:beta |
+ the euler angle in radians of the + device from the planar Z axis | +
gamma |
+ + + +number + + + + | +no | +change:gamma |
+ the euler angle in radians of the + device from the planar X axis | +
heading |
+ + + +number + + + + | +no | +change:heading |
+ the euler angle in radians of the + device from the planar Y axis | +
tracking |
+ + + +boolean + + + + | +yes | +change:tracking |
+ the status of tracking changes to alpha, + beta and gamma. If true, changes are tracked and reported immediately. | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+The alpha value of the DeviceOrientation, +in radians.
+The beta value of the DeviceOrientation, +in radians.
+The gamma value of the DeviceOrientation, +in radians.
+The heading of the device relative to +north, in radians, normalizing for different browser behavior.
+Get an object of all property names and values.
+Object.
+Are we tracking the device's orientation?
+The current tracking state, true if tracking is on.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Enable or disable tracking of DeviceOrientation events.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
tracking |
+
+
+ + + +boolean + + + + | + + + + + +True to enable and false to disable tracking. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Object representing a dragbox event.
The coordinate of the drag event.
+Triggered upon drag box start.
+Triggered upon drag box end.
+The feature being drawn.
+Triggered upon feature draw end
+Triggered upon feature draw start
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
geometryOrValues |
+
+
+ + + +ol.geom.Geometry +| + +Object.<string, *>= + + + + | + + + + + +Values or geometry. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Geometry.
+Geometry property name.
+Id.
+Get an object of all property names and values.
+Object.
+User provided style.
+Style function.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
geometry |
+
+
+ + + +ol.geom.Geometry +| + +undefined + + + + | + + + + + +Geometry. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
name |
+
+
+ + + +string + + + + | + + + + + +Geometry property name. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
id |
+
+
+ + + +number +| + +string +| + +undefined + + + + | + + + + + +Id. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.FeatureStyleFunction + + + + | + + + + + +Feature style. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.FeatureOverlayOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Features collection.
+Get the style for features. This returns whatever was passed to the style
+option at construction or to the setStyle method.
Overlay style.
+Get the style function.
+Style function.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +ol.Collection + + + + | + + + + + +Features collection. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Set the style for features. This can be a single style object, an array +of styles, or a function that takes a feature and resolution and returns +an array of styles.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction + + + + | + + + + + +Overlay style. |
+
Helper class for providing HTML5 Geolocation capabilities. +The Geolocation API +is used to locate a user's position.
+Example:
+var geolocation = new ol.Geolocation();
+// take the projection to use from the map's view
+geolocation.bindTo('projection', map.getView());
+// listen to changes in position
+geolocation.on('change', function(evt) {
+ window.console.log(geolocation.getPosition());
+});
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.GeolocationOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
accuracy |
+ + + +number + + + + | +no | +change:accuracy |
+ the accuracy of the position + measurement in meters | +
accuracyGeometry |
+ + + +ol.geom.Geometry + + + + | +no | +change:accuracygeometry |
+ a + geometry of the position accuracy. | +
altitude |
+ + + +number + + + + | +no | +change:altitude |
+ the altitude of the position in + meters above mean sea level | +
altitudeAccuracy |
+ + + +number + + + + | +no | +change:altitudeaccuracy |
+ the accuracy of the + altitude measurement in meters | +
heading |
+ + + +number + + + + | +no | +change:heading |
+ the heading of the device in + radians from north | +
position |
+ + + +ol.Coordinate + + + + | +no | +change:position |
+ the current position of + the device reported in the current projection | +
projection |
+ + + +ol.proj.Projection + + + + | +no | +change:projection |
+ the projection to + report the position in | +
speed |
+ + + +number + + + + | +no | +change:speed |
+ the instantaneous speed of the + device in meters per second | +
tracking |
+ + + +number + + + + | +yes | +change:tracking |
+ track the device's position. | +
trackingOptions |
+ + + +GeolocationPositionOptions + + + + | +yes | +change:trackingoptions |
+ PositionOptions + as defined by the HTML5 Geolocation spec at + http://dev.w3.org/geo/api/spec-source.html | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the accuracy of the position in meters.
+Position accuracy in meters.
+Get a geometry of the position accuracy.
+Accuracy geometry.
+Get the altitude associated with the position.
+The altitude in meters above the mean sea level.
+Get the altitude accuracy of the position.
+Altitude accuracy in meters.
+Get the heading as radians clockwise from North.
+Heading.
+Get the position of the device.
+position.
+Get the projection associated with the position.
+projection.
+Get an object of all property names and values.
+Object.
+Get the speed in meters per second.
+Speed.
+Are we tracking the user's position?
+tracking.
+Get the tracking options.
+HTML 5 Gelocation +tracking options.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Set the projection to use for transforming the coordinates.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
projection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Projection. |
+
Enable/disable tracking.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
tracking |
+
+
+ + + +boolean + + + + | + + + + + +Enable or disable tracking. |
+
Set the tracking options.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +GeolocationPositionOptions + + + + | + + + + + +HTML 5 Geolocation +tracking options. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
decay |
+
+
+ + + +number + + + + | + + + + + +Rate of decay (must be negative). |
+
minVelocity |
+
+
+ + + +number + + + + | + + + + + +Minimum velocity (pixels/millisecond). |
+
delay |
+
+
+ + + +number + + + + | + + + + + +Delay to consider to calculate the kinetic + initial values (milliseconds). |
+
The map is the core component of OpenLayers. In its minimal configuration it +needs a view, one or more layers, and a target container:
+var map = new ol.Map({
+ view: new ol.View2D({
+ center: [0, 0],
+ zoom: 1
+ }),
+ layers: [
+ new ol.layer.Tile({
+ source: new ol.source.MapQuestOSM()
+ })
+ ],
+ target: 'map'
+});
+The above snippet creates a map with a MapQuest OSM layer on a 2D view and
+renders it to a DOM element with the id map.
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.MapOptions + + + + | + + + + + +Map options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
layergroup |
+ + + +ol.layer.LayerGroup + + + + | +yes | +change:layergroup |
+ a layer group containing + the layers in this map. | +
size |
+ + + +ol.Size + + + + | +yes | +change:size |
+ the size in pixels of the map in the DOM | +
target |
+ + + +string +| + +Element + + + + | +yes | +change:target |
+ the Element or id of the Element + that the map is rendered in. | +
view |
+ + + +ol.IView + + + + | +yes | +change:view |
+ the view that controls this map | +
Add the given control to the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
control |
+
+
+ + + +ol.control.Control + + + + | + + + + + +Control. |
+
Add the given interaction to the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
interaction |
+
+
+ + + +ol.interaction.Interaction + + + + | + + + + + +Interaction to add. |
+
Adds the given layer to the top of this map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
layer |
+
+
+ + + +ol.layer.Base + + + + | + + + + + +Layer. |
+
Add the given overlay to the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
overlay |
+
+
+ + + +ol.Overlay + + + + | + + + + + +Overlay. |
+
Add functions to be called before rendering. This can be used for attaching +animations before updating the map's view. The ol.animation +namespace provides several static methods for creating prerender functions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
var_args |
+
+
+ + + +ol.PreRenderFunction + + + + | + + + + + +Any number of pre-render functions. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
pixel |
+
+
+ + + +ol.Pixel + + + + | + + ++ + + + | + + + + +Pixel. |
+
callback |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Feature + callback. |
+
this |
+
+
+ + + +S + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Value to use as |
+
layerFilter |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Layer
+ filter function, only layers which are visible and for which this
+ function returns |
+
this2 |
+
+
+ + + +U + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Value to use as |
+
Callback result.
+Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Controls.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixel |
+
+
+ + + +ol.Pixel + + + + | + + + + + +Pixel. |
+
Coordinate.
+Returns the geographical coordinate for a browser event.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
event |
+
+
+ + + +Event + + + + | + + + + + +Event. |
+
Coordinate.
+Returns the map pixel position for a browser event.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
event |
+
+
+ + + +Event + + + + | + + + + + +Event. |
+
Pixel.
+Gets the collection of +ol.interaction.Interaction instances +associated with this map. Modifying this collection +changes the interactions associated with the map.
+Interactions are used for e.g. pan, zoom and rotate.
+Interactions.
+Get the layergroup associated with this map.
+LayerGroup.
+Get the collection of layers associated with this map.
+Layers.
+Overlays.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Pixel.
+Get an object of all property names and values.
+Object.
+Get the size of this map.
+Size.
+Get the target in which this map is rendered. +Note that this returns what is entered as an option or in setTarget: +if that was an element, it returns an element; if a string, it returns that.
+Target.
+Get the view associated with this map. This can be a 2D or 3D view. A 2D +view manages properties such as center and resolution.
+View.
+Viewport.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Remove the given control from the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
control |
+
+
+ + + +ol.control.Control + + + + | + + + + + +Control. |
+
The removed control of undefined + if the control was not found.
+Remove the given interaction from the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
interaction |
+
+
+ + + +ol.interaction.Interaction + + + + | + + + + + +Interaction to remove. |
+
The removed interaction (or + undefined if the interaction was not found).
+Removes the given layer from the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
layer |
+
+
+ + + +ol.layer.Base + + + + | + + + + + +Layer. |
+
The removed layer or undefined if the + layer was not found.
+Remove the given overlay from the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
overlay |
+
+
+ + + +ol.Overlay + + + + | + + + + + +Overlay. |
+
The removed overlay of undefined + if the overlay was not found.
+Request that renderFrame_ be called some time in the future.
+Render.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Sets the layergroup of this map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
layerGroup |
+
+
+ + + +ol.layer.Group + + + + | + + + + + +Layergroup. |
+
Set the size of this map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
size |
+
+
+ + + +ol.Size +| + +undefined + + + + | + + + + + +Size. |
+
Set the target element to render this map into.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
target |
+
+
+ + + +Element +| + +string +| + +undefined + + + + | + + + + + +Target. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Set the view for this map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
view |
+
+
+ + + +ol.IView + + + + | + + + + + +View. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Force a recalculation of the map viewport size. This should be called when +third-party code changes the size of the map viewport.
+Prevents the default browser action.
+Prevents further propagation of the current event.
+A true double click, with no dragging.
+Triggered after the map is moved.
+Triggered when a pointer is dragged.
+Triggered when a pointer is moved.
+Triggered after a map frame is rendered.
+A true single click with no dragging and no double click. Note that this +event is delayed by 250 ms to ensure that it is not a double click.
+Triggered after the map is moved.
+Triggered after a map frame is rendered.
+Base class implementing KVO (Key Value Observing).
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
values |
+
+
+ + + +Object.<string, *>= + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Values. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Object representing a property change event.
The name of the property whose value is changing.
+Triggered before a property is changed.
+Triggered when a property is changed.
+An event target providing convenient methods for listener registration
+and unregistration. A generic change event is always available through
+ol.Observable#dispatchChangeEvent.
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
An element to show on top of the map, such as for a popup.
+Example:
+var popup = new ol.Overlay({
+ element: document.getElementById('popup')
+});
+popup.setPosition(coordinate);
+map.addOverlay(popup);
+ | Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.OverlayOptions + + + + | + + + + + +Overlay options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
element |
+ + + +Element + + + + | +yes | +change:element |
+ the Element containing the overlay | +
map |
+ + + +ol.Map + + + + | +yes | +change:map |
+ the map that the overlay is part of | +
position |
+ + + +ol.Coordinate + + + + | +yes | +change:position |
+ the spatial point that the overlay + is anchored at | +
positioning |
+ + + +ol.OverlayPositioning + + + + | +yes | +change:positioning |
+ how the overlay is + positioned relative to its point on the map | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the DOM element of this overlay.
+Element.
+Get the map associated with this overlay.
+Map.
+Get the current position of this overlay.
+Position.
+Get the current positioning of this overlay.
+Positioning.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Set the DOM element to be associated with this overlay.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
element |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Element. |
+
Set the map to be associated with this overlay.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map +| + +undefined + + + + | + + + + + +Map. |
+
Set the position for this overlay.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
position |
+
+
+ + + +ol.Coordinate +| + +undefined + + + + | + + + + + +Position. |
+
Set the positioning for this overlay.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
positioning |
+
+
+ + + +ol.OverlayPositioning +| + +undefined + + + + | + + + + + +Positioning. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
result |
+
+
+ + + +Array.<number>= + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Optional array to reuse. |
+
Array of z, x, y.
+Hash.
+An ol.View2D object represents a simple 2D view of the map.
+This is the object to act upon to change the center, resolution, +and rotation of the map.
+An ol.View2D is determined by three states: center, resolution,
+and rotation. To each state corresponds a getter and a setter. E.g.
+getCenter and setCenter for the center state.
An ol.View2D has a projection. The projection determines the
+coordinate system of the center, and its units determine the units of the
+resolution (projection units per pixel). The default projection is
+Spherical Mercator (EPSG:3857).
setCenter, setResolution and setRotation can be used to change the
+states of the view. Any value can be passed to the setters. And the value
+that is passed to a setter will effectively be the value set in the view,
+and returned by the corresponding getter.
But an ol.View2D object also has a resolution constraint and a
+rotation constraint. There's currently no center constraint, but
+this may change in the future.
As said above no constraints are applied when the setters are used to set
+new states for the view. Applying constraints is done explicitly through
+the use of the constrain* functions (constrainResolution and
+constrainRotation).
The main users of the constraints are the interactions and the +controls. For example, double-clicking on the map changes the view to +the "next" resolution. And releasing the fingers after pinch-zooming +snaps to the closest resolution (with an animation).
+So the resolution constraint snaps to specific resolutions. It is
+determined by the following options: resolutions, maxResolution,
+maxZoom, and zoomFactor. If resolutions is set, the other three
+options are ignored. See ol.View2DOptions for more information.
The rotation constaint is currently not configurable. It snaps the +rotation value to zero when approaching the horizontal.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.View2DOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ View2D options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
center |
+ + + +ol.Coordinate + + + + | +yes | +change:center |
+ the center of the view | +
projection |
+ + + +ol.proj.Projection + + + + | +yes | +change:projection |
+ the projection of the view | +
resolution |
+ + + +number + + + + | +yes | +change:resolution |
+ the resolution of the view | +
rotation |
+ + + +number + + + + | +yes | +change:rotation |
+ the rotation of the view | +
Calculate the extent for the given size in pixels, based on the current +resolution and the current center.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
size |
+
+
+ + + +ol.Size + + + + | + + + + + +Box pixel size. |
+
Extent.
+Center on coordinate and view position. +Take care on the map angle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
size |
+
+
+ + + +ol.Size + + + + | + + + + + +Box pixel size. |
+
position |
+
+
+ + + +ol.Pixel + + + + | + + + + + +Position on the view to center on. |
+
Get the constrained the resolution of this view.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
resolution |
+
+
+ + + +number +| + +undefined + + + + | + + ++ + + + | + + + + +Resolution. |
+
delta |
+
+
+ + + +number + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Delta. Default is |
+
direction |
+
+
+ + + +number + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Direction. Default is |
+
Constrained resolution.
+Get the constrained rotation of this view.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
rotation |
+
+
+ + + +number +| + +undefined + + + + | + + ++ + + + | + + + + +Rotation. |
+
delta |
+
+
+ + + +number + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Delta. Default is |
+
Constrained rotation.
+Fit the given extent based on the given map size.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + + + + +Extent. |
+
size |
+
+
+ + + +ol.Size + + + + | + + + + + +Box pixel size. |
+
Fit the given geometry based on the given map size and border. +Take care on the map angle.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
geometry |
+
+
+ + + +ol.geom.SimpleGeometry + + + + | + + ++ + + + | + + + + +Geometry. |
+
size |
+
+
+ + + +ol.Size + + + + | + + ++ + + + | + + + + +Box pixel size. |
+
options |
+
+
+ + + +olx.View2D.fitGeometryOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Get the current zoom level. Return undefined if the current +resolution is undefined or not a "constrained resolution".
+Zoom.
+Set the center of the current view.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
center |
+
+
+ + + +ol.Coordinate +| + +undefined + + + + | + + + + + +Center. |
+
Set the projection of this view. +Warning! This code is not yet implemented. Function should not be used.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
projection |
+
+
+ + + +ol.proj.Projection +| + +undefined + + + + | + + + + + +Projection. |
+
Set the resolution for this view.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
resolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Resolution. |
+
Set the rotation for this view.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
rotation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Rotation. |
+
Zoom to a specific zoom level.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
zoom |
+
+
+ + + +number + + + + | + + + + + +Zoom level. |
+
The {ol.animation} static methods are designed to be used with the ol.Map#beforeRender method. For example:
+var map = new ol.Map({ ... });
+var zoom = ol.animation.zoom({
+ resolution: map.getView().getResolution()
+});
+map.beforeRender(zoom);
+map.getView().setResolution(map.getView().getResolution() * 2);| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.animation.BounceOptions + + + + | + + + + + +Bounce options. |
+
Pre-render function.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.animation.PanOptions + + + + | + + + + + +Pan options. |
+
Pre-render function.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.animation.RotateOptions + + + + | + + + + + +Rotate options. |
+
Pre-render function.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.animation.ZoomOptions + + + + | + + + + + +Zoom options. |
+
Pre-render function.
+Create a new attribution control to show all the attributions associated
+with the layer sources in the map. A default map has this control included.
+By default it will show in the bottom right portion of the map, but it can
+be changed by using a css selector for .ol-attribution.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.AttributionOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Attribution options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Something to be painted over the map to provide a means for interaction +(buttons) or to show annotations (status bars).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.control.ControlOptions + + + + | + + + + + +Control options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Provides a button that when clicked fills up the full screen with the map. +When in full screen mode, a close button is shown to exit full screen mode. +The Fullscreen API is used to +toggle the map in full screen mode.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.FullScreenOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Shows a logo for all the layer sources in the map that have a logo
+associated with them, such as Bing. This control is part of a default map.
+By default it will show in the bottom-left portion of the map, but it can
+be styled by using a css selector for .ol-logo.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.LogoOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Logo options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Create a new control to show the position of the mouse in the map's
+projection (or any other supplied projection). By default the control is
+shown in the top right corner of the map but this can be changed by using
+a css selector .ol-mouse-position.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.MousePositionOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Mouse position + options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
projection |
+ + + +ol.proj.Projection + + + + | +yes | +change:projection |
+ the projection to report + mouse position in | +
coordinateFormat |
+ + + +ol.CoordinateFormatType + + + + | +yes | +change:coordinateformat |
+ the format to + render the current position in | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+projection.
+Get the map associated with this control.
+Map.
+projection.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
format |
+
+
+ + + +ol.CoordinateFormatType + + + + | + + + + + +Coordinate format. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
projection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Projection. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Create a control to help users estimate distances on a map.
+By default it will show in the bottom left portion of the map, but it can
+be changed by using a css selector for .ol-scale-line.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.ScaleLineOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Scale line options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
units |
+ + + +ol.control.ScaleLineUnits + + + + | +yes | +change:units |
+ the units to use in the + scale line | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+units.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
units |
+
+
+ + + +ol.control.ScaleLineUnits + + + + | + + + + + +Units. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Create a new control with 2 buttons, one for zoom in and one for zoom out.
+This control is part of the default controls of a map. To style this control
+use css selectors .ol-zoom-in and .ol-zoom-out.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.ZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Zoom options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
A slider type of control for zooming.
+Example:
+map.addControl(new ol.control.ZoomSlider());
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.ZoomSliderOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Zoom slider options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Create a control that adds a button, which, when pressed, changes
+the map view to a specific extent. To style this control use the
+css selector .ol-zoom-extent.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.ZoomToExtentOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Get the map associated with this control.
+Map.
+Get an object of all property names and values.
+Object.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Remove the control from its current map and attach it to the new map. +Subclasses may set up event handlers to get notified about changes to +the map here.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
map |
+
+
+ + + +ol.Map + + + + | + + + + + +Map. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
DEGREES |
+
+
+ + + +string + + + + | + + + + ++ + degrees + + | + + ++ |
IMPERIAL |
+
+
+ + + +string + + + + | + + + + ++ + imperial + + | + + ++ |
NAUTICAL |
+
+
+ + + +string + + + + | + + + + ++ + nautical + + | + + ++ |
METRIC |
+
+
+ + + +string + + + + | + + + + ++ + metric + + | + + ++ |
US |
+
+
+ + + +string + + + + | + + + + ++ + us + + | + + ++ |
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.control.DefaultsOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Defaults options. |
+
Controls.
+Helper class for binding HTML input to an ol.Object.
+Example:
+// bind a checkbox with id 'visible' to a layer's visibility
+var visible = new ol.dom.Input(document.getElementById('visible'));
+visible.bindTo('checked', layer, 'visible');
+ | Name | + + +Type | + + + + + +Description | +
|---|---|---|
target |
+
+
+ + + +Element + + + + | + + + + + +Target element. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
value |
+ + + +string + + + + | +yes | +change:value |
+ the value of the Input | +
checked |
+ + + +boolean + + + + | +yes | +change:checked |
+ the checked state of the Input | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+If the input is a checkbox, return whether or not the checbox is checked.
+checked.
+Get an object of all property names and values.
+Object.
+Get the value of the input.
+input value.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Set whether or not a checkbox is checked.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
checked |
+
+
+ + + +boolean + + + + | + + + + + +Checked. |
+
Sets the value of the input.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
value |
+
+
+ + + +string + + + + | + + + + + +Value. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Always true.
+Always false.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
mapBrowserEvent |
+
+
+ + + +ol.MapBrowserEvent + + + + | + + + + + +Map browser event. |
+
True if only the alt key is pressed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
mapBrowserEvent |
+
+
+ + + +ol.MapBrowserEvent + + + + | + + + + + +Map browser event. |
+
True if only the alt and shift keys are pressed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
mapBrowserEvent |
+
+
+ + + +ol.MapBrowserEvent + + + + | + + + + + +Map browser event. |
+
True only if there no modifier keys are pressed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
mapBrowserEvent |
+
+
+ + + +ol.MapBrowserEvent + + + + | + + + + + +Map browser event. |
+
True if only the platform modifier key is pressed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
mapBrowserEvent |
+
+
+ + + +ol.MapBrowserEvent + + + + | + + + + + +Map browser event. |
+
True if only the shift key is pressed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
mapBrowserEvent |
+
+
+ + + +ol.MapBrowserEvent + + + + | + + + + + +Map browser event. |
+
True only if the target element is not editable.
+A function that takes a {number} representing the view's resolution. It
+returns an Array of ol.style.Style. This way individual features
+can be styled. The this keyword inside the function references the
+ol.Feature to be styled.
A function that takes an ol.Feature and a {number} representing
+the view's resolution. The function should return an array of
+ol.style.Style. This way e.g. a vector layer can be styled.
ol.format.Feature subclasses provide the ability to decode and encode +ol.Feature objects from a variety of commonly used geospatial +file formats. See the documentation for each format for more details.
+Read the projection from a GPX source.
+Read the first feature from a GPX source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Feature.
+Read all features from a GPX source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Features.
+Encode an array of features in the GPX format.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Result.
+Provide access to features stored in the GeoJSON format.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.format.GeoJSONOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Read a feature from a GeoJSON Feature source. This method will throw +an error if used with a FeatureCollection source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Feature.
+Read all features from a GeoJSON source. Works with both Feature and +FeatureCollection sources.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Features.
+Read a geometry from a GeoJSON source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Geometry.
+Read the projection from the GeoJSON source file.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
object |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Projection.
+Encode a feature as a GeoJSON Feature object.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Result.
+Encode an array of features as GeoJSON.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Result.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.format.IGCOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Read the feature from the IGC source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Feature.
+Read the feature from the source. As IGC sources contain a single +feature, this will return the feature in an array.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Features.
+Read the projection from the IGC source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Projection.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.format.KMLOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Read the first feature from a KML source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Feature.
+Read all features from a KML source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +Document +| + +Node +| + +string + + + + | + + + + + +Souce. |
+
Name.
+Read the projection from a KML source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Projection.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.format.TopoJSONOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Read all features from a TopoJSON source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Features.
+Read the projection from a TopoJSON source.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
object |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Projection.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.format.WFSOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Optional configuration object. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
FeatureCollection metadata.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ArrayBuffer +| + +Document +| + +Node +| + +Object +| + +string + + + + | + + + + + +Source. |
+
Transaction response.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.format.WFSWriteGetFeatureOptions + + + + | + + + + + +Options. |
+
Result.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
inserts |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +The features to insert. |
+
updates |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +The features to update. |
+
deletes |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +The features to delete. |
+
options |
+
+
+ + + +olx.format.WFSWriteTransactionOptions + + + + | + + + + + +Write options. |
+
Result.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
center |
+
+
+ + + +ol.geom.RawPoint + + + + | + + ++ + + + | + + + + +Center. |
+
radius |
+
+
+ + + +number + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Radius. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + ++ + + + | + + + + +Layout. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Center.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+First coordinate.
+Last point.
+Layout.
+Radius.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
center |
+
+
+ + + +ol.geom.RawPoint + + + + | + + + + + +Center. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
center |
+
+
+ + + +ol.geom.RawPoint + + + + | + + ++ + + + | + + + + +Center. |
+
radius |
+
+
+ + + +number + + + + | + + ++ + + + | + + + + +Radius. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
radius |
+
+
+ + + +number + + + + | + + + + + +Radius. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
geometries |
+
+
+ + + +Array.<ol.geom.Geometry>= + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Geometries. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Geometries.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
geometries |
+
+
+ + + +Array.<ol.geom.Geometry> + + + + | + + + + + +Geometries. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawLineString + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Returns the coordinate at m using linear interpolation, or null if no
+such coordinate exists.
opt_extrapolate controls extrapolation beyond the range of Ms in the
+MultiLineString. If opt_extrapolate is true then Ms less than the first
+M will return the first coordinate and Ms greater than the last M will
+return the last coordinate.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
m |
+
+
+ + + +number + + + + | + + ++ + + + | + + + + +M. |
+
extrapolate |
+
+
+ + + +boolean + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Extrapolate. |
+
Coordinate.
+Coordinates.
+First coordinate.
+Last point.
+Layout.
+Length.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawLineString + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawLinearRing + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Area.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Coordinates.
+First coordinate.
+Last point.
+Layout.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawLinearRing + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawMultiLineString + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
lineString |
+
+
+ + + +ol.geom.LineString + + + + | + + + + + +LineString. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Returns the coordinate at m using linear interpolation, or null if no
+such coordinate exists.
opt_extrapolate controls extrapolation beyond the range of Ms in the
+MultiLineString. If opt_extrapolate is true then Ms less than the first
+M will return the first coordinate and Ms greater than the last M will
+return the last coordinate.
opt_interpolate controls interpolation between consecutive LineStrings
+within the MultiLineString. If opt_interpolate is true the coordinates
+will be linearly interpolated between the last coordinate of one LineString
+and the first coordinate of the next LineString. If opt_interpolate is
+false then the function will return null for Ms falling between
+LineStrings.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
m |
+
+
+ + + +number + + + + | + + ++ + + + | + + + + +M. |
+
extrapolate |
+
+
+ + + +boolean + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Extrapolate. |
+
interpolate |
+
+
+ + + +boolean + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Interpolate. |
+
Coordinate.
+Coordinates.
+First coordinate.
+Last point.
+Layout.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
LineString.
+LineStrings.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawMultiLineString + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawMultiPoint + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
point |
+
+
+ + + +ol.geom.Point + + + + | + + + + + +Point. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Coordinates.
+First coordinate.
+Last point.
+Layout.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
Point.
+Points.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawMultiPoint + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawMultiPolygon + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
polygon |
+
+
+ + + +ol.geom.Polygon + + + + | + + + + + +Polygon. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Area.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Coordinates.
+First coordinate.
+Interior points.
+Last point.
+Layout.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
Polygon.
+Polygons.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawMultiPolygon + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawPoint + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Coordinates.
+First coordinate.
+Last point.
+Layout.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawPoint + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawPolygon + + + + | + + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout +| + +string + + + + | + + + + + +Layout. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
linearRing |
+
+
+ + + +ol.geom.LinearRing + + + + | + + + + + +Linear ring. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Area.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+Coordinates.
+First coordinate.
+Interior point.
+Last point.
+Layout.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
index |
+
+
+ + + +number + + + + | + + + + + +Index. |
+
Linear ring.
+Linear rings.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
coordinates |
+
+
+ + + +ol.geom.RawPolygon + + + + | + + ++ + + + | + + + + +Coordinates. |
+
layout |
+
+
+ + + +ol.geom.GeometryLayout + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layout. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + ++ + + + | + + + + +Point. |
+
closestPoint |
+
+
+ + + +ol.Coordinate + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Closest point. |
+
Closest point.
+First coordinate.
+Last point.
+Layout.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
XY |
+
+
+ + + +string + + + + | + + + + ++ + XY + + | + + ++ |
XYZ |
+
+
+ + + +string + + + + | + + + + ++ + XYZ + + | + + ++ |
XYM |
+
+
+ + + +string + + + + | + + + + ++ + XYM + + | + + ++ |
XYZM |
+
+
+ + + +string + + + + | + + + + ++ + XYZM + + | + + ++ |
| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
POINT |
+
+
+ + + +string + + + + | + + + + ++ + Point + + | + + ++ |
LINE_STRING |
+
+
+ + + +string + + + + | + + + + ++ + LineString + + | + + ++ |
LINEAR_RING |
+
+
+ + + +string + + + + | + + + + ++ + LinearRing + + | + + ++ |
POLYGON |
+
+
+ + + +string + + + + | + + + + ++ + Polygon + + | + + ++ |
MULTI_POINT |
+
+
+ + + +string + + + + | + + + + ++ + MultiPoint + + | + + ++ |
MULTI_LINE_STRING |
+
+
+ + + +string + + + + | + + + + ++ + MultiLineString + + | + + ++ |
MULTI_POLYGON |
+
+
+ + + +string + + + + | + + + + ++ + MultiPolygon + + | + + ++ |
GEOMETRY_COLLECTION |
+
+
+ + + +string + + + + | + + + + ++ + GeometryCollection + + | + + ++ |
CIRCLE |
+
+
+ + + +string + + + + | + + + + ++ + Circle + + | + + ++ |
ol.inherits is an alias to the goog.inherits function. It is exported +for use in non-compiled application code. See ol.exports.
+FIXME: We use a new line to fake the linter. Without the new line the +linter complains with:
+"Missing newline between constructor and goog.inherits"
+| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
BOTTOM_LEFT |
+
+
+ + + +string + + + + | + + + + ++ + bottom-left + + | + + ++ |
BOTTOM_CENTER |
+
+
+ + + +string + + + + | + + + + ++ + bottom-center + + | + + ++ |
BOTTOM_RIGHT |
+
+
+ + + +string + + + + | + + + + ++ + bottom-right + + | + + ++ |
CENTER_LEFT |
+
+
+ + + +string + + + + | + + + + ++ + center-left + + | + + ++ |
CENTER_CENTER |
+
+
+ + + +string + + + + | + + + + ++ + center-center + + | + + ++ |
CENTER_RIGHT |
+
+
+ + + +string + + + + | + + + + ++ + center-right + + | + + ++ |
TOP_LEFT |
+
+
+ + + +string + + + + | + + + + ++ + top-left + + | + + ++ |
TOP_CENTER |
+
+
+ + + +string + + + + | + + + + ++ + top-center + + | + + ++ |
TOP_RIGHT |
+
+
+ + + +string + + + + | + + + + ++ + top-right + + | + + ++ |
| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
CANVAS |
+
+
+ + + +string + + + + | + + + + ++ + canvas + + | + + ++ |
DOM |
+
+
+ + + +string + + + + | + + + + ++ + dom + + | + + ++ |
WEBGL |
+
+
+ + + +string + + + + | + + + + ++ + webgl + + | + + ++ |
Interface for views. Currently ol.View2D is implemented.
+A function returning the canvas element ({HTMLCanvasElement})
+used by the source as an image. The arguments passed to the function are:
+ol.Extent the image extent, {number} the image resolution,
+{number} the device pixel ratio, ol.Size the image size, and
+ol.proj.Projection the image projection. The canvas returned by
+this function is cached by the source. The this keyword inside the function
+references the ol.source.ImageCanvas.
A color represented as a short array [red, green, blue, alpha]. +red, green, and blue should be integers in the range 0..255 inclusive. +alpha should be a float in the range 0..1 inclusive.
+An array of numbers representing a coordinate.
+A function that takes a ol.Coordinate and transforms it into a
+{string}.
An array of numbers representing an extent: [minx, miny, maxx, maxy].
An array of numbers representing a size: [width, height].
A function that takes an ol.ImageTile for the image tile and a
+{string} for the src as arguments.
A function that takes an ol.TileCoord for the tile coordinate,
+a {number} representing the pixel ratio and an ol.proj.Projection
+for the projection as arguments and returns a {string} or
+undefined representing the tile URL. The this keyword inside the function
+references the ol.source.TileImage.
A transform function accepts an array of input coordinate values, an optional +output array, and an optional dimension (default should be 2). The function +transforms the input coordinate values, populates the output array, and +returns the output array.
+Allows the user to zoom by double-clicking on the map.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DoubleClickZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DragAndDropOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Triggered when features are added
+Allows the user to zoom the map by clicking and dragging on the map, +normally combined with an ol.events.condition that limits +it to when the shift key is held down.
+This interaction is only supported for mouse devices.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DragBoxOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Returns geometry of last drawn box.
+Geometry.
+Allows the user to pan the map by dragging the map.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DragPanOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Allows the user to rotate the map by clicking and dragging on the map, +normally combined with an ol.events.condition that limits +it to when the alt and shift keys are held down.
+This interaction is only supported for mouse devices.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DragRotateOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Allows the user to zoom and rotate the map by clicking and dragging +on the map. By default, this interaction is limited to when the shift +key is held down.
+This interaction is only supported for mouse devices.
+And this interaction is not included in the default interactions.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DragRotateAndZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Allows the user to zoom the map by clicking and dragging on the map, +normally combined with an ol.events.condition that limits +it to when the shift key is held down.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DragZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Returns geometry of last drawn box.
+Geometry.
+Interaction that allows drawing geometries
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.interaction.DrawOptions + + + + | + + + + + +Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Allows the user to pan the map using keyboard arrows.
+Note that, although this interaction is by default included in maps,
+the keys can only be used when browser focus is on the element to which
+the keyboard events are attached. By default, this is the map div,
+though you can change this with the keyboardTargetElement in
+ol.Map. document never loses focus but, for any other element,
+focus will have to be on, and returned to, this element if the keys are to
+function.
+See also ol.interaction.KeyboardZoom.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.KeyboardPanOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Allows the user to zoom the map using keyboard + and -.
+Note that, although this interaction is by default included in maps,
+the keys can only be used when browser focus is on the element to which
+the keyboard events are attached. By default, this is the map div,
+though you can change this with the keyboardTargetElement in
+ol.Map. document never loses focus but, for any other element,
+focus will have to be on, and returned to, this element if the keys are to
+function.
+See also ol.interaction.KeyboardPan.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.KeyboardZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.interaction.ModifyOptions + + + + | + + + + + +Options. |
+
Allows the user to zoom the map by scrolling the mouse wheel.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.MouseWheelZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
Allows the user to rotate the map by twisting with two fingers +on a touch screen.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.PinchRotateOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Allows the user to zoom the map by pinching with two fingers +on a touch screen.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.PinchZoomOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.interaction.SelectOptions + + + + | + + + + + +Options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Features collection.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
This method is a convenience method to create a set of interactions +to be used with an ol.Map. Specific interactions can be excluded by +setting the appropriate option to false in the constructor options, +but the order of the interactions is fixed. If you want to specify a +different order for interactions, you will need to create your own +ol.interaction instances and insert them into an +ol.Collection in the order you want before creating your ol.Map +instance.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.interaction.DefaultsOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Defaults options. |
+
A collection of interactions to be used with +the ol.Map constructor's interactions option.
+The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Hue.
+MaxResolution.
+MinResolution.
+Opacity.
+Get an object of all property names and values.
+Object.
+Saturation.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.layer.GroupOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Layer options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
layers |
+ + + +ol.Collection + + + + | +yes | +change:layers |
+ collection of layers that are part + of this group | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Hue.
+Collection of layers.
+MaxResolution.
+MinResolution.
+Opacity.
+Get an object of all property names and values.
+Object.
+Saturation.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
layers |
+
+
+ + + +ol.Collection +| + +undefined + + + + | + + + + + +Collection of layers. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.layer.HeatmapOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Colors.
+Hue.
+MaxResolution.
+MinResolution.
+Opacity.
+Get an object of all property names and values.
+Object.
+Saturation.
+Source.
+Get the style for features. This returns whatever was passed to the style
+option at construction or to the setStyle method.
Layer style.
+Get the style function.
+Layer style function.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
colors |
+
+
+ + + +Array.<string> + + + + | + + + + + +Gradient. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
Set the style for features. This can be a single style object, an array +of styles, or a function that takes a feature and resolution and returns +an array of styles.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction + + + + | + + + + + +Layer style. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.layer.LayerOptions + + + + | + + + + + +Layer options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Hue.
+MaxResolution.
+MinResolution.
+Opacity.
+Get an object of all property names and values.
+Object.
+Saturation.
+Source.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.layer.LayerOptions + + + + | + + + + + +Layer options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
brightness |
+ + + +number + + + + | +yes | +change:brightness |
+ the brightness of the layer | +
contrast |
+ + + +number + + + + | +yes | +change:contrast |
+ the contrast of the layer | +
hue |
+ + + +number + + + + | +yes | +change:hue |
+ the hue of the layer | +
opacity |
+ + + +number + + + + | +yes | +change:opacity |
+ the opacity of the layer | +
saturation |
+ + + +number + + + + | +yes | +change:saturation |
+ the saturation of the layer | +
visible |
+ + + +boolean + + + + | +yes | +change:visible |
+ the visiblity of the layer | +
maxResolution |
+ + + +number + + + + | +yes | +change:maxresolution |
+ the maximum resolution of the layer | +
minResolution |
+ + + +number + + + + | +yes | +change:minresolution |
+ the minimum resolution of the layer | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Hue.
+MaxResolution.
+MinResolution.
+Opacity.
+Get an object of all property names and values.
+Object.
+Saturation.
+Source.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.layer.TileOptions + + + + | + + + + + +Tile layer options. |
+
| Name | +Type | +Settable | +ol.ObjectEvent type | +Description | +
|---|---|---|---|---|
preload |
+ + + +number + + + + | +yes | +change:preload |
+ the level to preload tiles up to | +
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Hue.
+MaxResolution.
+MinResolution.
+Opacity.
+Preload.
+Get an object of all property names and values.
+Object.
+Saturation.
+Source.
+Use interim tiles on error.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
preload |
+
+
+ + + +number + + + + | + + + + + +Preload. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
useInterimTilesOnError |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Use interim tiles on error. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.layer.VectorOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
The bindTo method allows you to set up a two-way binding between a
+source and target object. The method returns an
+ol.ObjectAccessor with a transform method that lets you transform
+values on the way from the source to the target and on the way back.
For example, if you had two map views (sourceView and targetView) +and you wanted the target view to have double the resolution of the +source view, you could transform the resolution on the way to and +from the target with the following:
+sourceView.bindTo('resolution', targetView)
+ .transform(
+ function(sourceResolution) {
+ // from sourceView.resolution to targetView.resolution
+ return 2 * sourceResolution;
+ },
+ function(targetResolution) {
+ // from targetView.resolution to sourceView.resolution
+ return targetResolution / 2;
+ }
+ );
+ | Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
key |
+
+
+ + + +string + + + + | + + ++ + + + | + + + + +Key name. |
+
target |
+
+
+ + + +ol.Object + + + + | + + ++ + + + | + + + + +Target. |
+
targetKey |
+
+
+ + + +string + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Target key. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Gets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Value.
+Brightness.
+Contrast.
+Hue.
+MaxResolution.
+MinResolution.
+Opacity.
+Get an object of all property names and values.
+Object.
+Saturation.
+Source.
+Get the style for features. This returns whatever was passed to the style
+option at construction or to the setStyle method.
Layer style.
+Get the style function.
+Layer style function.
+Visible.
+Notify all observers of a change on this property. This notifies both +objects that are bound to the object's property as well as the object +that it is bound to.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Sets a value.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
value |
+
+
+ + + +* + + + + | + + + + + +Value. |
+
Adjust the layer brightness. A value of -1 will render the layer completely +black. A value of 0 will leave the brightness unchanged. A value of 1 will +render the layer completely white. Other values are linear multipliers on +the effect (values are clamped between -1 and 1).
+The filter effects draft [1] says the brightness function is supposed to +render 0 black, 1 unchanged, and all other values as a linear multiplier.
+The current WebKit implementation clamps values between -1 (black) and 1 +(white) [2]. There is a bug open to change the filter effect spec [3].
+TODO: revisit this if the spec is still unmodified before we release
+[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html +[2] https://github.com/WebKit/webkit/commit/8f4765e569 +[3] https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
Adjust the layer contrast. A value of 0 will render the layer completely +grey. A value of 1 will leave the contrast unchanged. Other values are +linear multipliers on the effect (and values over 1 are permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
Apply a hue-rotation to the layer. A value of 0 will leave the hue +unchanged. Other values are radians around the color circle.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MaxResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +MinResolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. |
+
Adjust layer saturation. A value of 0 will render the layer completely +unsaturated. A value of 1 will leave the saturation unchanged. Other +values are linear multipliers of the effect (and values over 1 are +permitted).
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
Set the style for features. This can be a single style object, an array +of styles, or a function that takes a feature and resolution and returns +an array of styles.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction + + + + | + + + + + +Layer style. |
+
Sets a collection of key-value pairs.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
values |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +Values. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visible. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes a binding. Unbinding will set the unbound property to the current + value. The object will not be notified, as the value has not changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +string + + + + | + + + + + +Key name. |
+
Removes all bindings.
+Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.ProjectionOptions + + + + | + + + + + +Projection options. |
+
Get the code for this projection, e.g. 'EPSG:4326'.
+Code.
+Get the validity extent for this projection.
+Extent.
+Get the units of this projection.
+Units.
+| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
DEGREES |
+
+
+ + + +string + + + + | + + + + ++ + degrees + + | + + ++ |
FEET |
+
+
+ + + +string + + + + | + + + + ++ + ft + + | + + ++ |
METERS |
+
+
+ + + +string + + + + | + + + + ++ + m + + | + + ++ |
PIXELS |
+
+
+ + + +string + + + + | + + + + ++ + pixels + + | + + ++ |
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
projection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Projection. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.Proj4jsProjectionOptions + + + + | + + + + + +Proj4js projection options. |
+
Proj4js projection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
projectionLike |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Either a code string which is + a combination of authority and identifier such as "EPSG:4326", or an + existing projection object, or undefined. |
+
Projection.
+Given the projection-like objects this method searches for a transformation +function to convert a coordinates array from the source projection to the +destination projection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Source. |
+
destination |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination. |
+
Transform.
+Searches a function that can be used to convert coordinates from the source +projection to the destination projection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
sourceProjection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Source projection. |
+
destinationProjection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Destination projection. |
+
Transform.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Point. |
+
source |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Source. |
+
destination |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination. |
+
Point.
+Transforms the given point to the destination projection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
point |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Point. |
+
sourceProjection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Source projection. |
+
destinationProjection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Destination projection. |
+
Point.
+A projection as ol.proj.Projection, SRS identifier string or +undefined.
+Canvas context. Only available when a Canvas renderer is used, +null otherwise.
+WebGL context. Only available when a WebGL renderer is used, null +otherwise.
+Register a function to be called for rendering at a given zIndex. The +function will be called asynchronously. The callback will receive a +reference to ol.render.canvas.Immediate context for drawing.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
zIndex |
+
+
+ + + +number + + + + | + + + + + +Z index. |
+
callback |
+
+
+ + + +function + + + + | + + + + + +Callback. |
+
Render a circle geometry into the canvas. Rendering is immediate and uses +the current fill and stroke styles.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
circleGeometry |
+
+
+ + + +ol.geom.Circle + + + + | + + + + + +Circle geometry. |
+
data |
+
+
+ + + +Object + + + + | + + + + + +Opaque data object, |
+
Render a feature into the canvas. In order to respect the zIndex of the +style this method draws asynchronously and thus after calls to +drawXxxxGeometry have been finished, effectively drawing the feature +on top of everything else. You probably should be using +ol.FeatureOverlay instead of calling this method directly.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
style |
+
+
+ + + +ol.style.Style + + + + | + + + + + +Style. |
+
Render a LineString into the canvas. Rendering is immediate and uses +the current style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
lineStringGeometry |
+
+
+ + + +ol.geom.LineString + + + + | + + + + + +Line string geometry. |
+
data |
+
+
+ + + +Object + + + + | + + + + + +Opaque data object. |
+
Render a MultiLineString geometry into the canvas. Rendering is immediate +and uses the current style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
multiLineStringGeometry |
+
+
+ + + +ol.geom.MultiLineString + + + + | + + + + + +MultiLineString geometry. |
+
data |
+
+
+ + + +Object + + + + | + + + + + +Opaque data object. |
+
Render a MultiPoint geometry into the canvas. Rendering is immediate and +uses the current style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
multiPointGeometry |
+
+
+ + + +ol.geom.MultiPoint + + + + | + + + + + +MultiPoint geometry. |
+
data |
+
+
+ + + +Object + + + + | + + + + + +Opaque data object. |
+
Render a Point geometry into the canvas. Rendering is immediate and uses +the current style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pointGeometry |
+
+
+ + + +ol.geom.Point + + + + | + + + + + +Point geometry. |
+
data |
+
+
+ + + +Object + + + + | + + + + + +Opaque data object. |
+
Render a Polygon geometry into the canvas. Rendering is immediate and uses +the current style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
polygonGeometry |
+
+
+ + + +ol.geom.Polygon + + + + | + + + + + +Polygon geometry. |
+
data |
+
+
+ + + +Object + + + + | + + + + + +Opaque data object. |
+
Set the fill and stroke style for subsequent draw operations. To clear +either fill or stroke styles, pass null for the appropriate parameter.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
fillStyle |
+
+
+ + + +ol.style.Fill + + + + | + + + + + +Fill style. |
+
strokeStyle |
+
+
+ + + +ol.style.Stroke + + + + | + + + + + +Stroke style. |
+
Set the image style for subsequent draw operations. Pass null to remove +the image style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
imageStyle |
+
+
+ + + +ol.style.Image + + + + | + + + + + +Image style. |
+
Set the text style for subsequent draw operations. Pass null to +remove the text style.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
textStyle |
+
+
+ + + +ol.style.Text + + + + | + + + + + +Text style. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.BingMapsOptions + + + + | + + + + + +Bing Maps options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.GPXOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.GeoJSONOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.IGCOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.ImageCanvasOptions + + + + | + + + + + ++ |
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.ImageStaticOptions + + + + | + + + + + +Options. |
+
An image source whose images are canvas elements into which vector features
+read from a vector source (ol.source.Vector) are drawn. An
+ol.source.ImageVector object is to be used as the source of an image
+layer (ol.layer.Image). Image layers are rotated, scaled, and translated,
+as opposed to being re-rendered, during animations and interactions. So, like
+any other image layer, an image layer configured with an
+ol.source.ImageVector will exhibit this behaviour. This is in contrast to a
+vector layer, where vector features are re-drawn during animations and
+interactions.
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.ImageVectorOptions + + + + | + + + + + +Options. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.ImageWMSOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Return the GetFeatureInfo URL for the passed coordinate, resolution, and
+projection. Return undefined if the GetFeatureInfo URL cannot be
+constructed.
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
resolution |
+
+
+ + + +number + + + + | + + + + + +Resolution. |
+
projection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Projection. |
+
params |
+
+
+ + + +Object + + + + | + + + + + +GetFeatureInfo params. |
+
GetFeatureInfo URL.
+Get the user-provided params, i.e. those passed to the constructor through +the "params" option, and possibly updated using the updateParams method.
+Params.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
Update the user-provided params.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
params |
+
+
+ + + +Object + + + + | + + + + + +Params. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.KMLOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.MapGuideOptions + + + + | + + + + + +Options. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.MapQuestOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ MapQuest options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
url |
+
+
+ + + +string + + + + | + + + + + +URL. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.OSMOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Open Street Map options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
url |
+
+
+ + + +string + + + + | + + + + + +URL. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.OSMXMLOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +ol.source.SourceOptions + + + + | + + + + + +Source options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Extent.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.StamenOptions + + + + | + + + + + +Stamen options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
url |
+
+
+ + + +string + + + + | + + + + + +URL. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +ol.source.TileOptions + + + + | + + + + + +Tile source options. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
Extent.
+State.
+Tile grid.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.TileDebugOptions + + + + | + + + + + +Debug tile options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.TileImageOptions + + + + | + + + + + +Image tile options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.TileJSONOptions + + + + | + + + + + +TileJSON options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.TileWMSOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Tile WMS options. |
+
Return the GetFeatureInfo URL for the passed coordinate, resolution, and
+projection. Return undefined if the GetFeatureInfo URL cannot be
+constructed.
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
resolution |
+
+
+ + + +number + + + + | + + + + + +Resolution. |
+
projection |
+
+
+ + + +ol.proj.Projection + + + + | + + + + + +Projection. |
+
params |
+
+
+ + + +Object + + + + | + + + + + +GetFeatureInfo params. |
+
GetFeatureInfo URL.
+Get the user-provided params, i.e. those passed to the constructor through +the "params" option, and possibly updated using the updateParams method.
+Params.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+Update the user-provided params.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
params |
+
+
+ + + +Object + + + + | + + + + + +Params. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.TopoJSONOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.VectorOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Vector source options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
The feature being added or removed.
+Triggered when a feature is added to the source.
+Triggered when a feature is removed from the source.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.VectorFileOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> + + + + | + + + + + +Features. |
+
Dispatches a change event. Register a listener for this event to get
+notified of changes.
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
extent |
+
+
+ + + +ol.Extent + + + + | + + ++ + + + | + + + + +Extent. |
+
f |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +Callback. |
+
this |
+
+
+ + + +T + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Closest feature.
+Extent.
+Features.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
coordinate |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +Coordinate. |
+
Features.
+State.
+Listen for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+Listen once for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Unique key for the listener.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
feature |
+
+
+ + + +ol.Feature + + + + | + + + + + +Feature. |
+
Unlisten for a certain type of event.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
type |
+
+
+ + + +string +| + +Array.<string> + + + + | + + ++ + + + | + + + + +The event type or array of event types. |
+
listener |
+
+
+ + + +function + + + + | + + ++ + + + | + + + + +The listener function. |
+
this |
+
+
+ + + +Object + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ The object to use as |
+
Removes an event listener using the key returned by on() or once().
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
key |
+
+
+ + + +goog.events.Key + + + + | + + + + + +Key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.WMTSOptions + + + + | + + + + + +WMTS options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
wmtsCap |
+
+
+ + + +Object + + + + | + + + + + +An object representing the capabilities document. |
+
layer |
+
+
+ + + +string + + + + | + + + + + +The layer identifier. |
+
WMTS source options object.
+Get the dimensions, i.e. those passed to the constructor through the +"dimensions" option, and possibly updated using the updateDimensions +method.
+Dimensions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+Update the dimensions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
dimensions |
+
+
+ + + +Object + + + + | + + + + + +Dimensions. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.source.XYZOptions + + + + | + + + + + +XYZ options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
url |
+
+
+ + + +string + + + + | + + + + + +URL. |
+
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.source.ZoomifyOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelRatio |
+
+
+ + + +number + + + + | + + + + + +Requested pixel ratio. |
+
Supported pixel ratio.
+Tile grid.
+| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
LOADING |
+
+
+ + + +number + + + + | + + + + ++ + 0 + + | + + ++ |
READY |
+
+
+ + + +number + + + + | + + + + ++ + 1 + + | + + ++ |
ERROR |
+
+
+ + + +number + + + + | + + + + ++ + 2 + + | + + ++ |
| Name | + + +Type | + + + + +Default | + + +Description | +
|---|---|---|---|
KVP |
+
+
+ + + +string + + + + | + + + + ++ + KVP + + | + + ++ |
REST |
+
+
+ + + +string + + + + | + + + + ++ + REST + + | + + ++ |
| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.style.CircleOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Fill style.
+Radius.
+Rotation.
+Scale.
+Stroke style.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.style.FillOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Color.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.style.IconOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Rotation.
+Scale.
+Image src.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +ol.style.ImageOptions + + + + | + + + + + +Options. |
+
Rotation.
+Scale.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.style.StrokeOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Color.
+Line cap.
+Line dash.
+Line join.
+Miter limit.
+Width.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.style.StyleOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Style options. |
+
Fill style.
+Image style.
+Stroke style.
+Text style.
+ZIndex.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.style.TextOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Fill style.
+Font.
+Rotation.
+Scale.
+Stroke style.
+Text.
+Text align.
+Text baseline.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.tilegrid.TileGridOptions + + + + | + + + + + +Tile grid options. |
+
Min zoom.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Origin.
+Resolutions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Tile size.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.tilegrid.WMTSOptions + + + + | + + + + + +WMTS options. |
+
MatrixIds.
+Min zoom.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Origin.
+Resolutions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Tile size.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
options |
+
+
+ + + +olx.tilegrid.XYZOptions + + + + | + + + + + +XYZ options. |
+
Min zoom.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Origin.
+Resolutions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Tile size.
+| Name | + + +Type | + + +Argument | + + + + +Description | +
|---|---|---|---|
options |
+
+
+ + + +olx.tilegrid.ZoomifyOptions + + + + | + + +
+
+ <optional> + + + + |
+
+
+
+
+ Options. |
+
Min zoom.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Origin.
+Resolutions.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
z |
+
+
+ + + +number + + + + | + + + + + +Z. |
+
Tile size.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
canvas |
+
+
+ + + +HTMLCanvasElement + + + + | + + + + + +Canvas. |
+
gl |
+
+
+ + + +WebGLRenderingContext + + + + | + + + + + +GL. |
+
GL.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
program |
+
+
+ + + +WebGLProgram + + + + | + + + + + +Program. |
+
Changed.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
resolution |
+
+
+ + + +number + + + + | + + + + + +The resolution to start the bounce from, typically |
+
start |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The start time of the animation. Default is immediately. |
+
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The duration of the animation in milliseconds. Default is |
+
easing |
+
+
+ + + +function + + + + | + + + + + +The easing function to use. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
source |
+
+
+ + + +ol.Coordinate + + + + | + + + + + +The location to start panning from, typically |
+
start |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The start time of the animation. Default is immediately. |
+
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The duration of the animation in milliseconds. Default is |
+
easing |
+
+
+ + + +function + + + + | + + + + + +The easing function to use. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
rotation |
+
+
+ + + +number + + + + | + + + + + +The rotation to apply, in radians. |
+
start |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The start time of the animation. Default is immediately. |
+
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The duration of the animation in milliseconds. Default is |
+
easing |
+
+
+ + + +function + + + + | + + + + + +The easing function to use. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
resolution |
+
+
+ + + +number + + + + | + + + + + +number The resolution to begin zooming from, typically |
+
start |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The start time of the animation. Default is immediately. |
+
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The duration of the animation in milliseconds. Default is |
+
easing |
+
+
+ + + +function + + + + | + + + + + +Easing function. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS class name. Default is |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
element |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +The element is the control's container + element. This only needs to be specified if you're developing a custom + control. |
+
target |
+
+
+ + + +Element +| + +string +| + +undefined + + + + | + + + + + +Specify a target if you want the + control to be rendered outside of the map's viewport. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attribution |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Attribution. Default is |
+
attributionOptions |
+
+
+ + + +olx.control.AttributionOptions +| + +undefined + + + + | + + + + + +Attribution options. |
+
logo |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Logo. Default is |
+
logoOptions |
+
+
+ + + +olx.control.LogoOptions +| + +undefined + + + + | + + + + + +Logo options. |
+
zoom |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Zoom. Default is |
+
zoomOptions |
+
+
+ + + +olx.control.ZoomOptions +| + +undefined + + + + | + + + + + +Zoom options. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS class name. Default is |
+
tipLabel |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text label to use for the button tip. Default is |
+
keys |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Full keyboard access. |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS class name. Default is |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS class name. Default is |
+
coordinateFormat |
+
+
+ + + +ol.CoordinateFormatType +| + +undefined + + + + | + + + + + +Coordinate + format. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
undefinedHTML |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Markup for undefined coordinates. + Default is `` (empty string). |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS Class name. Default is |
+
minWidth |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Minimum width in pixels. Default is |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
units |
+
+
+ + + +ol.control.ScaleLineUnits +| + +string +| + +undefined + + + + | + + + + + +Units.
+ Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Animation duration in milliseconds. Default is |
+
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS class name. Default is |
+
zoomInLabel |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text label to use for the zoom-in button. Default is |
+
zoomOutLabel |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text label to use for the zoom-out button. Default is |
+
zoomInTipLabel |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text label to use for the button tip. Default is |
+
zoomOutTipLabel |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text label to use for the button tip. Default is |
+
delta |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The zoom delta applied on each click. |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +CSS class name. |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Maximum resolution. |
+
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Minimum resolution. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
className |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Class name. Default is |
+
target |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +Target. |
+
tipLabel |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text label to use for the button tip. Default is |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +The extent to zoom to. If + undefined the validity extent of the view projection is used. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
defaultProjection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Default projection. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
altitudeMode |
+
+
+ + + +ol.format.IGCZ +| + +undefined + + + + | + + + + + +Altitude mode.
+ Possible values are |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
defaultStyle |
+
+
+ + + +Array.<ol.style.Style> +| + +undefined + + + + | + + + + + +Default style. The default + default style is the same as Google Earth. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
defaultProjection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Default projection. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
featureNS |
+
+
+ + + +string + + + + | + + + + + +The namespace URI used for features. |
+
featureType |
+
+
+ + + +string + + + + | + + + + + +The feature type to parse. Only used for + read operations. |
+
schemaLocation |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Optional schemaLocation to use + for serialization, this will override the default. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
featureNS |
+
+
+ + + +string + + + + | + + + + + +The namespace URI used for features. |
+
featurePrefix |
+
+
+ + + +string + + + + | + + + + + +The prefix for the feature namespace. |
+
featureTypes |
+
+
+ + + +Array.<string> + + + + | + + + + + +The feature type names. |
+
srsName |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +SRS name. No srsName attribute will be + set on geometries when this is not provided. |
+
handle |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Handle. |
+
outputFormat |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Output format. |
+
maxFeatures |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Maximum number of features to fetch. |
+
geometryName |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Geometry name to use in a BBOX + filter. |
+
bbox |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent to use for the BBOX filter. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
featureNS |
+
+
+ + + +string + + + + | + + + + + +The namespace URI used for features. |
+
featurePrefix |
+
+
+ + + +string + + + + | + + + + + +The prefix for the feature namespace. |
+
featureType |
+
+
+ + + +string + + + + | + + + + + +The feature type name. |
+
srsName |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +SRS name. No srsName attribute will be + set on geometries when this is not provided. |
+
handle |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Handle. |
+
nativeElements |
+
+
+ + + +Array.<Object> + + + + | + + + + + +Native elements. Currently not + supported. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
html |
+
+
+ + + +string + + + + | + + + + + +HTML markup for this attribution. |
+
tileRanges |
+
+
+ + + +Object.<string, Array.<ol.TileRange>> +| + +undefined + + + + | + + + + + +Tile ranges (FOR INTERNAL USE ONLY). |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
loadTilesWhileAnimating |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +When set to false,
+ no tiles will be loaded while animating, which improves responsiveness
+ on devices with slow memory. Default is |
+
loadTilesWhileInteracting |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +When set to false,
+ no tiles will be loaded while interacting, which improves responsiveness
+ on devices with slow memory. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
tracking |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Start tracking. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +Array.<ol.Feature> +| + +ol.Collection +| + +undefined + + + + | + + + + + +Features. |
+
map |
+
+
+ + + +ol.Map +| + +undefined + + + + | + + + + + +Map. |
+
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction +| + +undefined + + + + | + + + + + +Feature style. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
tracking |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Start Tracking. Default is |
+
trackingOptions |
+
+
+ + + +GeolocationPositionOptions +| + +undefined + + + + | + + + + + +Tracking options. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
Object literal with config options for the map.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
controls |
+
+
+ + + +ol.Collection +| + +Array.<ol.control.Control> +| + +undefined + + + + | + + + + + +Controls initially added to the map. |
+
deviceOptions |
+
+
+ + + +olx.DeviceOptions +| + +undefined + + + + | + + + + + +Device options for the map. |
+
pixelRatio |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The ratio between physical
+ pixels and device-independent pixels (dips) on the device. If |
+
interactions |
+
+
+ + + +ol.Collection +| + +Array.<ol.interaction.Interaction> +| + +undefined + + + + | + + + + + +Interactions that are initially added to the map. |
+
keyboardEventTarget |
+
+
+ + + +Element +| + +Document +| + +string +| + +undefined + + + + | + + + + + +The element to listen to keyboard events on.
+ This determines when the |
+
layers |
+
+
+ + + +Array.<ol.layer.Base> +| + +ol.Collection +| + +undefined + + + + | + + + + + +Layers. |
+
ol3Logo |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Show ol3 logo. Default is |
+
overlays |
+
+
+ + + +ol.Collection +| + +Array.<ol.Overlay> +| + +undefined + + + + | + + + + + +Overlays initially added to the map. |
+
renderer |
+
+
+ + + +ol.RendererHint +| + +Array.<(ol.RendererHint|string)> +| + +string +| + +undefined + + + + | + + + + + +Renderer. |
+
target |
+
+
+ + + +Element +| + +string +| + +undefined + + + + | + + + + + +The container for the map. |
+
view |
+
+
+ + + +ol.IView +| + +undefined + + + + | + + + + + +The map's view. Currently + ol.View2D is available as view. |
+
Object literal with config options for the overlay.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
element |
+
+
+ + + +Element +| + +undefined + + + + | + + + + + +The overlay element. |
+
position |
+
+
+ + + +ol.Coordinate +| + +undefined + + + + | + + + + + +The overlay position in map + projection. |
+
positioning |
+
+
+ + + +ol.OverlayPositioning +| + +string +| + +undefined + + + + | + + + + + +Positioning. |
+
stopEvent |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether event propagation to the map
+ viewport should be stopped. Default is |
+
insertFirst |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether the overlay is inserted
+ first in the overlay container, or appended. Default is |
+
offsetX |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Horizontal offset in pixels.
+ A positive will shift the overlay right. Default is |
+
offsetY |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Vertical offset in pixels.
+ A positive will shift the overlay down. Default is |
+
Object literal with config options for the Proj4js projection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
code |
+
+
+ + + +string + + + + | + + + + + +The SRS identifier code, e.g. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +The validity extent for the SRS. |
+
global |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether the projection is valid for the
+ whole globe. Default is |
+
Object literal with config options for the projection.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
code |
+
+
+ + + +string + + + + | + + + + + +The SRS identifier code, e.g. |
+
units |
+
+
+ + + +ol.proj.Units +| + +string + + + + | + + + + + +Units. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +The validity extent for the SRS. |
+
axisOrientation |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +The axis orientation as
+ specified in Proj4. The default is |
+
global |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether the projection is valid for the
+ whole globe. Default is |
+
Object literal with config options for the view.
+| Name | + + +Type | + + + + + +Description | +
|---|---|---|
center |
+
+
+ + + +ol.Coordinate +| + +undefined + + + + | + + + + + +The initial center for the view.
+ The coordinate system for the center is specified with the |
+
constrainRotation |
+
+
+ + + +boolean +| + +number +| + +undefined + + + + | + + + + + +Rotation constraint.
+ |
+
enableRotation |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Enable rotation. Default is
+ |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +The extent that constrains the center,
+ in other words, center cannot be set outside this extent.
+ Default is |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum resolution used to
+ determine the resolution constraint. It is used together with |
+
maxZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum zoom level used to determine
+ the resolution constraint. It is used together with |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +The projection. Default is
+ |
+
resolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The initial resolution for the view.
+ The units are |
+
resolutions |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Resolutions to determine the
+ resolution constraint. If set the |
+
rotation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The initial rotation for the view
+ in radians (positive rotation clockwise). Default is |
+
zoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Only used if |
+
zoomFactor |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The zoom factor used to determine the
+ resolution constraint. Used together with |
+
Interactions for the map. Default is true for all options.
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
altShiftDragRotate |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether Alt-Shift-drag
+ rotate is desired. Default is |
+
doubleClickZoom |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether double click zoom is
+ desired. Default is |
+
keyboard |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether keyboard interaction is
+ desired. Default is |
+
mouseWheelZoom |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether mousewheel zoom is
+ desired. Default is |
+
shiftDragZoom |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether Shift-drag zoom is
+ desired. Default is |
+
dragPan |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether drag pan is
+ desired. Default is |
+
pinchRotate |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether pinch rotate is
+ desired. Default is |
+
pinchZoom |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether pinch zoom is
+ desired. Default is |
+
zoomDelta |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Zoom delta. |
+
zoomDuration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Zoom duration. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Animation duration in milliseconds. Default is |
+
delta |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The zoom delta applied on each double
+ click, default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
formatConstructors |
+
+
+ + + +Array.<function(new:ol.format.Feature)> +| + +undefined + + + + | + + + + + +Format constructors. |
+
reprojectTo |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Target projection. By + default, the map's view's projection is used. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (i.e. Shift key) that determines if the interaction is active + or not, default is always. |
+
style |
+
+
+ + + +ol.style.Style + + + + | + + + + + +Style for the box. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
kinetic |
+
+
+ + + +ol.Kinetic +| + +undefined + + + + | + + + + + +Kinetic inertia to apply to the + pan. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (i.e. Shift key) that determines if the interaction is active + or not, default is shify key. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (i.e. Shift key) that determines if the interaction is active + or not, default is both shift and alt keys. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (i.e. Shift key) that determines if the interaction is active + or not, default is shift key. |
+
style |
+
+
+ + + +ol.style.Style + + + + | + + + + + +Style for the box. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
features |
+
+
+ + + +ol.Collection +| + +undefined + + + + | + + + + + +Destination collection for the drawn features. |
+
source |
+
+
+ + + +ol.source.Vector +| + +undefined + + + + | + + + + + +Destination source for the drawn features. |
+
snapTolerance |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Pixel distance for snapping to the + drawing finish (default is 12). |
+
type |
+
+
+ + + +ol.geom.GeometryType + + + + | + + + + + +Drawing type ('Point', 'LineString', + 'Polygon', 'MultiPoint', 'MultiLineString', or 'MultiPolygon'). |
+
minPointsPerRing |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The number of points that must + be drawn before a polygon ring can be finished (default is 3). |
+
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction +| + +undefined + + + + | + + + + + +Style for sketch features. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (i.e. Shift key) that determines if the interaction is active + or not, default is no modifiers. |
+
pixelDelta |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Pixel The amount to pan on each key
+ press. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Animation duration in milliseconds. Default is |
+
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (i.e. Shift key) that determines if the interaction is active + or not, default is no modifiers. |
+
delta |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The amount to zoom on each key press. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
pixelTolerance |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Pixel tolerance for considering + the pointer close enough to a vertex for editing. Default is 20 pixels. |
+
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction +| + +undefined + + + + | + + + + + +FeatureOverlay style. |
+
features |
+
+
+ + + +ol.Collection + + + + | + + + + + +The features the interaction works on. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Animation duration in milliseconds. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
threshold |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Minimal angle in radians to start a rotation.
+ Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
duration |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Animation duration in milliseconds. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
addCondition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (e.g. alt key) that determines if the feature is added to + the current selection. By default, this is never. Note that the default + toggle condition allows features to be added. |
+
condition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (e.g. shift key) that determines if the interaction is active + (i.e. selection occurs) or not. By default, a click with no modifier keys + toggles the selection. |
+
layerFilter |
+
+
+ + + +function + + + + | + + + + + +Filter + function to restrict selection to a subset of layers. |
+
layer |
+
+
+ + + +ol.layer.Layer +| + +undefined + + + + | + + + + + +Layer. The single layer from which + features should be selected. |
+
layers |
+
+
+ + + +Array.<ol.layer.Layer> +| + +undefined + + + + | + + + + + +Layers. Zero or more + layers from which features should be selected. |
+
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction +| + +undefined + + + + | + + + + + +FeatureOverlay style. |
+
removeCondition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (e.g. alt key) that determines if the feature is removed from + the current selection. By default, this is never. |
+
toggleCondition |
+
+
+ + + +ol.events.ConditionType +| + +undefined + + + + | + + + + + +A conditional + modifier (e.g. shift key) that determines if the selection is toggled in + the current selection. By default, a shift-click toggles the feature in + the current selection. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. Default is |
+
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. Default is |
+
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. Default is |
+
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity (0, 1). Default is |
+
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. Default is |
+
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visibility. Default is |
+
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The minimum resolution + (inclusive) at which this layer will be visible. |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum resolution + (exclusive) below which this layer will be visible. |
+
layers |
+
+
+ + + +Array.<ol.layer.Base> +| + +ol.Collection +| + +undefined + + + + | + + + + + +Child layers. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
gradient |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +The color gradient of the heatmap,
+ specified as an array of CSS color strings. Default is |
+
radius |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Radius size in pixels. Default is |
+
blur |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Blur size in pixels. Default is |
+
shadow |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Shadow size in pixels. Default is |
+
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The minimum resolution + (inclusive) at which this layer will be visible. |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum resolution + (exclusive) below which this layer will be visible. |
+
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. 0-1. Default is |
+
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
source |
+
+
+ + + +ol.source.Vector + + + + | + + + + + +Source. |
+
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visibility. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. Default is |
+
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. Default is |
+
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. Default is |
+
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity (0, 1). Default is |
+
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. Default is |
+
source |
+
+
+ + + +ol.source.Source + + + + | + + + + + +Source for this layer. |
+
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visibility. Default is |
+
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The minimum resolution + (inclusive) at which this layer will be visible. |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum resolution + (exclusive) below which this layer will be visible. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. Default is |
+
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. Default is |
+
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. Default is |
+
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity (0, 1). Default is |
+
preload |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Preload. |
+
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. Default is |
+
source |
+
+
+ + + +ol.source.Source + + + + | + + + + + +Source for this layer. |
+
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visibility. Default is |
+
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The minimum resolution + (inclusive) at which this layer will be visible. |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum resolution + (exclusive) below which this layer will be visible. |
+
useInterimTilesOnError |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Use interim tiles on
+ error. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
brightness |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Brightness. |
+
contrast |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Contrast. |
+
hue |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Hue. |
+
minResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The minimum resolution + (inclusive) at which this layer will be visible. |
+
maxResolution |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The maximum resolution + (exclusive) below which this layer will be visible. |
+
opacity |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Opacity. 0-1. Default is |
+
saturation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Saturation. |
+
source |
+
+
+ + + +ol.source.Vector + + + + | + + + + + +Source. |
+
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction +| + +undefined + + + + | + + + + + +Layer style. |
+
visible |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Visibility. Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
culture |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Culture code. Default is |
+
key |
+
+
+ + + +string + + + + | + + + + + +Bing Maps API key. Get yours at + http://bingmapsportal.com/. |
+
imagerySet |
+
+
+ + + +string + + + + | + + + + + +Type of imagery. |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
defaultProjection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Default projection. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
object |
+
+
+ + + +GeoJSONObject +| + +undefined + + + + | + + + + + +Object. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination projection. If + provided, features will be transformed to this projection. If not + provided, features will not be transformed. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +URLs. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
doc |
+
+
+ + + +Document +| + +undefined + + + + | + + + + + +Document. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
node |
+
+
+ + + +Node +| + +undefined + + + + | + + + + + +Node. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination projection. If + provided, features will be transformed to this projection. If not + provided, features will not be transformed. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +URLs. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
altitudeMode |
+
+
+ + + +ol.format.IGCZ +| + +undefined + + + + | + + + + + +Altitude mode.
+ Possible values are |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination projection. If + provided, features will be transformed to this projection. If not + provided, features will not be transformed. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +URLs. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
canvasFunction |
+
+
+ + + +ol.CanvasFunctionType + + + + | + + + + + +Canvas function. The function
+ returning the canvas element used by the source as an image. The arguments
+ passed to the function are: |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
ratio |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Ratio. 1 means canvases are the size
+ of the map viewport, 2 means twice the size of the map viewport, and so
+ on. Default is |
+
resolutions |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Resolutions. If specified, + new canvases will be created for these resolutions only. |
+
state |
+
+
+ + + +ol.source.State +| + +string +| + +undefined + + + + | + + + + + +Source state. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image + requests. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
imageExtent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent of the image. |
+
imageSize |
+
+
+ + + +ol.Size +| + +undefined + + + + | + + + + + +Size of the image. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
url |
+
+
+ + + +string + + + + | + + + + + +Url. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
ratio |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Ratio. 1 means canvases are the size
+ of the map viewport, 2 means twice the size of the map viewport, and so
+ on. Default is |
+
resolutions |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Resolutions. If specified, + new canvases will be created for these resolutions only. |
+
source |
+
+
+ + + +ol.source.Vector + + + + | + + + + + +The vector source from which the vector + features drawn in canvas elements are read. |
+
style |
+
+
+ + + +ol.style.Style +| + +Array.<ol.style.Style> +| + +ol.feature.StyleFunction +| + +undefined + + + + | + + + + + +Style to use when rendering features to the canvas. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image + requests. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
hidpi |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Use the |
+
serverType |
+
+
+ + + +ol.source.wms.ServerType +| + +string +| + +undefined + + + + | + + + + + +The type of the remote WMS
+ server: |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
params |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +WMS request parameters. At least a
+ |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
ratio |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Ratio. |
+
resolutions |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Resolutions. If specified, + requests will be made for these resolutions only. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +WMS service URL. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
defaultStyle |
+
+
+ + + +Array.<ol.style.Style> +| + +undefined + + + + | + + + + + +Default style. |
+
doc |
+
+
+ + + +Document +| + +undefined + + + + | + + + + + +Document. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
node |
+
+
+ + + +Node +| + +undefined + + + + | + + + + + +Node. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination projection. If + provided, features will be transformed to this projection. If not + provided, features will not be transformed. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +URLs. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +The mapagent url. |
+
displayDpi |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The display resolution. Default is |
+
metersPerUnit |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The meters-per-unit value. Default is |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
hidpi |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Use the |
+
useOverlay |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +If |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
ratio |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Ratio. |
+
resolutions |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Resolutions. If specified, + requests will be made for these resolutions only. |
+
params |
+
+
+ + + +Object +| + +undefined + + + + | + + + + + +Additional parameters. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
layer |
+
+
+ + + +string + + + + | + + + + + +Layer. Possible values are |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image
+ requests. Default is |
+
maxZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Max zoom. |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL template. Must include |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
defaultStyle |
+
+
+ + + +Array.<ol.style.Style> +| + +undefined + + + + | + + + + + +Default style. |
+
doc |
+
+
+ + + +Document +| + +undefined + + + + | + + + + + +Document. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
{Node|undefined| |
+
+
+ + + | + + + + + +node Node. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
reprojectTo |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Re-project to. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +URLs. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
layer |
+
+
+ + + +string + + + + | + + + + + +Layer. |
+
minZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Minimum zoom. |
+
maxZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Maximum zoom. |
+
opaque |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether the layer is opaque. |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL template. Must include |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
tileGrid |
+
+
+ + + +ol.tilegrid.TileGrid +| + +undefined + + + + | + + + + + +Tile grid. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image + requests. Default is null. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
opaque |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether the layer is opaque. |
+
pixelRatios |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Pixel ratios supported by
+this source. Default is |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
tileClass |
+
+
+ + + +function +| + +undefined + + + + | + + + + + +Default is |
+
tileGrid |
+
+
+ + + +ol.tilegrid.TileGrid +| + +undefined + + + + | + + + + + +Tile grid. |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
tileUrlFunction |
+
+
+ + + +ol.TileUrlFunctionType +| + +undefined + + + + | + + + + + +Function + to get tile URL given a tile coordinate and the projection. If not + provided, no tiles will be loaded. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image + requests. |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
url |
+
+
+ + + +string + + + + | + + + + + +URL to the TileJSON file. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
params |
+
+
+ + + +Object.<string, *> + + + + | + + + + + +WMS request parameters. At least a
+ |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image + requests. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
gutter |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +The size in pixels of the
+ gutter around image tiles to ignore. By setting this property to a
+ non-zero value, images will be requested that are wider and taller than
+ the tile size by a value of |
+
hidpi |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Use the |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
tileGrid |
+
+
+ + + +ol.tilegrid.TileGrid +| + +undefined + + + + | + + + + + +Tile grid. |
+
maxZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Maximum zoom. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
serverType |
+
+
+ + + +ol.source.wms.ServerType +| + +string +| + +undefined + + + + | + + + + + +The type of the remote WMS
+ server: |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +WMS service URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +WMS service urls. Use this instead
+ of |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
defaultProjection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Default projection. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
object |
+
+
+ + + +GeoJSONObject +| + +undefined + + + + | + + + + + +Object. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Destination projection. If + provided, features will be transformed to this projection. If not + provided, features will not be transformed. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
arrayBuffer |
+
+
+ + + +ArrayBuffer +| + +undefined + + + + | + + + + + +Array buffer. |
+
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
doc |
+
+
+ + + +Document +| + +undefined + + + + | + + + + + +Document. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
format |
+
+
+ + + +ol.format.Feature + + + + | + + + + + +Format. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
node |
+
+
+ + + +Node +| + +undefined + + + + | + + + + + +Node. |
+
object |
+
+
+ + + +Object +| + +undefined + + + + | + + + + + +Object. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +URLs. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
features |
+
+
+ + + +Array.<ol.Feature> +| + +undefined + + + + | + + + + + +Features. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
state |
+
+
+ + + +ol.source.State +| + +string +| + +undefined + + + + | + + + + + +State. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +string +| + +null +| + +undefined + + + + | + + + + + +crossOrigin setting for image + requests. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
tileGrid |
+
+
+ + + +ol.tilegrid.WMTS + + + + | + + + + + +Tile grid. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. |
+
requestEncoding |
+
+
+ + + +ol.source.WMTSRequestEncoding +| + +undefined + + + + | + + + + + +Request + encoding. |
+
layer |
+
+
+ + + +string + + + + | + + + + + +Layer. |
+
style |
+
+
+ + + +string + + + + | + + + + + +Style. |
+
version |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +WMTS version. Default to |
+
format |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Format. |
+
matrixSet |
+
+
+ + + +string + + + + | + + + + + +Matrix set. |
+
dimensions |
+
+
+ + + +Object +| + +undefined + + + + | + + + + + +Dimensions. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL. |
+
maxZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Maximum zoom. |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +Urls. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +Cross origin setting for image + requests. |
+
extent |
+
+
+ + + +ol.Extent +| + +undefined + + + + | + + + + + +Extent. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
projection |
+
+
+ + + +ol.proj.ProjectionLike + + + + | + + + + + +Projection. Default is |
+
maxZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Optional max zoom level. Default is |
+
minZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Unsupported (TODO: remove this). |
+
tileLoadFunction |
+
+
+ + + +ol.TileLoadFunctionType +| + +undefined + + + + | + + + + + +Optional + function to load a tile given a URL. |
+
tileUrlFunction |
+
+
+ + + +ol.TileUrlFunctionType +| + +undefined + + + + | + + + + + +Optional + function to get tile URL given a tile coordinate and the projection. + Required if url or urls are not provided. |
+
url |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +URL template. Must include |
+
urls |
+
+
+ + + +Array.<string> +| + +undefined + + + + | + + + + + +An array of URL templates. |
+
wrapX |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether to wrap the world horizontally.
+ Default is |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
attributions |
+
+
+ + + +Array.<ol.Attribution> +| + +undefined + + + + | + + + + + +Attributions. |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +Cross origin setting for image + requests. |
+
logo |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Logo. |
+
url |
+
+
+ + + +string + + + + | + + + + + +Prefix of URL template. |
+
tierSizeCalculation |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Tier size calculation method: |
+
size |
+
+
+ + + +ol.Size + + + + | + + + + + +Size of the image. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
fill |
+
+
+ + + +ol.style.Fill +| + +undefined + + + + | + + + + + +Fill style. |
+
radius |
+
+
+ + + +number + + + + | + + + + + +Circle radius. |
+
stroke |
+
+
+ + + +ol.style.Stroke +| + +undefined + + + + | + + + + + +Stroke style. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
color |
+
+
+ + + +ol.Color +| + +string +| + +undefined + + + + | + + + + + +Color. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
anchor |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Anchor. Default value is |
+
anchorOrigin |
+
+
+ + + +ol.style.IconAnchorOrigin +| + +undefined + + + + | + + + + + +Origin of the anchor: |
+
anchorXUnits |
+
+
+ + + +ol.style.IconAnchorUnits +| + +undefined + + + + | + + + + + +Units in which the anchor x value is specified.
+ A value of |
+
anchorYUnits |
+
+
+ + + +ol.style.IconAnchorUnits +| + +undefined + + + + | + + + + + +Units in which the anchor y value is specified.
+ A value of |
+
crossOrigin |
+
+
+ + + +null +| + +string +| + +undefined + + + + | + + + + + +crossOrigin setting for image. |
+
scale |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Scale. |
+
rotateWithView |
+
+
+ + + +boolean +| + +undefined + + + + | + + + + + +Whether to rotate the icon with the view. Default is |
+
rotation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Rotation. |
+
size |
+
+
+ + + +ol.Size +| + +undefined + + + + | + + + + + +Icon size in pixel. |
+
src |
+
+
+ + + +string + + + + | + + + + + +Image source URI. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
color |
+
+
+ + + +ol.Color +| + +string +| + +undefined + + + + | + + + + + +Color. |
+
lineCap |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Line cap style: |
+
lineJoin |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Line join style: |
+
lineDash |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Line dash pattern. Default is |
+
miterLimit |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Miter limit. Default is |
+
width |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Width. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
fill |
+
+
+ + + +ol.style.Fill +| + +undefined + + + + | + + + + + +Fill style. |
+
image |
+
+
+ + + +ol.style.Image +| + +undefined + + + + | + + + + + +Image style. |
+
stroke |
+
+
+ + + +ol.style.Stroke +| + +undefined + + + + | + + + + + +Stroke style. |
+
text |
+
+
+ + + +ol.style.Text +| + +undefined + + + + | + + + + + +Text style. |
+
zIndex |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Z index. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
font |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Font. |
+
offsetX |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Horizontal text offset in pixels.
+ A positive will shift the text right. Default is |
+
offsetY |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Vertical text offset in pixels.
+ A positive will shift the text down. Default is |
+
scale |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Scale. |
+
rotation |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Rotation. |
+
text |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text. |
+
textAlign |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text alignment. |
+
textBaseline |
+
+
+ + + +string +| + +undefined + + + + | + + + + + +Text base line. |
+
fill |
+
+
+ + + +ol.style.Fill +| + +undefined + + + + | + + + + + +Fill style. |
+
stroke |
+
+
+ + + +ol.style.Stroke +| + +undefined + + + + | + + + + + +Stroke style. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
minZoom |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Minimum zoom. |
+
origin |
+
+
+ + + +ol.Coordinate +| + +undefined + + + + | + + + + + +Origin. |
+
origins |
+
+
+ + + +Array.<ol.Coordinate> +| + +undefined + + + + | + + + + + +Origins. |
+
resolutions |
+
+
+ + + +!Array.<number> + + + + | + + + + + +Resolutions. |
+
tileSize |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Tile size. |
+
tileSizes |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Tile sizes. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
origin |
+
+
+ + + +ol.Coordinate +| + +undefined + + + + | + + + + + +Origin. |
+
origins |
+
+
+ + + +Array.<ol.Coordinate> +| + +undefined + + + + | + + + + + +Origins. |
+
resolutions |
+
+
+ + + +!Array.<number> + + + + | + + + + + +Resolutions. |
+
matrixIds |
+
+
+ + + +!Array.<string> + + + + | + + + + + +matrix IDs. |
+
tileSize |
+
+
+ + + +number +| + +undefined + + + + | + + + + + +Tile size. |
+
tileSizes |
+
+
+ + + +Array.<number> +| + +undefined + + + + | + + + + + +Tile sizes. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
maxZoom |
+
+
+ + + +number + + + + | + + + + + +Maximum zoom. |
+
| Name | + + +Type | + + + + + +Description | +
|---|---|---|
resolutions |
+
+
+ + + +!Array.<number> + + + + | + + + + + +Resolutions. |
+
Some text
' + + 'Some special text' + + 'Foo' + + '
+ * var fms = new goog.dom.FontSizeMonitor();
+ * goog.events.listen(fms, goog.dom.FontSizeMonitor.EventType.CHANGE,
+ * function(e) {
+ * alert('Font size was changed');
+ * });
+ *
+ * @param {goog.dom.DomHelper=} opt_domHelper DOM helper object that is used to
+ * determine where to insert the DOM nodes used to determine when the font
+ * size changes.
+ * @constructor
+ * @extends {goog.events.EventTarget}
+ */
+goog.dom.FontSizeMonitor = function(opt_domHelper) {
+ goog.events.EventTarget.call(this);
+
+ var dom = opt_domHelper || goog.dom.getDomHelper();
+
+ /**
+ * Offscreen iframe which we use to detect resize events.
+ * @type {Element}
+ * @private
+ */
+ this.sizeElement_ = dom.createDom(
+ // The size of the iframe is expressed in em, which are font size relative
+ // which will cause the iframe to be resized when the font size changes.
+ // The actual values are not relevant as long as we can ensure that the
+ // iframe has a non zero size and is completely off screen.
+ goog.userAgent.IE ? 'div' : 'iframe', {
+ 'style': 'position:absolute;width:9em;height:9em;top:-99em',
+ 'tabIndex': -1,
+ 'aria-hidden': 'true'
+ });
+ var p = dom.getDocument().body;
+ p.insertBefore(this.sizeElement_, p.firstChild);
+
+ /**
+ * The object that we listen to resize events on.
+ * @type {Element|Window}
+ * @private
+ */
+ var resizeTarget = this.resizeTarget_ =
+ goog.userAgent.IE ? this.sizeElement_ :
+ goog.dom.getFrameContentWindow(
+ /** @type {HTMLIFrameElement} */ (this.sizeElement_));
+
+ // We need to open and close the document to get Firefox 2 to work. We must
+ // not do this for IE in case we are using HTTPS since accessing the document
+ // on an about:blank iframe in IE using HTTPS raises a Permission Denied
+ // error.
+ if (goog.userAgent.GECKO) {
+ var doc = resizeTarget.document;
+ doc.open();
+ doc.close();
+ }
+
+ // Listen to resize event on the window inside the iframe.
+ goog.events.listen(resizeTarget, goog.events.EventType.RESIZE,
+ this.handleResize_, false, this);
+
+ /**
+ * Last measured width of the iframe element.
+ * @type {number}
+ * @private
+ */
+ this.lastWidth_ = this.sizeElement_.offsetWidth;
+};
+goog.inherits(goog.dom.FontSizeMonitor, goog.events.EventTarget);
+
+
+/**
+ * The event types that the FontSizeMonitor fires.
+ * @enum {string}
+ */
+goog.dom.FontSizeMonitor.EventType = {
+ // TODO(arv): Change value to 'change' after updating the callers.
+ CHANGE: 'fontsizechange'
+};
+
+
+/**
+ * Constant for the change event.
+ * @type {string}
+ * @deprecated Use {@code goog.dom.FontSizeMonitor.EventType.CHANGE} instead.
+ */
+goog.dom.FontSizeMonitor.CHANGE_EVENT =
+ goog.dom.FontSizeMonitor.EventType.CHANGE;
+
+
+/** @override */
+goog.dom.FontSizeMonitor.prototype.disposeInternal = function() {
+ goog.dom.FontSizeMonitor.superClass_.disposeInternal.call(this);
+
+ goog.events.unlisten(this.resizeTarget_, goog.events.EventType.RESIZE,
+ this.handleResize_, false, this);
+ this.resizeTarget_ = null;
+
+ // Firefox 2 crashes if the iframe is removed during the unload phase.
+ if (!goog.userAgent.GECKO ||
+ goog.userAgent.isVersionOrHigher('1.9')) {
+ goog.dom.removeNode(this.sizeElement_);
+ }
+ delete this.sizeElement_;
+};
+
+
+/**
+ * Handles the onresize event of the iframe and dispatches a change event in
+ * case its size really changed.
+ * @param {goog.events.BrowserEvent} e The event object.
+ * @private
+ */
+goog.dom.FontSizeMonitor.prototype.handleResize_ = function(e) {
+ // Only dispatch the event if the size really changed. Some newer browsers do
+ // not really change the font-size, instead they zoom the whole page. This
+ // does trigger window resize events on the iframe but the logical pixel size
+ // remains the same (the device pixel size changes but that is irrelevant).
+ var currentWidth = this.sizeElement_.offsetWidth;
+ if (this.lastWidth_ != currentWidth) {
+ this.lastWidth_ = currentWidth;
+ this.dispatchEvent(goog.dom.FontSizeMonitor.EventType.CHANGE);
+ }
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/forms.js b/wmts-hidpi/closure-library/closure/goog/dom/forms.js
new file mode 100644
index 0000000000..8e6e214413
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/forms.js
@@ -0,0 +1,414 @@
+// Copyright 2006 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Utilities for manipulating a form and elements.
+ *
+ * @author arv@google.com (Erik Arvidsson)
+ * @author jonp@google.com (Jon Perlow)
+ * @author elsigh@google.com (Lindsey Simon)
+ */
+
+goog.provide('goog.dom.forms');
+
+goog.require('goog.structs.Map');
+
+
+/**
+ * Returns form data as a map of name to value arrays. This doesn't
+ * support file inputs.
+ * @param {HTMLFormElement} form The form.
+ * @return {!goog.structs.Map} A map of the form data as form name to arrays of
+ * values.
+ */
+goog.dom.forms.getFormDataMap = function(form) {
+ var map = new goog.structs.Map();
+ goog.dom.forms.getFormDataHelper_(form, map,
+ goog.dom.forms.addFormDataToMap_);
+ return map;
+};
+
+
+/**
+ * Returns the form data as an application/x-www-url-encoded string. This
+ * doesn't support file inputs.
+ * @param {HTMLFormElement} form The form.
+ * @return {string} An application/x-www-url-encoded string.
+ */
+goog.dom.forms.getFormDataString = function(form) {
+ var sb = [];
+ goog.dom.forms.getFormDataHelper_(form, sb,
+ goog.dom.forms.addFormDataToStringBuffer_);
+ return sb.join('&');
+};
+
+
+/**
+ * Returns the form data as a map or an application/x-www-url-encoded
+ * string. This doesn't support file inputs.
+ * @param {HTMLFormElement} form The form.
+ * @param {Object} result The object form data is being put in.
+ * @param {Function} fnAppend Function that takes {@code result}, an element
+ * name, and an element value, and adds the name/value pair to the result
+ * object.
+ * @private
+ */
+goog.dom.forms.getFormDataHelper_ = function(form, result, fnAppend) {
+ var els = form.elements;
+ for (var el, i = 0; el = els[i]; i++) {
+ if (// Make sure we don't include elements that are not part of the form.
+ // Some browsers include non-form elements. Check for 'form' property.
+ // See http://code.google.com/p/closure-library/issues/detail?id=227
+ // and
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element
+ (el.form != form) ||
+ el.disabled ||
+ // HTMLFieldSetElement has a form property but no value.
+ el.tagName.toLowerCase() == 'fieldset') {
+ continue;
+ }
+
+ var name = el.name;
+ switch (el.type.toLowerCase()) {
+ case 'file':
+ // file inputs are not supported
+ case 'submit':
+ case 'reset':
+ case 'button':
+ // don't submit these
+ break;
+ case 'select-multiple':
+ var values = goog.dom.forms.getValue(el);
+ if (values != null) {
+ for (var value, j = 0; value = values[j]; j++) {
+ fnAppend(result, name, value);
+ }
+ }
+ break;
+ default:
+ var value = goog.dom.forms.getValue(el);
+ if (value != null) {
+ fnAppend(result, name, value);
+ }
+ }
+ }
+
+ // input[type=image] are not included in the elements collection
+ var inputs = form.getElementsByTagName('input');
+ for (var input, i = 0; input = inputs[i]; i++) {
+ if (input.form == form && input.type.toLowerCase() == 'image') {
+ name = input.name;
+ fnAppend(result, name, input.value);
+ fnAppend(result, name + '.x', '0');
+ fnAppend(result, name + '.y', '0');
+ }
+ }
+};
+
+
+/**
+ * Adds the name/value pair to the map.
+ * @param {goog.structs.Map} map The map to add to.
+ * @param {string} name The name.
+ * @param {string} value The value.
+ * @private
+ */
+goog.dom.forms.addFormDataToMap_ = function(map, name, value) {
+ var array = map.get(name);
+ if (!array) {
+ array = [];
+ map.set(name, array);
+ }
+ array.push(value);
+};
+
+
+/**
+ * Adds a name/value pair to an string buffer array in the form 'name=value'.
+ * @param {Array} sb The string buffer array for storing data.
+ * @param {string} name The name.
+ * @param {string} value The value.
+ * @private
+ */
+goog.dom.forms.addFormDataToStringBuffer_ = function(sb, name, value) {
+ sb.push(encodeURIComponent(name) + '=' + encodeURIComponent(value));
+};
+
+
+/**
+ * Whether the form has a file input.
+ * @param {HTMLFormElement} form The form.
+ * @return {boolean} Whether the form has a file input.
+ */
+goog.dom.forms.hasFileInput = function(form) {
+ var els = form.elements;
+ for (var el, i = 0; el = els[i]; i++) {
+ if (!el.disabled && el.type && el.type.toLowerCase() == 'file') {
+ return true;
+ }
+ }
+ return false;
+};
+
+
+/**
+ * Enables or disables either all elements in a form or a single form element.
+ * @param {Element} el The element, either a form or an element within a form.
+ * @param {boolean} disabled Whether the element should be disabled.
+ */
+goog.dom.forms.setDisabled = function(el, disabled) {
+ // disable all elements in a form
+ if (el.tagName == 'FORM') {
+ var els = el.elements;
+ for (var i = 0; el = els[i]; i++) {
+ goog.dom.forms.setDisabled(el, disabled);
+ }
+ } else {
+ // makes sure to blur buttons, multi-selects, and any elements which
+ // maintain keyboard/accessibility focus when disabled
+ if (disabled == true) {
+ el.blur();
+ }
+ el.disabled = disabled;
+ }
+};
+
+
+/**
+ * Focuses, and optionally selects the content of, a form element.
+ * @param {Element} el The form element.
+ */
+goog.dom.forms.focusAndSelect = function(el) {
+ el.focus();
+ if (el.select) {
+ el.select();
+ }
+};
+
+
+/**
+ * Whether a form element has a value.
+ * @param {Element} el The element.
+ * @return {boolean} Whether the form has a value.
+ */
+goog.dom.forms.hasValue = function(el) {
+ var value = goog.dom.forms.getValue(el);
+ return !!value;
+};
+
+
+/**
+ * Whether a named form field has a value.
+ * @param {HTMLFormElement} form The form element.
+ * @param {string} name Name of an input to the form.
+ * @return {boolean} Whether the form has a value.
+ */
+goog.dom.forms.hasValueByName = function(form, name) {
+ var value = goog.dom.forms.getValueByName(form, name);
+ return !!value;
+};
+
+
+/**
+ * Gets the current value of any element with a type.
+ * @param {Element} el The element.
+ * @return {string|Array.+ * <div>1<span>2</span>3</div> + *+ * + * Will return the following nodes: + * + *
[div, 1, span, 2, 3]
+ *
+ * With the following depths
+ *
+ * [1, 1, 2, 2, 1]
+ *
+ * Imagining | represents iterator position, the traversal stops at
+ * each of the following locations:
+ *
+ * <div>|1|<span>|2|</span>3|</div>+ * + * The iterator can also be used in reverse mode, which will return the nodes + * and states in the opposite order. The depths will be slightly different + * since, like in normal mode, the depth is computed *after* the last move. + * + * Lastly, it is possible to create an iterator that is unconstrained, meaning + * that it will continue iterating until the end of the document instead of + * until exiting the start node. + * + * @param {Node=} opt_node The start node. Defaults to an empty iterator. + * @param {boolean=} opt_reversed Whether to traverse the tree in reverse. + * @param {boolean=} opt_unconstrained Whether the iterator is not constrained + * to the starting node and its children. + * @param {number=} opt_depth The starting tree depth. + * @constructor + * @extends {goog.dom.TagIterator} + */ +goog.dom.NodeIterator = function(opt_node, opt_reversed, + opt_unconstrained, opt_depth) { + goog.dom.TagIterator.call(this, opt_node, opt_reversed, opt_unconstrained, + null, opt_depth); +}; +goog.inherits(goog.dom.NodeIterator, goog.dom.TagIterator); + + +/** + * Moves to the next position in the DOM tree. + * @return {Node} Returns the next node, or throws a goog.iter.StopIteration + * exception if the end of the iterator's range has been reached. + * @override + */ +goog.dom.NodeIterator.prototype.next = function() { + do { + goog.dom.NodeIterator.superClass_.next.call(this); + } while (this.isEndTag()); + + return this.node; +}; diff --git a/wmts-hidpi/closure-library/closure/goog/dom/nodeoffset.js b/wmts-hidpi/closure-library/closure/goog/dom/nodeoffset.js new file mode 100644 index 0000000000..084d4b0766 --- /dev/null +++ b/wmts-hidpi/closure-library/closure/goog/dom/nodeoffset.js @@ -0,0 +1,112 @@ +// Copyright 2005 The Closure Library Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS-IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/** + * @fileoverview Object to store the offset from one node to another in a way + * that works on any similar DOM structure regardless of whether it is the same + * actual nodes. + * + */ + +goog.provide('goog.dom.NodeOffset'); + +goog.require('goog.Disposable'); +goog.require('goog.dom.TagName'); + + + +/** + * Object to store the offset from one node to another in a way that works on + * any similar DOM structure regardless of whether it is the same actual nodes. + * @param {Node} node The node to get the offset for. + * @param {Node} baseNode The node to calculate the offset from. + * @extends {goog.Disposable} + * @constructor + */ +goog.dom.NodeOffset = function(node, baseNode) { + goog.Disposable.call(this); + + /** + * A stack of childNode offsets. + * @type {Array.
MATCH at the end of our
+ * tag, MATCHING if we are within the tag, and
+ * NO_MATCH if the starting tag does not match.
+ * @override
+ */
+goog.dom.pattern.FullTag.prototype.matchToken = function(token, type) {
+ if (!this.depth_) {
+ // If we have not yet started, make sure we match as a StartTag.
+ if (goog.dom.pattern.Tag.prototype.matchToken.call(this, token, type)) {
+ this.depth_ = type;
+ return goog.dom.pattern.MatchType.MATCHING;
+
+ } else {
+ return goog.dom.pattern.MatchType.NO_MATCH;
+ }
+ } else {
+ this.depth_ += type;
+
+ return this.depth_ ?
+ goog.dom.pattern.MatchType.MATCHING :
+ goog.dom.pattern.MatchType.MATCH;
+ }
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/pattern/matcher.js b/wmts-hidpi/closure-library/closure/goog/dom/pattern/matcher.js
new file mode 100644
index 0000000000..c0c87a3d27
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/pattern/matcher.js
@@ -0,0 +1,150 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview DOM pattern matcher. Allows for simple searching of DOM
+ * using patterns descended from {@link goog.dom.pattern.AbstractPattern}.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+goog.provide('goog.dom.pattern.Matcher');
+
+goog.require('goog.dom.TagIterator');
+goog.require('goog.dom.pattern.MatchType');
+goog.require('goog.iter');
+
+
+// TODO(robbyw): Allow for backtracks of size > 1.
+
+
+
+/**
+ * Given a set of patterns and a root node, this class tests the patterns in
+ * parallel.
+ *
+ * It is not (yet) a smart matcher - it doesn't do any advanced backtracking.
+ * Given the pattern DIV, SPAN the matcher will not match
+ * DIV, DIV, SPAN because it starts matching at the first
+ * DIV, fails to match SPAN at the second, and never
+ * backtracks to try again.
+ *
+ * It is also possible to have a set of complex patterns that when matched in
+ * parallel will miss some possible matches. Running multiple times will catch
+ * all matches eventually.
+ *
+ * @constructor
+ */
+goog.dom.pattern.Matcher = function() {
+ this.patterns_ = [];
+ this.callbacks_ = [];
+};
+
+
+/**
+ * Array of patterns to attempt to match in parallel.
+ *
+ * @type {Array.MATCH if the pattern
+ * matches, NO_MATCH otherwise.
+ * @override
+ */
+goog.dom.pattern.NodeType.prototype.matchToken = function(token, type) {
+ return token.nodeType == this.nodeType_ ?
+ goog.dom.pattern.MatchType.MATCH :
+ goog.dom.pattern.MatchType.NO_MATCH;
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/pattern/pattern.js b/wmts-hidpi/closure-library/closure/goog/dom/pattern/pattern.js
new file mode 100644
index 0000000000..19f4d1b794
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/pattern/pattern.js
@@ -0,0 +1,93 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview DOM patterns. Allows for description of complex DOM patterns
+ * using regular expression like constructs.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+goog.provide('goog.dom.pattern');
+goog.provide('goog.dom.pattern.MatchType');
+
+
+/**
+ * Regular expression for breaking text nodes.
+ * @type {RegExp}
+ */
+goog.dom.pattern.BREAKING_TEXTNODE_RE = /^\s*$/;
+
+
+/**
+ * Utility function to match a string against either a string or a regular
+ * expression.
+ *
+ * @param {string|RegExp} obj Either a string or a regular expression.
+ * @param {string} str The string to match.
+ * @return {boolean} Whether the strings are equal, or if the string matches
+ * the regular expression.
+ */
+goog.dom.pattern.matchStringOrRegex = function(obj, str) {
+ if (goog.isString(obj)) {
+ // Match a string
+ return str == obj;
+ } else {
+ // Match a regular expression
+ return !!(str && str.match(obj));
+ }
+};
+
+
+/**
+ * Utility function to match a DOM attribute against either a string or a
+ * regular expression. Conforms to the interface spec for
+ * {@link goog.object#every}.
+ *
+ * @param {string|RegExp} elem Either a string or a regular expression.
+ * @param {string} index The attribute name to match.
+ * @param {Object} orig The original map of matches to test.
+ * @return {boolean} Whether the strings are equal, or if the attribute matches
+ * the regular expression.
+ * @this {Element} Called using goog.object every on an Element.
+ */
+goog.dom.pattern.matchStringOrRegexMap = function(elem, index, orig) {
+ return goog.dom.pattern.matchStringOrRegex(elem,
+ index in this ? this[index] :
+ (this.getAttribute ? this.getAttribute(index) : null));
+};
+
+
+/**
+ * When matched to a token, a pattern may return any of the following statuses:
+ * NO_MATCH - The pattern does not match. This is the only
+ * value that evaluates to false in a boolean context.
+ * MATCHING - The token is part of an incomplete match.
+ * MATCH - The token completes a match.
+ * BACKTRACK_MATCH - The token does not match, but indicates
+ * the end of a repetitive match. For instance, in regular expressions,
+ * the pattern /a+/ would match 'aaaaaaaab'.
+ * Every 'a' token would give a status of
+ * MATCHING while the 'b' token would give a
+ * status of BACKTRACK_MATCH.
+ * MATCH if the pattern
+ * matches, BACKTRACK_MATCH if the pattern does not match
+ * but already had accumulated matches, MATCHING if the pattern
+ * starts a match, and NO_MATCH if the pattern does not match.
+ * @suppress {missingProperties} See the broken line below.
+ * @override
+ */
+goog.dom.pattern.Repeat.prototype.matchToken = function(token, type) {
+ // Reset if we're starting a new match
+ if (this.needsReset_) {
+ this.reset();
+ }
+
+ // If the option is set, ignore any whitespace only text nodes
+ if (token.nodeType == goog.dom.NodeType.TEXT &&
+ token.nodeValue.match(/^\s+$/)) {
+ return goog.dom.pattern.MatchType.MATCHING;
+ }
+
+ switch (this.pattern_.matchToken(token, type)) {
+ case goog.dom.pattern.MatchType.MATCH:
+ // Record the first token we match.
+ if (this.count == 0) {
+ this.matchedNode = token;
+ }
+
+ // Mark the match
+ this.count++;
+
+ // Add to the list
+ this.matches.push(this.pattern_.matchedNode);
+
+ // Check if this match hits our maximum
+ if (this.maximum_ !== null && this.count == this.maximum_) {
+ this.needsReset_ = true;
+ return goog.dom.pattern.MatchType.MATCH;
+ } else {
+ return goog.dom.pattern.MatchType.MATCHING;
+ }
+
+ case goog.dom.pattern.MatchType.MATCHING:
+ // This can happen when our child pattern is a sequence or a repetition.
+ return goog.dom.pattern.MatchType.MATCHING;
+
+ case goog.dom.pattern.MatchType.BACKTRACK_MATCH:
+ // This happens if our child pattern is repetitive too.
+ // TODO(robbyw): Backtrack further if necessary.
+ this.count++;
+
+ // NOTE(nicksantos): This line of code is broken. this.patterns_ doesn't
+ // exist, and this.currentPosition_ doesn't exit. When this is fixed,
+ // remove the missingProperties suppression above.
+ if (this.currentPosition_ == this.patterns_.length) {
+ this.needsReset_ = true;
+ return goog.dom.pattern.MatchType.BACKTRACK_MATCH;
+ } else {
+ // Retry the same token on the next iteration of the child pattern.
+ return this.matchToken(token, type);
+ }
+
+ default:
+ this.needsReset_ = true;
+ if (this.count >= this.minimum_) {
+ return goog.dom.pattern.MatchType.BACKTRACK_MATCH;
+ } else {
+ return goog.dom.pattern.MatchType.NO_MATCH;
+ }
+ }
+};
+
+
+/**
+ * Reset any internal state this pattern keeps.
+ * @override
+ */
+goog.dom.pattern.Repeat.prototype.reset = function() {
+ this.pattern_.reset();
+ this.count = 0;
+ this.needsReset_ = false;
+ this.matches.length = 0;
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/pattern/sequence.js b/wmts-hidpi/closure-library/closure/goog/dom/pattern/sequence.js
new file mode 100644
index 0000000000..df40fd6f61
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/pattern/sequence.js
@@ -0,0 +1,141 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview DOM pattern to match a sequence of other patterns.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+goog.provide('goog.dom.pattern.Sequence');
+
+goog.require('goog.dom.NodeType');
+goog.require('goog.dom.pattern.AbstractPattern');
+goog.require('goog.dom.pattern.MatchType');
+
+
+
+/**
+ * Pattern object that matches a sequence of other patterns.
+ *
+ * @param {Array.MATCH if the pattern
+ * matches, MATCHING if the pattern starts a match, and
+ * NO_MATCH if the pattern does not match.
+ * @override
+ */
+goog.dom.pattern.Sequence.prototype.matchToken = function(token, type) {
+ // If the option is set, ignore any whitespace only text nodes
+ if (this.ignoreWhitespace_ && token.nodeType == goog.dom.NodeType.TEXT &&
+ goog.dom.pattern.BREAKING_TEXTNODE_RE.test(token.nodeValue)) {
+ return goog.dom.pattern.MatchType.MATCHING;
+ }
+
+ switch (this.patterns[this.currentPosition_].matchToken(token, type)) {
+ case goog.dom.pattern.MatchType.MATCH:
+ // Record the first token we match.
+ if (this.currentPosition_ == 0) {
+ this.matchedNode = token;
+ }
+
+ // Move forward one position.
+ this.currentPosition_++;
+
+ // Check if this is the last position.
+ if (this.currentPosition_ == this.patterns.length) {
+ this.reset();
+ return goog.dom.pattern.MatchType.MATCH;
+ } else {
+ return goog.dom.pattern.MatchType.MATCHING;
+ }
+
+ case goog.dom.pattern.MatchType.MATCHING:
+ // This can happen when our child pattern is a sequence or a repetition.
+ return goog.dom.pattern.MatchType.MATCHING;
+
+ case goog.dom.pattern.MatchType.BACKTRACK_MATCH:
+ // This means a repetitive match succeeded 1 token ago.
+ // TODO(robbyw): Backtrack further if necessary.
+ this.currentPosition_++;
+
+ if (this.currentPosition_ == this.patterns.length) {
+ this.reset();
+ return goog.dom.pattern.MatchType.BACKTRACK_MATCH;
+ } else {
+ // Retry the same token on the next pattern.
+ return this.matchToken(token, type);
+ }
+
+ default:
+ this.reset();
+ return goog.dom.pattern.MatchType.NO_MATCH;
+ }
+};
+
+
+/**
+ * Reset any internal state this pattern keeps.
+ * @override
+ */
+goog.dom.pattern.Sequence.prototype.reset = function() {
+ if (this.patterns[this.currentPosition_]) {
+ this.patterns[this.currentPosition_].reset();
+ }
+ this.currentPosition_ = 0;
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/pattern/starttag.js b/wmts-hidpi/closure-library/closure/goog/dom/pattern/starttag.js
new file mode 100644
index 0000000000..4ce01135ea
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/pattern/starttag.js
@@ -0,0 +1,53 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview DOM pattern to match the start of a tag.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+goog.provide('goog.dom.pattern.StartTag');
+
+goog.require('goog.dom.TagWalkType');
+goog.require('goog.dom.pattern.Tag');
+
+
+
+/**
+ * Pattern object that matches an opening tag.
+ *
+ * @param {string|RegExp} tag Name of the tag. Also will accept a regular
+ * expression to match against the tag name.
+ * @param {Object=} opt_attrs Optional map of attribute names to desired values.
+ * This pattern will only match when all attributes are present and match
+ * the string or regular expression value provided here.
+ * @param {Object=} opt_styles Optional map of CSS style names to desired
+ * values. This pattern will only match when all styles are present and
+ * match the string or regular expression value provided here.
+ * @param {Function=} opt_test Optional function that takes the element as a
+ * parameter and returns true if this pattern should match it.
+ * @constructor
+ * @extends {goog.dom.pattern.Tag}
+ */
+goog.dom.pattern.StartTag = function(tag, opt_attrs, opt_styles, opt_test) {
+ goog.dom.pattern.Tag.call(
+ this,
+ tag,
+ goog.dom.TagWalkType.START_TAG,
+ opt_attrs,
+ opt_styles,
+ opt_test);
+};
+goog.inherits(goog.dom.pattern.StartTag, goog.dom.pattern.Tag);
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/pattern/tag.js b/wmts-hidpi/closure-library/closure/goog/dom/pattern/tag.js
new file mode 100644
index 0000000000..d04ccd3a3f
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/pattern/tag.js
@@ -0,0 +1,150 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview DOM pattern to match a tag.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+goog.provide('goog.dom.pattern.Tag');
+
+goog.require('goog.dom.pattern');
+goog.require('goog.dom.pattern.AbstractPattern');
+goog.require('goog.dom.pattern.MatchType');
+goog.require('goog.object');
+
+
+
+/**
+ * Pattern object that matches an tag.
+ *
+ * @param {string|RegExp} tag Name of the tag. Also will accept a regular
+ * expression to match against the tag name.
+ * @param {goog.dom.TagWalkType} type Type of token to match.
+ * @param {Object=} opt_attrs Optional map of attribute names to desired values.
+ * This pattern will only match when all attributes are present and match
+ * the string or regular expression value provided here.
+ * @param {Object=} opt_styles Optional map of CSS style names to desired
+ * values. This pattern will only match when all styles are present and
+ * match the string or regular expression value provided here.
+ * @param {Function=} opt_test Optional function that takes the element as a
+ * parameter and returns true if this pattern should match it.
+ * @constructor
+ * @extends {goog.dom.pattern.AbstractPattern}
+ */
+goog.dom.pattern.Tag = function(tag, type, opt_attrs, opt_styles, opt_test) {
+ if (goog.isString(tag)) {
+ this.tag_ = tag.toUpperCase();
+ } else {
+ this.tag_ = tag;
+ }
+
+ this.type_ = type;
+
+ this.attrs_ = opt_attrs || null;
+ this.styles_ = opt_styles || null;
+ this.test_ = opt_test || null;
+};
+goog.inherits(goog.dom.pattern.Tag, goog.dom.pattern.AbstractPattern);
+
+
+/**
+ * The tag to match.
+ *
+ * @type {string|RegExp}
+ * @private
+ */
+goog.dom.pattern.Tag.prototype.tag_;
+
+
+/**
+ * The type of token to match.
+ *
+ * @type {goog.dom.TagWalkType}
+ * @private
+ */
+goog.dom.pattern.Tag.prototype.type_;
+
+
+/**
+ * The attributes to test for.
+ *
+ * @type {Object}
+ * @private
+ */
+goog.dom.pattern.Tag.prototype.attrs_ = null;
+
+
+/**
+ * The styles to test for.
+ *
+ * @type {Object}
+ * @private
+ */
+goog.dom.pattern.Tag.prototype.styles_ = null;
+
+
+/**
+ * Function that takes the element as a parameter and returns true if this
+ * pattern should match it.
+ *
+ * @type {Function}
+ * @private
+ */
+goog.dom.pattern.Tag.prototype.test_ = null;
+
+
+/**
+ * Test whether the given token is a tag token which matches the tag name,
+ * style, and attributes provided in the constructor.
+ *
+ * @param {Node} token Token to match against.
+ * @param {goog.dom.TagWalkType} type The type of token.
+ * @return {goog.dom.pattern.MatchType} MATCH if the pattern
+ * matches, NO_MATCH otherwise.
+ * @override
+ */
+goog.dom.pattern.Tag.prototype.matchToken = function(token, type) {
+ // Check the direction and tag name.
+ if (type == this.type_ &&
+ goog.dom.pattern.matchStringOrRegex(this.tag_, token.nodeName)) {
+ // Check the attributes.
+ if (this.attrs_ &&
+ !goog.object.every(
+ this.attrs_,
+ goog.dom.pattern.matchStringOrRegexMap,
+ token)) {
+ return goog.dom.pattern.MatchType.NO_MATCH;
+ }
+ // Check the styles.
+ if (this.styles_ &&
+ !goog.object.every(
+ this.styles_,
+ goog.dom.pattern.matchStringOrRegexMap,
+ token.style)) {
+ return goog.dom.pattern.MatchType.NO_MATCH;
+ }
+
+ if (this.test_ && !this.test_(token)) {
+ return goog.dom.pattern.MatchType.NO_MATCH;
+ }
+
+ // If we reach this point, we have a match and should save it.
+ this.matchedNode = token;
+ return goog.dom.pattern.MatchType.MATCH;
+ }
+
+ return goog.dom.pattern.MatchType.NO_MATCH;
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/pattern/text.js b/wmts-hidpi/closure-library/closure/goog/dom/pattern/text.js
new file mode 100644
index 0000000000..5b625ab84e
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/pattern/text.js
@@ -0,0 +1,70 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview DOM pattern to match a text node.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+goog.provide('goog.dom.pattern.Text');
+
+goog.require('goog.dom.NodeType');
+goog.require('goog.dom.pattern');
+goog.require('goog.dom.pattern.AbstractPattern');
+goog.require('goog.dom.pattern.MatchType');
+
+
+
+/**
+ * Pattern object that matches text by exact matching or regular expressions.
+ *
+ * @param {string|RegExp} match String or regular expression to match against.
+ * @constructor
+ * @extends {goog.dom.pattern.AbstractPattern}
+ */
+goog.dom.pattern.Text = function(match) {
+ this.match_ = match;
+};
+goog.inherits(goog.dom.pattern.Text, goog.dom.pattern.AbstractPattern);
+
+
+/**
+ * The text or regular expression to match.
+ *
+ * @type {string|RegExp}
+ * @private
+ */
+goog.dom.pattern.Text.prototype.match_;
+
+
+/**
+ * Test whether the given token is a text token which matches the string or
+ * regular expression provided in the constructor.
+ *
+ * @param {Node} token Token to match against.
+ * @param {goog.dom.TagWalkType} type The type of token.
+ * @return {goog.dom.pattern.MatchType} MATCH if the pattern
+ * matches, NO_MATCH otherwise.
+ * @override
+ */
+goog.dom.pattern.Text.prototype.matchToken = function(token, type) {
+ if (token.nodeType == goog.dom.NodeType.TEXT &&
+ goog.dom.pattern.matchStringOrRegex(this.match_, token.nodeValue)) {
+ this.matchedNode = token;
+ return goog.dom.pattern.MatchType.MATCH;
+ }
+
+ return goog.dom.pattern.MatchType.NO_MATCH;
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/range.js b/wmts-hidpi/closure-library/closure/goog/dom/range.js
new file mode 100644
index 0000000000..3df70816ed
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/range.js
@@ -0,0 +1,226 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Utilities for working with ranges in HTML documents.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ * @author ojan@google.com (Ojan Vafai)
+ * @author jparent@google.com (Julie Parent)
+ */
+
+goog.provide('goog.dom.Range');
+
+goog.require('goog.dom');
+goog.require('goog.dom.AbstractRange');
+goog.require('goog.dom.ControlRange');
+goog.require('goog.dom.MultiRange');
+goog.require('goog.dom.NodeType');
+goog.require('goog.dom.TextRange');
+goog.require('goog.userAgent');
+
+
+/**
+ * Create a new selection from the given browser window's current selection.
+ * Note that this object does not auto-update if the user changes their
+ * selection and should be used as a snapshot.
+ * @param {Window=} opt_win The window to get the selection of. Defaults to the
+ * window this class was defined in.
+ * @return {goog.dom.AbstractRange?} A range wrapper object, or null if there
+ * was an error.
+ */
+goog.dom.Range.createFromWindow = function(opt_win) {
+ var sel = goog.dom.AbstractRange.getBrowserSelectionForWindow(
+ opt_win || window);
+ return sel && goog.dom.Range.createFromBrowserSelection(sel);
+};
+
+
+/**
+ * Create a new range wrapper from the given browser selection object. Note
+ * that this object does not auto-update if the user changes their selection and
+ * should be used as a snapshot.
+ * @param {!Object} selection The browser selection object.
+ * @return {goog.dom.AbstractRange?} A range wrapper object or null if there
+ * was an error.
+ */
+goog.dom.Range.createFromBrowserSelection = function(selection) {
+ var range;
+ var isReversed = false;
+ if (selection.createRange) {
+ /** @preserveTry */
+ try {
+ range = selection.createRange();
+ } catch (e) {
+ // Access denied errors can be thrown here in IE if the selection was
+ // a flash obj or if there are cross domain issues
+ return null;
+ }
+ } else if (selection.rangeCount) {
+ if (selection.rangeCount > 1) {
+ return goog.dom.MultiRange.createFromBrowserSelection(
+ /** @type {Selection} */ (selection));
+ } else {
+ range = selection.getRangeAt(0);
+ isReversed = goog.dom.Range.isReversed(selection.anchorNode,
+ selection.anchorOffset, selection.focusNode, selection.focusOffset);
+ }
+ } else {
+ return null;
+ }
+
+ return goog.dom.Range.createFromBrowserRange(range, isReversed);
+};
+
+
+/**
+ * Create a new range wrapper from the given browser range object.
+ * @param {Range|TextRange} range The browser range object.
+ * @param {boolean=} opt_isReversed Whether the focus node is before the anchor
+ * node.
+ * @return {goog.dom.AbstractRange} A range wrapper object.
+ */
+goog.dom.Range.createFromBrowserRange = function(range, opt_isReversed) {
+ // Create an IE control range when appropriate.
+ return goog.dom.AbstractRange.isNativeControlRange(range) ?
+ goog.dom.ControlRange.createFromBrowserRange(range) :
+ goog.dom.TextRange.createFromBrowserRange(range, opt_isReversed);
+};
+
+
+/**
+ * Create a new range wrapper that selects the given node's text.
+ * @param {Node} node The node to select.
+ * @param {boolean=} opt_isReversed Whether the focus node is before the anchor
+ * node.
+ * @return {goog.dom.AbstractRange} A range wrapper object.
+ */
+goog.dom.Range.createFromNodeContents = function(node, opt_isReversed) {
+ return goog.dom.TextRange.createFromNodeContents(node, opt_isReversed);
+};
+
+
+/**
+ * Create a new range wrapper that represents a caret at the given node,
+ * accounting for the given offset. This always creates a TextRange, regardless
+ * of whether node is an image node or other control range type node.
+ * @param {Node} node The node to place a caret at.
+ * @param {number} offset The offset within the node to place the caret at.
+ * @return {goog.dom.AbstractRange} A range wrapper object.
+ */
+goog.dom.Range.createCaret = function(node, offset) {
+ return goog.dom.TextRange.createFromNodes(node, offset, node, offset);
+};
+
+
+/**
+ * Create a new range wrapper that selects the area between the given nodes,
+ * accounting for the given offsets.
+ * @param {Node} anchorNode The node to anchor on.
+ * @param {number} anchorOffset The offset within the node to anchor on.
+ * @param {Node} focusNode The node to focus on.
+ * @param {number} focusOffset The offset within the node to focus on.
+ * @return {goog.dom.AbstractRange} A range wrapper object.
+ */
+goog.dom.Range.createFromNodes = function(anchorNode, anchorOffset, focusNode,
+ focusOffset) {
+ return goog.dom.TextRange.createFromNodes(anchorNode, anchorOffset, focusNode,
+ focusOffset);
+};
+
+
+/**
+ * Clears the window's selection.
+ * @param {Window=} opt_win The window to get the selection of. Defaults to the
+ * window this class was defined in.
+ */
+goog.dom.Range.clearSelection = function(opt_win) {
+ var sel = goog.dom.AbstractRange.getBrowserSelectionForWindow(
+ opt_win || window);
+ if (!sel) {
+ return;
+ }
+ if (sel.empty) {
+ // We can't just check that the selection is empty, becuase IE
+ // sometimes gets confused.
+ try {
+ sel.empty();
+ } catch (e) {
+ // Emptying an already empty selection throws an exception in IE
+ }
+ } else {
+ try {
+ sel.removeAllRanges();
+ } catch (e) {
+ // This throws in IE9 if the range has been invalidated; for example, if
+ // the user clicked on an element which disappeared during the event
+ // handler.
+ }
+ }
+};
+
+
+/**
+ * Tests if the window has a selection.
+ * @param {Window=} opt_win The window to check the selection of. Defaults to
+ * the window this class was defined in.
+ * @return {boolean} Whether the window has a selection.
+ */
+goog.dom.Range.hasSelection = function(opt_win) {
+ var sel = goog.dom.AbstractRange.getBrowserSelectionForWindow(
+ opt_win || window);
+ return !!sel && (goog.userAgent.IE ? sel.type != 'None' : !!sel.rangeCount);
+};
+
+
+/**
+ * Returns whether the focus position occurs before the anchor position.
+ * @param {Node} anchorNode The node to anchor on.
+ * @param {number} anchorOffset The offset within the node to anchor on.
+ * @param {Node} focusNode The node to focus on.
+ * @param {number} focusOffset The offset within the node to focus on.
+ * @return {boolean} Whether the focus position occurs before the anchor
+ * position.
+ */
+goog.dom.Range.isReversed = function(anchorNode, anchorOffset, focusNode,
+ focusOffset) {
+ if (anchorNode == focusNode) {
+ return focusOffset < anchorOffset;
+ }
+ var child;
+ if (anchorNode.nodeType == goog.dom.NodeType.ELEMENT && anchorOffset) {
+ child = anchorNode.childNodes[anchorOffset];
+ if (child) {
+ anchorNode = child;
+ anchorOffset = 0;
+ } else if (goog.dom.contains(anchorNode, focusNode)) {
+ // If focus node is contained in anchorNode, it must be before the
+ // end of the node. Hence we are reversed.
+ return true;
+ }
+ }
+ if (focusNode.nodeType == goog.dom.NodeType.ELEMENT && focusOffset) {
+ child = focusNode.childNodes[focusOffset];
+ if (child) {
+ focusNode = child;
+ focusOffset = 0;
+ } else if (goog.dom.contains(focusNode, anchorNode)) {
+ // If anchor node is contained in focusNode, it must be before the
+ // end of the node. Hence we are not reversed.
+ return false;
+ }
+ }
+ return (goog.dom.compareNodeOrder(anchorNode, focusNode) ||
+ anchorOffset - focusOffset) > 0;
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/rangeendpoint.js b/wmts-hidpi/closure-library/closure/goog/dom/rangeendpoint.js
new file mode 100644
index 0000000000..f8d0fe446c
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/rangeendpoint.js
@@ -0,0 +1,32 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Simple struct for endpoints of a range.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+
+goog.provide('goog.dom.RangeEndpoint');
+
+
+/**
+ * Constants for selection endpoints.
+ * @enum {number}
+ */
+goog.dom.RangeEndpoint = {
+ START: 1,
+ END: 0
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/savedcaretrange.js b/wmts-hidpi/closure-library/closure/goog/dom/savedcaretrange.js
new file mode 100644
index 0000000000..ed3aecfbfa
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/savedcaretrange.js
@@ -0,0 +1,215 @@
+// Copyright 2008 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview An API for saving and restoring ranges as HTML carets.
+ *
+ * @author nicksantos@google.com (Nick Santos)
+ */
+
+
+goog.provide('goog.dom.SavedCaretRange');
+
+goog.require('goog.array');
+goog.require('goog.dom');
+goog.require('goog.dom.SavedRange');
+goog.require('goog.dom.TagName');
+goog.require('goog.string');
+
+
+
+/**
+ * A struct for holding context about saved selections.
+ * This can be used to preserve the selection and restore while the DOM is
+ * manipulated, or through an asynchronous call. Use goog.dom.Range factory
+ * methods to obtain an {@see goog.dom.AbstractRange} instance, and use
+ * {@see goog.dom.AbstractRange#saveUsingCarets} to obtain a SavedCaretRange.
+ * For editor ranges under content-editable elements or design-mode iframes,
+ * prefer using {@see goog.editor.range.saveUsingNormalizedCarets}.
+ * @param {goog.dom.AbstractRange} range The range being saved.
+ * @constructor
+ * @extends {goog.dom.SavedRange}
+ */
+goog.dom.SavedCaretRange = function(range) {
+ goog.dom.SavedRange.call(this);
+
+ /**
+ * The DOM id of the caret at the start of the range.
+ * @type {string}
+ * @private
+ */
+ this.startCaretId_ = goog.string.createUniqueString();
+
+ /**
+ * The DOM id of the caret at the end of the range.
+ * @type {string}
+ * @private
+ */
+ this.endCaretId_ = goog.string.createUniqueString();
+
+ /**
+ * Whether the range is reversed (anchor at the end).
+ * @private {boolean}
+ */
+ this.reversed_ = range.isReversed();
+
+ /**
+ * A DOM helper for storing the current document context.
+ * @type {goog.dom.DomHelper}
+ * @private
+ */
+ this.dom_ = goog.dom.getDomHelper(range.getDocument());
+
+ range.surroundWithNodes(this.createCaret_(true), this.createCaret_(false));
+};
+goog.inherits(goog.dom.SavedCaretRange, goog.dom.SavedRange);
+
+
+/**
+ * Gets the range that this SavedCaretRage represents, without selecting it
+ * or removing the carets from the DOM.
+ * @return {goog.dom.AbstractRange?} An abstract range.
+ */
+goog.dom.SavedCaretRange.prototype.toAbstractRange = function() {
+ var range = null;
+ var startCaret = this.getCaret(true);
+ var endCaret = this.getCaret(false);
+ if (startCaret && endCaret) {
+ /** @suppress {missingRequire} circular dependency */
+ range = goog.dom.Range.createFromNodes(startCaret, 0, endCaret, 0);
+ }
+ return range;
+};
+
+
+/**
+ * Gets carets.
+ * @param {boolean} start If true, returns the start caret. Otherwise, get the
+ * end caret.
+ * @return {Element} The start or end caret in the given document.
+ */
+goog.dom.SavedCaretRange.prototype.getCaret = function(start) {
+ return this.dom_.getElement(start ? this.startCaretId_ : this.endCaretId_);
+};
+
+
+/**
+ * Removes the carets from the current restoration document.
+ * @param {goog.dom.AbstractRange=} opt_range A range whose offsets have already
+ * been adjusted for caret removal; it will be adjusted if it is also
+ * affected by post-removal operations, such as text node normalization.
+ * @return {goog.dom.AbstractRange|undefined} The adjusted range, if opt_range
+ * was provided.
+ */
+goog.dom.SavedCaretRange.prototype.removeCarets = function(opt_range) {
+ goog.dom.removeNode(this.getCaret(true));
+ goog.dom.removeNode(this.getCaret(false));
+ return opt_range;
+};
+
+
+/**
+ * Sets the document where the range will be restored.
+ * @param {!Document} doc An HTML document.
+ */
+goog.dom.SavedCaretRange.prototype.setRestorationDocument = function(doc) {
+ this.dom_.setDocument(doc);
+};
+
+
+/**
+ * Reconstruct the selection from the given saved range. Removes carets after
+ * restoring the selection. If restore does not dispose this saved range, it may
+ * only be restored a second time if innerHTML or some other mechanism is used
+ * to restore the carets to the dom.
+ * @return {goog.dom.AbstractRange?} Restored selection.
+ * @override
+ * @protected
+ */
+goog.dom.SavedCaretRange.prototype.restoreInternal = function() {
+ var range = null;
+ var anchorCaret = this.getCaret(!this.reversed_);
+ var focusCaret = this.getCaret(this.reversed_);
+ if (anchorCaret && focusCaret) {
+ var anchorNode = anchorCaret.parentNode;
+ var anchorOffset = goog.array.indexOf(anchorNode.childNodes, anchorCaret);
+ var focusNode = focusCaret.parentNode;
+ var focusOffset = goog.array.indexOf(focusNode.childNodes, focusCaret);
+ if (focusNode == anchorNode) {
+ // Compensate for the start caret being removed.
+ if (this.reversed_) {
+ anchorOffset--;
+ } else {
+ focusOffset--;
+ }
+ }
+ /** @suppress {missingRequire} circular dependency */
+ range = goog.dom.Range.createFromNodes(anchorNode, anchorOffset,
+ focusNode, focusOffset);
+ range = this.removeCarets(range);
+ range.select();
+ } else {
+ // If only one caret was found, remove it.
+ this.removeCarets();
+ }
+ return range;
+};
+
+
+/**
+ * Dispose the saved range and remove the carets from the DOM.
+ * @override
+ * @protected
+ */
+goog.dom.SavedCaretRange.prototype.disposeInternal = function() {
+ this.removeCarets();
+ this.dom_ = null;
+};
+
+
+/**
+ * Creates a caret element.
+ * @param {boolean} start If true, creates the start caret. Otherwise,
+ * creates the end caret.
+ * @return {Element} The new caret element.
+ * @private
+ */
+goog.dom.SavedCaretRange.prototype.createCaret_ = function(start) {
+ return this.dom_.createDom(goog.dom.TagName.SPAN,
+ {'id': start ? this.startCaretId_ : this.endCaretId_});
+};
+
+
+/**
+ * A regex that will match all saved range carets in a string.
+ * @type {RegExp}
+ */
+goog.dom.SavedCaretRange.CARET_REGEX = /<\/span>/ig;
+
+
+/**
+ * Returns whether two strings of html are equal, ignoring any saved carets.
+ * Thus two strings of html whose only difference is the id of their saved
+ * carets will be considered equal, since they represent html with the
+ * same selection.
+ * @param {string} str1 The first string.
+ * @param {string} str2 The second string.
+ * @return {boolean} Whether two strings of html are equal, ignoring any
+ * saved carets.
+ */
+goog.dom.SavedCaretRange.htmlEqual = function(str1, str2) {
+ return str1 == str2 ||
+ str1.replace(goog.dom.SavedCaretRange.CARET_REGEX, '') ==
+ str2.replace(goog.dom.SavedCaretRange.CARET_REGEX, '');
+};
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/savedrange.js b/wmts-hidpi/closure-library/closure/goog/dom/savedrange.js
new file mode 100644
index 0000000000..5a7e951347
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/savedrange.js
@@ -0,0 +1,74 @@
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview A generic interface for saving and restoring ranges.
+ *
+ * @author robbyw@google.com (Robby Walker)
+ */
+
+
+goog.provide('goog.dom.SavedRange');
+
+goog.require('goog.Disposable');
+goog.require('goog.log');
+
+
+
+/**
+ * Abstract interface for a saved range.
+ * @constructor
+ * @extends {goog.Disposable}
+ */
+goog.dom.SavedRange = function() {
+ goog.Disposable.call(this);
+};
+goog.inherits(goog.dom.SavedRange, goog.Disposable);
+
+
+/**
+ * Logging object.
+ * @type {goog.log.Logger}
+ * @private
+ */
+goog.dom.SavedRange.logger_ =
+ goog.log.getLogger('goog.dom.SavedRange');
+
+
+/**
+ * Restores the range and by default disposes of the saved copy. Take note:
+ * this means the by default SavedRange objects are single use objects.
+ * @param {boolean=} opt_stayAlive Whether this SavedRange should stay alive
+ * (not be disposed) after restoring the range. Defaults to false (dispose).
+ * @return {goog.dom.AbstractRange} The restored range.
+ */
+goog.dom.SavedRange.prototype.restore = function(opt_stayAlive) {
+ if (this.isDisposed()) {
+ goog.log.error(goog.dom.SavedRange.logger_,
+ 'Disposed SavedRange objects cannot be restored.');
+ }
+
+ var range = this.restoreInternal();
+ if (!opt_stayAlive) {
+ this.dispose();
+ }
+ return range;
+};
+
+
+/**
+ * Internal method to restore the saved range.
+ * @return {goog.dom.AbstractRange} The restored range.
+ */
+goog.dom.SavedRange.prototype.restoreInternal = goog.abstractMethod;
diff --git a/wmts-hidpi/closure-library/closure/goog/dom/selection.js b/wmts-hidpi/closure-library/closure/goog/dom/selection.js
new file mode 100644
index 0000000000..6d6f69e14f
--- /dev/null
+++ b/wmts-hidpi/closure-library/closure/goog/dom/selection.js
@@ -0,0 +1,470 @@
+// Copyright 2006 The Closure Library Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Utilities for working with selections in input boxes and text
+ * areas.
+ *
+ * @see ../demos/dom_selection.html
+ */
+
+
+goog.provide('goog.dom.selection');
+
+goog.require('goog.string');
+goog.require('goog.userAgent');
+
+
+/**
+ * Sets the place where the selection should start inside a textarea or a text
+ * input
+ * @param {Element} textfield A textarea or text input.
+ * @param {number} pos The position to set the start of the selection at.
+ */
+goog.dom.selection.setStart = function(textfield, pos) {
+ if (goog.dom.selection.useSelectionProperties_(textfield)) {
+ textfield.selectionStart = pos;
+ } else if (goog.userAgent.IE) {
+ // destructuring assignment would have been sweet
+ var tmp = goog.dom.selection.getRangeIe_(textfield);
+ var range = tmp[0];
+ var selectionRange = tmp[1];
+
+ if (range.inRange(selectionRange)) {
+ pos = goog.dom.selection.canonicalizePositionIe_(textfield, pos);
+
+ range.collapse(true);
+ range.move('character', pos);
+ range.select();
+ }
+ }
+};
+
+
+/**
+ * Return the place where the selection starts inside a textarea or a text
+ * input
+ * @param {Element} textfield A textarea or text input.
+ * @return {number} The position where the selection starts or 0 if it was
+ * unable to find the position or no selection exists. Note that we can't
+ * reliably tell the difference between an element that has no selection and
+ * one where it starts at 0.
+ */
+goog.dom.selection.getStart = function(textfield) {
+ return goog.dom.selection.getEndPoints_(textfield, true)[0];
+};
+
+
+/**
+ * Returns the start and end points of the selection within a textarea in IE.
+ * IE treats newline characters as \r\n characters, and we need to check for
+ * these characters at the edge of our selection, to ensure that we return the
+ * right cursor position.
+ * @param {TextRange} range Complete range object, e.g., "Hello\r\n".
+ * @param {TextRange} selRange Selected range object.
+ * @param {boolean} getOnlyStart Value indicating if only start
+ * cursor position is to be returned. In IE, obtaining the end position
+ * involves extra work, hence we have this parameter for calls which need
+ * only start position.
+ * @return {Array.+ * <div>1<span>2</span>3</div> + *+ * + * Will return the following nodes: + * + *
[div, 1, span, 2, span, 3, div]
+ *
+ * With the following states:
+ *
+ * [START, OTHER, START, OTHER, END, OTHER, END]
+ *
+ * And the following depths
+ *
+ * [1, 1, 2, 2, 1, 1, 0]
+ *
+ * Imagining | represents iterator position, the traversal stops at
+ * each of the following locations:
+ *
+ * + * <div>|1|<span>|2|</span>|3|</div>| + *+ * + * The iterator can also be used in reverse mode, which will return the nodes + * and states in the opposite order. The depths will be slightly different + * since, like in normal mode, the depth is computed *after* the given node. + * + * Lastly, it is possible to create an iterator that is unconstrained, meaning + * that it will continue iterating until the end of the document instead of + * until exiting the start node. + * + * @param {Node=} opt_node The start node. If unspecified or null, defaults to + * an empty iterator. + * @param {boolean=} opt_reversed Whether to traverse the tree in reverse. + * @param {boolean=} opt_unconstrained Whether the iterator is not constrained + * to the starting node and its children. + * @param {goog.dom.TagWalkType?=} opt_tagType The type of the position. + * Defaults to the start of the given node for forward iterators, and + * the end of the node for reverse iterators. + * @param {number=} opt_depth The starting tree depth. + * @constructor + * @extends {goog.iter.Iterator} + */ +goog.dom.TagIterator = function(opt_node, opt_reversed, + opt_unconstrained, opt_tagType, opt_depth) { + this.reversed = !!opt_reversed; + if (opt_node) { + this.setPosition(opt_node, opt_tagType); + } + this.depth = opt_depth != undefined ? opt_depth : this.tagType || 0; + if (this.reversed) { + this.depth *= -1; + } + this.constrained = !opt_unconstrained; +}; +goog.inherits(goog.dom.TagIterator, goog.iter.Iterator); + + +/** + * The node this position is located on. + * @type {Node} + */ +goog.dom.TagIterator.prototype.node = null; + + +/** + * The type of this position. + * @type {goog.dom.TagWalkType} + */ +goog.dom.TagIterator.prototype.tagType = goog.dom.TagWalkType.OTHER; + + +/** + * The tree depth of this position relative to where the iterator started. The + * depth is considered to be the tree depth just past the current node, so if an + * iterator is at position
+ *+ * (i.e. the node is the div and the type is START_TAG) its depth will be 1. + * @type {number} + */ +goog.dom.TagIterator.prototype.depth; + + +/** + * Whether the node iterator is moving in reverse. + * @type {boolean} + */ +goog.dom.TagIterator.prototype.reversed; + + +/** + * Whether the iterator is constrained to the starting node and its children. + * @type {boolean} + */ +goog.dom.TagIterator.prototype.constrained; + + +/** + * Whether iteration has started. + * @type {boolean} + * @private + */ +goog.dom.TagIterator.prototype.started_ = false; + + +/** + * Set the position of the iterator. Overwrite the tree node and the position + * type which can be one of the {@link goog.dom.TagWalkType} token types. + * Only overwrites the tree depth when the parameter is specified. + * @param {Node} node The node to set the position to. + * @param {goog.dom.TagWalkType?=} opt_tagType The type of the position + * Defaults to the start of the given node. + * @param {number=} opt_depth The tree depth. + */ +goog.dom.TagIterator.prototype.setPosition = function(node, + opt_tagType, opt_depth) { + this.node = node; + + if (node) { + if (goog.isNumber(opt_tagType)) { + this.tagType = opt_tagType; + } else { + // Auto-determine the proper type + this.tagType = this.node.nodeType != goog.dom.NodeType.ELEMENT ? + goog.dom.TagWalkType.OTHER : + this.reversed ? goog.dom.TagWalkType.END_TAG : + goog.dom.TagWalkType.START_TAG; + } + } + + if (goog.isNumber(opt_depth)) { + this.depth = opt_depth; + } +}; + + +/** + * Replace this iterator's values with values from another. The two iterators + * must be of the same type. + * @param {goog.dom.TagIterator} other The iterator to copy. + * @protected + */ +goog.dom.TagIterator.prototype.copyFrom = function(other) { + this.node = other.node; + this.tagType = other.tagType; + this.depth = other.depth; + this.reversed = other.reversed; + this.constrained = other.constrained; +}; + + +/** + * @return {goog.dom.TagIterator} A copy of this iterator. + */ +goog.dom.TagIterator.prototype.clone = function() { + return new goog.dom.TagIterator(this.node, this.reversed, + !this.constrained, this.tagType, this.depth); +}; + + +/** + * Skip the current tag. + */ +goog.dom.TagIterator.prototype.skipTag = function() { + var check = this.reversed ? goog.dom.TagWalkType.END_TAG : + goog.dom.TagWalkType.START_TAG; + if (this.tagType == check) { + this.tagType = /** @type {goog.dom.TagWalkType} */ (check * -1); + this.depth += this.tagType * (this.reversed ? -1 : 1); + } +}; + + +/** + * Restart the current tag. + */ +goog.dom.TagIterator.prototype.restartTag = function() { + var check = this.reversed ? goog.dom.TagWalkType.START_TAG : + goog.dom.TagWalkType.END_TAG; + if (this.tagType == check) { + this.tagType = /** @type {goog.dom.TagWalkType} */ (check * -1); + this.depth += this.tagType * (this.reversed ? -1 : 1); + } +}; + + +/** + * Move to the next position in the DOM tree. + * @return {Node} Returns the next node, or throws a goog.iter.StopIteration + * exception if the end of the iterator's range has been reached. + * @override + */ +goog.dom.TagIterator.prototype.next = function() { + var node; + + if (this.started_) { + if (!this.node || this.constrained && this.depth == 0) { + throw goog.iter.StopIteration; + } + node = this.node; + + var startType = this.reversed ? goog.dom.TagWalkType.END_TAG : + goog.dom.TagWalkType.START_TAG; + + if (this.tagType == startType) { + // If we have entered the tag, test if there are any children to move to. + var child = this.reversed ? node.lastChild : node.firstChild; + if (child) { + this.setPosition(child); + } else { + // If not, move on to exiting this tag. + this.setPosition(node, + /** @type {goog.dom.TagWalkType} */ (startType * -1)); + } + } else { + var sibling = this.reversed ? node.previousSibling : node.nextSibling; + if (sibling) { + // Try to move to the next node. + this.setPosition(sibling); + } else { + // If no such node exists, exit our parent. + this.setPosition(node.parentNode, + /** @type {goog.dom.TagWalkType} */ (startType * -1)); + } + } + + this.depth += this.tagType * (this.reversed ? -1 : 1); + } else { + this.started_ = true; + } + + // Check the new position for being last, and return it if it's not. + node = this.node; + if (!this.node) { + throw goog.iter.StopIteration; + } + return node; +}; + + +/** + * @return {boolean} Whether next has ever been called on this iterator. + * @protected + */ +goog.dom.TagIterator.prototype.isStarted = function() { + return this.started_; +}; + + +/** + * @return {boolean} Whether this iterator's position is a start tag position. + */ +goog.dom.TagIterator.prototype.isStartTag = function() { + return this.tagType == goog.dom.TagWalkType.START_TAG; +}; + + +/** + * @return {boolean} Whether this iterator's position is an end tag position. + */ +goog.dom.TagIterator.prototype.isEndTag = function() { + return this.tagType == goog.dom.TagWalkType.END_TAG; +}; + + +/** + * @return {boolean} Whether this iterator's position is not at an element node. + */ +goog.dom.TagIterator.prototype.isNonElement = function() { + return this.tagType == goog.dom.TagWalkType.OTHER; +}; + + +/** + * Test if two iterators are at the same position - i.e. if the node and tagType + * is the same. This will still return true if the two iterators are moving in + * opposite directions or have different constraints. + * @param {goog.dom.TagIterator} other The iterator to compare to. + * @return {boolean} Whether the two iterators are at the same position. + */ +goog.dom.TagIterator.prototype.equals = function(other) { + // Nodes must be equal, and we must either have reached the end of our tree + // or be at the same position. + return other.node == this.node && (!this.node || + other.tagType == this.tagType); +}; + + +/** + * Replace the current node with the list of nodes. Reset the iterator so that + * it visits the first of the nodes next. + * @param {...Object} var_args A list of nodes to replace the current node with. + * If the first argument is array-like, it will be used, otherwise all the + * arguments are assumed to be nodes. + */ +goog.dom.TagIterator.prototype.splice = function(var_args) { + // Reset the iterator so that it iterates over the first replacement node in + // the arguments on the next iteration. + var node = this.node; + this.restartTag(); + this.reversed = !this.reversed; + goog.dom.TagIterator.prototype.next.call(this); + this.reversed = !this.reversed; + + // Replace the node with the arguments. + var arr = goog.isArrayLike(arguments[0]) ? arguments[0] : arguments; + for (var i = arr.length - 1; i >= 0; i--) { + goog.dom.insertSiblingAfter(arr[i], node); + } + goog.dom.removeNode(node); +}; diff --git a/wmts-hidpi/closure-library/closure/goog/dom/tagname.js b/wmts-hidpi/closure-library/closure/goog/dom/tagname.js new file mode 100644 index 0000000000..77a9b475a9 --- /dev/null +++ b/wmts-hidpi/closure-library/closure/goog/dom/tagname.js @@ -0,0 +1,159 @@ +// Copyright 2007 The Closure Library Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS-IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/** + * @fileoverview Defines the goog.dom.TagName enum. This enumerates + * all HTML tag names specified in either the the W3C HTML 4.01 index of + * elements or the HTML5 draft specification. + * + * References: + * http://www.w3.org/TR/html401/index/elements.html + * http://dev.w3.org/html5/spec/section-index.html + * + */ +goog.provide('goog.dom.TagName'); + + +/** + * Enum of all html tag names specified by the W3C HTML4.01 and HTML5 + * specifications. + * @enum {string} + */ +goog.dom.TagName = { + A: 'A', + ABBR: 'ABBR', + ACRONYM: 'ACRONYM', + ADDRESS: 'ADDRESS', + APPLET: 'APPLET', + AREA: 'AREA', + ARTICLE: 'ARTICLE', + ASIDE: 'ASIDE', + AUDIO: 'AUDIO', + B: 'B', + BASE: 'BASE', + BASEFONT: 'BASEFONT', + BDI: 'BDI', + BDO: 'BDO', + BIG: 'BIG', + BLOCKQUOTE: 'BLOCKQUOTE', + BODY: 'BODY', + BR: 'BR', + BUTTON: 'BUTTON', + CANVAS: 'CANVAS', + CAPTION: 'CAPTION', + CENTER: 'CENTER', + CITE: 'CITE', + CODE: 'CODE', + COL: 'COL', + COLGROUP: 'COLGROUP', + COMMAND: 'COMMAND', + DATA: 'DATA', + DATALIST: 'DATALIST', + DD: 'DD', + DEL: 'DEL', + DETAILS: 'DETAILS', + DFN: 'DFN', + DIALOG: 'DIALOG', + DIR: 'DIR', + DIV: 'DIV', + DL: 'DL', + DT: 'DT', + EM: 'EM', + EMBED: 'EMBED', + FIELDSET: 'FIELDSET', + FIGCAPTION: 'FIGCAPTION', + FIGURE: 'FIGURE', + FONT: 'FONT', + FOOTER: 'FOOTER', + FORM: 'FORM', + FRAME: 'FRAME', + FRAMESET: 'FRAMESET', + H1: 'H1', + H2: 'H2', + H3: 'H3', + H4: 'H4', + H5: 'H5', + H6: 'H6', + HEAD: 'HEAD', + HEADER: 'HEADER', + HGROUP: 'HGROUP', + HR: 'HR', + HTML: 'HTML', + I: 'I', + IFRAME: 'IFRAME', + IMG: 'IMG', + INPUT: 'INPUT', + INS: 'INS', + ISINDEX: 'ISINDEX', + KBD: 'KBD', + KEYGEN: 'KEYGEN', + LABEL: 'LABEL', + LEGEND: 'LEGEND', + LI: 'LI', + LINK: 'LINK', + MAP: 'MAP', + MARK: 'MARK', + MATH: 'MATH', + MENU: 'MENU', + META: 'META', + METER: 'METER', + NAV: 'NAV', + NOFRAMES: 'NOFRAMES', + NOSCRIPT: 'NOSCRIPT', + OBJECT: 'OBJECT', + OL: 'OL', + OPTGROUP: 'OPTGROUP', + OPTION: 'OPTION', + OUTPUT: 'OUTPUT', + P: 'P', + PARAM: 'PARAM', + PRE: 'PRE', + PROGRESS: 'PROGRESS', + Q: 'Q', + RP: 'RP', + RT: 'RT', + RUBY: 'RUBY', + S: 'S', + SAMP: 'SAMP', + SCRIPT: 'SCRIPT', + SECTION: 'SECTION', + SELECT: 'SELECT', + SMALL: 'SMALL', + SOURCE: 'SOURCE', + SPAN: 'SPAN', + STRIKE: 'STRIKE', + STRONG: 'STRONG', + STYLE: 'STYLE', + SUB: 'SUB', + SUMMARY: 'SUMMARY', + SUP: 'SUP', + SVG: 'SVG', + TABLE: 'TABLE', + TBODY: 'TBODY', + TD: 'TD', + TEXTAREA: 'TEXTAREA', + TFOOT: 'TFOOT', + TH: 'TH', + THEAD: 'THEAD', + TIME: 'TIME', + TITLE: 'TITLE', + TR: 'TR', + TRACK: 'TRACK', + TT: 'TT', + U: 'U', + UL: 'UL', + VAR: 'VAR', + VIDEO: 'VIDEO', + WBR: 'WBR' +}; diff --git a/wmts-hidpi/closure-library/closure/goog/dom/textrange.js b/wmts-hidpi/closure-library/closure/goog/dom/textrange.js new file mode 100644 index 0000000000..73b82ac1ab --- /dev/null +++ b/wmts-hidpi/closure-library/closure/goog/dom/textrange.js @@ -0,0 +1,630 @@ +// Copyright 2007 The Closure Library Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS-IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/** + * @fileoverview Utilities for working with text ranges in HTML documents. + * + * @author robbyw@google.com (Robby Walker) + * @author ojan@google.com (Ojan Vafai) + * @author jparent@google.com (Julie Parent) + */ + + +goog.provide('goog.dom.TextRange'); + +goog.require('goog.array'); +goog.require('goog.dom'); +goog.require('goog.dom.AbstractRange'); +goog.require('goog.dom.RangeType'); +goog.require('goog.dom.SavedRange'); +goog.require('goog.dom.TagName'); +goog.require('goog.dom.TextRangeIterator'); +goog.require('goog.dom.browserrange'); +goog.require('goog.string'); +goog.require('goog.userAgent'); + + + +/** + * Create a new text selection with no properties. Do not use this constructor: + * use one of the goog.dom.Range.createFrom* methods instead. + * @constructor + * @extends {goog.dom.AbstractRange} + */ +goog.dom.TextRange = function() { +}; +goog.inherits(goog.dom.TextRange, goog.dom.AbstractRange); + + +/** + * Create a new range wrapper from the given browser range object. Do not use + * this method directly - please use goog.dom.Range.createFrom* instead. + * @param {Range|TextRange} range The browser range object. + * @param {boolean=} opt_isReversed Whether the focus node is before the anchor + * node. + * @return {goog.dom.TextRange} A range wrapper object. + */ +goog.dom.TextRange.createFromBrowserRange = function(range, opt_isReversed) { + return goog.dom.TextRange.createFromBrowserRangeWrapper_( + goog.dom.browserrange.createRange(range), opt_isReversed); +}; + + +/** + * Create a new range wrapper from the given browser range wrapper. + * @param {goog.dom.browserrange.AbstractRange} browserRange The browser range + * wrapper. + * @param {boolean=} opt_isReversed Whether the focus node is before the anchor + * node. + * @return {goog.dom.TextRange} A range wrapper object. + * @private + */ +goog.dom.TextRange.createFromBrowserRangeWrapper_ = function(browserRange, + opt_isReversed) { + var range = new goog.dom.TextRange(); + + // Initialize the range as a browser range wrapper type range. + range.browserRangeWrapper_ = browserRange; + range.isReversed_ = !!opt_isReversed; + + return range; +}; + + +/** + * Create a new range wrapper that selects the given node's text. Do not use + * this method directly - please use goog.dom.Range.createFrom* instead. + * @param {Node} node The node to select. + * @param {boolean=} opt_isReversed Whether the focus node is before the anchor + * node. + * @return {goog.dom.TextRange} A range wrapper object. + */ +goog.dom.TextRange.createFromNodeContents = function(node, opt_isReversed) { + return goog.dom.TextRange.createFromBrowserRangeWrapper_( + goog.dom.browserrange.createRangeFromNodeContents(node), + opt_isReversed); +}; + + +/** + * Create a new range wrapper that selects the area between the given nodes, + * accounting for the given offsets. Do not use this method directly - please + * use goog.dom.Range.createFrom* instead. + * @param {Node} anchorNode The node to start with. + * @param {number} anchorOffset The offset within the node to start. + * @param {Node} focusNode The node to end with. + * @param {number} focusOffset The offset within the node to end. + * @return {goog.dom.TextRange} A range wrapper object. + */ +goog.dom.TextRange.createFromNodes = function(anchorNode, anchorOffset, + focusNode, focusOffset) { + var range = new goog.dom.TextRange(); + range.isReversed_ = goog.dom.Range.isReversed(anchorNode, anchorOffset, + focusNode, focusOffset); + + // Avoid selecting terminal elements directly + if (goog.dom.isElement(anchorNode) && !goog.dom.canHaveChildren(anchorNode)) { + var parent = anchorNode.parentNode; + anchorOffset = goog.array.indexOf(parent.childNodes, anchorNode); + anchorNode = parent; + } + + if (goog.dom.isElement(focusNode) && !goog.dom.canHaveChildren(focusNode)) { + var parent = focusNode.parentNode; + focusOffset = goog.array.indexOf(parent.childNodes, focusNode); + focusNode = parent; + } + + // Initialize the range as a W3C style range. + if (range.isReversed_) { + range.startNode_ = focusNode; + range.startOffset_ = focusOffset; + range.endNode_ = anchorNode; + range.endOffset_ = anchorOffset; + } else { + range.startNode_ = anchorNode; + range.startOffset_ = anchorOffset; + range.endNode_ = focusNode; + range.endOffset_ = focusOffset; + } + + return range; +}; + + +// Representation 1: a browser range wrapper. + + +/** + * The browser specific range wrapper. This can be null if one of the other + * representations of the range is specified. + * @type {goog.dom.browserrange.AbstractRange?} + * @private + */ +goog.dom.TextRange.prototype.browserRangeWrapper_ = null; + + +// Representation 2: two endpoints specified as nodes + offsets + + +/** + * The start node of the range. This can be null if one of the other + * representations of the range is specified. + * @type {Node} + * @private + */ +goog.dom.TextRange.prototype.startNode_ = null; + + +/** + * The start offset of the range. This can be null if one of the other + * representations of the range is specified. + * @type {?number} + * @private + */ +goog.dom.TextRange.prototype.startOffset_ = null; + + +/** + * The end node of the range. This can be null if one of the other + * representations of the range is specified. + * @type {Node} + * @private + */ +goog.dom.TextRange.prototype.endNode_ = null; + + +/** + * The end offset of the range. This can be null if one of the other + * representations of the range is specified. + * @type {?number} + * @private + */ +goog.dom.TextRange.prototype.endOffset_ = null; + + +/** + * Whether the focus node is before the anchor node. + * @type {boolean} + * @private + */ +goog.dom.TextRange.prototype.isReversed_ = false; + + +// Method implementations + + +/** + * @return {goog.dom.TextRange} A clone of this range. + * @override + */ +goog.dom.TextRange.prototype.clone = function() { + var range = new goog.dom.TextRange(); + range.browserRangeWrapper_ = this.browserRangeWrapper_; + range.startNode_ = this.startNode_; + range.startOffset_ = this.startOffset_; + range.endNode_ = this.endNode_; + range.endOffset_ = this.endOffset_; + range.isReversed_ = this.isReversed_; + + return range; +}; + + +/** @override */ +goog.dom.TextRange.prototype.getType = function() { + return goog.dom.RangeType.TEXT; +}; + + +/** @override */ +goog.dom.TextRange.prototype.getBrowserRangeObject = function() { + return this.getBrowserRangeWrapper_().getBrowserRange(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.setBrowserRangeObject = function(nativeRange) { + // Test if it's a control range by seeing if a control range only method + // exists. + if (goog.dom.AbstractRange.isNativeControlRange(nativeRange)) { + return false; + } + this.browserRangeWrapper_ = goog.dom.browserrange.createRange( + nativeRange); + this.clearCachedValues_(); + return true; +}; + + +/** + * Clear all cached values. + * @private + */ +goog.dom.TextRange.prototype.clearCachedValues_ = function() { + this.startNode_ = this.startOffset_ = this.endNode_ = this.endOffset_ = null; +}; + + +/** @override */ +goog.dom.TextRange.prototype.getTextRangeCount = function() { + return 1; +}; + + +/** @override */ +goog.dom.TextRange.prototype.getTextRange = function(i) { + return this; +}; + + +/** + * @return {goog.dom.browserrange.AbstractRange} The range wrapper object. + * @private + */ +goog.dom.TextRange.prototype.getBrowserRangeWrapper_ = function() { + return this.browserRangeWrapper_ || + (this.browserRangeWrapper_ = goog.dom.browserrange.createRangeFromNodes( + this.getStartNode(), this.getStartOffset(), + this.getEndNode(), this.getEndOffset())); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getContainer = function() { + return this.getBrowserRangeWrapper_().getContainer(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getStartNode = function() { + return this.startNode_ || + (this.startNode_ = this.getBrowserRangeWrapper_().getStartNode()); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getStartOffset = function() { + return this.startOffset_ != null ? this.startOffset_ : + (this.startOffset_ = this.getBrowserRangeWrapper_().getStartOffset()); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getStartPosition = function() { + return this.isReversed() ? + this.getBrowserRangeWrapper_().getEndPosition() : + this.getBrowserRangeWrapper_().getStartPosition(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getEndNode = function() { + return this.endNode_ || + (this.endNode_ = this.getBrowserRangeWrapper_().getEndNode()); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getEndOffset = function() { + return this.endOffset_ != null ? this.endOffset_ : + (this.endOffset_ = this.getBrowserRangeWrapper_().getEndOffset()); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getEndPosition = function() { + return this.isReversed() ? + this.getBrowserRangeWrapper_().getStartPosition() : + this.getBrowserRangeWrapper_().getEndPosition(); +}; + + +/** + * Moves a TextRange to the provided nodes and offsets. + * @param {Node} startNode The node to start with. + * @param {number} startOffset The offset within the node to start. + * @param {Node} endNode The node to end with. + * @param {number} endOffset The offset within the node to end. + * @param {boolean} isReversed Whether the range is reversed. + */ +goog.dom.TextRange.prototype.moveToNodes = function(startNode, startOffset, + endNode, endOffset, + isReversed) { + this.startNode_ = startNode; + this.startOffset_ = startOffset; + this.endNode_ = endNode; + this.endOffset_ = endOffset; + this.isReversed_ = isReversed; + this.browserRangeWrapper_ = null; +}; + + +/** @override */ +goog.dom.TextRange.prototype.isReversed = function() { + return this.isReversed_; +}; + + +/** @override */ +goog.dom.TextRange.prototype.containsRange = function(otherRange, + opt_allowPartial) { + var otherRangeType = otherRange.getType(); + if (otherRangeType == goog.dom.RangeType.TEXT) { + return this.getBrowserRangeWrapper_().containsRange( + otherRange.getBrowserRangeWrapper_(), opt_allowPartial); + } else if (otherRangeType == goog.dom.RangeType.CONTROL) { + var elements = otherRange.getElements(); + var fn = opt_allowPartial ? goog.array.some : goog.array.every; + return fn(elements, function(el) { + return this.containsNode(el, opt_allowPartial); + }, this); + } + return false; +}; + + +/** + * Tests if the given node is in a document. + * @param {Node} node The node to check. + * @return {boolean} Whether the given node is in the given document. + */ +goog.dom.TextRange.isAttachedNode = function(node) { + if (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(9)) { + var returnValue = false; + /** @preserveTry */ + try { + returnValue = node.parentNode; + } catch (e) { + // IE sometimes throws Invalid Argument errors when a node is detached. + // Note: trying to return a value from the above try block can cause IE + // to crash. It is necessary to use the local returnValue + } + return !!returnValue; + } else { + return goog.dom.contains(node.ownerDocument.body, node); + } +}; + + +/** @override */ +goog.dom.TextRange.prototype.isRangeInDocument = function() { + // Ensure any cached nodes are in the document. IE also allows ranges to + // become detached, so we check if the range is still in the document as + // well for IE. + return (!this.startNode_ || + goog.dom.TextRange.isAttachedNode(this.startNode_)) && + (!this.endNode_ || + goog.dom.TextRange.isAttachedNode(this.endNode_)) && + (!(goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(9)) || + this.getBrowserRangeWrapper_().isRangeInDocument()); +}; + + +/** @override */ +goog.dom.TextRange.prototype.isCollapsed = function() { + return this.getBrowserRangeWrapper_().isCollapsed(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getText = function() { + return this.getBrowserRangeWrapper_().getText(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getHtmlFragment = function() { + // TODO(robbyw): Generalize the code in browserrange so it is static and + // just takes an iterator. This would mean we don't always have to create a + // browser range. + return this.getBrowserRangeWrapper_().getHtmlFragment(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getValidHtml = function() { + return this.getBrowserRangeWrapper_().getValidHtml(); +}; + + +/** @override */ +goog.dom.TextRange.prototype.getPastableHtml = function() { + // TODO(robbyw): Get any attributes the table or tr has. + + var html = this.getValidHtml(); + + if (html.match(/^\s*|+ *
+ * var vsm = new goog.dom.ViewportSizeMonitor();
+ * goog.events.listen(vsm, goog.events.EventType.RESIZE, function(e) {
+ * alert('Viewport size changed to ' + vsm.getSize());
+ * });
+ *
+ *
+ * Manually verified on IE6, IE7, FF2, Opera 11, Safari 4 and Chrome.
+ *
+ * @param {Window=} opt_window The window to monitor; defaults to the window in
+ * which this code is executing.
+ * @constructor
+ * @extends {goog.events.EventTarget}
+ */
+goog.dom.ViewportSizeMonitor = function(opt_window) {
+ goog.events.EventTarget.call(this);
+
+ // Default the window to the current window if unspecified.
+ this.window_ = opt_window || window;
+
+ // Listen for window resize events.
+ this.listenerKey_ = goog.events.listen(this.window_,
+ goog.events.EventType.RESIZE, this.handleResize_, false, this);
+
+ // Set the initial size.
+ this.size_ = goog.dom.getViewportSize(this.window_);
+};
+goog.inherits(goog.dom.ViewportSizeMonitor, goog.events.EventTarget);
+
+
+/**
+ * Returns a viewport size monitor for the given window. A new one is created
+ * if it doesn't exist already. This prevents the unnecessary creation of
+ * multiple spooling monitors for a window.
+ * @param {Window=} opt_window The window to monitor; defaults to the window in
+ * which this code is executing.
+ * @return {goog.dom.ViewportSizeMonitor} Monitor for the given window.
+ */
+goog.dom.ViewportSizeMonitor.getInstanceForWindow = function(opt_window) {
+ var currentWindow = opt_window || window;
+ var uid = goog.getUid(currentWindow);
+
+ return goog.dom.ViewportSizeMonitor.windowInstanceMap_[uid] =
+ goog.dom.ViewportSizeMonitor.windowInstanceMap_[uid] ||
+ new goog.dom.ViewportSizeMonitor(currentWindow);
+};
+
+
+/**
+ * Removes and disposes a viewport size monitor for the given window if one
+ * exists.
+ * @param {Window=} opt_window The window whose monitor should be removed;
+ * defaults to the window in which this code is executing.
+ */
+goog.dom.ViewportSizeMonitor.removeInstanceForWindow = function(opt_window) {
+ var uid = goog.getUid(opt_window || window);
+
+ goog.dispose(goog.dom.ViewportSizeMonitor.windowInstanceMap_[uid]);
+ delete goog.dom.ViewportSizeMonitor.windowInstanceMap_[uid];
+};
+
+
+/**
+ * Map of window hash code to viewport size monitor for that window, if
+ * created.
+ * @type {Object.foo
. FF will put the cursor before the + // paragraph on focus, which is wrong. + PUTS_CURSOR_BEFORE_FIRST_BLOCK_ELEMENT_ON_FOCUS: goog.userAgent.GECKO, + + // Whether the selection of one frame is cleared when another frame + // is focused. + CLEARS_SELECTION_WHEN_FOCUS_LEAVES: + goog.userAgent.IE || goog.userAgent.WEBKIT || goog.userAgent.OPERA, + + // Whether "unselectable" is supported as an element style. + HAS_UNSELECTABLE_STYLE: goog.userAgent.GECKO || goog.userAgent.WEBKIT, + + // Whether this browser's "FormatBlock" command does not suck. + FORMAT_BLOCK_WORKS_FOR_BLOCKQUOTES: goog.userAgent.GECKO || + goog.userAgent.WEBKIT || goog.userAgent.OPERA, + + // Whether this browser's "FormatBlock" command may create multiple + // blockquotes. + CREATES_MULTIPLE_BLOCKQUOTES: + (goog.userAgent.WEBKIT && + !goog.userAgent.isVersionOrHigher('534.16')) || + goog.userAgent.OPERA, + + // Whether this browser's "FormatBlock" command will wrap blockquotes + // inside of divs, instead of replacing divs with blockquotes. + WRAPS_BLOCKQUOTE_IN_DIVS: goog.userAgent.OPERA, + + // Whether the readystatechange event is more reliable than load. + PREFERS_READY_STATE_CHANGE_EVENT: goog.userAgent.IE, + + // Whether hitting the tab key will fire a keypress event. + // see http://www.quirksmode.org/js/keys.html + TAB_FIRES_KEYPRESS: !goog.userAgent.IE, + + // Has a standards mode quirk where width=100% doesn't do the right thing, + // but width=99% does. + // TODO(user|user): This should be fixable by less hacky means + NEEDS_99_WIDTH_IN_STANDARDS_MODE: goog.userAgent.IE, + + // Whether keyboard events only reliably fire on the document. + // On Gecko without contentEditable, keyboard events only fire reliably on the + // document element. With contentEditable, the field itself is focusable, + // which means that it will fire key events. This does not apply if + // application is using ContentEditableField or otherwise overriding Field + // not to use an iframe. + USE_DOCUMENT_FOR_KEY_EVENTS: goog.userAgent.GECKO && + !goog.editor.defines.USE_CONTENTEDITABLE_IN_FIREFOX_3, + + // Whether this browser shows non-standard attributes in innerHTML. + SHOWS_CUSTOM_ATTRS_IN_INNER_HTML: goog.userAgent.IE, + + // Whether this browser shrinks empty nodes away to nothing. + // (If so, we need to insert some space characters into nodes that + // shouldn't be collapsed) + COLLAPSES_EMPTY_NODES: + goog.userAgent.GECKO || goog.userAgent.WEBKIT || goog.userAgent.OPERA, + + // Whether we must convert and tags to , . + CONVERT_TO_B_AND_I_TAGS: goog.userAgent.GECKO || goog.userAgent.OPERA, + + // Whether this browser likes to tab through images in contentEditable mode, + // and we like to disable this feature. + TABS_THROUGH_IMAGES: goog.userAgent.IE, + + // Whether this browser unescapes urls when you extract it from the href tag. + UNESCAPES_URLS_WITHOUT_ASKING: goog.userAgent.IE && + !goog.userAgent.isVersionOrHigher('7.0'), + + // Whether this browser supports execCommand("styleWithCSS") to toggle between + // inserting html tags or inline styling for things like bold, italic, etc. + HAS_STYLE_WITH_CSS: + goog.userAgent.GECKO && goog.userAgent.isVersionOrHigher('1.8') || + goog.userAgent.WEBKIT || goog.userAgent.OPERA, + + // Whether clicking on an editable link will take you to that site. + FOLLOWS_EDITABLE_LINKS: goog.userAgent.WEBKIT || + goog.userAgent.IE && goog.userAgent.isVersionOrHigher('9'), + + // Whether this browser has document.activeElement available. + HAS_ACTIVE_ELEMENT: + goog.userAgent.IE || goog.userAgent.OPERA || + goog.userAgent.GECKO && goog.userAgent.isVersionOrHigher('1.9'), + + // Whether this browser supports the setCapture method on DOM elements. + HAS_SET_CAPTURE: goog.userAgent.IE, + + // Whether this browser can't set background color when the selection + // is collapsed. + EATS_EMPTY_BACKGROUND_COLOR: goog.userAgent.GECKO || + goog.userAgent.WEBKIT && !goog.userAgent.isVersionOrHigher('527'), + + // Whether this browser supports the "focusin" or "DOMFocusIn" event + // consistently. + // NOTE(nicksantos): FF supports DOMFocusIn, but doesn't seem to do so + // consistently. + SUPPORTS_FOCUSIN: goog.userAgent.IE || goog.userAgent.OPERA, + + // Whether clicking on an image will cause the selection to move to the image. + // Note: Gecko moves the selection, but it won't always go to the image. + // For example, if the image is wrapped in a div, and you click on the img, + // anchorNode = focusNode = div, anchorOffset = 0, focusOffset = 1, so this + // is another way of "selecting" the image, but there are too many special + // cases like this so we will do the work manually. + SELECTS_IMAGES_ON_CLICK: goog.userAgent.IE || goog.userAgent.OPERA, + + // Whether this browser moves '); + + // + // Hidefocus is needed to ensure that IE7 doesn't show the dotted, focus + // border when you tab into the field. + html.push('', bodyHtml, ''); + + return html.join(''); +}; + + +/** + * Write the initial iframe content in normal mode. + * @param {goog.editor.icontent.FieldFormatInfo} info Formatting info about + * the field. + * @param {string} bodyHtml The HTML to insert as the iframe body. + * @param {goog.editor.icontent.FieldStyleInfo?} style Style info about + * the field, if needed. + * @param {HTMLIFrameElement} iframe The iframe. + */ +goog.editor.icontent.writeNormalInitialBlendedIframe = + function(info, bodyHtml, style, iframe) { + // Firefox blended needs to inherit all the css from the original page. + // Firefox standards mode needs to set extra style for images. + if (info.blended_) { + var field = style.wrapper_; + // If there is padding on the original field, then the iFrame will be + // positioned inside the padding by default. We don't want this, as it + // causes the contents to appear to shift, and also causes the + // scrollbars to appear inside the padding. + // + // To compensate, we set the iframe margins to offset the padding. + var paddingBox = goog.style.getPaddingBox(field); + if (paddingBox.top || paddingBox.left || + paddingBox.right || paddingBox.bottom) { + goog.style.setStyle(iframe, 'margin', + (-paddingBox.top) + 'px ' + + (-paddingBox.right) + 'px ' + + (-paddingBox.bottom) + 'px ' + + (-paddingBox.left) + 'px'); + } + } + + goog.editor.icontent.writeNormalInitialIframe( + info, bodyHtml, style, iframe); +}; + + +/** + * Write the initial iframe content in normal mode. + * @param {goog.editor.icontent.FieldFormatInfo} info Formatting info about + * the field. + * @param {string} bodyHtml The HTML to insert as the iframe body. + * @param {goog.editor.icontent.FieldStyleInfo?} style Style info about + * the field, if needed. + * @param {HTMLIFrameElement} iframe The iframe. + */ +goog.editor.icontent.writeNormalInitialIframe = + function(info, bodyHtml, style, iframe) { + + var html = goog.editor.icontent.getInitialIframeContent_( + info, bodyHtml, style); + + var doc = goog.dom.getFrameContentDocument(iframe); + doc.open(); + doc.write(html); + doc.close(); +}; + + +/** + * Write the initial iframe content in IE/HTTPS mode. + * @param {goog.editor.icontent.FieldFormatInfo} info Formatting info about + * the field. + * @param {Document} doc The iframe document. + * @param {string} bodyHtml The HTML to insert as the iframe body. + */ +goog.editor.icontent.writeHttpsInitialIframe = function(info, doc, bodyHtml) { + var body = doc.body; + + // For HTTPS we already have a document with a doc type and a body element + // and don't want to create a new history entry which can cause data loss if + // the user clicks the back button. + if (goog.editor.BrowserFeature.HAS_CONTENT_EDITABLE) { + body.contentEditable = true; + } + body.className = 'editable'; + body.setAttribute('g_editable', true); + body.hideFocus = true; + body.id = info.fieldId_; + + goog.style.setStyle(body, info.extraStyles_); + body.innerHTML = bodyHtml; +}; + diff --git a/wmts-hidpi/closure-library/closure/goog/editor/link.js b/wmts-hidpi/closure-library/closure/goog/editor/link.js new file mode 100644 index 0000000000..8e70dfe8a4 --- /dev/null +++ b/wmts-hidpi/closure-library/closure/goog/editor/link.js @@ -0,0 +1,359 @@ +// Copyright 2007 The Closure Library Authors. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS-IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/** + * @fileoverview A utility class for managing editable links. + * + * @author nicksantos@google.com (Nick Santos) + */ + +goog.provide('goog.editor.Link'); + +goog.require('goog.array'); +goog.require('goog.dom'); +goog.require('goog.dom.NodeType'); +goog.require('goog.dom.Range'); +goog.require('goog.editor.BrowserFeature'); +goog.require('goog.editor.Command'); +goog.require('goog.editor.node'); +goog.require('goog.editor.range'); +goog.require('goog.string'); +goog.require('goog.string.Unicode'); +goog.require('goog.uri.utils'); +goog.require('goog.uri.utils.ComponentIndex'); + + + +/** + * Wrap an editable link. + * @param {HTMLAnchorElement} anchor The anchor element. + * @param {boolean} isNew Whether this is a new link. + * @constructor + */ +goog.editor.Link = function(anchor, isNew) { + /** + * The link DOM element. + * @type {HTMLAnchorElement} + * @private + */ + this.anchor_ = anchor; + + /** + * Whether this link represents a link just added to the document. + * @type {boolean} + * @private + */ + this.isNew_ = isNew; + + + /** + * Any extra anchors created by the browser from a selection in the same + * operation that created the primary link + * @type {!Array.+ // to outdent them. If the command is enabled without + // styleWithCSS flipped on, then the caret is in a blockquote so + // styleWithCSS must not be used. But if the command is not + // enabled, styleWithCSS should be used so that elements such as + // awith a margin-left style can still be outdented. + // (Opera bug: CORE-21118) + styleWithCss = + !this.getDocument_().queryCommandEnabled('outdent'); + } else { + // Always use styleWithCSS for indenting. Otherwise, Opera will + // make separates around *each* indented line, + // which adds big defaultmargins between each + // indented line. + styleWithCss = true; + } + } + } + // Fall through. + + case goog.editor.plugins.BasicTextFormatter.COMMAND.ORDERED_LIST: + case goog.editor.plugins.BasicTextFormatter.COMMAND.UNORDERED_LIST: + if (goog.editor.BrowserFeature.LEAVES_P_WHEN_REMOVING_LISTS && + this.queryCommandStateInternal_(this.getDocument_(), + command)) { + // IE leaves behind P tags when unapplying lists. + // If we're not in P-mode, then we want divs + // So, unlistify, then convert the Ps into divs. + needsFormatBlockDiv = this.getFieldObject().queryCommandValue( + goog.editor.Command.DEFAULT_TAG) != goog.dom.TagName.P; + } else if (!goog.editor.BrowserFeature.CAN_LISTIFY_BR) { + // IE doesn't convert BRed line breaks into separate list items. + // So convert the BRs to divs, then do the listify. + this.convertBreaksToDivs_(); + } + + // This fix only works in Gecko. + if (goog.userAgent.GECKO && + goog.editor.BrowserFeature.FORGETS_FORMATTING_WHEN_LISTIFYING && + !this.queryCommandValue(command)) { + hasDummySelection |= this.beforeInsertListGecko_(); + } + // Fall through to preserveDir block + + case goog.editor.plugins.BasicTextFormatter.COMMAND.FORMAT_BLOCK: + // Both FF & IE may lose directionality info. Save/restore it. + // TODO(user): Does Safari also need this? + // TODO (gmark, jparent): This isn't ideal because it uses a string + // literal, so if the plugin name changes, it would break. We need a + // better solution. See also other places in code that use + // this.getPluginByClassId('Bidi'). + preserveDir = !!this.getFieldObject().getPluginByClassId('Bidi'); + break; + + case goog.editor.plugins.BasicTextFormatter.COMMAND.SUBSCRIPT: + case goog.editor.plugins.BasicTextFormatter.COMMAND.SUPERSCRIPT: + if (goog.editor.BrowserFeature.NESTS_SUBSCRIPT_SUPERSCRIPT) { + // This browser nests subscript and superscript when both are + // applied, instead of canceling out the first when applying the + // second. + this.applySubscriptSuperscriptWorkarounds_(command); + } + break; + + case goog.editor.plugins.BasicTextFormatter.COMMAND.UNDERLINE: + case goog.editor.plugins.BasicTextFormatter.COMMAND.BOLD: + case goog.editor.plugins.BasicTextFormatter.COMMAND.ITALIC: + // If we are applying the formatting, then we want to have + // styleWithCSS false so that we generate html tags (like ). If we + // are unformatting something, we want to have styleWithCSS true so + // that we can unformat both html tags and inline styling. + // TODO(user): What about WebKit and Opera? + styleWithCss = goog.userAgent.GECKO && + goog.editor.BrowserFeature.HAS_STYLE_WITH_CSS && + this.queryCommandValue(command); + break; + + case goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_COLOR: + case goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_FACE: + // It is very expensive in FF (order of magnitude difference) to use + // font tags instead of styled spans. Whenever possible, + // force FF to use spans. + // Font size is very expensive too, but FF always uses font tags, + // regardless of which styleWithCSS value you use. + styleWithCss = goog.editor.BrowserFeature.HAS_STYLE_WITH_CSS && + goog.userAgent.GECKO; + } + + /** + * Cases where we just use the default execCommand (in addition + * to the above fall-throughs) + * goog.editor.plugins.BasicTextFormatter.COMMAND.STRIKE_THROUGH: + * goog.editor.plugins.BasicTextFormatter.COMMAND.HORIZONTAL_RULE: + * goog.editor.plugins.BasicTextFormatter.COMMAND.SUBSCRIPT: + * goog.editor.plugins.BasicTextFormatter.COMMAND.SUPERSCRIPT: + * goog.editor.plugins.BasicTextFormatter.COMMAND.UNDERLINE: + * goog.editor.plugins.BasicTextFormatter.COMMAND.BOLD: + * goog.editor.plugins.BasicTextFormatter.COMMAND.ITALIC: + * goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_SIZE: + * goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_FACE: + */ + this.execCommandHelper_(command, opt_arg, preserveDir, !!styleWithCss); + + if (hasDummySelection) { + this.getDocument_().execCommand('Delete', false, true); + } + + if (needsFormatBlockDiv) { + this.getDocument_().execCommand('FormatBlock', false, ''); + } + } + // FF loses focus, so we have to set the focus back to the document or the + // user can't type after selecting from menu. In IE, focus is set correctly + // and resetting it here messes it up. + if (goog.userAgent.GECKO && !this.getFieldObject().inModalMode()) { + this.focusField_(); + } + return result; +}; + + +/** + * Focuses on the field. + * @private + */ +goog.editor.plugins.BasicTextFormatter.prototype.focusField_ = function() { + this.getFieldDomHelper().getWindow().focus(); +}; + + +/** + * Gets the command value. + * @param {string} command The command value to get. + * @return {string|boolean|null} The current value of the command in the given + * selection. NOTE: This return type list is not documented in MSDN or MDC + * and has been constructed from experience. Please update it + * if necessary. + * @override + */ +goog.editor.plugins.BasicTextFormatter.prototype.queryCommandValue = function( + command) { + var styleWithCss; + switch (command) { + case goog.editor.plugins.BasicTextFormatter.COMMAND.LINK: + return this.isNodeInState_(goog.dom.TagName.A); + + case goog.editor.plugins.BasicTextFormatter.COMMAND.JUSTIFY_CENTER: + case goog.editor.plugins.BasicTextFormatter.COMMAND.JUSTIFY_FULL: + case goog.editor.plugins.BasicTextFormatter.COMMAND.JUSTIFY_RIGHT: + case goog.editor.plugins.BasicTextFormatter.COMMAND.JUSTIFY_LEFT: + return this.isJustification_(command); + + case goog.editor.plugins.BasicTextFormatter.COMMAND.FORMAT_BLOCK: + // TODO(nicksantos): See if we can use queryCommandValue here. + return goog.editor.plugins.BasicTextFormatter.getSelectionBlockState_( + this.getFieldObject().getRange()); + + case goog.editor.plugins.BasicTextFormatter.COMMAND.INDENT: + case goog.editor.plugins.BasicTextFormatter.COMMAND.OUTDENT: + case goog.editor.plugins.BasicTextFormatter.COMMAND.HORIZONTAL_RULE: + // TODO: See if there are reasonable results to return for + // these commands. + return false; + + case goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_SIZE: + case goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_FACE: + case goog.editor.plugins.BasicTextFormatter.COMMAND.FONT_COLOR: + case goog.editor.plugins.BasicTextFormatter.COMMAND.BACKGROUND_COLOR: + // We use queryCommandValue here since we don't just want to know if a + // color/fontface/fontsize is applied, we want to know WHICH one it is. + return this.queryCommandValueInternal_(this.getDocument_(), command, + goog.editor.BrowserFeature.HAS_STYLE_WITH_CSS && + goog.userAgent.GECKO); + + case goog.editor.plugins.BasicTextFormatter.COMMAND.UNDERLINE: + case goog.editor.plugins.BasicTextFormatter.COMMAND.BOLD: + case goog.editor.plugins.BasicTextFormatter.COMMAND.ITALIC: + styleWithCss = goog.editor.BrowserFeature.HAS_STYLE_WITH_CSS && + goog.userAgent.GECKO; + + default: + /** + * goog.editor.plugins.BasicTextFormatter.COMMAND.STRIKE_THROUGH + * goog.editor.plugins.BasicTextFormatter.COMMAND.SUBSCRIPT + * goog.editor.plugins.BasicTextFormatter.COMMAND.SUPERSCRIPT + * goog.editor.plugins.BasicTextFormatter.COMMAND.UNDERLINE + * goog.editor.plugins.BasicTextFormatter.COMMAND.BOLD + * goog.editor.plugins.BasicTextFormatter.COMMAND.ITALIC + * goog.editor.plugins.BasicTextFormatter.COMMAND.ORDERED_LIST + * goog.editor.plugins.BasicTextFormatter.COMMAND.UNORDERED_LIST + */ + // This only works for commands that use the default execCommand + return this.queryCommandStateInternal_(this.getDocument_(), command, + styleWithCss); + } +}; + + +/** + * @override + */ +goog.editor.plugins.BasicTextFormatter.prototype.prepareContentsHtml = + function(html) { + // If the browser collapses empty nodes and the field has only a script + // tag in it, then it will collapse this node. Which will mean the user + // can't click into it to edit it. + if (goog.editor.BrowserFeature.COLLAPSES_EMPTY_NODES && + html.match(/^\s*