diff --git a/master/apidoc/44f1750883.html b/master/apidoc/44f1750883.html index d335687bc9..9466b181f5 100644 --- a/master/apidoc/44f1750883.html +++ b/master/apidoc/44f1750883.html @@ -137,13 +137,13 @@ items from the cache is the responsibility of the user.
diff --git a/master/apidoc/global.html b/master/apidoc/global.html index 8cfd712a51..495237a3e7 100644 --- a/master/apidoc/global.html +++ b/master/apidoc/global.html @@ -61,7 +61,7 @@
Source:
-
+
@@ -342,13 +342,13 @@
diff --git a/master/apidoc/index.html b/master/apidoc/index.html index 1efcb064fd..4cf4306c20 100644 --- a/master/apidoc/index.html +++ b/master/apidoc/index.html @@ -50,13 +50,13 @@
diff --git a/master/apidoc/ol.AnchoredElement.html b/master/apidoc/ol.AnchoredElement.html index be5c6fc93d..054a478332 100644 --- a/master/apidoc/ol.AnchoredElement.html +++ b/master/apidoc/ol.AnchoredElement.html @@ -2337,13 +2337,13 @@
diff --git a/master/apidoc/ol.Attribution.html b/master/apidoc/ol.Attribution.html index 7c24b1e22d..07b976d1d5 100644 --- a/master/apidoc/ol.Attribution.html +++ b/master/apidoc/ol.Attribution.html @@ -428,13 +428,13 @@
diff --git a/master/apidoc/ol.Collection.html b/master/apidoc/ol.Collection.html index c94fa5c09c..519331e363 100644 --- a/master/apidoc/ol.Collection.html +++ b/master/apidoc/ol.Collection.html @@ -2374,13 +2374,13 @@
diff --git a/master/apidoc/ol.CollectionEvent.html b/master/apidoc/ol.CollectionEvent.html index fa5a4d8053..9ac04b0b8d 100644 --- a/master/apidoc/ol.CollectionEvent.html +++ b/master/apidoc/ol.CollectionEvent.html @@ -455,13 +455,13 @@
diff --git a/master/apidoc/ol.Color.html b/master/apidoc/ol.Color.html index fc076cb143..47d46bc0c5 100644 --- a/master/apidoc/ol.Color.html +++ b/master/apidoc/ol.Color.html @@ -756,13 +756,13 @@
diff --git a/master/apidoc/ol.Constraints.html b/master/apidoc/ol.Constraints.html index 07f05f071c..648848b9f5 100644 --- a/master/apidoc/ol.Constraints.html +++ b/master/apidoc/ol.Constraints.html @@ -294,13 +294,13 @@
diff --git a/master/apidoc/ol.Coordinate.html b/master/apidoc/ol.Coordinate.html index 625cdbf330..fb3e83f227 100644 --- a/master/apidoc/ol.Coordinate.html +++ b/master/apidoc/ol.Coordinate.html @@ -860,13 +860,13 @@
diff --git a/master/apidoc/ol.Ellipsoid.html b/master/apidoc/ol.Ellipsoid.html index 6f2bd8777c..5433ea4ca1 100644 --- a/master/apidoc/ol.Ellipsoid.html +++ b/master/apidoc/ol.Ellipsoid.html @@ -1268,13 +1268,13 @@
diff --git a/master/apidoc/ol.Extent.html b/master/apidoc/ol.Extent.html index ae8874a873..5457c39c8a 100644 --- a/master/apidoc/ol.Extent.html +++ b/master/apidoc/ol.Extent.html @@ -2377,13 +2377,13 @@ extent.
diff --git a/master/apidoc/ol.Geolocation.html b/master/apidoc/ol.Geolocation.html index 5d39318d0a..844ebca81f 100644 --- a/master/apidoc/ol.Geolocation.html +++ b/master/apidoc/ol.Geolocation.html @@ -207,7 +207,7 @@
Source:
-
+
@@ -776,7 +776,7 @@
Source:
-
+
@@ -860,7 +860,7 @@
Source:
-
+
@@ -944,7 +944,7 @@
Source:
-
+
@@ -1028,7 +1028,7 @@
Source:
-
+
@@ -1206,7 +1206,7 @@
Source:
-
+
@@ -1290,7 +1290,7 @@
Source:
-
+
@@ -1374,7 +1374,7 @@
Source:
-
+
@@ -1865,7 +1865,7 @@
Source:
-
+
@@ -2083,13 +2083,13 @@
diff --git a/master/apidoc/ol.Image.html b/master/apidoc/ol.Image.html index 424aaf6b27..fa7a6c9305 100644 --- a/master/apidoc/ol.Image.html +++ b/master/apidoc/ol.Image.html @@ -952,13 +952,13 @@
diff --git a/master/apidoc/ol.ImageTile.html b/master/apidoc/ol.ImageTile.html index cedd44d70f..f0430cd6ca 100644 --- a/master/apidoc/ol.ImageTile.html +++ b/master/apidoc/ol.ImageTile.html @@ -639,13 +639,13 @@
diff --git a/master/apidoc/ol.Kinetic.html b/master/apidoc/ol.Kinetic.html index 8b03de30e1..7eae3cfe22 100644 --- a/master/apidoc/ol.Kinetic.html +++ b/master/apidoc/ol.Kinetic.html @@ -791,13 +791,13 @@
diff --git a/master/apidoc/ol.Map.html b/master/apidoc/ol.Map.html index 83e1f0d937..27ffac436f 100644 --- a/master/apidoc/ol.Map.html +++ b/master/apidoc/ol.Map.html @@ -123,7 +123,7 @@
Source:
-
+
@@ -248,7 +248,7 @@
Source:
-
+
@@ -345,7 +345,7 @@
Source:
-
+
@@ -452,7 +452,7 @@
Source:
-
+
@@ -581,7 +581,7 @@
Source:
-
+
@@ -688,7 +688,7 @@
Source:
-
+
@@ -958,7 +958,7 @@
Source:
-
+
@@ -1021,7 +1021,7 @@
Source:
-
+
@@ -1214,7 +1214,7 @@
Source:
-
+
@@ -1346,7 +1346,7 @@
Source:
-
+
@@ -1427,7 +1427,7 @@
Source:
-
+
@@ -1598,7 +1598,7 @@
Source:
-
+
@@ -1679,7 +1679,7 @@
Source:
-
+
@@ -1810,7 +1810,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -1891,7 +1891,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -1972,7 +1972,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2056,7 +2056,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2231,7 +2231,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2312,7 +2312,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2393,7 +2393,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2561,7 +2561,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2620,7 +2620,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2727,7 +2727,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2786,7 +2786,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -2845,7 +2845,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3086,7 +3086,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3171,7 +3171,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3234,7 +3234,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3476,7 +3476,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3583,7 +3583,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3802,7 +3802,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -3909,7 +3909,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -4152,7 +4152,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -4298,7 +4298,7 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
Source:
-
+
@@ -4336,13 +4336,13 @@ clicks and gestures on an overlay don't trigger any MapBrowserEvent.
diff --git a/master/apidoc/ol.MapBrowserEvent.html b/master/apidoc/ol.MapBrowserEvent.html index 6e0d9a16b7..21a0418c72 100644 --- a/master/apidoc/ol.MapBrowserEvent.html +++ b/master/apidoc/ol.MapBrowserEvent.html @@ -1313,13 +1313,13 @@ FIXME: replace with goog.events.EventType enum once we use
diff --git a/master/apidoc/ol.MapBrowserEventHandler.html b/master/apidoc/ol.MapBrowserEventHandler.html index b751000d1e..b864c0cec8 100644 --- a/master/apidoc/ol.MapBrowserEventHandler.html +++ b/master/apidoc/ol.MapBrowserEventHandler.html @@ -248,13 +248,13 @@
diff --git a/master/apidoc/ol.MapEvent.html b/master/apidoc/ol.MapEvent.html index 73b5ed9530..8a088d719b 100644 --- a/master/apidoc/ol.MapEvent.html +++ b/master/apidoc/ol.MapEvent.html @@ -460,13 +460,13 @@
diff --git a/master/apidoc/ol.Object.html b/master/apidoc/ol.Object.html index a26f009d33..e90b94c1a6 100644 --- a/master/apidoc/ol.Object.html +++ b/master/apidoc/ol.Object.html @@ -1999,13 +1999,13 @@
diff --git a/master/apidoc/ol.Pixel.html b/master/apidoc/ol.Pixel.html index d61abd9dc4..6839257bdd 100644 --- a/master/apidoc/ol.Pixel.html +++ b/master/apidoc/ol.Pixel.html @@ -204,13 +204,13 @@
diff --git a/master/apidoc/ol.PixelBounds.html b/master/apidoc/ol.PixelBounds.html index 79827cd81a..2039eef274 100644 --- a/master/apidoc/ol.PixelBounds.html +++ b/master/apidoc/ol.PixelBounds.html @@ -1518,13 +1518,13 @@
diff --git a/master/apidoc/ol.Projection.html b/master/apidoc/ol.Projection.html index b878d9feeb..b41da895c7 100644 --- a/master/apidoc/ol.Projection.html +++ b/master/apidoc/ol.Projection.html @@ -220,7 +220,7 @@
Source:
-
+
@@ -254,6 +254,56 @@ +

Members

+ +
+ +
+

getPointResolution

+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • projection.js, line 94
+ + + + + + + +
+ + + +
+ +
+

Methods

@@ -297,7 +347,7 @@
Source:
-
+
@@ -378,7 +428,7 @@
Source:
-
+
@@ -459,7 +509,7 @@
Source:
-
+
@@ -540,7 +590,7 @@
Source:
-
+
@@ -600,13 +650,13 @@
diff --git a/master/apidoc/ol.Rectangle.html b/master/apidoc/ol.Rectangle.html index e573bcfb7b..404af41bdf 100644 --- a/master/apidoc/ol.Rectangle.html +++ b/master/apidoc/ol.Rectangle.html @@ -1442,13 +1442,13 @@
diff --git a/master/apidoc/ol.Size.html b/master/apidoc/ol.Size.html index 4db69bbc37..a6e50a611c 100644 --- a/master/apidoc/ol.Size.html +++ b/master/apidoc/ol.Size.html @@ -337,13 +337,13 @@
diff --git a/master/apidoc/ol.Sphere.html b/master/apidoc/ol.Sphere.html index c7595dbc1f..d335c31400 100644 --- a/master/apidoc/ol.Sphere.html +++ b/master/apidoc/ol.Sphere.html @@ -1681,13 +1681,13 @@ latitude.
diff --git a/master/apidoc/ol.Tile.html b/master/apidoc/ol.Tile.html index 54c9f909bf..e69dff0640 100644 --- a/master/apidoc/ol.Tile.html +++ b/master/apidoc/ol.Tile.html @@ -598,13 +598,13 @@
diff --git a/master/apidoc/ol.TileCache.html b/master/apidoc/ol.TileCache.html index 2dc2fa0cb5..255493b361 100644 --- a/master/apidoc/ol.TileCache.html +++ b/master/apidoc/ol.TileCache.html @@ -1589,13 +1589,13 @@
diff --git a/master/apidoc/ol.TileCoord.html b/master/apidoc/ol.TileCoord.html index 02b601da3b..5c32352c76 100644 --- a/master/apidoc/ol.TileCoord.html +++ b/master/apidoc/ol.TileCoord.html @@ -783,13 +783,13 @@
diff --git a/master/apidoc/ol.TileQueue.html b/master/apidoc/ol.TileQueue.html index aaf07fd547..46f341ef4d 100644 --- a/master/apidoc/ol.TileQueue.html +++ b/master/apidoc/ol.TileQueue.html @@ -521,13 +521,13 @@
diff --git a/master/apidoc/ol.TileRange.html b/master/apidoc/ol.TileRange.html index 4b5ade0ec6..c151e6e9c7 100644 --- a/master/apidoc/ol.TileRange.html +++ b/master/apidoc/ol.TileRange.html @@ -1880,13 +1880,13 @@ by its min/max tile coordinates and is inclusive of coordinates.
diff --git a/master/apidoc/ol.View.html b/master/apidoc/ol.View.html index a4cab777a4..c1d533e5f1 100644 --- a/master/apidoc/ol.View.html +++ b/master/apidoc/ol.View.html @@ -1520,13 +1520,13 @@
diff --git a/master/apidoc/ol.View2D.html b/master/apidoc/ol.View2D.html index b55da6b9ce..1933850046 100644 --- a/master/apidoc/ol.View2D.html +++ b/master/apidoc/ol.View2D.html @@ -3475,13 +3475,13 @@
diff --git a/master/apidoc/ol.control.Attribution.html b/master/apidoc/ol.control.Attribution.html index 017b1315a4..3fbf6b2419 100644 --- a/master/apidoc/ol.control.Attribution.html +++ b/master/apidoc/ol.control.Attribution.html @@ -726,13 +726,13 @@
diff --git a/master/apidoc/ol.control.Control.html b/master/apidoc/ol.control.Control.html index 416befcb0c..a430b70b47 100644 --- a/master/apidoc/ol.control.Control.html +++ b/master/apidoc/ol.control.Control.html @@ -493,13 +493,13 @@ to the map here.
diff --git a/master/apidoc/ol.control.DragBox.html b/master/apidoc/ol.control.DragBox.html index 990a76bafc..ba34faeaab 100644 --- a/master/apidoc/ol.control.DragBox.html +++ b/master/apidoc/ol.control.DragBox.html @@ -449,13 +449,13 @@
diff --git a/master/apidoc/ol.control.MousePosition.html b/master/apidoc/ol.control.MousePosition.html index a872a2b7a1..2e1578bdc7 100644 --- a/master/apidoc/ol.control.MousePosition.html +++ b/master/apidoc/ol.control.MousePosition.html @@ -124,7 +124,7 @@
Source:
-
+
@@ -460,7 +460,7 @@
Source:
-
+
@@ -567,7 +567,7 @@
Source:
-
+
@@ -674,7 +674,7 @@
Source:
-
+
@@ -733,7 +733,7 @@
Source:
-
+
@@ -771,13 +771,13 @@
diff --git a/master/apidoc/ol.control.Zoom.html b/master/apidoc/ol.control.Zoom.html index 3a2ae47e67..8620fb7ffe 100644 --- a/master/apidoc/ol.control.Zoom.html +++ b/master/apidoc/ol.control.Zoom.html @@ -123,7 +123,7 @@
Source:
-
+
@@ -508,13 +508,13 @@ to the map here.
diff --git a/master/apidoc/ol.interaction.DblClickZoom.html b/master/apidoc/ol.interaction.DblClickZoom.html index fde35294e6..33444d3341 100644 --- a/master/apidoc/ol.interaction.DblClickZoom.html +++ b/master/apidoc/ol.interaction.DblClickZoom.html @@ -244,13 +244,13 @@
diff --git a/master/apidoc/ol.interaction.Drag.html b/master/apidoc/ol.interaction.Drag.html index 8c5c16fd6c..53747a5bb3 100644 --- a/master/apidoc/ol.interaction.Drag.html +++ b/master/apidoc/ol.interaction.Drag.html @@ -660,13 +660,13 @@
diff --git a/master/apidoc/ol.interaction.DragPan.html b/master/apidoc/ol.interaction.DragPan.html index 161acd7c24..aadf965b5f 100644 --- a/master/apidoc/ol.interaction.DragPan.html +++ b/master/apidoc/ol.interaction.DragPan.html @@ -834,13 +834,13 @@
diff --git a/master/apidoc/ol.interaction.DragRotate.html b/master/apidoc/ol.interaction.DragRotate.html index d9d3709b05..3dc72e8e7a 100644 --- a/master/apidoc/ol.interaction.DragRotate.html +++ b/master/apidoc/ol.interaction.DragRotate.html @@ -779,13 +779,13 @@
diff --git a/master/apidoc/ol.interaction.DragRotateAndZoom.html b/master/apidoc/ol.interaction.DragRotateAndZoom.html index 806af56b08..86e32bcc4c 100644 --- a/master/apidoc/ol.interaction.DragRotateAndZoom.html +++ b/master/apidoc/ol.interaction.DragRotateAndZoom.html @@ -779,13 +779,13 @@
diff --git a/master/apidoc/ol.interaction.DragZoom.html b/master/apidoc/ol.interaction.DragZoom.html index 3505e8061c..42b4d99203 100644 --- a/master/apidoc/ol.interaction.DragZoom.html +++ b/master/apidoc/ol.interaction.DragZoom.html @@ -779,13 +779,13 @@
diff --git a/master/apidoc/ol.interaction.Interaction.html b/master/apidoc/ol.interaction.Interaction.html index 59ef6fbfa7..aea20bece4 100644 --- a/master/apidoc/ol.interaction.Interaction.html +++ b/master/apidoc/ol.interaction.Interaction.html @@ -177,13 +177,13 @@
diff --git a/master/apidoc/ol.interaction.Keyboard.html b/master/apidoc/ol.interaction.Keyboard.html index 609e0cdbdb..9e9daa4166 100644 --- a/master/apidoc/ol.interaction.Keyboard.html +++ b/master/apidoc/ol.interaction.Keyboard.html @@ -326,13 +326,13 @@
diff --git a/master/apidoc/ol.interaction.KeyboardPan.html b/master/apidoc/ol.interaction.KeyboardPan.html index 1592d8f45c..aaba36971c 100644 --- a/master/apidoc/ol.interaction.KeyboardPan.html +++ b/master/apidoc/ol.interaction.KeyboardPan.html @@ -244,13 +244,13 @@
diff --git a/master/apidoc/ol.interaction.KeyboardZoom.html b/master/apidoc/ol.interaction.KeyboardZoom.html index 38404ed0ba..d3d475a276 100644 --- a/master/apidoc/ol.interaction.KeyboardZoom.html +++ b/master/apidoc/ol.interaction.KeyboardZoom.html @@ -196,13 +196,13 @@
diff --git a/master/apidoc/ol.interaction.MouseWheelZoom.html b/master/apidoc/ol.interaction.MouseWheelZoom.html index 84a17accf6..dfcf78e249 100644 --- a/master/apidoc/ol.interaction.MouseWheelZoom.html +++ b/master/apidoc/ol.interaction.MouseWheelZoom.html @@ -244,13 +244,13 @@
diff --git a/master/apidoc/ol.interaction.Touch.html b/master/apidoc/ol.interaction.Touch.html index 48902cf056..8b04872890 100644 --- a/master/apidoc/ol.interaction.Touch.html +++ b/master/apidoc/ol.interaction.Touch.html @@ -149,7 +149,7 @@
Source:
-
+
@@ -195,7 +195,7 @@
Source:
-
+
@@ -241,7 +241,7 @@
Source:
-
+
@@ -257,12 +257,12 @@ -
-

targetTouches :Array.<Object>

+
+

<protected> targetTouches :Array.<Object>

-
+
@@ -287,7 +287,7 @@
Source:
-
+
@@ -394,7 +394,7 @@
Source:
-
+
@@ -475,7 +475,7 @@
Source:
-
+
@@ -513,13 +513,13 @@
diff --git a/master/apidoc/ol.interaction.TouchPan.html b/master/apidoc/ol.interaction.TouchPan.html index 364a96a4a6..9b6471cb1b 100644 --- a/master/apidoc/ol.interaction.TouchPan.html +++ b/master/apidoc/ol.interaction.TouchPan.html @@ -52,6 +52,64 @@ +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeArgumentDescription
kinetic + + +ol.Kinetic= + + + + + + <optional>
+ + + +
(Optional) Kinetic object.
+
@@ -165,12 +223,12 @@ -
-

targetTouches :Array.<Object>

+
+

<protected> targetTouches :Array.<Object>

-
+
@@ -200,7 +258,7 @@
Source:
-
+
@@ -264,7 +322,7 @@
Source:
-
+
@@ -323,7 +381,7 @@
Source:
-
+
@@ -441,7 +499,7 @@
Source:
-
+
@@ -479,13 +537,13 @@
diff --git a/master/apidoc/ol.interaction.TouchRotate.html b/master/apidoc/ol.interaction.TouchRotate.html new file mode 100644 index 0000000000..bf0c49b302 --- /dev/null +++ b/master/apidoc/ol.interaction.TouchRotate.html @@ -0,0 +1,506 @@ + + + + + OpenLayers: Class: ol.interaction.TouchRotate + + + + + + + + + + +
+ +

Class: ol.interaction.TouchRotate

+ + + + + +
+ +
+

+ ol.interaction.TouchRotate +

+ +
+ +
+
+ + + + +
+

new TouchRotate

+ + +
+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeArgumentDescription
threshold + + +number= + + + + + + <optional>
+ + + +
(Optional) Minimal angle to start a rotation. + Default to 0.3 (radian).
+ + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchrotateinteraction.js, line 18
+ + + + + + + +
+ + + + + + + + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + + + +

Members

+ +
+ +
+

<protected> targetTouches :Array.<Object>

+ + +
+
+ + + +
+ + + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + +
Source:
+
  • touchinteraction.js, line 36
+ + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+

handleMapBrowserEvent

+ + +
+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + +
Source:
+
  • touchinteraction.js, line 106
+ + + + + + + +
+ + + + + + + + + +
+ + + +
+

handleTouchEnd

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchrotateinteraction.js, line 101
+ + + + + + + +
+ + + + + + + + + +
+ + + +
+

handleTouchMove

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchrotateinteraction.js, line 53
+ + + + + + + +
+ + + + + + + + + +
+ + + +
+

handleTouchStart

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchrotateinteraction.js, line 117
+ + + + + + + +
+ + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + diff --git a/master/apidoc/ol.interaction.TouchZoom.html b/master/apidoc/ol.interaction.TouchZoom.html new file mode 100644 index 0000000000..7984b77b2e --- /dev/null +++ b/master/apidoc/ol.interaction.TouchZoom.html @@ -0,0 +1,447 @@ + + + + + OpenLayers: Class: ol.interaction.TouchZoom + + + + + + + + + + +
+ +

Class: ol.interaction.TouchZoom

+ + + + + +
+ +
+

+ ol.interaction.TouchZoom +

+ +
+ +
+
+ + + + +
+

new TouchZoom

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchzoominteraction.js, line 16
+ + + + + + + +
+ + + + + + + + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + + + +

Members

+ +
+ +
+

<protected> targetTouches :Array.<Object>

+ + +
+
+ + + +
+ + + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + +
Source:
+
  • touchinteraction.js, line 36
+ + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+

handleMapBrowserEvent

+ + +
+
+ + + + + + + + + + +
+ + + + + + + +
Inherited From:
+
+ + + + + + + + + + + + + +
Source:
+
  • touchinteraction.js, line 106
+ + + + + + + +
+ + + + + + + + + +
+ + + +
+

handleTouchEnd

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchzoominteraction.js, line 70
+ + + + + + + +
+ + + + + + + + + +
+ + + +
+

handleTouchMove

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchzoominteraction.js, line 33
+ + + + + + + +
+ + + + + + + + + +
+ + + +
+

handleTouchStart

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • touchzoominteraction.js, line 88
+ + + + + + + +
+ + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + diff --git a/master/apidoc/ol.layer.ImageLayer.html b/master/apidoc/ol.layer.ImageLayer.html index e715ca572f..55813220f5 100644 --- a/master/apidoc/ol.layer.ImageLayer.html +++ b/master/apidoc/ol.layer.ImageLayer.html @@ -2829,13 +2829,13 @@ permitted).
diff --git a/master/apidoc/ol.layer.Layer.html b/master/apidoc/ol.layer.Layer.html index b653915ce8..241b45b004 100644 --- a/master/apidoc/ol.layer.Layer.html +++ b/master/apidoc/ol.layer.Layer.html @@ -2673,13 +2673,13 @@ permitted).
diff --git a/master/apidoc/ol.layer.TileLayer.html b/master/apidoc/ol.layer.TileLayer.html index ab8e2b63b2..8af9c25180 100644 --- a/master/apidoc/ol.layer.TileLayer.html +++ b/master/apidoc/ol.layer.TileLayer.html @@ -2829,13 +2829,13 @@ permitted).
diff --git a/master/apidoc/ol.parser.XML.html b/master/apidoc/ol.parser.XML.html index 17104bb9ca..f1205831b4 100644 --- a/master/apidoc/ol.parser.XML.html +++ b/master/apidoc/ol.parser.XML.html @@ -970,13 +970,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.ExceptionReport.html b/master/apidoc/ol.parser.ogc.ExceptionReport.html index ef39c48581..1e85293c29 100644 --- a/master/apidoc/ol.parser.ogc.ExceptionReport.html +++ b/master/apidoc/ol.parser.ogc.ExceptionReport.html @@ -1138,13 +1138,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.OWSCommon_v1.html b/master/apidoc/ol.parser.ogc.OWSCommon_v1.html index 1eee29013f..82ae8ae471 100644 --- a/master/apidoc/ol.parser.ogc.OWSCommon_v1.html +++ b/master/apidoc/ol.parser.ogc.OWSCommon_v1.html @@ -1001,13 +1001,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.OWSCommon_v1_1_0.html b/master/apidoc/ol.parser.ogc.OWSCommon_v1_1_0.html index fcdd74b087..ebaa197bf7 100644 --- a/master/apidoc/ol.parser.ogc.OWSCommon_v1_1_0.html +++ b/master/apidoc/ol.parser.ogc.OWSCommon_v1_1_0.html @@ -1001,13 +1001,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.Versioned.html b/master/apidoc/ol.parser.ogc.Versioned.html index a04a896a5b..a94c392df6 100644 --- a/master/apidoc/ol.parser.ogc.Versioned.html +++ b/master/apidoc/ol.parser.ogc.Versioned.html @@ -822,13 +822,13 @@
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities.html b/master/apidoc/ol.parser.ogc.WMSCapabilities.html index 82a295c63b..2391bb133f 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities.html @@ -858,13 +858,13 @@
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html index 441cbffce9..c9a8660b9d 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html @@ -1136,13 +1136,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html index 5fd0b44224..b82b48ecb4 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html @@ -1141,13 +1141,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_0.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_0.html index 2fb5fa3ff5..6f37ccf29a 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_0.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_0.html @@ -1141,13 +1141,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1.html index b9315645ef..19aad04e89 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1.html @@ -1141,13 +1141,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC.html index f2402fa65f..151280e994 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC.html @@ -1141,13 +1141,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_3_0.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_3_0.html index 8cedcca71a..0a6d302a24 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_3_0.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_3_0.html @@ -1141,13 +1141,13 @@ provided).
diff --git a/master/apidoc/ol.parser.ogc.WMTSCapabilities.html b/master/apidoc/ol.parser.ogc.WMTSCapabilities.html index 37eafe161a..61554b96e7 100644 --- a/master/apidoc/ol.parser.ogc.WMTSCapabilities.html +++ b/master/apidoc/ol.parser.ogc.WMTSCapabilities.html @@ -858,13 +858,13 @@
diff --git a/master/apidoc/ol.parser.ogc.WMTSCapabilities_v1_0_0.html b/master/apidoc/ol.parser.ogc.WMTSCapabilities_v1_0_0.html index 29a7ed06cb..771140e448 100644 --- a/master/apidoc/ol.parser.ogc.WMTSCapabilities_v1_0_0.html +++ b/master/apidoc/ol.parser.ogc.WMTSCapabilities_v1_0_0.html @@ -1136,13 +1136,13 @@ provided).
diff --git a/master/apidoc/ol.projection.EPSG3857.html b/master/apidoc/ol.projection.EPSG3857.html index 96230629f2..8ada15ae0d 100644 --- a/master/apidoc/ol.projection.EPSG3857.html +++ b/master/apidoc/ol.projection.EPSG3857.html @@ -453,7 +453,7 @@
Source:
-
+
@@ -539,7 +539,7 @@
Source:
-
+
@@ -625,7 +625,7 @@
Source:
-
+
@@ -665,6 +665,65 @@ + + + + +
+

getPointResolution

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • epsg3857.js, line 137
+ + + + + + + +
+ + + + + + + + +
@@ -711,7 +770,7 @@
Source:
-
+
@@ -786,6 +845,8 @@ Type + Argument + @@ -798,23 +859,91 @@ - point + input -ol.Coordinate +Array.<number> + + + + + - Point. + + Input array of coordinate values. + + + + + + + output + + + + + +Array.<number>= + + + + + + + + + <optional>
+ + + + + + + + + (Optional) Output array of coordinate values. + + + + + + + dimension + + + + + +number= + + + + + + + + + <optional>
+ + + + + + + + + (Optional) Dimension (default is 2). @@ -844,7 +973,7 @@
Source:
-
+
@@ -864,7 +993,7 @@
- Point. + Output array of coordinate values.
@@ -875,7 +1004,7 @@
-ol.Coordinate +Array.<number>
@@ -919,6 +1048,8 @@ Type + Argument + @@ -931,23 +1062,91 @@ - point + input -ol.Coordinate +Array.<number> + + + + + - Point. + + Input array of coordinate values. + + + + + + + output + + + + + +Array.<number>= + + + + + + + + + <optional>
+ + + + + + + + + (Optional) Output array of coordinate values. + + + + + + + dimension + + + + + +number= + + + + + + + + + <optional>
+ + + + + + + + + (Optional) Dimension (default is 2). @@ -977,7 +1176,7 @@
Source:
-
+
@@ -997,7 +1196,7 @@
- Point. + Output array of coordinate values.
@@ -1008,7 +1207,7 @@
-ol.Coordinate +Array.<number>
@@ -1037,13 +1236,13 @@
diff --git a/master/apidoc/ol.projection.EPSG4326.html b/master/apidoc/ol.projection.EPSG4326.html index c81bed7d89..086321014d 100644 --- a/master/apidoc/ol.projection.EPSG4326.html +++ b/master/apidoc/ol.projection.EPSG4326.html @@ -354,7 +354,7 @@
Source:
-
+
@@ -440,7 +440,7 @@
Source:
-
+
@@ -526,7 +526,7 @@
Source:
-
+
@@ -566,6 +566,65 @@ + + + + +
+

getPointResolution

+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • epsg4326.js, line 49
+ + + + + + + +
+ + + + + + + + +
@@ -612,7 +671,7 @@
Source:
-
+
@@ -672,13 +731,13 @@
diff --git a/master/apidoc/ol.renderer.Layer.html b/master/apidoc/ol.renderer.Layer.html index 9eb847f725..7e98820c85 100644 --- a/master/apidoc/ol.renderer.Layer.html +++ b/master/apidoc/ol.renderer.Layer.html @@ -2809,13 +2809,13 @@
diff --git a/master/apidoc/ol.renderer.Map.html b/master/apidoc/ol.renderer.Map.html index e88df8a14e..f0928b4aa2 100644 --- a/master/apidoc/ol.renderer.Map.html +++ b/master/apidoc/ol.renderer.Map.html @@ -190,52 +190,6 @@
-
-

<protected> createLayerRenderer

- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - -
Source:
-
  • maprenderer.js, line 122
- - - - - - - -
- - - -
- - -

getCanvas

@@ -266,7 +220,7 @@
Source:
-
  • maprenderer.js, line 143
+
  • maprenderer.js, line 145
@@ -408,7 +362,7 @@
Source:
-
  • maprenderer.js, line 251
+
  • maprenderer.js, line 253
@@ -640,6 +594,135 @@ + + + + +
+

<protected> createLayerRenderer

+ + +
+
+ + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
layer + + +ol.layer.Layer + + + + Layer.
+ + + +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
  • maprenderer.js, line 122
+ + + + + + + +
+ + + + + + + +
Returns:
+ + +
+ layerRenderer Layer renderer. +
+ + + +
+
+ Type +
+
+ +ol.renderer.Layer + + +
+
+ + + +
@@ -681,7 +764,7 @@
Source:
-
  • maprenderer.js, line 128
+
  • maprenderer.js, line 130
@@ -788,7 +871,7 @@
Source:
-
  • maprenderer.js, line 151
+
  • maprenderer.js, line 153
@@ -869,7 +952,7 @@
Source:
-
  • maprenderer.js, line 162
+
  • maprenderer.js, line 164
@@ -998,7 +1081,7 @@
Source:
-
  • maprenderer.js, line 171
+
  • maprenderer.js, line 173
@@ -1105,7 +1188,7 @@
Source:
-
  • maprenderer.js, line 180
+
  • maprenderer.js, line 182
@@ -1164,7 +1247,7 @@
Source:
-
  • maprenderer.js, line 189
+
  • maprenderer.js, line 191
@@ -1271,7 +1354,7 @@
Source:
-
  • maprenderer.js, line 213
+
  • maprenderer.js, line 215
@@ -1378,7 +1461,7 @@
Source:
-
  • maprenderer.js, line 223
+
  • maprenderer.js, line 225
@@ -1485,7 +1568,7 @@
Source:
-
  • maprenderer.js, line 233
+
  • maprenderer.js, line 235
@@ -1637,7 +1720,7 @@
Source:
-
  • maprenderer.js, line 259
+
  • maprenderer.js, line 261
@@ -1675,13 +1758,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:37 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:33 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.canvas.ImageLayer.html b/master/apidoc/ol.renderer.canvas.ImageLayer.html index 93036632ae..714148ddf4 100644 --- a/master/apidoc/ol.renderer.canvas.ImageLayer.html +++ b/master/apidoc/ol.renderer.canvas.ImageLayer.html @@ -3106,13 +3106,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:34 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:30 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.canvas.Layer.html b/master/apidoc/ol.renderer.canvas.Layer.html index 8cc4bceebb..8350161446 100644 --- a/master/apidoc/ol.renderer.canvas.Layer.html +++ b/master/apidoc/ol.renderer.canvas.Layer.html @@ -2991,13 +2991,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:34 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:30 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.canvas.Map.html b/master/apidoc/ol.renderer.canvas.Map.html index 166bd6e025..b270855d41 100644 --- a/master/apidoc/ol.renderer.canvas.Map.html +++ b/master/apidoc/ol.renderer.canvas.Map.html @@ -623,7 +623,7 @@
Source:
-
  • maprenderer.js, line 128
+
  • maprenderer.js, line 130
@@ -794,7 +794,7 @@
Source:
-
  • maprenderer.js, line 151
+
  • maprenderer.js, line 153
@@ -880,7 +880,7 @@
Source:
-
  • maprenderer.js, line 162
+
  • maprenderer.js, line 164
@@ -1014,7 +1014,7 @@
Source:
-
  • maprenderer.js, line 171
+
  • maprenderer.js, line 173
@@ -1126,7 +1126,7 @@
Source:
-
  • maprenderer.js, line 180
+
  • maprenderer.js, line 182
@@ -1190,7 +1190,7 @@
Source:
-
  • maprenderer.js, line 189
+
  • maprenderer.js, line 191
@@ -1302,7 +1302,7 @@
Source:
-
  • maprenderer.js, line 213
+
  • maprenderer.js, line 215
@@ -1414,7 +1414,7 @@
Source:
-
  • maprenderer.js, line 223
+
  • maprenderer.js, line 225
@@ -1526,7 +1526,7 @@
Source:
-
  • maprenderer.js, line 233
+
  • maprenderer.js, line 235
@@ -1742,7 +1742,7 @@
Source:
-
  • maprenderer.js, line 259
+
  • maprenderer.js, line 261
@@ -1780,13 +1780,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:34 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:31 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.canvas.TileLayer.html b/master/apidoc/ol.renderer.canvas.TileLayer.html index f1e9d1cae0..5cd56e7d79 100644 --- a/master/apidoc/ol.renderer.canvas.TileLayer.html +++ b/master/apidoc/ol.renderer.canvas.TileLayer.html @@ -3106,13 +3106,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:35 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:31 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.dom.ImageLayer.html b/master/apidoc/ol.renderer.dom.ImageLayer.html index b0a9d9c4e8..2dd60d012b 100644 --- a/master/apidoc/ol.renderer.dom.ImageLayer.html +++ b/master/apidoc/ol.renderer.dom.ImageLayer.html @@ -3296,13 +3296,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:35 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:31 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.dom.Layer.html b/master/apidoc/ol.renderer.dom.Layer.html index d70c38f7fb..c653fdb097 100644 --- a/master/apidoc/ol.renderer.dom.Layer.html +++ b/master/apidoc/ol.renderer.dom.Layer.html @@ -3108,13 +3108,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:35 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:32 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.dom.Map.html b/master/apidoc/ol.renderer.dom.Map.html index 50a08ac5b1..76a998fe3c 100644 --- a/master/apidoc/ol.renderer.dom.Map.html +++ b/master/apidoc/ol.renderer.dom.Map.html @@ -225,7 +225,7 @@
Source:
-
  • maprenderer.js, line 143
+
  • maprenderer.js, line 145
@@ -621,7 +621,7 @@
Source:
-
  • maprenderer.js, line 128
+
  • maprenderer.js, line 130
@@ -733,7 +733,7 @@
Source:
-
  • maprenderer.js, line 151
+
  • maprenderer.js, line 153
@@ -819,7 +819,7 @@
Source:
-
  • maprenderer.js, line 162
+
  • maprenderer.js, line 164
@@ -953,7 +953,7 @@
Source:
-
  • maprenderer.js, line 171
+
  • maprenderer.js, line 173
@@ -1065,7 +1065,7 @@
Source:
-
  • maprenderer.js, line 180
+
  • maprenderer.js, line 182
@@ -1129,7 +1129,7 @@
Source:
-
  • maprenderer.js, line 189
+
  • maprenderer.js, line 191
@@ -1241,7 +1241,7 @@
Source:
-
  • maprenderer.js, line 213
+
  • maprenderer.js, line 215
@@ -1353,7 +1353,7 @@
Source:
-
  • maprenderer.js, line 223
+
  • maprenderer.js, line 225
@@ -1465,7 +1465,7 @@
Source:
-
  • maprenderer.js, line 233
+
  • maprenderer.js, line 235
@@ -1681,7 +1681,7 @@
Source:
-
  • maprenderer.js, line 259
+
  • maprenderer.js, line 261
@@ -1719,13 +1719,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:36 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:32 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.dom.TileLayer.html b/master/apidoc/ol.renderer.dom.TileLayer.html index 5db5752e9b..1797f4028e 100644 --- a/master/apidoc/ol.renderer.dom.TileLayer.html +++ b/master/apidoc/ol.renderer.dom.TileLayer.html @@ -3189,13 +3189,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:36 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:33 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.FragmentShader.html b/master/apidoc/ol.renderer.webgl.FragmentShader.html index 8cf7287815..7f50a49bb4 100644 --- a/master/apidoc/ol.renderer.webgl.FragmentShader.html +++ b/master/apidoc/ol.renderer.webgl.FragmentShader.html @@ -385,13 +385,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:38 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:34 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.ImageLayer.html b/master/apidoc/ol.renderer.webgl.ImageLayer.html index 7832004373..ece686d7d4 100644 --- a/master/apidoc/ol.renderer.webgl.ImageLayer.html +++ b/master/apidoc/ol.renderer.webgl.ImageLayer.html @@ -3421,13 +3421,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:38 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:34 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.Layer.html b/master/apidoc/ol.renderer.webgl.Layer.html index 14cbddc886..ee18b06be6 100644 --- a/master/apidoc/ol.renderer.webgl.Layer.html +++ b/master/apidoc/ol.renderer.webgl.Layer.html @@ -3195,13 +3195,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:38 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:34 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.Map.html b/master/apidoc/ol.renderer.webgl.Map.html index 779c41d5b0..a20fe11fd7 100644 --- a/master/apidoc/ol.renderer.webgl.Map.html +++ b/master/apidoc/ol.renderer.webgl.Map.html @@ -1016,7 +1016,7 @@
Source:
-
  • maprenderer.js, line 151
+
  • maprenderer.js, line 153
@@ -1102,7 +1102,7 @@
Source:
-
  • maprenderer.js, line 162
+
  • maprenderer.js, line 164
@@ -1517,7 +1517,7 @@
Source:
-
  • maprenderer.js, line 171
+
  • maprenderer.js, line 173
@@ -1629,7 +1629,7 @@
Source:
-
  • maprenderer.js, line 180
+
  • maprenderer.js, line 182
@@ -1693,7 +1693,7 @@
Source:
-
  • maprenderer.js, line 189
+
  • maprenderer.js, line 191
@@ -1805,7 +1805,7 @@
Source:
-
  • maprenderer.js, line 213
+
  • maprenderer.js, line 215
@@ -2271,7 +2271,7 @@
Source:
-
  • maprenderer.js, line 233
+
  • maprenderer.js, line 235
@@ -2487,7 +2487,7 @@
Source:
-
  • maprenderer.js, line 259
+
  • maprenderer.js, line 261
@@ -2525,13 +2525,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:39 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:35 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.Shader.html b/master/apidoc/ol.renderer.webgl.Shader.html index 0c9ad2d706..139525e93a 100644 --- a/master/apidoc/ol.renderer.webgl.Shader.html +++ b/master/apidoc/ol.renderer.webgl.Shader.html @@ -356,13 +356,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:39 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:35 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.TileLayer.html b/master/apidoc/ol.renderer.webgl.TileLayer.html index 188bdf4424..bbfb1a4759 100644 --- a/master/apidoc/ol.renderer.webgl.TileLayer.html +++ b/master/apidoc/ol.renderer.webgl.TileLayer.html @@ -3421,13 +3421,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:39 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:35 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.VertexShader.html b/master/apidoc/ol.renderer.webgl.VertexShader.html index 84e749ae75..6e4583475a 100644 --- a/master/apidoc/ol.renderer.webgl.VertexShader.html +++ b/master/apidoc/ol.renderer.webgl.VertexShader.html @@ -385,13 +385,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:40 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:36 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html b/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html index 178e81f676..dfb3a91ca9 100644 --- a/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html +++ b/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html @@ -349,13 +349,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:39 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:35 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html b/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html index 2052b52b4d..e9fdd2f135 100644 --- a/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html +++ b/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html @@ -342,13 +342,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:39 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:35 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html index 21bc0fcc72..65e34ecad2 100644 --- a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html +++ b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html @@ -342,13 +342,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:40 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:36 GMT+0100 (CET)
diff --git a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html index 85185c281e..85f812d4fe 100644 --- a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html +++ b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html @@ -342,13 +342,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:40 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:36 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.BingMaps.html b/master/apidoc/ol.source.BingMaps.html index 77728a33a6..c922fbb60f 100644 --- a/master/apidoc/ol.source.BingMaps.html +++ b/master/apidoc/ol.source.BingMaps.html @@ -1898,13 +1898,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:40 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:36 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.DebugTileSource.html b/master/apidoc/ol.source.DebugTileSource.html index 74b9db31d3..781c755a07 100644 --- a/master/apidoc/ol.source.DebugTileSource.html +++ b/master/apidoc/ol.source.DebugTileSource.html @@ -1677,13 +1677,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:41 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:36 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.ImageSource.html b/master/apidoc/ol.source.ImageSource.html index 906a63314b..5c3697ad4f 100644 --- a/master/apidoc/ol.source.ImageSource.html +++ b/master/apidoc/ol.source.ImageSource.html @@ -1346,13 +1346,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:41 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:36 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.ImageTileSource.html b/master/apidoc/ol.source.ImageTileSource.html index 03d8ca8837..2cdca44a7c 100644 --- a/master/apidoc/ol.source.ImageTileSource.html +++ b/master/apidoc/ol.source.ImageTileSource.html @@ -1859,13 +1859,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:41 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:37 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.MapQuestOSM.html b/master/apidoc/ol.source.MapQuestOSM.html index d11c94175b..f136e3f771 100644 --- a/master/apidoc/ol.source.MapQuestOSM.html +++ b/master/apidoc/ol.source.MapQuestOSM.html @@ -1841,13 +1841,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:41 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:37 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.MapQuestOpenAerial.html b/master/apidoc/ol.source.MapQuestOpenAerial.html index 128019bc16..4fe8bba8bb 100644 --- a/master/apidoc/ol.source.MapQuestOpenAerial.html +++ b/master/apidoc/ol.source.MapQuestOpenAerial.html @@ -1841,13 +1841,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:41 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:37 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.OpenStreetMap.html b/master/apidoc/ol.source.OpenStreetMap.html index 9895451413..8be04dc1f7 100644 --- a/master/apidoc/ol.source.OpenStreetMap.html +++ b/master/apidoc/ol.source.OpenStreetMap.html @@ -1841,13 +1841,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:42 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:37 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.SingleImageWMS.html b/master/apidoc/ol.source.SingleImageWMS.html index 561898c7b4..d12765cb38 100644 --- a/master/apidoc/ol.source.SingleImageWMS.html +++ b/master/apidoc/ol.source.SingleImageWMS.html @@ -1373,13 +1373,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:42 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:38 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.Source.html b/master/apidoc/ol.source.Source.html index 37129397da..508261e174 100644 --- a/master/apidoc/ol.source.Source.html +++ b/master/apidoc/ol.source.Source.html @@ -904,13 +904,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:42 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:38 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.Stamen.html b/master/apidoc/ol.source.Stamen.html index b98d032a81..b612ede314 100644 --- a/master/apidoc/ol.source.Stamen.html +++ b/master/apidoc/ol.source.Stamen.html @@ -1889,13 +1889,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:42 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:38 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.StaticImage.html b/master/apidoc/ol.source.StaticImage.html index 2de8843ec0..efee7c10a2 100644 --- a/master/apidoc/ol.source.StaticImage.html +++ b/master/apidoc/ol.source.StaticImage.html @@ -1505,13 +1505,13 @@
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:42 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:38 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.TileJSON.html b/master/apidoc/ol.source.TileJSON.html index 27a1177b2c..655be53146 100644 --- a/master/apidoc/ol.source.TileJSON.html +++ b/master/apidoc/ol.source.TileJSON.html @@ -1850,13 +1850,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:43 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:39 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.TileSource.html b/master/apidoc/ol.source.TileSource.html index 7b35f223c0..7efdb7e578 100644 --- a/master/apidoc/ol.source.TileSource.html +++ b/master/apidoc/ol.source.TileSource.html @@ -1608,13 +1608,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:43 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:39 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.TiledWMS.html b/master/apidoc/ol.source.TiledWMS.html index 3fa7e1b8f5..b73bf96177 100644 --- a/master/apidoc/ol.source.TiledWMS.html +++ b/master/apidoc/ol.source.TiledWMS.html @@ -1889,13 +1889,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:43 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:38 GMT+0100 (CET)
diff --git a/master/apidoc/ol.source.XYZ.html b/master/apidoc/ol.source.XYZ.html index d5860d97cf..d936047d12 100644 --- a/master/apidoc/ol.source.XYZ.html +++ b/master/apidoc/ol.source.XYZ.html @@ -1935,13 +1935,13 @@ loaded tiles.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:43 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:39 GMT+0100 (CET)
diff --git a/master/apidoc/ol.tilegrid.TileGrid.html b/master/apidoc/ol.tilegrid.TileGrid.html index 50121c2272..aaba3f9b97 100644 --- a/master/apidoc/ol.tilegrid.TileGrid.html +++ b/master/apidoc/ol.tilegrid.TileGrid.html @@ -316,7 +316,7 @@
Source:
-
  • tilegrid.js, line 80
+
  • tilegrid.js, line 97
@@ -423,7 +423,7 @@
Source:
-
  • tilegrid.js, line 98
+
  • tilegrid.js, line 115
@@ -575,7 +575,7 @@
Source:
-
  • tilegrid.js, line 114
+
  • tilegrid.js, line 131
@@ -704,7 +704,7 @@
Source:
-
  • tilegrid.js, line 133
+
  • tilegrid.js, line 150
@@ -785,7 +785,7 @@
Source:
-
  • tilegrid.js, line 142
+
  • tilegrid.js, line 159
@@ -914,7 +914,7 @@
Source:
-
  • tilegrid.js, line 194
+
  • tilegrid.js, line 211
@@ -1043,7 +1043,7 @@
Source:
-
  • tilegrid.js, line 208
+
  • tilegrid.js, line 225
@@ -1201,7 +1201,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 229
+
  • tilegrid.js, line 246
@@ -1353,7 +1353,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 271
+
  • tilegrid.js, line 288
@@ -1482,7 +1482,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 282
+
  • tilegrid.js, line 299
@@ -1634,7 +1634,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 152
+
  • tilegrid.js, line 169
@@ -1786,7 +1786,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 169
+
  • tilegrid.js, line 186
@@ -1938,7 +1938,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 184
+
  • tilegrid.js, line 201
@@ -1996,6 +1996,54 @@ assigned the higher tile coordinate. +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
z + + +number + + + + Z.
+
@@ -2019,7 +2067,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 291
+
  • tilegrid.js, line 309
@@ -2148,7 +2196,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 300
+
  • tilegrid.js, line 324
@@ -2208,13 +2256,13 @@ assigned the higher tile coordinate.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:44 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:40 GMT+0100 (CET)
diff --git a/master/apidoc/ol.tilegrid.XYZ.html b/master/apidoc/ol.tilegrid.XYZ.html index 64b4e90a59..db996bd911 100644 --- a/master/apidoc/ol.tilegrid.XYZ.html +++ b/master/apidoc/ol.tilegrid.XYZ.html @@ -318,7 +318,7 @@
Source:
-
  • tilegrid.js, line 98
+
  • tilegrid.js, line 115
@@ -475,7 +475,7 @@
Source:
-
  • tilegrid.js, line 114
+
  • tilegrid.js, line 131
@@ -609,7 +609,7 @@
Source:
-
  • tilegrid.js, line 133
+
  • tilegrid.js, line 150
@@ -695,7 +695,7 @@
Source:
-
  • tilegrid.js, line 142
+
  • tilegrid.js, line 159
@@ -829,7 +829,7 @@
Source:
-
  • tilegrid.js, line 194
+
  • tilegrid.js, line 211
@@ -963,7 +963,7 @@
Source:
-
  • tilegrid.js, line 208
+
  • tilegrid.js, line 225
@@ -1126,7 +1126,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 229
+
  • tilegrid.js, line 246
@@ -1283,7 +1283,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 271
+
  • tilegrid.js, line 288
@@ -1417,7 +1417,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 282
+
  • tilegrid.js, line 299
@@ -1574,7 +1574,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 152
+
  • tilegrid.js, line 169
@@ -1731,7 +1731,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 169
+
  • tilegrid.js, line 186
@@ -1888,7 +1888,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 184
+
  • tilegrid.js, line 201
@@ -1946,6 +1946,54 @@ assigned the higher tile coordinate. +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
z + + +number + + + + Z.
+
@@ -1974,7 +2022,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 291
+
  • tilegrid.js, line 309
@@ -2108,7 +2156,7 @@ assigned the higher tile coordinate.
Source:
-
  • tilegrid.js, line 300
+
  • tilegrid.js, line 324
@@ -2168,13 +2216,13 @@ assigned the higher tile coordinate.
- Documentation generated by JSDoc 3 on Sun Mar 03 2013 20:45:45 GMT+0100 (CET) + Documentation generated by JSDoc 3 on Mon Mar 04 2013 10:24:40 GMT+0100 (CET)
diff --git a/master/build/ol-simple.js b/master/build/ol-simple.js index 9c454485e6..bbd22e6b4a 100644 --- a/master/build/ol-simple.js +++ b/master/build/ol-simple.js @@ -80,32 +80,27 @@ goog.structs.forEach=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b goog.structs.filter=function(a,b,c){if("function"==typeof a.filter)return a.filter(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.filter(a,b,c);var d,e=goog.structs.getKeys(a),f=goog.structs.getValues(a),g=f.length;if(e){d={};for(var h=0;h=a.length)throw goog.iter.StopIteration;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}; -goog.iter.forEach=function(a,b,c){if(goog.isArrayLike(a))try{goog.array.forEach(a,b,c)}catch(d){if(d!==goog.iter.StopIteration)throw d;}else{a=goog.iter.toIterator(a);try{for(;;)b.call(c,a.goog_iter_Iterator_prototype$next(),void 0,a)}catch(e){if(e!==goog.iter.StopIteration)throw e;}}}; -goog.iter.filter=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator;a.goog_iter_Iterator_prototype$next=function(){for(;;){var a=d.goog_iter_Iterator_prototype$next();if(b.call(c,a,void 0,d))return a}};return a}; -goog.iter.range=function(a,b,c){var d=0,e=a,f=c||1;1=e||0>f&&d<=e)throw goog.iter.StopIteration;var a=d;d+=f;return a};return g};goog.iter.join=function(a,b){return goog.iter.toArray(a).join(b)}; -goog.iter.map=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator;a.goog_iter_Iterator_prototype$next=function(){for(;;){var a=d.goog_iter_Iterator_prototype$next();return b.call(c,a,void 0,d)}};return a};goog.iter.reduce=function(a,b,c,d){var e=c;goog.iter.forEach(a,function(a){e=b.call(d,e,a)});return e}; -goog.iter.some=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(b.call(c,a.goog_iter_Iterator_prototype$next(),void 0,a))return!0}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!1};goog.iter.every=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(!b.call(c,a.goog_iter_Iterator_prototype$next(),void 0,a))return!1}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!0}; -goog.iter.chain=function(a){var b=arguments,c=b.length,d=0,e=new goog.iter.Iterator;e.goog_iter_Iterator_prototype$next=function(){try{if(d>=c)throw goog.iter.StopIteration;return goog.iter.toIterator(b[d]).goog_iter_Iterator_prototype$next()}catch(a){if(a!==goog.iter.StopIteration||d>=c)throw a;d++;return this.goog_iter_Iterator_prototype$next()}};return e}; -goog.iter.dropWhile=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator,e=!0;a.goog_iter_Iterator_prototype$next=function(){for(;;){var a=d.goog_iter_Iterator_prototype$next();if(!e||!b.call(c,a,void 0,d))return e=!1,a}};return a}; -goog.iter.takeWhile=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator,e=!0;a.goog_iter_Iterator_prototype$next=function(){for(;;)if(e){var a=d.goog_iter_Iterator_prototype$next();if(b.call(c,a,void 0,d))return a;e=!1}else throw goog.iter.StopIteration;};return a};goog.iter.toArray=function(a){if(goog.isArrayLike(a))return goog.array.toArray(a);var a=goog.iter.toIterator(a),b=[];goog.iter.forEach(a,function(a){b.push(a)});return b}; -goog.iter.equals=function(a,b){var a=goog.iter.toIterator(a),b=goog.iter.toIterator(b),c,d;try{for(;;){c=d=!1;var e=a.goog_iter_Iterator_prototype$next();c=!0;var f=b.goog_iter_Iterator_prototype$next();d=!0;if(e!=f)break}}catch(g){if(g!==goog.iter.StopIteration)throw g;if(c&&!d)return!1;if(!d)try{b.goog_iter_Iterator_prototype$next()}catch(h){if(h!==goog.iter.StopIteration)throw h;return!0}}return!1}; -goog.iter.nextOrValue=function(a,b){try{return goog.iter.toIterator(a).goog_iter_Iterator_prototype$next()}catch(c){if(c!=goog.iter.StopIteration)throw c;return b}}; -goog.iter.product=function(a){if(goog.array.some(arguments,function(a){return!a.length})||!arguments.length)return new goog.iter.Iterator;var b=new goog.iter.Iterator,c=arguments,d=goog.array.repeat(0,c.length);b.goog_iter_Iterator_prototype$next=function(){if(d){for(var a=goog.array.map(d,function(a,b){return c[b][a]}),b=d.length-1;0<=b;b--){goog.asserts.assert(d);if(d[b]2*this.count_&&this.cleanupKeysArray_(),!0):!1}; -goog.structs.Map.prototype.cleanupKeysArray_=function(){if(this.count_!=this.keys_.length){for(var a=0,b=0;a=c.length)throw goog.iter.StopIteration;var g=c[b++];return a?g:d[g]}};return g};goog.structs.Map.hasKey_=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};goog.structs.Set=function(a){this.goog_structs_Set$map_=new goog.structs.Map;a&&this.goog_structs_Set_prototype$addAll(a)};goog.structs.Set.getKey_=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+goog.getUid(a):b.substr(0,1)+a};goog.structs.Set.prototype.getCount=function(){return this.goog_structs_Set$map_.getCount()};goog.structs.Set.prototype.add=function(a){this.goog_structs_Set$map_.set(goog.structs.Set.getKey_(a),a)}; -goog.structs.Set.prototype.goog_structs_Set_prototype$addAll=function(a){for(var a=goog.structs.getValues(a),b=a.length,c=0;cb)return!1;!(a instanceof goog.structs.Set)&&5=a.length)throw goog.iter.StopIteration;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}; +goog.iter.forEach=function(a,b,c){if(goog.isArrayLike(a))try{goog.array.forEach(a,b,c)}catch(d){if(d!==goog.iter.StopIteration)throw d;}else{a=goog.iter.toIterator(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==goog.iter.StopIteration)throw e;}}};goog.iter.filter=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator;a.next=function(){for(;;){var a=d.next();if(b.call(c,a,void 0,d))return a}};return a}; +goog.iter.range=function(a,b,c){var d=0,e=a,f=c||1;1=e||0>f&&d<=e)throw goog.iter.StopIteration;var a=d;d+=f;return a};return g};goog.iter.join=function(a,b){return goog.iter.toArray(a).join(b)};goog.iter.map=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator;a.next=function(){for(;;){var a=d.next();return b.call(c,a,void 0,d)}};return a}; +goog.iter.reduce=function(a,b,c,d){var e=c;goog.iter.forEach(a,function(a){e=b.call(d,e,a)});return e};goog.iter.some=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(b.call(c,a.next(),void 0,a))return!0}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!1};goog.iter.every=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(!b.call(c,a.next(),void 0,a))return!1}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!0}; +goog.iter.chain=function(a){var b=arguments,c=b.length,d=0,e=new goog.iter.Iterator;e.next=function(){try{if(d>=c)throw goog.iter.StopIteration;return goog.iter.toIterator(b[d]).next()}catch(a){if(a!==goog.iter.StopIteration||d>=c)throw a;d++;return this.next()}};return e};goog.iter.dropWhile=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator,e=!0;a.next=function(){for(;;){var a=d.next();if(!e||!b.call(c,a,void 0,d))return e=!1,a}};return a}; +goog.iter.takeWhile=function(a,b,c){var d=goog.iter.toIterator(a),a=new goog.iter.Iterator,e=!0;a.next=function(){for(;;)if(e){var a=d.next();if(b.call(c,a,void 0,d))return a;e=!1}else throw goog.iter.StopIteration;};return a};goog.iter.toArray=function(a){if(goog.isArrayLike(a))return goog.array.toArray(a);var a=goog.iter.toIterator(a),b=[];goog.iter.forEach(a,function(a){b.push(a)});return b}; +goog.iter.equals=function(a,b){var a=goog.iter.toIterator(a),b=goog.iter.toIterator(b),c,d;try{for(;;){c=d=!1;var e=a.next();c=!0;var f=b.next();d=!0;if(e!=f)break}}catch(g){if(g!==goog.iter.StopIteration)throw g;if(c&&!d)return!1;if(!d)try{b.next()}catch(h){if(h!==goog.iter.StopIteration)throw h;return!0}}return!1};goog.iter.nextOrValue=function(a,b){try{return goog.iter.toIterator(a).next()}catch(c){if(c!=goog.iter.StopIteration)throw c;return b}}; +goog.iter.product=function(a){if(goog.array.some(arguments,function(a){return!a.length})||!arguments.length)return new goog.iter.Iterator;var b=new goog.iter.Iterator,c=arguments,d=goog.array.repeat(0,c.length);b.next=function(){if(d){for(var a=goog.array.map(d,function(a,b){return c[b][a]}),b=d.length-1;0<=b;b--){goog.asserts.assert(d);if(d[b]2*this.count_&&this.cleanupKeysArray_(),!0):!1}; +goog.structs.Map.prototype.cleanupKeysArray_=function(){if(this.count_!=this.keys_.length){for(var a=0,b=0;a=c.length)throw goog.iter.StopIteration;var g=c[b++];return a?g:d[g]}};return g}; +goog.structs.Map.hasKey_=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};goog.structs.Set=function(a){this.map_=new goog.structs.Map;a&&this.addAll(a)};goog.structs.Set.getKey_=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+goog.getUid(a):b.substr(0,1)+a};goog.structs.Set.prototype.getCount=function(){return this.map_.getCount()};goog.structs.Set.prototype.add=function(a){this.map_.set(goog.structs.Set.getKey_(a),a)};goog.structs.Set.prototype.addAll=function(a){for(var a=goog.structs.getValues(a),b=a.length,c=0;cb)return!1;!(a instanceof goog.structs.Set)&&5=this.getEffectiveLevel().value}; -goog.debug.Logger.prototype.log=function(a,b,c){this.isLoggable(a)&&this.doLogRecord_(this.getLogRecord(a,b,c))};goog.debug.Logger.prototype.getLogRecord=function(a,b,c){var d=goog.debug.LogBuffer.isBufferingEnabled()?goog.debug.LogBuffer.getInstance().addRecord(a,b,this.name_):new goog.debug.LogRecord(a,String(b),this.name_);c&&(d.setException(c),d.setExceptionText(goog.debug.exposeException(c,arguments.callee.caller)));return d}; -goog.debug.Logger.prototype.shout=function(a,b){this.log(goog.debug.Logger.Level.SHOUT,a,b)};goog.debug.Logger.prototype.severe=function(a,b){this.log(goog.debug.Logger.Level.SEVERE,a,b)};goog.debug.Logger.prototype.warning=function(a,b){this.log(goog.debug.Logger.Level.WARNING,a,b)};goog.debug.Logger.prototype.goog_debug_Logger_prototype$info=function(a,b){this.log(goog.debug.Logger.Level.INFO,a,b)};goog.debug.Logger.prototype.config=function(a,b){this.log(goog.debug.Logger.Level.CONFIG,a,b)}; -goog.debug.Logger.prototype.fine=function(a,b){this.log(goog.debug.Logger.Level.FINE,a,b)};goog.debug.Logger.prototype.finer=function(a,b){this.log(goog.debug.Logger.Level.FINER,a,b)};goog.debug.Logger.prototype.finest=function(a,b){this.log(goog.debug.Logger.Level.FINEST,a,b)};goog.debug.Logger.prototype.logRecord=function(a){this.isLoggable(a.goog_debug_LogRecord_prototype$getLevel())&&this.doLogRecord_(a)}; -goog.debug.Logger.prototype.doLogRecord_=function(a){goog.debug.Logger.logToProfilers("log:"+a.getMessage());if(goog.debug.Logger.ENABLE_HIERARCHY)for(var b=this;b;)b.callPublish_(a),b=b.goog_debug_Logger_prototype$getParent();else for(var b=0,c;c=goog.debug.Logger.rootHandlers_[b++];)c(a)};goog.debug.Logger.prototype.callPublish_=function(a){if(this.handlers_)for(var b=0,c;c=this.handlers_[b];b++)c(a)};goog.debug.Logger.prototype.setParent_=function(a){this.goog_debug_Logger_prototype$parent_=a}; -goog.debug.Logger.prototype.addChild_=function(a,b){this.getChildren()[a]=b};goog.debug.LogManager={};goog.debug.LogManager.loggers_={};goog.debug.LogManager.rootLogger_=null;goog.debug.LogManager.initialize=function(){goog.debug.LogManager.rootLogger_||(goog.debug.LogManager.rootLogger_=new goog.debug.Logger(""),goog.debug.LogManager.loggers_[""]=goog.debug.LogManager.rootLogger_,goog.debug.LogManager.rootLogger_.goog_debug_Logger_prototype$setLevel(goog.debug.Logger.Level.CONFIG))}; -goog.debug.LogManager.getLoggers=function(){return goog.debug.LogManager.loggers_};goog.debug.LogManager.getRoot=function(){goog.debug.LogManager.initialize();return goog.debug.LogManager.rootLogger_};goog.debug.LogManager.getLogger=function(a){goog.debug.LogManager.initialize();return goog.debug.LogManager.loggers_[a]||goog.debug.LogManager.createLogger_(a)}; -goog.debug.LogManager.createFunctionForCatchErrors=function(a){return function(b){(a||goog.debug.LogManager.getRoot()).severe("Error: "+b.message+" ("+b.fileName+" @ Line: "+b.line+")")}};goog.debug.LogManager.createLogger_=function(a){var b=new goog.debug.Logger(a);if(goog.debug.Logger.ENABLE_HIERARCHY){var c=a.lastIndexOf("."),d=a.substr(0,c),c=a.substr(c+1),d=goog.debug.LogManager.getLogger(d);d.addChild_(c,b);b.setParent_(d)}return goog.debug.LogManager.loggers_[a]=b};var ol={};if(goog.DEBUG){var logger=goog.debug.Logger.getLogger("ol");logger.goog_debug_Logger_prototype$setLevel(goog.debug.Logger.Level.FINEST)};goog.dom={};goog.dom.BrowserFeature={CAN_ADD_NAME_OR_TYPE_ATTRIBUTES:!goog.userAgent.IE||goog.userAgent.isDocumentMode(9),CAN_USE_CHILDREN_ATTRIBUTE:!goog.userAgent.GECKO&&!goog.userAgent.IE||goog.userAgent.IE&&goog.userAgent.isDocumentMode(9)||goog.userAgent.GECKO&&goog.userAgent.isVersion("1.9.1"),CAN_USE_INNER_TEXT:goog.userAgent.IE&&!goog.userAgent.isVersion("9"),CAN_USE_PARENT_ELEMENT_PROPERTY:goog.userAgent.IE||goog.userAgent.OPERA||goog.userAgent.WEBKIT,INNER_HTML_NEEDS_SCOPED_ELEMENT:goog.userAgent.IE};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", +goog.debug.Logger.prototype.getParent=function(){return this.parent_};goog.debug.Logger.prototype.getChildren=function(){this.children_||(this.children_={});return this.children_};goog.debug.Logger.prototype.setLevel=function(a){goog.debug.Logger.ENABLE_HIERARCHY?this.level_=a:(goog.asserts.assert(!this.name_,"Cannot call setLevel() on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),goog.debug.Logger.rootLevel_=a)};goog.debug.Logger.prototype.getLevel=function(){return this.level_}; +goog.debug.Logger.prototype.getEffectiveLevel=function(){if(!goog.debug.Logger.ENABLE_HIERARCHY)return goog.debug.Logger.rootLevel_;if(this.level_)return this.level_;if(this.parent_)return this.parent_.getEffectiveLevel();goog.asserts.fail("Root logger has no level set.");return null};goog.debug.Logger.prototype.isLoggable=function(a){return a.value>=this.getEffectiveLevel().value};goog.debug.Logger.prototype.log=function(a,b,c){this.isLoggable(a)&&this.doLogRecord_(this.getLogRecord(a,b,c))}; +goog.debug.Logger.prototype.getLogRecord=function(a,b,c){var d=goog.debug.LogBuffer.isBufferingEnabled()?goog.debug.LogBuffer.getInstance().addRecord(a,b,this.name_):new goog.debug.LogRecord(a,String(b),this.name_);c&&(d.setException(c),d.setExceptionText(goog.debug.exposeException(c,arguments.callee.caller)));return d};goog.debug.Logger.prototype.shout=function(a,b){this.log(goog.debug.Logger.Level.SHOUT,a,b)}; +goog.debug.Logger.prototype.severe=function(a,b){this.log(goog.debug.Logger.Level.SEVERE,a,b)};goog.debug.Logger.prototype.warning=function(a,b){this.log(goog.debug.Logger.Level.WARNING,a,b)};goog.debug.Logger.prototype.info=function(a,b){this.log(goog.debug.Logger.Level.INFO,a,b)};goog.debug.Logger.prototype.config=function(a,b){this.log(goog.debug.Logger.Level.CONFIG,a,b)};goog.debug.Logger.prototype.fine=function(a,b){this.log(goog.debug.Logger.Level.FINE,a,b)}; +goog.debug.Logger.prototype.finer=function(a,b){this.log(goog.debug.Logger.Level.FINER,a,b)};goog.debug.Logger.prototype.finest=function(a,b){this.log(goog.debug.Logger.Level.FINEST,a,b)};goog.debug.Logger.prototype.logRecord=function(a){this.isLoggable(a.getLevel())&&this.doLogRecord_(a)}; +goog.debug.Logger.prototype.doLogRecord_=function(a){goog.debug.Logger.logToProfilers("log:"+a.getMessage());if(goog.debug.Logger.ENABLE_HIERARCHY)for(var b=this;b;)b.callPublish_(a),b=b.getParent();else for(var b=0,c;c=goog.debug.Logger.rootHandlers_[b++];)c(a)};goog.debug.Logger.prototype.callPublish_=function(a){if(this.handlers_)for(var b=0,c;c=this.handlers_[b];b++)c(a)};goog.debug.Logger.prototype.setParent_=function(a){this.parent_=a}; +goog.debug.Logger.prototype.addChild_=function(a,b){this.getChildren()[a]=b};goog.debug.LogManager={};goog.debug.LogManager.loggers_={};goog.debug.LogManager.rootLogger_=null;goog.debug.LogManager.initialize=function(){goog.debug.LogManager.rootLogger_||(goog.debug.LogManager.rootLogger_=new goog.debug.Logger(""),goog.debug.LogManager.loggers_[""]=goog.debug.LogManager.rootLogger_,goog.debug.LogManager.rootLogger_.setLevel(goog.debug.Logger.Level.CONFIG))};goog.debug.LogManager.getLoggers=function(){return goog.debug.LogManager.loggers_}; +goog.debug.LogManager.getRoot=function(){goog.debug.LogManager.initialize();return goog.debug.LogManager.rootLogger_};goog.debug.LogManager.getLogger=function(a){goog.debug.LogManager.initialize();return goog.debug.LogManager.loggers_[a]||goog.debug.LogManager.createLogger_(a)};goog.debug.LogManager.createFunctionForCatchErrors=function(a){return function(b){(a||goog.debug.LogManager.getRoot()).severe("Error: "+b.message+" ("+b.fileName+" @ Line: "+b.line+")")}}; +goog.debug.LogManager.createLogger_=function(a){var b=new goog.debug.Logger(a);if(goog.debug.Logger.ENABLE_HIERARCHY){var c=a.lastIndexOf("."),d=a.substr(0,c),c=a.substr(c+1),d=goog.debug.LogManager.getLogger(d);d.addChild_(c,b);b.setParent_(d)}return goog.debug.LogManager.loggers_[a]=b};var ol={};if(goog.DEBUG){var logger=goog.debug.Logger.getLogger("ol");logger.setLevel(goog.debug.Logger.Level.FINEST)};goog.dom={};goog.dom.BrowserFeature={CAN_ADD_NAME_OR_TYPE_ATTRIBUTES:!goog.userAgent.IE||goog.userAgent.isDocumentMode(9),CAN_USE_CHILDREN_ATTRIBUTE:!goog.userAgent.GECKO&&!goog.userAgent.IE||goog.userAgent.IE&&goog.userAgent.isDocumentMode(9)||goog.userAgent.GECKO&&goog.userAgent.isVersion("1.9.1"),CAN_USE_INNER_TEXT:goog.userAgent.IE&&!goog.userAgent.isVersion("9"),CAN_USE_PARENT_ELEMENT_PROPERTY:goog.userAgent.IE||goog.userAgent.OPERA||goog.userAgent.WEBKIT,INNER_HTML_NEEDS_SCOPED_ELEMENT:goog.userAgent.IE};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"};goog.dom.classes={};goog.dom.classes.set=function(a,b){a.className=b};goog.dom.classes.get=function(a){a=a.className;return goog.isString(a)&&a.match(/\S+/g)||[]};goog.dom.classes.add=function(a,b){var c=goog.dom.classes.get(a),d=goog.array.slice(arguments,1),e=c.length+d.length;goog.dom.classes.add_(c,d);a.className=c.join(" ");return c.length==e}; @@ -160,8 +154,7 @@ goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=functi goog.math.sign=function(a){return 0==a?0:0>a?-1:1};goog.math.longestCommonSubsequence=function(a,b,c,d){for(var c=c||function(a,b){return a==b},d=d||function(b){return a[b]},e=a.length,f=b.length,g=[],h=0;hg[h][i-1]?h--:i--;return k}; goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){return a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,arguments)/arguments.length};goog.math.standardDeviation=function(a){var b=arguments.length;if(2>b)return 0;var c=goog.math.average.apply(null,arguments),b=goog.math.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)}))/(b-1);return Math.sqrt(b)};goog.math.isInt=function(a){return isFinite(a)&&0==a%1}; goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math.Coordinate=function(a,b){this.x=goog.isDef(a)?a:0;this.y=goog.isDef(b)?b:0};goog.math.Coordinate.prototype.clone=function(){return new goog.math.Coordinate(this.x,this.y)};goog.DEBUG&&(goog.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"});goog.math.Coordinate.equals=function(a,b){return a==b?!0:!a||!b?!1:a.x==b.x&&a.y==b.y};goog.math.Coordinate.distance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)}; -goog.math.Coordinate.magnitude=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$azimuth=function(a){return goog.math.angle(0,0,a.x,a.y)};goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$squaredDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d}; -goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$difference=function(a,b){return new goog.math.Coordinate(a.x-b.x,a.y-b.y)};goog.math.Coordinate.sum=function(a,b){return new goog.math.Coordinate(a.x+b.x,a.y+b.y)};goog.math.Size=function(a,b){this.width=a;this.height=b};goog.math.Size.equals=function(a,b){return a==b?!0:!a||!b?!1:a.width==b.width&&a.height==b.height};goog.math.Size.prototype.clone=function(){return new goog.math.Size(this.width,this.height)};goog.DEBUG&&(goog.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"});goog.math.Size.prototype.getLongest=function(){return Math.max(this.width,this.height)}; +goog.math.Coordinate.magnitude=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};goog.math.Coordinate.azimuth=function(a){return goog.math.angle(0,0,a.x,a.y)};goog.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};goog.math.Coordinate.difference=function(a,b){return new goog.math.Coordinate(a.x-b.x,a.y-b.y)};goog.math.Coordinate.sum=function(a,b){return new goog.math.Coordinate(a.x+b.x,a.y+b.y)};goog.math.Size=function(a,b){this.width=a;this.height=b};goog.math.Size.equals=function(a,b){return a==b?!0:!a||!b?!1:a.width==b.width&&a.height==b.height};goog.math.Size.prototype.clone=function(){return new goog.math.Size(this.width,this.height)};goog.DEBUG&&(goog.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"});goog.math.Size.prototype.getLongest=function(){return Math.max(this.width,this.height)}; goog.math.Size.prototype.getShortest=function(){return Math.min(this.width,this.height)};goog.math.Size.prototype.area=function(){return this.width*this.height};goog.math.Size.prototype.perimeter=function(){return 2*(this.width+this.height)};goog.math.Size.prototype.aspectRatio=function(){return this.width/this.height};goog.math.Size.prototype.isEmpty=function(){return!this.area()};goog.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; goog.math.Size.prototype.fitsInside=function(a){return this.width<=a.width&&this.height<=a.height};goog.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};goog.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};goog.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this}; goog.math.Size.prototype.scaleToFit=function(a){a=this.aspectRatio()>a.aspectRatio()?a.width/this.width:a.height/this.height;return this.scale(a)};goog.dom.ASSUME_QUIRKS_MODE=!1;goog.dom.ASSUME_STANDARDS_MODE=!0;goog.dom.COMPAT_MODE_KNOWN_=goog.dom.ASSUME_QUIRKS_MODE||goog.dom.ASSUME_STANDARDS_MODE;goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.dom.getDomHelper=function(a){return a?new goog.dom.DomHelper(goog.dom.getOwnerDocument(a)):goog.dom.defaultDomHelper_||(goog.dom.defaultDomHelper_=new goog.dom.DomHelper)}; @@ -212,30 +205,26 @@ goog.dom.DomHelper.prototype.isNodeList=goog.dom.isNodeList;goog.dom.DomHelper.p goog.debug.entryPointRegistry.monitorAll=function(a){goog.debug.entryPointRegistry.monitorsMayExist_=!0;for(var b=goog.bind(a.wrap,a),c=0;c=a.keyCode)a.keyCode=-1}catch(b){}};goog.events.BrowserEvent.prototype.getBrowserEvent=function(){return this.event_}; -goog.events.BrowserEvent.prototype.goog_events_Event_prototype$disposeInternal=function(){};goog.events.EventWrapper=function(){};goog.events.EventWrapper.prototype.listen=function(){};goog.events.EventWrapper.prototype.unlisten=function(){};goog.events.Listener=function(){goog.events.Listener.ENABLE_MONITORING&&(this.goog_events_Listener_prototype$creationStack=Error().stack)};goog.events.Listener.counter_=0;goog.events.Listener.ENABLE_MONITORING=!1;goog.events.Listener.prototype.key=0;goog.events.Listener.prototype.removed=!1;goog.events.Listener.prototype.goog_events_Listener_prototype$callOnce=!1; -goog.events.Listener.prototype.goog_events_Listener_prototype$init=function(a,b,c,d,e,f){if(goog.isFunction(a))this.isFunctionListener_=!0;else if(a&&a.handleEvent&&goog.isFunction(a.handleEvent))this.isFunctionListener_=!1;else throw Error("Invalid listener argument");this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.goog_events_Listener_prototype$callOnce=!1;this.key=++goog.events.Listener.counter_;this.removed=!1}; +BEFOREPASTE:"beforepaste",ONLINE:"online",OFFLINE:"offline",MESSAGE:"message",CONNECT:"connect",TRANSITIONEND:goog.userAgent.WEBKIT?"webkitTransitionEnd":goog.userAgent.OPERA?"oTransitionEnd":"transitionend"};goog.reflect={};goog.reflect.object=function(a,b){return b};goog.reflect.sinkValue=function(a){goog.reflect.sinkValue[" "](a);return a};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(a,b){try{return goog.reflect.sinkValue(a[b]),!0}catch(c){}return!1};goog.events.BrowserEvent=function(a,b){a&&this.init(a,b)};goog.inherits(goog.events.BrowserEvent,goog.events.Event);goog.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};goog.events.BrowserEvent.IEButtonMap=[1,4,2];goog.events.BrowserEvent.prototype.target=null;goog.events.BrowserEvent.prototype.relatedTarget=null;goog.events.BrowserEvent.prototype.offsetX=0;goog.events.BrowserEvent.prototype.offsetY=0;goog.events.BrowserEvent.prototype.clientX=0; +goog.events.BrowserEvent.prototype.clientY=0;goog.events.BrowserEvent.prototype.screenX=0;goog.events.BrowserEvent.prototype.screenY=0;goog.events.BrowserEvent.prototype.button=0;goog.events.BrowserEvent.prototype.keyCode=0;goog.events.BrowserEvent.prototype.charCode=0;goog.events.BrowserEvent.prototype.ctrlKey=!1;goog.events.BrowserEvent.prototype.altKey=!1;goog.events.BrowserEvent.prototype.shiftKey=!1;goog.events.BrowserEvent.prototype.metaKey=!1; +goog.events.BrowserEvent.prototype.platformModifierKey=!1;goog.events.BrowserEvent.prototype.event_=null; +goog.events.BrowserEvent.prototype.init=function(a,b){var c=this.type=a.type;goog.events.Event.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?goog.userAgent.GECKO&&(goog.reflect.canAccessProperty(d,"nodeName")||(d=null)):c==goog.events.EventType.MOUSEOVER?d=a.fromElement:c==goog.events.EventType.MOUSEOUT&&(d=a.toElement);this.relatedTarget=d;this.offsetX=goog.userAgent.WEBKIT||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=goog.userAgent.WEBKIT||void 0!== +a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=goog.userAgent.MAC?a.metaKey:a.ctrlKey;this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault(); +delete this.propagationStopped_};goog.events.BrowserEvent.prototype.isButton=function(a){return goog.events.BrowserFeature.HAS_W3C_BUTTON?this.event_.button==a:"click"==this.type?a==goog.events.BrowserEvent.MouseButton.LEFT:!!(this.event_.button&goog.events.BrowserEvent.IEButtonMap[a])};goog.events.BrowserEvent.prototype.isMouseActionButton=function(){return this.isButton(goog.events.BrowserEvent.MouseButton.LEFT)&&!(goog.userAgent.WEBKIT&&goog.userAgent.MAC&&this.ctrlKey)}; +goog.events.BrowserEvent.prototype.stopPropagation=function(){goog.events.BrowserEvent.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0}; +goog.events.BrowserEvent.prototype.preventDefault=function(){goog.events.BrowserEvent.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,goog.events.BrowserFeature.SET_KEY_CODE_TO_PREVENT_DEFAULT)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};goog.events.BrowserEvent.prototype.getBrowserEvent=function(){return this.event_};goog.events.BrowserEvent.prototype.disposeInternal=function(){};goog.events.EventWrapper=function(){};goog.events.EventWrapper.prototype.listen=function(){};goog.events.EventWrapper.prototype.unlisten=function(){};goog.events.Listener=function(){goog.events.Listener.ENABLE_MONITORING&&(this.creationStack=Error().stack)};goog.events.Listener.counter_=0;goog.events.Listener.ENABLE_MONITORING=!1;goog.events.Listener.prototype.key=0;goog.events.Listener.prototype.removed=!1;goog.events.Listener.prototype.callOnce=!1; +goog.events.Listener.prototype.init=function(a,b,c,d,e,f){if(goog.isFunction(a))this.isFunctionListener_=!0;else if(a&&a.handleEvent&&goog.isFunction(a.handleEvent))this.isFunctionListener_=!1;else throw Error("Invalid listener argument");this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.callOnce=!1;this.key=++goog.events.Listener.counter_;this.removed=!1}; goog.events.Listener.prototype.handleEvent=function(a){return this.isFunctionListener_?this.listener.call(this.handler||this.src,a):this.listener.handleEvent.call(this.listener,a)};goog.events.listeners_={};goog.events.listenerTree_={};goog.events.sources_={};goog.events.onString_="on";goog.events.onStringMap_={};goog.events.keySeparator_="_"; goog.events.listen=function(a,b,c,d,e){if(b){if(goog.isArray(b)){for(var f=0;fa.keyCode||void 0!=a.returnValue};goog.events.uniqueIdCounter_=0;goog.events.getUniqueId=function(a){return a+"_"+goog.events.uniqueIdCounter_++};goog.debug.entryPointRegistry.register(function(a){goog.events.handleBrowserEvent_=a(goog.events.handleBrowserEvent_)});goog.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};goog.math.Box.boundingBox=function(a){for(var b=new goog.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;ca.keyCode||void 0!=a.returnValue};goog.events.uniqueIdCounter_=0;goog.events.getUniqueId=function(a){return a+"_"+goog.events.uniqueIdCounter_++};goog.debug.entryPointRegistry.register(function(a){goog.events.handleBrowserEvent_=a(goog.events.handleBrowserEvent_)});goog.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};goog.math.Box.boundingBox=function(a){for(var b=new goog.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;c=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};goog.math.Box.relativePositionX=function(a,b){return b.xa.right?b.x-a.right:0};goog.math.Box.relativePositionY=function(a,b){return b.ya.bottom?b.y-a.bottom:0}; goog.math.Box.distance=function(a,b){var c=goog.math.Box.relativePositionX(a,b),d=goog.math.Box.relativePositionY(a,b);return Math.sqrt(c*c+d*d)};goog.math.Box.intersects=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom};goog.math.Box.intersectsWithPadding=function(a,b,c){return a.left<=b.right+c&&b.left<=a.right+c&&a.top<=b.bottom+c&&b.top<=a.bottom+c};goog.math.Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};goog.math.Rect.prototype.clone=function(){return new goog.math.Rect(this.left,this.top,this.width,this.height)};goog.math.Rect.prototype.toBox=function(){return new goog.math.Box(this.top,this.left+this.width,this.top+this.height,this.left)};goog.math.Rect.createFromBox=function(a){return new goog.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)}; goog.DEBUG&&(goog.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"});goog.math.Rect.equals=function(a,b){return a==b?!0:!a||!b?!1:a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height}; -goog.math.Rect.prototype.goog_math_Rect_prototype$intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top),a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1}; -goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$intersection=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new goog.math.Rect(c,e,d-c,f-e)}return null};goog.math.Rect.intersects=function(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height}; -goog.math.Rect.prototype.intersects=function(a){return goog.math.Rect.intersects(this,a)}; -goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$difference=function(a,b){var c=goog.math.Rect.function__new_goog_math_Rect__number__number__number__number___undefined$intersection(a,b);if(!c||!c.height||!c.width)return[a.clone()];var c=[],d=a.top,e=a.height,f=a.left+a.width,g=a.top+a.height,h=b.left+b.width,i=b.top+b.height;b.top>a.top&&(c.push(new goog.math.Rect(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);ia.left&&c.push(new goog.math.Rect(a.left,d,b.left-a.left,e));ha.top&&(c.push(new goog.math.Rect(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);ia.left&&c.push(new goog.math.Rect(a.left,d,b.left-a.left,e));h=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};goog.math.Rect.prototype.getSize=function(){return new goog.math.Size(this.width,this.height)};goog.style={};goog.style.setStyle=function(a,b,c){goog.isString(b)?goog.style.setStyle_(a,c,b):goog.object.forEach(b,goog.partial(goog.style.setStyle_,a))};goog.style.setStyle_=function(a,b,c){a.style[goog.string.toCamelCase(c)]=b};goog.style.getStyle=function(a,b){return a.style[goog.string.toCamelCase(b)]||""}; goog.style.getComputedStyle=function(a,b){var c=goog.dom.getOwnerDocument(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};goog.style.getCascadedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:null};goog.style.getStyle_=function(a,b){return goog.style.getComputedStyle(a,b)||goog.style.getCascadedStyle(a,b)||a.style&&a.style[b]}; goog.style.getComputedPosition=function(a){return goog.style.getStyle_(a,"position")};goog.style.getBackgroundColor=function(a){return goog.style.getStyle_(a,"backgroundColor")};goog.style.getComputedOverflowX=function(a){return goog.style.getStyle_(a,"overflowX")};goog.style.getComputedOverflowY=function(a){return goog.style.getStyle_(a,"overflowY")};goog.style.getComputedZIndex=function(a){return goog.style.getStyle_(a,"zIndex")}; @@ -278,7 +265,7 @@ goog.style.getPageOffset=function(a){var b,c=goog.dom.getOwnerDocument(a),d=goog f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(goog.userAgent.WEBKIT&&"fixed"==goog.style.getComputedPosition(b)){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(goog.userAgent.OPERA||goog.userAgent.WEBKIT&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=goog.style.getOffsetParent(b))&& b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!goog.userAgent.OPERA||"TR"!=b.tagName)f.y-=b.scrollTop}return f};goog.style.getPageOffsetLeft=function(a){return goog.style.getPageOffset(a).x};goog.style.getPageOffsetTop=function(a){return goog.style.getPageOffset(a).y}; goog.style.getFramedPageOffset=function(a,b){var c=new goog.math.Coordinate(0,0),d=goog.dom.getWindow(goog.dom.getOwnerDocument(a)),e=a;do{var f=d==b?goog.style.getPageOffset(e):goog.style.getClientPosition(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&(e=d.frameElement)&&(d=d.parent));return c}; -goog.style.translateRectForAnotherFrame=function(a,b,c){if(b.getDocument()!=c.getDocument()){var d=b.getDocument().body,c=goog.style.getFramedPageOffset(d,c.getWindow()),c=goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$difference(c,goog.style.getPageOffset(d));goog.userAgent.IE&&!b.isCss1CompatMode()&&(c=goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$difference(c,b.getDocumentScroll()));a.left+=c.x;a.top+=c.y}}; +goog.style.translateRectForAnotherFrame=function(a,b,c){if(b.getDocument()!=c.getDocument()){var d=b.getDocument().body,c=goog.style.getFramedPageOffset(d,c.getWindow()),c=goog.math.Coordinate.difference(c,goog.style.getPageOffset(d));goog.userAgent.IE&&!b.isCss1CompatMode()&&(c=goog.math.Coordinate.difference(c,b.getDocumentScroll()));a.left+=c.x;a.top+=c.y}}; goog.style.getRelativePosition=function(a,b){var c=goog.style.getClientPosition(a),d=goog.style.getClientPosition(b);return new goog.math.Coordinate(c.x-d.x,c.y-d.y)}; goog.style.getClientPosition=function(a){var b=new goog.math.Coordinate;if(a.nodeType==goog.dom.NodeType.ELEMENT){if(a.getBoundingClientRect){var c=goog.style.getBoundingClientRect_(a);b.x=c.left;b.y=c.top}else{var c=goog.dom.getDomHelper(a).getDocumentScroll(),d=goog.style.getPageOffset(a);b.x=d.x-c.x;b.y=d.y-c.y}goog.userAgent.GECKO&&!goog.userAgent.isVersion(12)&&(b=goog.math.Coordinate.sum(b,goog.style.getCssTranslation(a)))}else c=goog.isFunction(a.getBrowserEvent),d=a,a.targetTouches?d=a.targetTouches[0]: c&&a.getBrowserEvent().targetTouches&&(d=a.getBrowserEvent().targetTouches[0]),b.x=d.clientX,b.y=d.clientY;return b};goog.style.setPageOffset=function(a,b,c){var d=goog.style.getPageOffset(a);b instanceof goog.math.Coordinate&&(c=b.y,b=b.x);goog.style.setPosition(a,a.offsetLeft+(b-d.x),a.offsetTop+(c-d.y))}; @@ -311,8 +298,8 @@ goog.style.getScrollbarWidth=function(a){var b=goog.dom.createElement("div");a&& goog.style.getCssTranslation=function(a){var b;goog.userAgent.IE?b="-ms-transform":goog.userAgent.WEBKIT?b="-webkit-transform":goog.userAgent.OPERA?b="-o-transform":goog.userAgent.GECKO&&(b="-moz-transform");var c;b&&(c=goog.style.getStyle_(a,b));c||(c=goog.style.getStyle_(a,"transform"));if(!c)return new goog.math.Coordinate(0,0);a=c.match(goog.style.MATRIX_TRANSLATION_REGEX_);return!a?new goog.math.Coordinate(0,0):new goog.math.Coordinate(parseFloat(a[1]),parseFloat(a[2]))};goog.math.Vec2=function(a,b){this.x=a;this.y=b};goog.inherits(goog.math.Vec2,goog.math.Coordinate);goog.math.Vec2.randomUnit=function(){var a=2*Math.random()*Math.PI;return new goog.math.Vec2(Math.cos(a),Math.sin(a))};goog.math.Vec2.random=function(){var a=Math.sqrt(Math.random()),b=2*Math.random()*Math.PI;return new goog.math.Vec2(Math.cos(b)*a,Math.sin(b)*a)};goog.math.Vec2.fromCoordinate=function(a){return new goog.math.Vec2(a.x,a.y)}; goog.math.Vec2.prototype.clone=function(){return new goog.math.Vec2(this.x,this.y)};goog.math.Vec2.prototype.magnitude=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};goog.math.Vec2.prototype.squaredMagnitude=function(){return this.x*this.x+this.y*this.y};goog.math.Vec2.prototype.scale=function(a){this.x*=a;this.y*=a;return this};goog.math.Vec2.prototype.invert=function(){this.x=-this.x;this.y=-this.y;return this};goog.math.Vec2.prototype.normalize=function(){return this.scale(1/this.magnitude())}; goog.math.Vec2.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};goog.math.Vec2.prototype.subtract=function(a){this.x-=a.x;this.y-=a.y;return this};goog.math.Vec2.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};goog.math.Vec2.rotateAroundPoint=function(a,b,c){return a.clone().subtract(b).rotate(c).add(b)};goog.math.Vec2.prototype.equals=function(a){return this==a||!!a&&this.x==a.x&&this.y==a.y}; -goog.math.Vec2.distance=goog.math.Coordinate.distance;goog.math.Vec2.function__new_goog_math_Vec2__number__number___undefined$squaredDistance=goog.math.Coordinate.function__new_goog_math_Coordinate__number___number____undefined$squaredDistance;goog.math.Vec2.equals=goog.math.Coordinate.equals;goog.math.Vec2.sum=function(a,b){return new goog.math.Vec2(a.x+b.x,a.y+b.y)}; -goog.math.Vec2.function__new_goog_math_Vec2__number__number___undefined$difference=function(a,b){return new goog.math.Vec2(a.x-b.x,a.y-b.y)};goog.math.Vec2.dot=function(a,b){return a.x*b.x+a.y*b.y};goog.math.Vec2.lerp=function(a,b,c){return new goog.math.Vec2(goog.math.lerp(a.x,b.x,c),goog.math.lerp(a.y,b.y,c))};ol.Coordinate=function(a,b){goog.math.Vec2.call(this,a,b)};goog.inherits(ol.Coordinate,goog.math.Vec2);ol.Coordinate.ZERO=new ol.Coordinate(0,0);ol.Coordinate.createStringXY=function(a){return function(b){return ol.Coordinate.toStringXY(b,a)}};ol.Coordinate.degreesToStringHDMS_=function(a,b){var c=goog.math.modulo(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}; +goog.math.Vec2.distance=goog.math.Coordinate.distance;goog.math.Vec2.squaredDistance=goog.math.Coordinate.squaredDistance;goog.math.Vec2.equals=goog.math.Coordinate.equals;goog.math.Vec2.sum=function(a,b){return new goog.math.Vec2(a.x+b.x,a.y+b.y)};goog.math.Vec2.difference=function(a,b){return new goog.math.Vec2(a.x-b.x,a.y-b.y)};goog.math.Vec2.dot=function(a,b){return a.x*b.x+a.y*b.y}; +goog.math.Vec2.lerp=function(a,b,c){return new goog.math.Vec2(goog.math.lerp(a.x,b.x,c),goog.math.lerp(a.y,b.y,c))};ol.Coordinate=function(a,b){goog.math.Vec2.call(this,a,b)};goog.inherits(ol.Coordinate,goog.math.Vec2);ol.Coordinate.ZERO=new ol.Coordinate(0,0);ol.Coordinate.createStringXY=function(a){return function(b){return ol.Coordinate.toStringXY(b,a)}};ol.Coordinate.degreesToStringHDMS_=function(a,b){var c=goog.math.modulo(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)}; ol.Coordinate.toStringHDMS=function(a){return goog.isDef(a)?ol.Coordinate.degreesToStringHDMS_(a.y,"NS")+" "+ol.Coordinate.degreesToStringHDMS_(a.x,"EW"):""};ol.Coordinate.toStringXY=function(a,b){if(goog.isDef(a)){var c=b||0;return a.x.toFixed(c)+", "+a.y.toFixed(c)}return""};ol.Coordinate.fromProjectedArray=function(a,b){var c=b.charAt(0);return"n"===c||"s"===c?new ol.Coordinate(a[1],a[0]):new ol.Coordinate(a[0],a[1])};goog.uri={};goog.uri.utils={};goog.uri.utils.CharCode_={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};goog.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h="";a&&(h+=a+":");c&&(h+="//",b&&(h+=b+"@"),h+=c,d&&(h+=":"+d));e&&(h+=e);f&&(h+="?"+f);g&&(h+="#"+g);return h};goog.uri.utils.splitRe_=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"); goog.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};goog.uri.utils.split=function(a){return a.match(goog.uri.utils.splitRe_)};goog.uri.utils.decodeIfPossible_=function(a){return a&&decodeURIComponent(a)};goog.uri.utils.getComponentByIndex_=function(a,b){return goog.uri.utils.split(b)[a]||null};goog.uri.utils.getScheme=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.SCHEME,a)}; goog.uri.utils.getEffectiveScheme=function(a){a=goog.uri.utils.getScheme(a);!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1));return a?a.toLowerCase():""};goog.uri.utils.getUserInfoEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.USER_INFO,a)};goog.uri.utils.getUserInfo=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getUserInfoEncoded(a))}; @@ -327,96 +314,86 @@ goog.uri.utils.appendParams=function(a,b){return goog.uri.utils.appendQueryData_ goog.uri.utils.findParam_=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&bd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return goog.string.urlDecode(a.substr(d,e-d))};goog.uri.utils.getParamValues=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];0<=(e=goog.uri.utils.findParam_(a,d,b,c));){d=a.indexOf("&",e);if(0>d||d>c)d=c;e+=b.length+1;f.push(goog.string.urlDecode(a.substr(e,d-e)))}return f}; goog.uri.utils.trailingQueryPunctuationRe_=/[?&]($|#)/;goog.uri.utils.removeParam=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];0<=(e=goog.uri.utils.findParam_(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(goog.uri.utils.trailingQueryPunctuationRe_,"$1")};goog.uri.utils.setParam=function(a,b,c){return goog.uri.utils.appendParam(goog.uri.utils.removeParam(a,b),b,c)}; -goog.uri.utils.appendPath=function(a,b){goog.uri.utils.assertNoFragmentsOrQueries_(a);goog.string.endsWith(a,"/")&&(a=a.substr(0,a.length-1));goog.string.startsWith(b,"/")&&(b=b.substr(1));return goog.string.buildString(a,"/",b)};goog.uri.utils.StandardQueryParam={RANDOM:"zx"};goog.uri.utils.makeUnique=function(a){return goog.uri.utils.setParam(a,goog.uri.utils.StandardQueryParam.RANDOM,goog.string.getRandomString())};goog.Uri=function(a,b){var c;a instanceof goog.Uri?(this.goog_Uri_prototype$ignoreCase_=goog.isDef(b)?b:a.getIgnoreCase(),this.setScheme(a.getScheme()),this.setUserInfo(a.getUserInfo()),this.setDomain(a.getDomain()),this.setPort(a.getPort()),this.setPath(a.getPath()),this.setQueryData(a.getQueryData().clone()),this.setFragment(a.getFragment())):a&&(c=goog.uri.utils.split(String(a)))?(this.goog_Uri_prototype$ignoreCase_=!!b,this.setScheme(c[goog.uri.utils.ComponentIndex.SCHEME]||"",!0),this.setUserInfo(c[goog.uri.utils.ComponentIndex.USER_INFO]|| -"",!0),this.setDomain(c[goog.uri.utils.ComponentIndex.DOMAIN]||"",!0),this.setPort(c[goog.uri.utils.ComponentIndex.PORT]),this.setPath(c[goog.uri.utils.ComponentIndex.PATH]||"",!0),this.setQueryData(c[goog.uri.utils.ComponentIndex.QUERY_DATA]||"",!0),this.setFragment(c[goog.uri.utils.ComponentIndex.FRAGMENT]||"",!0)):(this.goog_Uri_prototype$ignoreCase_=!!b,this.queryData_=new goog.Uri.QueryData(null,null,this.goog_Uri_prototype$ignoreCase_))};goog.Uri.preserveParameterTypesCompatibilityFlag=!1; -goog.Uri.RANDOM_PARAM=goog.uri.utils.StandardQueryParam.RANDOM;goog.Uri.prototype.scheme_="";goog.Uri.prototype.userInfo_="";goog.Uri.prototype.domain_="";goog.Uri.prototype.port_=null;goog.Uri.prototype.path_="";goog.Uri.prototype.fragment_="";goog.Uri.prototype.isReadOnly_=!1;goog.Uri.prototype.goog_Uri_prototype$ignoreCase_=!1; +goog.uri.utils.appendPath=function(a,b){goog.uri.utils.assertNoFragmentsOrQueries_(a);goog.string.endsWith(a,"/")&&(a=a.substr(0,a.length-1));goog.string.startsWith(b,"/")&&(b=b.substr(1));return goog.string.buildString(a,"/",b)};goog.uri.utils.StandardQueryParam={RANDOM:"zx"};goog.uri.utils.makeUnique=function(a){return goog.uri.utils.setParam(a,goog.uri.utils.StandardQueryParam.RANDOM,goog.string.getRandomString())};goog.Uri=function(a,b){var c;a instanceof goog.Uri?(this.ignoreCase_=goog.isDef(b)?b:a.getIgnoreCase(),this.setScheme(a.getScheme()),this.setUserInfo(a.getUserInfo()),this.setDomain(a.getDomain()),this.setPort(a.getPort()),this.setPath(a.getPath()),this.setQueryData(a.getQueryData().clone()),this.setFragment(a.getFragment())):a&&(c=goog.uri.utils.split(String(a)))?(this.ignoreCase_=!!b,this.setScheme(c[goog.uri.utils.ComponentIndex.SCHEME]||"",!0),this.setUserInfo(c[goog.uri.utils.ComponentIndex.USER_INFO]|| +"",!0),this.setDomain(c[goog.uri.utils.ComponentIndex.DOMAIN]||"",!0),this.setPort(c[goog.uri.utils.ComponentIndex.PORT]),this.setPath(c[goog.uri.utils.ComponentIndex.PATH]||"",!0),this.setQueryData(c[goog.uri.utils.ComponentIndex.QUERY_DATA]||"",!0),this.setFragment(c[goog.uri.utils.ComponentIndex.FRAGMENT]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new goog.Uri.QueryData(null,null,this.ignoreCase_))};goog.Uri.preserveParameterTypesCompatibilityFlag=!1;goog.Uri.RANDOM_PARAM=goog.uri.utils.StandardQueryParam.RANDOM; +goog.Uri.prototype.scheme_="";goog.Uri.prototype.userInfo_="";goog.Uri.prototype.domain_="";goog.Uri.prototype.port_=null;goog.Uri.prototype.path_="";goog.Uri.prototype.fragment_="";goog.Uri.prototype.isReadOnly_=!1;goog.Uri.prototype.ignoreCase_=!1; goog.Uri.prototype.toString=function(){var a=[],b=this.getScheme();b&&a.push(goog.Uri.encodeSpecialChars_(b,goog.Uri.reDisallowedInSchemeOrUserInfo_),":");if(b=this.getDomain()){a.push("//");var c=this.getUserInfo();c&&a.push(goog.Uri.encodeSpecialChars_(c,goog.Uri.reDisallowedInSchemeOrUserInfo_),"@");a.push(goog.string.urlEncode(b));b=this.getPort();null!=b&&a.push(":",String(b))}if(b=this.getPath())this.hasDomain()&&"/"!=b.charAt(0)&&a.push("/"),a.push(goog.Uri.encodeSpecialChars_(b,"/"==b.charAt(0)? goog.Uri.reDisallowedInAbsolutePath_:goog.Uri.reDisallowedInRelativePath_));(b=this.getEncodedQuery())&&a.push("?",b);(b=this.getFragment())&&a.push("#",goog.Uri.encodeSpecialChars_(b,goog.Uri.reDisallowedInFragment_));return a.join("")}; -goog.Uri.prototype.goog_Uri_prototype$resolve=function(a){var b=this.clone(),c=a.hasScheme();c?b.setScheme(a.getScheme()):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=a.hasDomain();c?b.setDomain(a.getDomain()):c=a.hasPort();var d=a.getPath();if(c)b.setPort(a.getPort());else if(c=a.hasPath()){if("/"!=d.charAt(0))if(this.hasDomain()&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}d=goog.Uri.removeDotSegments(d)}c?b.setPath(d):c=a.hasQuery(); -c?b.setQueryData(a.getDecodedQuery()):c=a.hasFragment();c&&b.setFragment(a.getFragment());return b};goog.Uri.prototype.clone=function(){return new goog.Uri(this)};goog.Uri.prototype.getScheme=function(){return this.scheme_};goog.Uri.prototype.setScheme=function(a,b){this.enforceReadOnly();if(this.scheme_=b?goog.Uri.decodeOrEmpty_(a):a)this.scheme_=this.scheme_.replace(/:$/,"");return this};goog.Uri.prototype.hasScheme=function(){return!!this.scheme_};goog.Uri.prototype.getUserInfo=function(){return this.userInfo_}; +goog.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.hasScheme();c?b.setScheme(a.getScheme()):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=a.hasDomain();c?b.setDomain(a.getDomain()):c=a.hasPort();var d=a.getPath();if(c)b.setPort(a.getPort());else if(c=a.hasPath()){if("/"!=d.charAt(0))if(this.hasDomain()&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}d=goog.Uri.removeDotSegments(d)}c?b.setPath(d):c=a.hasQuery();c?b.setQueryData(a.getDecodedQuery()): +c=a.hasFragment();c&&b.setFragment(a.getFragment());return b};goog.Uri.prototype.clone=function(){return new goog.Uri(this)};goog.Uri.prototype.getScheme=function(){return this.scheme_};goog.Uri.prototype.setScheme=function(a,b){this.enforceReadOnly();if(this.scheme_=b?goog.Uri.decodeOrEmpty_(a):a)this.scheme_=this.scheme_.replace(/:$/,"");return this};goog.Uri.prototype.hasScheme=function(){return!!this.scheme_};goog.Uri.prototype.getUserInfo=function(){return this.userInfo_}; goog.Uri.prototype.setUserInfo=function(a,b){this.enforceReadOnly();this.userInfo_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasUserInfo=function(){return!!this.userInfo_};goog.Uri.prototype.getDomain=function(){return this.domain_};goog.Uri.prototype.setDomain=function(a,b){this.enforceReadOnly();this.domain_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasDomain=function(){return!!this.domain_};goog.Uri.prototype.getPort=function(){return this.port_}; goog.Uri.prototype.setPort=function(a){this.enforceReadOnly();if(a){a=Number(a);if(isNaN(a)||0>a)throw Error("Bad port number "+a);this.port_=a}else this.port_=null;return this};goog.Uri.prototype.hasPort=function(){return null!=this.port_};goog.Uri.prototype.getPath=function(){return this.path_};goog.Uri.prototype.setPath=function(a,b){this.enforceReadOnly();this.path_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasPath=function(){return!!this.path_}; -goog.Uri.prototype.hasQuery=function(){return""!==this.queryData_.toString()};goog.Uri.prototype.setQueryData=function(a,b){this.enforceReadOnly();a instanceof goog.Uri.QueryData?(this.queryData_=a,this.queryData_.goog_Uri_QueryData_prototype$setIgnoreCase(this.goog_Uri_prototype$ignoreCase_)):(b||(a=goog.Uri.encodeSpecialChars_(a,goog.Uri.reDisallowedInQuery_)),this.queryData_=new goog.Uri.QueryData(a,null,this.goog_Uri_prototype$ignoreCase_));return this}; -goog.Uri.prototype.setQuery=function(a,b){return this.setQueryData(a,b)};goog.Uri.prototype.getEncodedQuery=function(){return this.queryData_.toString()};goog.Uri.prototype.getDecodedQuery=function(){return this.queryData_.toDecodedString()};goog.Uri.prototype.getQueryData=function(){return this.queryData_};goog.Uri.prototype.getQuery=function(){return this.getEncodedQuery()};goog.Uri.prototype.setParameterValue=function(a,b){this.enforceReadOnly();this.queryData_.set(a,b);return this}; -goog.Uri.prototype.setParameterValues=function(a,b){this.enforceReadOnly();goog.isArray(b)||(b=[String(b)]);this.queryData_.goog_Uri_QueryData_prototype$setValues(a,b);return this};goog.Uri.prototype.getParameterValues=function(a){return this.queryData_.getValues(a)};goog.Uri.prototype.getParameterValue=function(a){return this.queryData_.get(a)};goog.Uri.prototype.getFragment=function(){return this.fragment_}; -goog.Uri.prototype.setFragment=function(a,b){this.enforceReadOnly();this.fragment_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasFragment=function(){return!!this.fragment_};goog.Uri.prototype.hasSameDomainAs=function(a){return(!this.hasDomain()&&!a.hasDomain()||this.getDomain()==a.getDomain())&&(!this.hasPort()&&!a.hasPort()||this.getPort()==a.getPort())}; -goog.Uri.prototype.makeUnique=function(){this.enforceReadOnly();this.setParameterValue(goog.Uri.RANDOM_PARAM,goog.string.getRandomString());return this};goog.Uri.prototype.removeParameter=function(a){this.enforceReadOnly();this.queryData_.remove(a);return this};goog.Uri.prototype.setReadOnly=function(a){this.isReadOnly_=a;return this};goog.Uri.prototype.isReadOnly=function(){return this.isReadOnly_}; -goog.Uri.prototype.enforceReadOnly=function(){if(this.isReadOnly_)throw Error("Tried to modify a read-only Uri");};goog.Uri.prototype.goog_Uri_prototype$setIgnoreCase=function(a){this.goog_Uri_prototype$ignoreCase_=a;this.queryData_&&this.queryData_.goog_Uri_QueryData_prototype$setIgnoreCase(a);return this};goog.Uri.prototype.getIgnoreCase=function(){return this.goog_Uri_prototype$ignoreCase_};goog.Uri.parse=function(a,b){return a instanceof goog.Uri?a.clone():new goog.Uri(a,b)}; -goog.Uri.create=function(a,b,c,d,e,f,g,h){h=new goog.Uri(null,h);a&&h.setScheme(a);b&&h.setUserInfo(b);c&&h.setDomain(c);d&&h.setPort(d);e&&h.setPath(e);f&&h.setQueryData(f);g&&h.setFragment(g);return h};goog.Uri.function__new_goog_Uri______boolean____undefined$resolve=function(a,b){a instanceof goog.Uri||(a=goog.Uri.parse(a));b instanceof goog.Uri||(b=goog.Uri.parse(b));return a.goog_Uri_prototype$resolve(b)}; +goog.Uri.prototype.hasQuery=function(){return""!==this.queryData_.toString()};goog.Uri.prototype.setQueryData=function(a,b){this.enforceReadOnly();a instanceof goog.Uri.QueryData?(this.queryData_=a,this.queryData_.setIgnoreCase(this.ignoreCase_)):(b||(a=goog.Uri.encodeSpecialChars_(a,goog.Uri.reDisallowedInQuery_)),this.queryData_=new goog.Uri.QueryData(a,null,this.ignoreCase_));return this};goog.Uri.prototype.setQuery=function(a,b){return this.setQueryData(a,b)}; +goog.Uri.prototype.getEncodedQuery=function(){return this.queryData_.toString()};goog.Uri.prototype.getDecodedQuery=function(){return this.queryData_.toDecodedString()};goog.Uri.prototype.getQueryData=function(){return this.queryData_};goog.Uri.prototype.getQuery=function(){return this.getEncodedQuery()};goog.Uri.prototype.setParameterValue=function(a,b){this.enforceReadOnly();this.queryData_.set(a,b);return this}; +goog.Uri.prototype.setParameterValues=function(a,b){this.enforceReadOnly();goog.isArray(b)||(b=[String(b)]);this.queryData_.setValues(a,b);return this};goog.Uri.prototype.getParameterValues=function(a){return this.queryData_.getValues(a)};goog.Uri.prototype.getParameterValue=function(a){return this.queryData_.get(a)};goog.Uri.prototype.getFragment=function(){return this.fragment_};goog.Uri.prototype.setFragment=function(a,b){this.enforceReadOnly();this.fragment_=b?goog.Uri.decodeOrEmpty_(a):a;return this}; +goog.Uri.prototype.hasFragment=function(){return!!this.fragment_};goog.Uri.prototype.hasSameDomainAs=function(a){return(!this.hasDomain()&&!a.hasDomain()||this.getDomain()==a.getDomain())&&(!this.hasPort()&&!a.hasPort()||this.getPort()==a.getPort())};goog.Uri.prototype.makeUnique=function(){this.enforceReadOnly();this.setParameterValue(goog.Uri.RANDOM_PARAM,goog.string.getRandomString());return this};goog.Uri.prototype.removeParameter=function(a){this.enforceReadOnly();this.queryData_.remove(a);return this}; +goog.Uri.prototype.setReadOnly=function(a){this.isReadOnly_=a;return this};goog.Uri.prototype.isReadOnly=function(){return this.isReadOnly_};goog.Uri.prototype.enforceReadOnly=function(){if(this.isReadOnly_)throw Error("Tried to modify a read-only Uri");};goog.Uri.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a);return this};goog.Uri.prototype.getIgnoreCase=function(){return this.ignoreCase_}; +goog.Uri.parse=function(a,b){return a instanceof goog.Uri?a.clone():new goog.Uri(a,b)};goog.Uri.create=function(a,b,c,d,e,f,g,h){h=new goog.Uri(null,h);a&&h.setScheme(a);b&&h.setUserInfo(b);c&&h.setDomain(c);d&&h.setPort(d);e&&h.setPath(e);f&&h.setQueryData(f);g&&h.setFragment(g);return h};goog.Uri.resolve=function(a,b){a instanceof goog.Uri||(a=goog.Uri.parse(a));b instanceof goog.Uri||(b=goog.Uri.parse(b));return a.resolve(b)}; goog.Uri.removeDotSegments=function(a){if(".."==a||"."==a)return"";if(!goog.string.contains(a,"./")&&!goog.string.contains(a,"/."))return a;for(var b=goog.string.startsWith(a,"/"),a=a.split("/"),c=[],d=0;d>4&15).toString(16)+(a&15).toString(16)};goog.Uri.reDisallowedInSchemeOrUserInfo_=/[#\/\?@]/g;goog.Uri.reDisallowedInRelativePath_=/[\#\?:]/g;goog.Uri.reDisallowedInAbsolutePath_=/[\#\?]/g;goog.Uri.reDisallowedInQuery_=/[\#\?@]/g;goog.Uri.reDisallowedInFragment_=/#/g; -goog.Uri.haveSameDomain=function(a,b){var c=goog.uri.utils.split(a),d=goog.uri.utils.split(b);return c[goog.uri.utils.ComponentIndex.DOMAIN]==d[goog.uri.utils.ComponentIndex.DOMAIN]&&c[goog.uri.utils.ComponentIndex.PORT]==d[goog.uri.utils.ComponentIndex.PORT]};goog.Uri.QueryData=function(a,b,c){this.encodedQuery_=a||null;this.goog_Uri_QueryData$ignoreCase_=!!c}; +goog.Uri.haveSameDomain=function(a,b){var c=goog.uri.utils.split(a),d=goog.uri.utils.split(b);return c[goog.uri.utils.ComponentIndex.DOMAIN]==d[goog.uri.utils.ComponentIndex.DOMAIN]&&c[goog.uri.utils.ComponentIndex.PORT]==d[goog.uri.utils.ComponentIndex.PORT]};goog.Uri.QueryData=function(a,b,c){this.encodedQuery_=a||null;this.ignoreCase_=!!c}; goog.Uri.QueryData.prototype.ensureKeyMapInitialized_=function(){if(!this.keyMap_&&(this.keyMap_=new goog.structs.Map,this.count_=0,this.encodedQuery_))for(var a=this.encodedQuery_.split("&"),b=0;bgoog.Timer.MAX_TIMEOUT_?-1:goog.Timer.defaultTimerObject.setTimeout(a,b||0)};goog.Timer.clear=function(a){goog.Timer.defaultTimerObject.clearTimeout(a)};goog.async={};goog.async.Delay=function(a,b,c){goog.Disposable.call(this);this.goog_async_Delay$listener_=a;this.goog_async_Delay$interval_=b||0;this.goog_async_Delay$handler_=c;this.goog_async_Delay$callback_=goog.bind(this.goog_async_Delay_prototype$doAction_,this)};goog.inherits(goog.async.Delay,goog.Disposable);goog.Delay=goog.async.Delay;goog.async.Delay.prototype.id_=0; -goog.async.Delay.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.async.Delay.superClass_.goog_Disposable_prototype$disposeInternal.call(this);this.goog_async_Delay_prototype$stop();delete this.goog_async_Delay$listener_;delete this.goog_async_Delay$handler_}; -goog.async.Delay.prototype.start=function(a){this.goog_async_Delay_prototype$stop();this.id_=goog.Timer.function__new_goog_Timer__number____Object_null_____undefined$callOnce(this.goog_async_Delay$callback_,goog.isDef(a)?a:this.goog_async_Delay$interval_)};goog.async.Delay.prototype.goog_async_Delay_prototype$stop=function(){this.goog_async_Delay_prototype$isActive()&&goog.Timer.clear(this.id_);this.id_=0}; -goog.async.Delay.prototype.goog_async_Delay_prototype$fire=function(){this.goog_async_Delay_prototype$stop();this.goog_async_Delay_prototype$doAction_()};goog.async.Delay.prototype.goog_async_Delay_prototype$fireIfActive=function(){this.goog_async_Delay_prototype$isActive()&&this.goog_async_Delay_prototype$fire()};goog.async.Delay.prototype.goog_async_Delay_prototype$isActive=function(){return 0!=this.id_}; -goog.async.Delay.prototype.goog_async_Delay_prototype$doAction_=function(){this.id_=0;this.goog_async_Delay$listener_&&this.goog_async_Delay$listener_.call(this.goog_async_Delay$handler_)};goog.functions={};goog.functions.constant=function(a){return function(){return a}};goog.functions.FALSE=goog.functions.constant(!1);goog.functions.TRUE=goog.functions.constant(!0);goog.functions.NULL=goog.functions.constant(null);goog.functions.identity=function(a){return a};goog.functions.error=function(a){return function(){throw Error(a);}};goog.functions.lock=function(a,b){b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; +goog.events.EventTarget.prototype.addEventListener=function(a,b,c,d){goog.events.listen(this,a,b,c,d)};goog.events.EventTarget.prototype.removeEventListener=function(a,b,c,d){goog.events.unlisten(this,a,b,c,d)};goog.events.EventTarget.prototype.dispatchEvent=function(a){return goog.events.dispatchEvent(this,a)};goog.events.EventTarget.prototype.disposeInternal=function(){goog.events.EventTarget.superClass_.disposeInternal.call(this);goog.events.removeAll(this);this.parentEventTarget_=null};goog.Timer=function(a,b){goog.events.EventTarget.call(this);this.interval_=a||1;this.timerObject_=b||goog.Timer.defaultTimerObject;this.boundTick_=goog.bind(this.tick_,this);this.last_=goog.now()};goog.inherits(goog.Timer,goog.events.EventTarget);goog.Timer.MAX_TIMEOUT_=2147483647;goog.Timer.prototype.enabled=!1;goog.Timer.defaultTimerObject=goog.global.window;goog.Timer.intervalScale=0.8;goog.Timer.prototype.timer_=null;goog.Timer.prototype.getInterval=function(){return this.interval_}; +goog.Timer.prototype.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};goog.Timer.prototype.tick_=function(){if(this.enabled){var a=goog.now()-this.last_;0goog.Timer.MAX_TIMEOUT_?-1:goog.Timer.defaultTimerObject.setTimeout(a,b||0)};goog.Timer.clear=function(a){goog.Timer.defaultTimerObject.clearTimeout(a)};goog.async={};goog.async.Delay=function(a,b,c){goog.Disposable.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=goog.bind(this.doAction_,this)};goog.inherits(goog.async.Delay,goog.Disposable);goog.Delay=goog.async.Delay;goog.async.Delay.prototype.id_=0;goog.async.Delay.prototype.disposeInternal=function(){goog.async.Delay.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_}; +goog.async.Delay.prototype.start=function(a){this.stop();this.id_=goog.Timer.callOnce(this.callback_,goog.isDef(a)?a:this.interval_)};goog.async.Delay.prototype.stop=function(){this.isActive()&&goog.Timer.clear(this.id_);this.id_=0};goog.async.Delay.prototype.fire=function(){this.stop();this.doAction_()};goog.async.Delay.prototype.fireIfActive=function(){this.isActive()&&this.fire()};goog.async.Delay.prototype.isActive=function(){return 0!=this.id_}; +goog.async.Delay.prototype.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};goog.functions={};goog.functions.constant=function(a){return function(){return a}};goog.functions.FALSE=goog.functions.constant(!1);goog.functions.TRUE=goog.functions.constant(!0);goog.functions.NULL=goog.functions.constant(null);goog.functions.identity=function(a){return a};goog.functions.error=function(a){return function(){throw Error(a);}};goog.functions.lock=function(a,b){b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; goog.functions.withReturnValue=function(a,b){return goog.functions.sequence(a,goog.functions.constant(b))};goog.functions.compose=function(a){var b=arguments,c=b.length;return function(){var a;c&&(a=b[c-1].apply(this,arguments));for(var e=c-2;0<=e;e--)a=b[e].call(this,a);return a}};goog.functions.sequence=function(a){var b=arguments,c=b.length;return function(){for(var a,e=0;e=goog.events.KeyCodes.F1&&a.goog_events_BrowserEvent_prototype$keyCode<=goog.events.KeyCodes.F12)return!1;switch(a.goog_events_BrowserEvent_prototype$keyCode){case goog.events.KeyCodes.ALT:case goog.events.KeyCodes.CAPS_LOCK:case goog.events.KeyCodes.CONTEXT_MENU:case goog.events.KeyCodes.CTRL:case goog.events.KeyCodes.DOWN:case goog.events.KeyCodes.END:case goog.events.KeyCodes.ESC:case goog.events.KeyCodes.HOME:case goog.events.KeyCodes.INSERT:case goog.events.KeyCodes.LEFT:case goog.events.KeyCodes.MAC_FF_META:case goog.events.KeyCodes.META:case goog.events.KeyCodes.NUMLOCK:case goog.events.KeyCodes.NUM_CENTER:case goog.events.KeyCodes.PAGE_DOWN:case goog.events.KeyCodes.PAGE_UP:case goog.events.KeyCodes.PAUSE:case goog.events.KeyCodes.PHANTOM:case goog.events.KeyCodes.PRINT_SCREEN:case goog.events.KeyCodes.RIGHT:case goog.events.KeyCodes.SCROLL_LOCK:case goog.events.KeyCodes.SHIFT:case goog.events.KeyCodes.UP:case goog.events.KeyCodes.WIN_KEY:case goog.events.KeyCodes.WIN_KEY_RIGHT:return!1;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return!goog.userAgent.GECKO; -default:return a.goog_events_BrowserEvent_prototype$keyCodegoog.events.KeyCodes.LAST_MEDIA_KEY}}; +goog.events.KeyCodes.isTextModifyingKeyEvent=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=goog.events.KeyCodes.F1&&a.keyCode<=goog.events.KeyCodes.F12)return!1;switch(a.keyCode){case goog.events.KeyCodes.ALT:case goog.events.KeyCodes.CAPS_LOCK:case goog.events.KeyCodes.CONTEXT_MENU:case goog.events.KeyCodes.CTRL:case goog.events.KeyCodes.DOWN:case goog.events.KeyCodes.END:case goog.events.KeyCodes.ESC:case goog.events.KeyCodes.HOME:case goog.events.KeyCodes.INSERT:case goog.events.KeyCodes.LEFT:case goog.events.KeyCodes.MAC_FF_META:case goog.events.KeyCodes.META:case goog.events.KeyCodes.NUMLOCK:case goog.events.KeyCodes.NUM_CENTER:case goog.events.KeyCodes.PAGE_DOWN:case goog.events.KeyCodes.PAGE_UP:case goog.events.KeyCodes.PAUSE:case goog.events.KeyCodes.PHANTOM:case goog.events.KeyCodes.PRINT_SCREEN:case goog.events.KeyCodes.RIGHT:case goog.events.KeyCodes.SCROLL_LOCK:case goog.events.KeyCodes.SHIFT:case goog.events.KeyCodes.UP:case goog.events.KeyCodes.WIN_KEY:case goog.events.KeyCodes.WIN_KEY_RIGHT:return!1;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return!goog.userAgent.GECKO; +default:return a.keyCodegoog.events.KeyCodes.LAST_MEDIA_KEY}}; goog.events.KeyCodes.firesKeyPressEvent=function(a,b,c,d,e){if(!goog.userAgent.IE&&(!goog.userAgent.WEBKIT||!goog.userAgent.isVersion("525")))return!0;if(goog.userAgent.MAC&&e)return goog.events.KeyCodes.isCharacterKey(a);if(e&&!d||!c&&(b==goog.events.KeyCodes.CTRL||b==goog.events.KeyCodes.ALT)||goog.userAgent.IE&&d&&b==a)return!1;switch(a){case goog.events.KeyCodes.ENTER:return!(goog.userAgent.IE&&goog.userAgent.isDocumentMode(9));case goog.events.KeyCodes.ESC:return!goog.userAgent.WEBKIT}return goog.events.KeyCodes.isCharacterKey(a)}; goog.events.KeyCodes.isCharacterKey=function(a){if(a>=goog.events.KeyCodes.ZERO&&a<=goog.events.KeyCodes.NINE||a>=goog.events.KeyCodes.NUM_ZERO&&a<=goog.events.KeyCodes.NUM_MULTIPLY||a>=goog.events.KeyCodes.A&&a<=goog.events.KeyCodes.Z||goog.userAgent.WEBKIT&&0==a)return!0;switch(a){case goog.events.KeyCodes.SPACE:case goog.events.KeyCodes.QUESTION_MARK:case goog.events.KeyCodes.NUM_PLUS:case goog.events.KeyCodes.NUM_MINUS:case goog.events.KeyCodes.NUM_PERIOD:case goog.events.KeyCodes.NUM_DIVISION:case goog.events.KeyCodes.SEMICOLON:case goog.events.KeyCodes.FF_SEMICOLON:case goog.events.KeyCodes.DASH:case goog.events.KeyCodes.EQUALS:case goog.events.KeyCodes.FF_EQUALS:case goog.events.KeyCodes.COMMA:case goog.events.KeyCodes.PERIOD:case goog.events.KeyCodes.SLASH:case goog.events.KeyCodes.APOSTROPHE:case goog.events.KeyCodes.SINGLE_QUOTE:case goog.events.KeyCodes.OPEN_SQUARE_BRACKET:case goog.events.KeyCodes.BACKSLASH:case goog.events.KeyCodes.CLOSE_SQUARE_BRACKET:return!0; -default:return!1}};goog.events.KeyCodes.normalizeGeckoKeyCode=function(a){switch(a){case goog.events.KeyCodes.FF_EQUALS:return goog.events.KeyCodes.EQUALS;case goog.events.KeyCodes.FF_SEMICOLON:return goog.events.KeyCodes.SEMICOLON;case goog.events.KeyCodes.MAC_FF_META:return goog.events.KeyCodes.META;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return goog.events.KeyCodes.WIN_KEY;default:return a}};goog.events.KeyHandler=function(a,b){goog.events.EventTarget.call(this);a&&this.attach(a,b)};goog.inherits(goog.events.KeyHandler,goog.events.EventTarget);goog.events.KeyHandler.prototype.goog_events_KeyHandler_prototype$element_=null;goog.events.KeyHandler.prototype.keyPressKey_=null;goog.events.KeyHandler.prototype.keyDownKey_=null;goog.events.KeyHandler.prototype.keyUpKey_=null;goog.events.KeyHandler.prototype.lastKey_=-1;goog.events.KeyHandler.prototype.keyCode_=-1; -goog.events.KeyHandler.prototype.altKey_=!1;goog.events.KeyHandler.EventType={KEY:"key"}; +default:return!1}};goog.events.KeyCodes.normalizeGeckoKeyCode=function(a){switch(a){case goog.events.KeyCodes.FF_EQUALS:return goog.events.KeyCodes.EQUALS;case goog.events.KeyCodes.FF_SEMICOLON:return goog.events.KeyCodes.SEMICOLON;case goog.events.KeyCodes.MAC_FF_META:return goog.events.KeyCodes.META;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return goog.events.KeyCodes.WIN_KEY;default:return a}};goog.events.KeyHandler=function(a,b){goog.events.EventTarget.call(this);a&&this.attach(a,b)};goog.inherits(goog.events.KeyHandler,goog.events.EventTarget);goog.events.KeyHandler.prototype.element_=null;goog.events.KeyHandler.prototype.keyPressKey_=null;goog.events.KeyHandler.prototype.keyDownKey_=null;goog.events.KeyHandler.prototype.keyUpKey_=null;goog.events.KeyHandler.prototype.lastKey_=-1;goog.events.KeyHandler.prototype.keyCode_=-1;goog.events.KeyHandler.prototype.altKey_=!1; +goog.events.KeyHandler.EventType={KEY:"key"}; goog.events.KeyHandler.safariKey_={3:goog.events.KeyCodes.ENTER,12:goog.events.KeyCodes.NUMLOCK,63232:goog.events.KeyCodes.UP,63233:goog.events.KeyCodes.DOWN,63234:goog.events.KeyCodes.LEFT,63235:goog.events.KeyCodes.RIGHT,63236:goog.events.KeyCodes.F1,63237:goog.events.KeyCodes.F2,63238:goog.events.KeyCodes.F3,63239:goog.events.KeyCodes.F4,63240:goog.events.KeyCodes.F5,63241:goog.events.KeyCodes.F6,63242:goog.events.KeyCodes.F7,63243:goog.events.KeyCodes.F8,63244:goog.events.KeyCodes.F9,63245:goog.events.KeyCodes.F10, 63246:goog.events.KeyCodes.F11,63247:goog.events.KeyCodes.F12,63248:goog.events.KeyCodes.PRINT_SCREEN,63272:goog.events.KeyCodes.DELETE,63273:goog.events.KeyCodes.HOME,63275:goog.events.KeyCodes.END,63276:goog.events.KeyCodes.PAGE_UP,63277:goog.events.KeyCodes.PAGE_DOWN,63289:goog.events.KeyCodes.NUMLOCK,63302:goog.events.KeyCodes.INSERT}; goog.events.KeyHandler.keyIdentifier_={Up:goog.events.KeyCodes.UP,Down:goog.events.KeyCodes.DOWN,Left:goog.events.KeyCodes.LEFT,Right:goog.events.KeyCodes.RIGHT,Enter:goog.events.KeyCodes.ENTER,F1:goog.events.KeyCodes.F1,F2:goog.events.KeyCodes.F2,F3:goog.events.KeyCodes.F3,F4:goog.events.KeyCodes.F4,F5:goog.events.KeyCodes.F5,F6:goog.events.KeyCodes.F6,F7:goog.events.KeyCodes.F7,F8:goog.events.KeyCodes.F8,F9:goog.events.KeyCodes.F9,F10:goog.events.KeyCodes.F10,F11:goog.events.KeyCodes.F11,F12:goog.events.KeyCodes.F12, "U+007F":goog.events.KeyCodes.DELETE,Home:goog.events.KeyCodes.HOME,End:goog.events.KeyCodes.END,PageUp:goog.events.KeyCodes.PAGE_UP,PageDown:goog.events.KeyCodes.PAGE_DOWN,Insert:goog.events.KeyCodes.INSERT};goog.events.KeyHandler.USES_KEYDOWN_=goog.userAgent.IE||goog.userAgent.WEBKIT&&goog.userAgent.isVersion("525");goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_=goog.userAgent.MAC&&goog.userAgent.GECKO; -goog.events.KeyHandler.prototype.handleKeyDown_=function(a){if(goog.userAgent.WEBKIT&&(this.lastKey_==goog.events.KeyCodes.CTRL&&!a.goog_events_BrowserEvent_prototype$ctrlKey||this.lastKey_==goog.events.KeyCodes.ALT&&!a.goog_events_BrowserEvent_prototype$altKey))this.keyCode_=this.lastKey_=-1;goog.events.KeyHandler.USES_KEYDOWN_&&!goog.events.KeyCodes.firesKeyPressEvent(a.goog_events_BrowserEvent_prototype$keyCode,this.lastKey_,a.goog_events_BrowserEvent_prototype$shiftKey,a.goog_events_BrowserEvent_prototype$ctrlKey, -a.goog_events_BrowserEvent_prototype$altKey)?this.handleEvent(a):(this.keyCode_=goog.userAgent.GECKO?goog.events.KeyCodes.normalizeGeckoKeyCode(a.goog_events_BrowserEvent_prototype$keyCode):a.goog_events_BrowserEvent_prototype$keyCode,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(this.altKey_=a.goog_events_BrowserEvent_prototype$altKey))};goog.events.KeyHandler.prototype.handleKeyup_=function(a){this.keyCode_=this.lastKey_=-1;this.altKey_=a.goog_events_BrowserEvent_prototype$altKey}; +goog.events.KeyHandler.prototype.handleKeyDown_=function(a){if(goog.userAgent.WEBKIT&&(this.lastKey_==goog.events.KeyCodes.CTRL&&!a.ctrlKey||this.lastKey_==goog.events.KeyCodes.ALT&&!a.altKey))this.keyCode_=this.lastKey_=-1;goog.events.KeyHandler.USES_KEYDOWN_&&!goog.events.KeyCodes.firesKeyPressEvent(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.keyCode_=goog.userAgent.GECKO?goog.events.KeyCodes.normalizeGeckoKeyCode(a.keyCode):a.keyCode,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&& +(this.altKey_=a.altKey))};goog.events.KeyHandler.prototype.handleKeyup_=function(a){this.keyCode_=this.lastKey_=-1;this.altKey_=a.altKey}; goog.events.KeyHandler.prototype.handleEvent=function(a){var b=a.getBrowserEvent(),c,d,e=b.altKey;goog.userAgent.IE&&a.type==goog.events.EventType.KEYPRESS?(c=this.keyCode_,d=c!=goog.events.KeyCodes.ENTER&&c!=goog.events.KeyCodes.ESC?b.keyCode:0):goog.userAgent.WEBKIT&&a.type==goog.events.EventType.KEYPRESS?(c=this.keyCode_,d=0<=b.charCode&&63232>b.charCode&&goog.events.KeyCodes.isCharacterKey(c)?b.charCode:0):goog.userAgent.OPERA?(c=this.keyCode_,d=goog.events.KeyCodes.isCharacterKey(c)?b.keyCode: -0):(c=b.keyCode||this.keyCode_,d=b.charCode||0,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(e=this.altKey_),goog.userAgent.MAC&&(d==goog.events.KeyCodes.QUESTION_MARK&&c==goog.events.KeyCodes.WIN_KEY)&&(c=goog.events.KeyCodes.SLASH));var f=c,g=b.keyIdentifier;c?63232<=c&&c in goog.events.KeyHandler.safariKey_?f=goog.events.KeyHandler.safariKey_[c]:25==c&&a.goog_events_BrowserEvent_prototype$shiftKey&&(f=9):g&&g in goog.events.KeyHandler.keyIdentifier_&&(f=goog.events.KeyHandler.keyIdentifier_[g]); -a=f==this.lastKey_;this.lastKey_=f;b=new goog.events.KeyEvent(f,d,a,b);b.goog_events_BrowserEvent_prototype$altKey=e;this.dispatchEvent(b)};goog.events.KeyHandler.prototype.getElement=function(){return this.goog_events_KeyHandler_prototype$element_}; -goog.events.KeyHandler.prototype.attach=function(a,b){this.keyUpKey_&&this.goog_events_KeyHandler_prototype$detach();this.goog_events_KeyHandler_prototype$element_=a;this.keyPressKey_=goog.events.listen(this.goog_events_KeyHandler_prototype$element_,goog.events.EventType.KEYPRESS,this,b);this.keyDownKey_=goog.events.listen(this.goog_events_KeyHandler_prototype$element_,goog.events.EventType.KEYDOWN,this.handleKeyDown_,b,this);this.keyUpKey_=goog.events.listen(this.goog_events_KeyHandler_prototype$element_, -goog.events.EventType.KEYUP,this.handleKeyup_,b,this)};goog.events.KeyHandler.prototype.goog_events_KeyHandler_prototype$detach=function(){this.keyPressKey_&&(goog.events.unlistenByKey(this.keyPressKey_),goog.events.unlistenByKey(this.keyDownKey_),goog.events.unlistenByKey(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.goog_events_KeyHandler_prototype$element_=null;this.keyCode_=this.lastKey_=-1}; -goog.events.KeyHandler.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.events.KeyHandler.superClass_.goog_Disposable_prototype$disposeInternal.call(this);this.goog_events_KeyHandler_prototype$detach()};goog.events.KeyEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,d);this.type=goog.events.KeyHandler.EventType.KEY;this.goog_events_BrowserEvent_prototype$keyCode=a;this.goog_events_BrowserEvent_prototype$charCode=b;this.repeat=c};goog.inherits(goog.events.KeyEvent,goog.events.BrowserEvent);goog.events.MouseWheelHandler=function(a){goog.events.EventTarget.call(this);this.goog_events_MouseWheelHandler$element_=a;a=goog.dom.isElement(this.goog_events_MouseWheelHandler$element_)?this.goog_events_MouseWheelHandler$element_:this.goog_events_MouseWheelHandler$element_?this.goog_events_MouseWheelHandler$element_.body:null;this.isRtl_=!!a&&goog.style.isRightToLeft(a);this.listenKey_=goog.events.listen(this.goog_events_MouseWheelHandler$element_,goog.userAgent.GECKO?"DOMMouseScroll":"mousewheel", -this)};goog.inherits(goog.events.MouseWheelHandler,goog.events.EventTarget);goog.events.MouseWheelHandler.EventType={MOUSEWHEEL:"mousewheel"};goog.events.MouseWheelHandler.prototype.setMaxDeltaX=function(a){this.maxDeltaX_=a};goog.events.MouseWheelHandler.prototype.setMaxDeltaY=function(a){this.maxDeltaY_=a}; +0):(c=b.keyCode||this.keyCode_,d=b.charCode||0,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(e=this.altKey_),goog.userAgent.MAC&&(d==goog.events.KeyCodes.QUESTION_MARK&&c==goog.events.KeyCodes.WIN_KEY)&&(c=goog.events.KeyCodes.SLASH));var f=c,g=b.keyIdentifier;c?63232<=c&&c in goog.events.KeyHandler.safariKey_?f=goog.events.KeyHandler.safariKey_[c]:25==c&&a.shiftKey&&(f=9):g&&g in goog.events.KeyHandler.keyIdentifier_&&(f=goog.events.KeyHandler.keyIdentifier_[g]);a=f==this.lastKey_;this.lastKey_= +f;b=new goog.events.KeyEvent(f,d,a,b);b.altKey=e;this.dispatchEvent(b)};goog.events.KeyHandler.prototype.getElement=function(){return this.element_}; +goog.events.KeyHandler.prototype.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=goog.events.listen(this.element_,goog.events.EventType.KEYPRESS,this,b);this.keyDownKey_=goog.events.listen(this.element_,goog.events.EventType.KEYDOWN,this.handleKeyDown_,b,this);this.keyUpKey_=goog.events.listen(this.element_,goog.events.EventType.KEYUP,this.handleKeyup_,b,this)}; +goog.events.KeyHandler.prototype.detach=function(){this.keyPressKey_&&(goog.events.unlistenByKey(this.keyPressKey_),goog.events.unlistenByKey(this.keyDownKey_),goog.events.unlistenByKey(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};goog.events.KeyHandler.prototype.disposeInternal=function(){goog.events.KeyHandler.superClass_.disposeInternal.call(this);this.detach()}; +goog.events.KeyEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,d);this.type=goog.events.KeyHandler.EventType.KEY;this.keyCode=a;this.charCode=b;this.repeat=c};goog.inherits(goog.events.KeyEvent,goog.events.BrowserEvent);goog.events.MouseWheelHandler=function(a){goog.events.EventTarget.call(this);this.element_=a;a=goog.dom.isElement(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&goog.style.isRightToLeft(a);this.listenKey_=goog.events.listen(this.element_,goog.userAgent.GECKO?"DOMMouseScroll":"mousewheel",this)};goog.inherits(goog.events.MouseWheelHandler,goog.events.EventTarget);goog.events.MouseWheelHandler.EventType={MOUSEWHEEL:"mousewheel"}; +goog.events.MouseWheelHandler.prototype.setMaxDeltaX=function(a){this.maxDeltaX_=a};goog.events.MouseWheelHandler.prototype.setMaxDeltaY=function(a){this.maxDeltaY_=a}; goog.events.MouseWheelHandler.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.getBrowserEvent();if("mousewheel"==a.type){c=1;if(goog.userAgent.IE||goog.userAgent.WEBKIT&&(goog.userAgent.WINDOWS||goog.userAgent.isVersion("532.0")))c=40;d=goog.events.MouseWheelHandler.smartScale_(-a.wheelDelta,c);goog.isDef(a.wheelDeltaX)?(b=goog.events.MouseWheelHandler.smartScale_(-a.wheelDeltaX,c),c=goog.events.MouseWheelHandler.smartScale_(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),goog.isDef(a.axis)&& a.axis===a.HORIZONTAL_AXIS?b=d:c=d;goog.isNumber(this.maxDeltaX_)&&(b=goog.math.clamp(b,-this.maxDeltaX_,this.maxDeltaX_));goog.isNumber(this.maxDeltaY_)&&(c=goog.math.clamp(c,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new goog.events.MouseWheelEvent(d,a,b,c);this.dispatchEvent(b)};goog.events.MouseWheelHandler.smartScale_=function(a,b){return goog.userAgent.WEBKIT&&(goog.userAgent.MAC||goog.userAgent.LINUX)&&0!=a%b?a:a/b}; -goog.events.MouseWheelHandler.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.events.MouseWheelHandler.superClass_.goog_Disposable_prototype$disposeInternal.call(this);goog.events.unlistenByKey(this.listenKey_);delete this.listenKey_};goog.events.MouseWheelEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,b);this.type=goog.events.MouseWheelHandler.EventType.MOUSEWHEEL;this.goog_events_MouseWheelEvent$detail=a;this.deltaX=c;this.deltaY=d}; -goog.inherits(goog.events.MouseWheelEvent,goog.events.BrowserEvent);ol.ASSUME_TOUCH=!1;ol.BrowserFeature={HAS_TOUCH:ol.ASSUME_TOUCH||document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled};ol.ObjectEventType={CHANGED:"changed"};ol.ObjectProperty={ACCESSORS:"ol_accessors_",BINDINGS:"ol_bindings_"};ol.Object=function(a){goog.events.EventTarget.call(this);this.values_={};goog.isDef(a)&&this.ol_Object_prototype$setValues(a)};goog.inherits(ol.Object,goog.events.EventTarget);ol.Object.changedEventTypeCache_={};ol.Object.getterNameCache_={};ol.Object.setterNameCache_={};ol.Object.capitalize=function(a){return a.substr(0,1).toUpperCase()+a.substr(1)}; +goog.events.MouseWheelHandler.prototype.disposeInternal=function(){goog.events.MouseWheelHandler.superClass_.disposeInternal.call(this);goog.events.unlistenByKey(this.listenKey_);delete this.listenKey_};goog.events.MouseWheelEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,b);this.type=goog.events.MouseWheelHandler.EventType.MOUSEWHEEL;this.detail=a;this.deltaX=c;this.deltaY=d};goog.inherits(goog.events.MouseWheelEvent,goog.events.BrowserEvent);ol.ASSUME_TOUCH=!1;ol.BrowserFeature={HAS_TOUCH:ol.ASSUME_TOUCH||document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled};ol.ObjectEventType={CHANGED:"changed"};ol.ObjectProperty={ACCESSORS:"ol_accessors_",BINDINGS:"ol_bindings_"};ol.Object=function(a){goog.events.EventTarget.call(this);this.values_={};goog.isDef(a)&&this.setValues(a)};goog.inherits(ol.Object,goog.events.EventTarget);ol.Object.changedEventTypeCache_={};ol.Object.getterNameCache_={};ol.Object.setterNameCache_={};ol.Object.capitalize=function(a){return a.substr(0,1).toUpperCase()+a.substr(1)}; ol.Object.getAccessors=function(a){return a[ol.ObjectProperty.ACCESSORS]||(a[ol.ObjectProperty.ACCESSORS]={})};ol.Object.getChangedEventType=function(a){return ol.Object.changedEventTypeCache_.hasOwnProperty(a)?ol.Object.changedEventTypeCache_[a]:ol.Object.changedEventTypeCache_[a]=a.toLowerCase()+"_changed"};ol.Object.getGetterName=function(a){return ol.Object.getterNameCache_.hasOwnProperty(a)?ol.Object.getterNameCache_[a]:ol.Object.getterNameCache_[a]="get"+ol.Object.capitalize(a)}; ol.Object.getListeners=function(a){return a[ol.ObjectProperty.BINDINGS]||(a[ol.ObjectProperty.BINDINGS]={})};ol.Object.getSetterName=function(a){return ol.Object.setterNameCache_.hasOwnProperty(a)?ol.Object.setterNameCache_[a]:ol.Object.setterNameCache_[a]="set"+ol.Object.capitalize(a)}; ol.Object.prototype.bindTo=function(a,b,c,d){c=c||a;this.unbind(a);var e=ol.Object.getChangedEventType(c);ol.Object.getListeners(this)[a]=goog.events.listen(b,e,function(){this.notifyInternal_(a)},void 0,this);ol.Object.getAccessors(this)[a]={target:b,key:c};d||this.notifyInternal_(a)};ol.Object.prototype.changed=goog.nullFunction; ol.Object.prototype.get=function(a){var b,c=ol.Object.getAccessors(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=ol.Object.getGetterName(b),b=a[c]?a[c]():a.get(b)):this.values_.hasOwnProperty(a)&&(b=this.values_[a]);return b};ol.Object.prototype.getKeys=function(){var a=goog.object.getKeys(ol.Object.getAccessors(this)).concat(goog.object.getKeys(this.values_));goog.array.removeDuplicates(a);return a}; ol.Object.prototype.notify=function(a){var b=ol.Object.getAccessors(this);b.hasOwnProperty(a)?(a=b[a],a.target.notify(a.key)):this.notifyInternal_(a)};ol.Object.prototype.notifyInternal_=function(a){a=ol.Object.getChangedEventType(a);this.dispatchEvent(a);this.dispatchEvent(ol.ObjectEventType.CHANGED)}; -ol.Object.prototype.set=function(a,b){var c=ol.Object.getAccessors(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=ol.Object.getSetterName(d);if(c[e])c[e](b);else c.set(d,b)}else this.values_[a]=b,this.notifyInternal_(a)};ol.Object.prototype.setOptions=function(a){var b,c,d;for(b in a)if(c=a[b],d=ol.Object.getSetterName(b),this[d])this[d](c);else this.set(b,c)};ol.Object.prototype.ol_Object_prototype$setValues=ol.Object.prototype.setOptions; -ol.Object.prototype.unbind=function(a){var b=ol.Object.getListeners(this),c=b[a];c&&(delete b[a],goog.events.unlistenByKey(c),b=this.get(a),delete ol.Object.getAccessors(this)[a],this.values_[a]=b)};ol.Object.prototype.unbindAll=function(){for(var a in ol.Object.getListeners(this))this.unbind(a)};ol.CollectionEventType={ADD:"add",INSERT_AT:"insert_at",REMOVE:"remove",REMOVE_AT:"remove_at",SET_AT:"set_at"};ol.CollectionEvent=function(a,b,c,d,e){goog.events.Event.call(this,a,e);this.elem=b;this.index=c;this.prev=d};goog.inherits(ol.CollectionEvent,goog.events.Event);ol.CollectionProperty={LENGTH:"length"};ol.Collection=function(a){ol.Object.call(this);this.array_=a||[];this.updateLength_()};goog.inherits(ol.Collection,ol.Object);ol.Collection.prototype.clear=function(){for(;0=a[2]?a[1]*a[2]:a[1]*(1-a[2]);d=0.5>=b[2]?b[1]*b[2]:b[1]*(1-b[2]);return(a[2]-b[2])*(a[2]-b[2])+c*c+d*d-2*c*d*Math.cos(2*(a[0]/360-b[0]/360)*Math.PI)};goog.color.blend=function(a,b,c){c=goog.math.clamp(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};goog.color.darken=function(a,b){return goog.color.blend([0,0,0],a,b)}; goog.color.lighten=function(a,b){return goog.color.blend([255,255,255],a,b)};goog.color.highContrast=function(a,b){for(var c=[],d=0;d=a.minX&&this.minY<=a.maxY&&this.maxY>=a.minY};ol.Rectangle.prototype.normalize=function(a){return new ol.Coordinate((a.x-this.minX)/this.getWidth(),(a.y-this.minY)/this.getHeight())};ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"}; -ol.Rectangle.prototype.scaleFromCenter=function(a){var b=this.getWidth()/2*(a-1),a=this.getHeight()/2*(a-1);this.minX-=b;this.minY-=a;this.maxX+=b;this.maxY+=a};ol.Extent=function(a,b,c,d){ol.Rectangle.call(this,a,b,c,d)};goog.inherits(ol.Extent,ol.Rectangle);ol.Extent.boundingExtent=function(a){var b=arguments[0],b=new ol.Extent(b.x,b.y,b.x,b.y),c;for(c=1;c=a.minX&&this.minY<=a.maxY&&this.maxY>=a.minY}; +ol.Rectangle.prototype.normalize=function(a){return new ol.Coordinate((a.x-this.minX)/this.getWidth(),(a.y-this.minY)/this.getHeight())};ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"};ol.Rectangle.prototype.scaleFromCenter=function(a){var b=this.getWidth()/2*(a-1),a=this.getHeight()/2*(a-1);this.minX-=b;this.minY-=a;this.maxX+=b;this.maxY+=a};ol.Extent=function(a,b,c,d){ol.Rectangle.call(this,a,b,c,d)};goog.inherits(ol.Extent,ol.Rectangle);ol.Extent.boundingExtent=function(a){var b=arguments[0],b=new ol.Extent(b.x,b.y,b.x,b.y),c;for(c=1;cgoog.vec.EPSILON?(b[2]=Math.atan2(a[2]*c,a[6]*c),b[1]=Math.atan2(d*c,a[10]),b[0]=Math.atan2(a[8]*c,-a[9]*c)):(b[0]=0,b[1]=Math.atan2(d*c,a[10]),b[2]=Math.atan2(a[1],a[0]));b[0]=(b[0]+2*Math.PI)%(2*Math.PI);b[2]=(b[2]+2*Math.PI)%(2*Math.PI);b[1]=(b[1]*c+2*Math.PI)%(2*Math.PI)*c;return b}; goog.vec.Mat4.translate=function(a,b,c,d){return goog.vec.Mat4.setColumnValues(a,3,a[0]*b+a[4]*c+a[8]*d+a[12],a[1]*b+a[5]*c+a[9]*d+a[13],a[2]*b+a[6]*c+a[10]*d+a[14],a[3]*b+a[7]*c+a[11]*d+a[15])};goog.vec.Mat4.scale=function(a,b,c,d){return goog.vec.Mat4.setFromValues(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,a[8]*d,a[9]*d,a[10]*d,a[11]*d,a[12],a[13],a[14],a[15])}; -goog.vec.Mat4.rotate=function(a,b,c,d,e){var f=a[0],g=a[1],h=a[2],i=a[3],k=a[4],j=a[5],l=a[6],m=a[7],p=a[8],n=a[9],q=a[10],r=a[11],t=a[12],v=a[13],s=a[14],y=a[15],x=Math.cos(b),z=Math.sin(b),w=1-x,b=c*c*w+x,A=c*d*w+e*z,B=c*e*w-d*z,C=c*d*w-e*z,D=d*d*w+x,E=d*e*w+c*z,F=c*e*w+d*z,c=d*e*w-c*z,e=e*e*w+x;return goog.vec.Mat4.setFromValues(a,f*b+k*A+p*B,g*b+j*A+n*B,h*b+l*A+q*B,i*b+m*A+r*B,f*C+k*D+p*E,g*C+j*D+n*E,h*C+l*D+q*E,i*C+m*D+r*E,f*F+k*c+p*e,g*F+j*c+n*e,h*F+l*c+q*e,i*F+m*c+r*e,t,v,s,y)}; +goog.vec.Mat4.rotate=function(a,b,c,d,e){var f=a[0],g=a[1],h=a[2],i=a[3],k=a[4],j=a[5],l=a[6],m=a[7],p=a[8],n=a[9],q=a[10],r=a[11],u=a[12],v=a[13],s=a[14],y=a[15],x=Math.cos(b),z=Math.sin(b),w=1-x,b=c*c*w+x,A=c*d*w+e*z,B=c*e*w-d*z,C=c*d*w-e*z,D=d*d*w+x,E=d*e*w+c*z,F=c*e*w+d*z,c=d*e*w-c*z,e=e*e*w+x;return goog.vec.Mat4.setFromValues(a,f*b+k*A+p*B,g*b+j*A+n*B,h*b+l*A+q*B,i*b+m*A+r*B,f*C+k*D+p*E,g*C+j*D+n*E,h*C+l*D+q*E,i*C+m*D+r*E,f*F+k*c+p*e,g*F+j*c+n*e,h*F+l*c+q*e,i*F+m*c+r*e,u,v,s,y)}; goog.vec.Mat4.rotateX=function(a,b){var c=a[4],d=a[5],e=a[6],f=a[7],g=a[8],h=a[9],i=a[10],k=a[11],j=Math.cos(b),l=Math.sin(b);a[4]=c*j+g*l;a[5]=d*j+h*l;a[6]=e*j+i*l;a[7]=f*j+k*l;a[8]=c*-l+g*j;a[9]=d*-l+h*j;a[10]=e*-l+i*j;a[11]=f*-l+k*j;return a};goog.vec.Mat4.rotateY=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[8],h=a[9],i=a[10],k=a[11],j=Math.cos(b),l=Math.sin(b);a[0]=c*j+g*-l;a[1]=d*j+h*-l;a[2]=e*j+i*-l;a[3]=f*j+k*-l;a[8]=c*l+g*j;a[9]=d*l+h*j;a[10]=e*l+i*j;a[11]=f*l+k*j;return a}; goog.vec.Mat4.rotateZ=function(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],h=a[5],i=a[6],k=a[7],j=Math.cos(b),l=Math.sin(b);a[0]=c*j+g*l;a[1]=d*j+h*l;a[2]=e*j+i*l;a[3]=f*j+k*l;a[4]=c*-l+g*j;a[5]=d*-l+h*j;a[6]=e*-l+i*j;a[7]=f*-l+k*j;return a};goog.vec.Mat4.getTranslation=function(a,b){b[0]=a[12];b[1]=a[13];b[2]=a[14];return b};goog.vec.Mat4.tmpVec3_=[goog.vec.Vec3.createFloat64(),goog.vec.Vec3.createFloat64()];goog.vec.Mat4.tmpVec4_=[goog.vec.Vec4.createFloat64(),goog.vec.Vec4.createFloat64(),goog.vec.Vec4.createFloat64()]; goog.vec.Mat4.tmpMat4_=[goog.vec.Mat4.createFloat64()];ol.QuadKeyCharCode={ZERO:48,ONE:49,TWO:50,THREE:51};ol.TileCoord=function(a,b,c){ol.Coordinate.call(this,b,c);this.z=a};goog.inherits(ol.TileCoord,ol.Coordinate);ol.TileCoord.createFromQuadKey=function(a){var b=a.length,c=0,d=0,e=1<>=1}return new ol.TileCoord(b,c,d)}; -ol.TileCoord.function__new_ol_TileCoord__number__number__number___undefined$createFromString=function(a){a=a.split("/");a=goog.array.map(a,function(a){return parseInt(a,10)});return new ol.TileCoord(a[0],a[1],a[2])};ol.TileCoord.prototype.hash=function(){return(this.x<>=1;return a.join("")}; +ol.TileCoord.createFromString=function(a){a=a.split("/");a=goog.array.map(a,function(a){return parseInt(a,10)});return new ol.TileCoord(a[0],a[1],a[2])};ol.TileCoord.prototype.hash=function(){return(this.x<>=1;return a.join("")}; ol.TileCoord.prototype.toString=function(){return[this.z,this.x,this.y].join("/")};ol.TileRange=function(a,b,c,d){this.minX=a;this.minY=b;this.maxX=c;this.maxY=d};goog.inherits(ol.TileRange,ol.Rectangle);ol.TileRange.boundingTileRange=function(a){var b=arguments[0],c=new ol.TileRange(b.x,b.y,b.x,b.y),d,e;for(d=1;d>1};ol.TileQueue.prototype.heapify_=function(){for(var a=(this.heap_.length>>1)-1;0<=a;a--)this.siftUp_(a)}; -ol.TileQueue.prototype.loadMoreTiles=function(){for(var a;0>1;){var f=this.ol_TileQueue_prototype$getLeftChildIndex_(a),g=this.ol_TileQueue_prototype$getRightChildIndex_(a),f=ga;){var e=this.ol_TileQueue_prototype$getParentIndex_(b);if(c[e][0]>d[0])c[b]=c[e],b=e;else break}c[b]=d}; -ol.TileQueue.prototype.reprioritize=function(){var a=this.heap_,b,c=0,d,e,f,g;for(b=0;b>1};ol.TileQueue.prototype.heapify_=function(){for(var a=(this.heap_.length>>1)-1;0<=a;a--)this.siftUp_(a)};ol.TileQueue.prototype.loadMoreTiles=function(){for(var a;0>1;){var f=this.getLeftChildIndex_(a),g=this.getRightChildIndex_(a),f=ga;){var e=this.getParentIndex_(b);if(c[e][0]>d[0])c[b]=c[e],b=e;else break}c[b]=d}; +ol.TileQueue.prototype.reprioritize=function(){var a=this.heap_,b,c=0,d,e,f,g;for(b=0;ba?goog.fx.easing.inAndOut(2*a):1-goog.fx.easing.inAndOut(2*(a-0.5))};ol.easing.elastic=function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1};ol.easing.bounce=function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a};ol.animation={};ol.animation.bounce=function(a){var b=a.resolution,c=goog.isDef(a.start)?a.start:goog.now(),d=goog.isDef(a.duration)?a.duration:1E3,e=goog.isDef(a.easing)?a.easing:ol.easing.upAndDown;return function(a,g){if(g.timea?goog.fx.easing.inAndOut(2*a):1-goog.fx.easing.inAndOut(2*(a-0.5))};ol.easing.elastic=function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1};ol.easing.bounce=function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a};ol.animation={};ol.animation.bounce=function(a){var b=a.resolution,c=goog.isDef(a.start)?a.start:goog.now(),d=goog.isDef(a.duration)?a.duration:1E3,e=goog.isDef(a.easing)?a.easing:ol.easing.upAndDown;return function(a,g){if(g.timea-this.delay_;)c--;if(0<=c){var a=this.points_[c],b=this.points_[b],c=b.x-a.x,d=b.y-a.y;this.angle_=Math.atan2(d,c);this.initialVelocity_=Math.sqrt(c*c+d*d)/(b.t-a.t);return this.initialVelocity_>this.minVelocity_}return!1}; -ol.Kinetic.prototype.pan=function(a){var b=this.decay_,c=this.initialVelocity_,d=this.minVelocity_,e=this.getDuration_();return ol.animation.pan({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};ol.Kinetic.prototype.getDuration_=function(){return Math.log(this.minVelocity_/this.initialVelocity_)/this.decay_};ol.Kinetic.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_};ol.Kinetic.prototype.getAngle=function(){return this.angle_};ol.MapEventType={POSTRENDER:"postrender"};ol.MapEvent=function(a,b,c){goog.events.Event.call(this,a);this.map=b;this.goog_events_Event_prototype$defaultPrevented=!1;this.frameState=goog.isDef(c)?c:null};goog.inherits(ol.MapEvent,goog.events.Event);ol.MapEvent.prototype.goog_events_Event_prototype$preventDefault=function(){ol.MapEvent.superClass_.goog_events_Event_prototype$preventDefault.call(this);this.goog_events_Event_prototype$defaultPrevented=!0};ol.Pixel=function(a,b){goog.math.Coordinate.call(this,a,b)};goog.inherits(ol.Pixel,goog.math.Coordinate);ol.MapBrowserEvent=function(a,b,c,d){ol.MapEvent.call(this,a,b,d);this.browserEvent=c;this.pixel_=this.coordinate_=null};goog.inherits(ol.MapBrowserEvent,ol.MapEvent);ol.MapBrowserEvent.IEEventType={MSPOINTERDOWN:"MSPointerDown",MSPOINTERMOVE:"MSPointerMove",MSPOINTERUP:"MSPointerUp"};ol.MapBrowserEvent.prototype.getCoordinate=function(){goog.isNull(this.coordinate_)&&(this.coordinate_=this.map.getCoordinateFromPixel(this.getPixel()));return this.coordinate_}; -ol.MapBrowserEvent.prototype.getPixel=function(){if(goog.isNull(this.pixel_)){var a=goog.style.getRelativePosition(this.browserEvent,this.map.getViewport());this.pixel_=new ol.Pixel(a.x,a.y)}return this.pixel_};ol.MapBrowserEvent.prototype.ol_MapBrowserEvent_prototype$isMouseActionButton=function(){return ol.BrowserFeature.HAS_TOUCH||this.browserEvent.goog_events_BrowserEvent_prototype$isMouseActionButton()}; -ol.MapBrowserEventHandler=function(a){this.ol_MapBrowserEventHandler$map_=a;this.previous_=null;this.dragged_=!1;this.down_=this.touchListenerKeys_=this.dragListenerKeys_=this.downListenerKey_=this.clickListenerKey_=this.timestamp_=null;a=this.ol_MapBrowserEventHandler$map_.getViewport();this.clickListenerKey_=goog.events.listen(a,[goog.events.EventType.CLICK,goog.events.EventType.DBLCLICK],this.click_,!1,this);this.downListenerKey_=goog.events.listen(a,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_, -!1,this);this.touchListenerKeys_=[goog.events.listen(a,[goog.events.EventType.TOUCHSTART,ol.MapBrowserEvent.IEEventType.MSPOINTERDOWN],this.handleTouchStart_,!1,this),goog.events.listen(a,[goog.events.EventType.TOUCHMOVE,ol.MapBrowserEvent.IEEventType.MSPOINTERMOVE],this.handleTouchMove_,!1,this),goog.events.listen(a,[goog.events.EventType.TOUCHEND,ol.MapBrowserEvent.IEEventType.MSPOINTERUP],this.handleTouchEnd_,!1,this)]};goog.inherits(ol.MapBrowserEventHandler,goog.events.EventTarget); -ol.MapBrowserEventHandler.prototype.click_=function(a){if(!this.dragged_){var b=a.type;0==this.timestamp_||b==goog.events.EventType.DBLCLICK?(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DBLCLICK,this.ol_MapBrowserEventHandler$map_,a),this.dispatchEvent(a)):b==goog.events.EventType.CLICK&&(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.CLICK,this.ol_MapBrowserEventHandler$map_,a),this.dispatchEvent(a))}}; -ol.MapBrowserEventHandler.prototype.handleMouseUp_=function(a){this.previous_&&(this.down_=null,goog.array.forEach(this.dragListenerKeys_,goog.events.unlistenByKey),this.previous_=this.dragListenerKeys_=null,this.dragged_&&(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGEND,this.ol_MapBrowserEventHandler$map_,a),this.dispatchEvent(a)))}; -ol.MapBrowserEventHandler.prototype.handleMouseDown_=function(a){var b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DOWN,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(b);this.previous_||(this.down_=a,this.previous_={clientX:a.clientX,clientY:a.clientY},this.dragged_=!1,this.dragListenerKeys_=[goog.events.listen(document,goog.events.EventType.MOUSEMOVE,this.handleMouseMove_,!1,this),goog.events.listen(document,goog.events.EventType.MOUSEUP,this.handleMouseUp_,!1,this)],a.goog_events_Event_prototype$preventDefault())}; -ol.MapBrowserEventHandler.prototype.handleMouseMove_=function(a){var b;this.dragged_||(this.dragged_=!0,b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGSTART,this.ol_MapBrowserEventHandler$map_,this.down_),this.dispatchEvent(b));this.previous_={clientX:a.clientX,clientY:a.clientY};b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAG,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(b)}; -ol.MapBrowserEventHandler.prototype.handleTouchStart_=function(a){a.goog_events_Event_prototype$preventDefault();this.down_=a;this.dragged_=!1;a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHSTART,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(a)};ol.MapBrowserEventHandler.prototype.handleTouchMove_=function(a){this.dragged_=!0;a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHMOVE,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(a)}; -ol.MapBrowserEventHandler.prototype.handleTouchEnd_=function(a){a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHEND,this.ol_MapBrowserEventHandler$map_,a);this.dispatchEvent(a);this.dragged_||(a=goog.now(),this.timestamp_=!this.timestamp_||250a-this.delay_;)c--;if(0<=c){var a=this.points_[c],b=this.points_[b],c=b.x-a.x,d=b.y-a.y;this.angle_=Math.atan2(d,c);this.initialVelocity_=Math.sqrt(c*c+d*d)/(b.t-a.t);return this.initialVelocity_>this.minVelocity_}return!1}; +ol.Kinetic.prototype.pan=function(a){var b=this.decay_,c=this.initialVelocity_,d=this.minVelocity_,e=this.getDuration_();return ol.animation.pan({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};ol.Kinetic.prototype.getDuration_=function(){return Math.log(this.minVelocity_/this.initialVelocity_)/this.decay_};ol.Kinetic.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_};ol.Kinetic.prototype.getAngle=function(){return this.angle_};ol.MapEventType={POSTRENDER:"postrender"};ol.MapEvent=function(a,b,c){goog.events.Event.call(this,a);this.map=b;this.defaultPrevented=!1;this.frameState=goog.isDef(c)?c:null};goog.inherits(ol.MapEvent,goog.events.Event);ol.MapEvent.prototype.preventDefault=function(){ol.MapEvent.superClass_.preventDefault.call(this);this.defaultPrevented=!0};ol.Pixel=function(a,b){goog.math.Coordinate.call(this,a,b)};goog.inherits(ol.Pixel,goog.math.Coordinate);ol.MapBrowserEvent=function(a,b,c,d){ol.MapEvent.call(this,a,b,d);this.browserEvent=c;this.pixel_=this.coordinate_=null};goog.inherits(ol.MapBrowserEvent,ol.MapEvent);ol.MapBrowserEvent.IEEventType={MSPOINTERDOWN:"MSPointerDown",MSPOINTERMOVE:"MSPointerMove",MSPOINTERUP:"MSPointerUp"};ol.MapBrowserEvent.prototype.getCoordinate=function(){goog.isNull(this.coordinate_)&&(this.coordinate_=this.map.getCoordinateFromPixel(this.getPixel()));return this.coordinate_}; +ol.MapBrowserEvent.prototype.getPixel=function(){if(goog.isNull(this.pixel_)){var a=goog.style.getRelativePosition(this.browserEvent,this.map.getViewport());this.pixel_=new ol.Pixel(a.x,a.y)}return this.pixel_};ol.MapBrowserEvent.prototype.isMouseActionButton=function(){return ol.BrowserFeature.HAS_TOUCH||this.browserEvent.isMouseActionButton()}; +ol.MapBrowserEventHandler=function(a){this.map_=a;this.previous_=null;this.dragged_=!1;this.down_=this.touchListenerKeys_=this.dragListenerKeys_=this.downListenerKey_=this.clickListenerKey_=this.timestamp_=null;a=this.map_.getViewport();this.clickListenerKey_=goog.events.listen(a,[goog.events.EventType.CLICK,goog.events.EventType.DBLCLICK],this.click_,!1,this);this.downListenerKey_=goog.events.listen(a,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_,!1,this);this.touchListenerKeys_=[goog.events.listen(a, +[goog.events.EventType.TOUCHSTART,ol.MapBrowserEvent.IEEventType.MSPOINTERDOWN],this.handleTouchStart_,!1,this),goog.events.listen(a,[goog.events.EventType.TOUCHMOVE,ol.MapBrowserEvent.IEEventType.MSPOINTERMOVE],this.handleTouchMove_,!1,this),goog.events.listen(a,[goog.events.EventType.TOUCHEND,ol.MapBrowserEvent.IEEventType.MSPOINTERUP],this.handleTouchEnd_,!1,this)]};goog.inherits(ol.MapBrowserEventHandler,goog.events.EventTarget); +ol.MapBrowserEventHandler.prototype.click_=function(a){if(!this.dragged_){var b=a.type,a=0==this.timestamp_||b==goog.events.EventType.DBLCLICK?new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DBLCLICK,this.map_,a):new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.CLICK,this.map_,a);this.dispatchEvent(a)}}; +ol.MapBrowserEventHandler.prototype.handleMouseUp_=function(a){this.previous_&&(this.down_=null,goog.array.forEach(this.dragListenerKeys_,goog.events.unlistenByKey),this.previous_=this.dragListenerKeys_=null,this.dragged_&&(a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGEND,this.map_,a),this.dispatchEvent(a)))}; +ol.MapBrowserEventHandler.prototype.handleMouseDown_=function(a){var b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DOWN,this.map_,a);this.dispatchEvent(b);this.previous_||(this.down_=a,this.previous_={clientX:a.clientX,clientY:a.clientY},this.dragged_=!1,this.dragListenerKeys_=[goog.events.listen(document,goog.events.EventType.MOUSEMOVE,this.handleMouseMove_,!1,this),goog.events.listen(document,goog.events.EventType.MOUSEUP,this.handleMouseUp_,!1,this)],a.preventDefault())}; +ol.MapBrowserEventHandler.prototype.handleMouseMove_=function(a){var b;this.dragged_||(this.dragged_=!0,b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGSTART,this.map_,this.down_),this.dispatchEvent(b));this.previous_={clientX:a.clientX,clientY:a.clientY};b=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAG,this.map_,a);this.dispatchEvent(b)}; +ol.MapBrowserEventHandler.prototype.handleTouchStart_=function(a){a.preventDefault();this.down_=a;this.dragged_=!1;a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHSTART,this.map_,a);this.dispatchEvent(a)};ol.MapBrowserEventHandler.prototype.handleTouchMove_=function(a){this.dragged_=!0;a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHMOVE,this.map_,a);this.dispatchEvent(a)}; +ol.MapBrowserEventHandler.prototype.handleTouchEnd_=function(a){a=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.TOUCHEND,this.map_,a);this.dispatchEvent(a);this.dragged_||(a=goog.now(),this.timestamp_=!this.timestamp_||250=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED){var b=a.map,c=ol.Extent.boundingExtent(this.startCoordinate,a.getCoordinate());b.withFrozenRendering(function(){var a=b.getView();goog.asserts.assert(a instanceof ol.View2D);var e=b.getSize();a.fitExtent(c,e);a.setRotation(0)})}}; -ol.interaction.DragZoom.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.goog_events_BrowserEvent_prototype$isMouseActionButton()&&this.ol_interaction_DragZoom$condition_(b)?(this.dragBox_=new ol.control.DragBox({map:a.map,startCoordinate:this.startCoordinate}),!0):!1};ol.interaction.KeyboardPan=function(a){ol.interaction.Interaction.call(this);this.pixelDelta_=a};goog.inherits(ol.interaction.KeyboardPan,ol.interaction.Interaction); -ol.interaction.KeyboardPan.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.goog_events_BrowserEvent_prototype$keyCode;if(c==goog.events.KeyCodes.DOWN||c==goog.events.KeyCodes.LEFT||c==goog.events.KeyCodes.RIGHT||c==goog.events.KeyCodes.UP){var d=a.map.getView();goog.asserts.assert(d instanceof ol.View2D);var e=d.ol_IView2D_prototype$getResolution()*this.pixelDelta_;c==goog.events.KeyCodes.DOWN? -c=new ol.Coordinate(0,-e):c==goog.events.KeyCodes.LEFT?c=new ol.Coordinate(-e,0):c==goog.events.KeyCodes.RIGHT?c=new ol.Coordinate(e,0):(goog.asserts.assert(c==goog.events.KeyCodes.UP),c=new ol.Coordinate(0,e));e=d.ol_IView2D_prototype$getCenter();c=new ol.Coordinate(e.x+c.x,e.y+c.y);d.setCenter(c);b.goog_events_Event_prototype$preventDefault();a.goog_events_Event_prototype$preventDefault()}}};ol.interaction.KEYBOARD_ZOOM_DURATION=100;ol.interaction.KeyboardZoom=function(){ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.KeyboardZoom,ol.interaction.Interaction); -ol.interaction.KeyboardZoom.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.goog_events_BrowserEvent_prototype$charCode;if(43==c||45==c){var d=a.map,c=43==c?4:-4;d.requestRenderFrame();var e=d.getView();goog.asserts.assert(e instanceof ol.View2D);e.zoom(d,c,void 0,ol.interaction.KEYBOARD_ZOOM_DURATION);b.goog_events_Event_prototype$preventDefault();a.goog_events_Event_prototype$preventDefault()}}};ol.interaction.MouseWheelZoom=function(a){this.ol_interaction_MouseWheelZoom$delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.MouseWheelZoom,ol.interaction.Interaction); -ol.interaction.MouseWheelZoom.prototype.ol_interaction_Interaction_prototype$handleMapBrowserEvent=function(a){if(a.type==goog.events.MouseWheelHandler.EventType.MOUSEWHEEL){var b=a.map,c=a.browserEvent;goog.asserts.assert(c instanceof goog.events.MouseWheelEvent);var d=a.getCoordinate(),e=0>c.deltaY?this.ol_interaction_MouseWheelZoom$delta_:-this.ol_interaction_MouseWheelZoom$delta_,f=b.getView();goog.asserts.assert(f instanceof ol.View2D);b.requestRenderFrame();f.zoom(b,e,d);a.goog_events_Event_prototype$preventDefault(); -c.goog_events_Event_prototype$preventDefault()}};ol.interaction.Touch=function(){ol.interaction.Interaction.call(this);this.handled_=!1;this.trackedTouches_={};this.targetTouches=[]};goog.inherits(ol.interaction.Touch,ol.interaction.Interaction);ol.interaction.Touch.centroid=function(a){for(var b=a.length,c=0,d=0,e=0;e=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED){var b=a.map,c=ol.Extent.boundingExtent(this.startCoordinate,a.getCoordinate());b.withFrozenRendering(function(){var a=b.getView();goog.asserts.assert(a instanceof ol.View2D);var e=b.getSize();a.fitExtent(c,e);a.setRotation(0)})}}; +ol.interaction.DragZoom.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.isMouseActionButton()&&this.condition_(b)?(this.dragBox_=new ol.control.DragBox({map:a.map,startCoordinate:this.startCoordinate}),!0):!1};ol.interaction.KeyboardPan=function(a){ol.interaction.Interaction.call(this);this.pixelDelta_=a};goog.inherits(ol.interaction.KeyboardPan,ol.interaction.Interaction); +ol.interaction.KeyboardPan.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.keyCode;if(c==goog.events.KeyCodes.DOWN||c==goog.events.KeyCodes.LEFT||c==goog.events.KeyCodes.RIGHT||c==goog.events.KeyCodes.UP){var d=a.map.getView();goog.asserts.assert(d instanceof ol.View2D);var e=d.getResolution()*this.pixelDelta_;c==goog.events.KeyCodes.DOWN?c=new ol.Coordinate(0,-e):c==goog.events.KeyCodes.LEFT?c=new ol.Coordinate(-e,0):c==goog.events.KeyCodes.RIGHT? +c=new ol.Coordinate(e,0):(goog.asserts.assert(c==goog.events.KeyCodes.UP),c=new ol.Coordinate(0,e));e=d.getCenter();c=new ol.Coordinate(e.x+c.x,e.y+c.y);d.setCenter(c);b.preventDefault();a.preventDefault()}}};ol.interaction.KEYBOARD_ZOOM_DURATION=100;ol.interaction.KeyboardZoom=function(){ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.KeyboardZoom,ol.interaction.Interaction); +ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.KeyHandler.EventType.KEY){var b=a.browserEvent,c=b.charCode;if(43==c||45==c){var d=a.map,c=43==c?4:-4;d.requestRenderFrame();var e=d.getView();goog.asserts.assert(e instanceof ol.View2D);e.zoom(d,c,void 0,ol.interaction.KEYBOARD_ZOOM_DURATION);b.preventDefault();a.preventDefault()}}};ol.interaction.MouseWheelZoom=function(a){this.delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.MouseWheelZoom,ol.interaction.Interaction); +ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent=function(a){if(a.type==goog.events.MouseWheelHandler.EventType.MOUSEWHEEL){var b=a.map,c=a.browserEvent;goog.asserts.assert(c instanceof goog.events.MouseWheelEvent);var d=a.getCoordinate(),e=0>c.deltaY?this.delta_:-this.delta_,f=b.getView();goog.asserts.assert(f instanceof ol.View2D);b.requestRenderFrame();f.zoom(b,e,d);a.preventDefault();c.preventDefault()}};ol.interaction.Touch=function(){ol.interaction.Interaction.call(this);this.handled_=!1;this.trackedTouches_={};this.targetTouches=[]};goog.inherits(ol.interaction.Touch,ol.interaction.Interaction);ol.interaction.Touch.centroid=function(a){for(var b=a.length,c=0,d=0,e=0;ethis.rotationThreshold_&&(this.rotating_=!0));this.ol_interaction_TouchRotateAndZoom$lastAngle_=e;a=a.map;g=a.getView();h=goog.style.getClientPosition(a.getViewport());d.x-=h.x;d.y-=h.y;d=a.getCoordinateFromPixel(d);g.zoom_(a,g.ol_IView2D_prototype$getResolution()*b,d);this.rotating_&&g.rotate(a,g.getRotation()+c,d)}; -ol.interaction.TouchRotateAndZoom.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();b.zoomToResolution(a,b.ol_IView2D_prototype$getResolution());b.setHint(ol.ViewHint.PANNING,-1);return!1}return!0}; -ol.interaction.TouchRotateAndZoom.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.ol_interaction_TouchRotateAndZoom$lastAngle_=this.lastDistance_=void 0,this.rotating_=!1,this.rotationDelta_=0,a.setHint(ol.ViewHint.PANNING,1),!0):!1};ol.projection.EPSG3857=function(a){ol.Projection.call(this,a,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS; -ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE);ol.projection.EPSG3857.CODES=["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"];ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$PROJECTIONS=goog.array.map(ol.projection.EPSG3857.CODES,function(a){return new ol.projection.EPSG3857(a)}); -ol.projection.EPSG3857.fromEPSG4326=function(a){var b=ol.projection.EPSG3857.RADIUS*Math.PI*a.x/180,a=ol.projection.EPSG3857.RADIUS*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new ol.Coordinate(b,a)};ol.projection.EPSG3857.toEPSG4326=function(a){var b=180*a.x/(ol.projection.EPSG3857.RADIUS*Math.PI),a=360*Math.atan(Math.exp(a.y/ol.projection.EPSG3857.RADIUS))/Math.PI-90;return new ol.Coordinate(b,a)};ol.projection.EPSG4326=function(a,b){ol.Projection.call(this,a,ol.ProjectionUnits.DEGREES,ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$EXTENT,b)};goog.inherits(ol.projection.EPSG4326,ol.Projection);ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$EXTENT=new ol.Extent(-180,-90,180,90); -ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$PROJECTIONS=[new ol.projection.EPSG4326("CRS:84"),new ol.projection.EPSG4326("EPSG:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:OGC:1.3:CRS84")];ol.projection.addCommonProjections=function(){ol.projection.addEquivalentProjections(ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$PROJECTIONS);ol.projection.addEquivalentProjections(ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$PROJECTIONS);ol.projection.addEquivalentTransforms(ol.projection.EPSG4326.function__new_ol_projection_EPSG4326__string__string____undefined$PROJECTIONS,ol.projection.EPSG3857.function__new_ol_projection_EPSG3857__string___undefined$PROJECTIONS, -ol.projection.EPSG3857.fromEPSG4326,ol.projection.EPSG3857.toEPSG4326)};ol.ImageState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};ol.Image=function(a,b,c,d,e){this.ol_Image$attributions_=e;this.ol_Image$extent_=a;this.ol_Image$src_=c;this.ol_Image$resolution_=b;this.ol_Image$image_=new Image;goog.isNull(d)||(this.ol_Image$image_.crossOrigin=d);this.ol_Image$imageByContext_={};this.ol_Image$imageListenerKeys_=null;this.ol_Image$state=ol.ImageState.IDLE};goog.inherits(ol.Image,goog.events.EventTarget);ol.Image.prototype.ol_Image_prototype$dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)}; -ol.Image.prototype.getAttributions=function(){return this.ol_Image$attributions_};ol.Image.prototype.getExtent=function(){return this.ol_Image$extent_};ol.Image.prototype.getImageElement=function(a){if(goog.isDef(a)){var b=goog.getUid(a);if(b in this.ol_Image$imageByContext_)return this.ol_Image$imageByContext_[b];a=goog.object.isEmpty(this.ol_Image$imageByContext_)?this.ol_Image$image_:this.ol_Image$image_.cloneNode(!1);return this.ol_Image$imageByContext_[b]=a}return this.ol_Image$image_}; -ol.Image.prototype.ol_Image_prototype$getResolution=function(){return this.ol_Image$resolution_};ol.Image.prototype.getState=function(){return this.ol_Image$state};ol.Image.prototype.ol_Image_prototype$handleImageError_=function(){this.ol_Image$state=ol.ImageState.ERROR;this.ol_Image_prototype$unlistenImage_();this.ol_Image_prototype$dispatchChangeEvent()}; -ol.Image.prototype.ol_Image_prototype$handleImageLoad_=function(){this.ol_Image$state=ol.ImageState.LOADED;this.ol_Image_prototype$unlistenImage_();this.ol_Image_prototype$dispatchChangeEvent()}; -ol.Image.prototype.load=function(){this.ol_Image$state==ol.ImageState.IDLE&&(this.ol_Image$state=ol.ImageState.LOADING,goog.asserts.assert(goog.isNull(this.ol_Image$imageListenerKeys_)),this.ol_Image$imageListenerKeys_=[goog.events.listenOnce(this.ol_Image$image_,goog.events.EventType.ERROR,this.ol_Image_prototype$handleImageError_,!1,this),goog.events.listenOnce(this.ol_Image$image_,goog.events.EventType.LOAD,this.ol_Image_prototype$handleImageLoad_,!1,this)],this.ol_Image$image_.src=this.ol_Image$src_)}; -ol.Image.prototype.ol_Image_prototype$unlistenImage_=function(){goog.asserts.assert(!goog.isNull(this.ol_Image$imageListenerKeys_));goog.array.forEach(this.ol_Image$imageListenerKeys_,goog.events.unlistenByKey);this.ol_Image$imageListenerKeys_=null};ol.PixelBounds=function(a,b,c,d){ol.Rectangle.call(this,a,b,c,d)};goog.inherits(ol.PixelBounds,ol.Rectangle);ol.tilegrid={};ol.DEFAULT_TILE_SIZE=256; -ol.tilegrid.TileGrid=function(a){this.ol_tilegrid_TileGrid$resolutions_=a.resolutions;goog.asserts.assert(goog.array.isSorted(this.ol_tilegrid_TileGrid$resolutions_,function(a,c){return c-a},!0));this.numResolutions_=this.ol_tilegrid_TileGrid$resolutions_.length;this.ol_tilegrid_TileGrid$origin_=goog.isDef(a.origin)?a.origin:null;this.origins_=null;goog.isDef(a.origins)&&(this.origins_=a.origins,goog.asserts.assert(this.origins_.length==this.ol_tilegrid_TileGrid$resolutions_.length));this.ol_tilegrid_TileGrid$tileSize_= -goog.isDef(a.tileSize)?a.tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE)};ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange=function(a,b,c){for(var d=this.getTileCoordExtent(a),a=a.z-1;0<=a&&!b.call(c,a,this.getTileRangeForExtentAndZ(d,a));)--a}; -ol.tilegrid.TileGrid.prototype.ol_tilegrid_TileGrid_prototype$getOrigin=function(a){return goog.isNull(this.ol_tilegrid_TileGrid$origin_)?(goog.asserts.assert(!goog.isNull(this.origins_)),goog.asserts.assert(0<=a&&athis.threshold_&&(this.rotating_=!0));this.lastAngle_=c;var a=a.map,c=a.getView(),d=goog.style.getClientPosition(a.getViewport()),e=ol.interaction.Touch.centroid(this.targetTouches); +e.x-=d.x;e.y-=d.y;d=a.getCoordinateFromPixel(e);this.rotating_&&c.rotate(a,c.getRotation()+b,d)};ol.interaction.TouchRotate.prototype.handleTouchEnd=function(a){return 2>this.targetTouches.length?(a.map.getView().setHint(ol.ViewHint.INTERACTING,-1),!1):!0};ol.interaction.TouchRotate.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,a.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.interaction.TouchZoom=function(){ol.interaction.Touch.call(this)};goog.inherits(ol.interaction.TouchZoom,ol.interaction.Touch); +ol.interaction.TouchZoom.prototype.handleTouchMove=function(a){goog.asserts.assert(2<=this.targetTouches.length);var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);goog.isDef(this.lastDistance_)&&(b=this.lastDistance_/e);this.lastDistance_=e;a=a.map;e=a.getView();c=goog.style.getClientPosition(a.getViewport());d=ol.interaction.Touch.centroid(this.targetTouches);d.x-=c.x;d.y-=c.y;c=a.getCoordinateFromPixel(d);e.zoom_(a,e.getResolution()* +b,c)};ol.interaction.TouchZoom.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();b.zoomToResolution(a,b.getResolution());b.setHint(ol.ViewHint.INTERACTING,-1);return!1}return!0};ol.interaction.TouchZoom.prototype.handleTouchStart=function(a){return 2<=this.targetTouches.length?(a=a.map.getView(),this.lastDistance_=void 0,a.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.math={};ol.math.cosh=function(a){return(Math.exp(a)+Math.exp(-a))/2};ol.math.coth=function(a){a=Math.exp(-2*a);return(1+a)/(1-a)};ol.math.csch=function(a){return 2/(Math.exp(a)-Math.exp(-a))};ol.math.sech=function(a){return 2/(Math.exp(a)+Math.exp(-a))};ol.math.sinh=function(a){return(Math.exp(a)-Math.exp(-a))/2};ol.math.tanh=function(a){a=Math.exp(-2*a);return(1-a)/(1+a)};ol.projection.EPSG3857=function(a){ol.Projection.call(this,a,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS;ol.projection.EPSG3857.EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE); +ol.projection.EPSG3857.CODES=["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"];ol.projection.EPSG3857.PROJECTIONS=goog.array.map(ol.projection.EPSG3857.CODES,function(a){return new ol.projection.EPSG3857(a)}); +ol.projection.EPSG3857.fromEPSG4326=function(a,b,c){var d=a.length,c=1d;++d)e[d]=b[d].toFixed(c);c=e.join(",")}else c=b.join(",");ol.dom.setTransform(a,"matrix3d("+c+")")}else if(ol.dom.BrowserFeature.CAN_USE_CSS_TRANSFORM){b=[goog.vec.Mat4.getElement(b,0,0),goog.vec.Mat4.getElement(b,1,0),goog.vec.Mat4.getElement(b,0,1),goog.vec.Mat4.getElement(b,1,1),goog.vec.Mat4.getElement(b,0,3),goog.vec.Mat4.getElement(b,1,3)];if(goog.isDef(c)){e= -Array(6);for(d=0;6>d;++d)e[d]=b[d].toFixed(c);c=e.join(",")}else c=b.join(",");ol.dom.setTransform(a,"matrix("+c+")")}else ol.dom.BrowserFeature.CAN_USE_MATRIX_FILTER?goog.asserts.assert(!1):(a=a.style,a.left=Math.round(goog.vec.Mat4.getElement(b,0,3))+"px",a.top=Math.round(goog.vec.Mat4.getElement(b,1,3))+"px")};ol.renderer.dom={};ol.renderer.dom.Layer=function(a,b,c){ol.renderer.Layer.call(this,a,b);this.target=c};goog.inherits(ol.renderer.dom.Layer,ol.renderer.Layer);ol.renderer.dom.Layer.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.dom.removeNode(this.target);ol.renderer.dom.Layer.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};ol.renderer.dom.Layer.prototype.ol_renderer_dom_Layer_prototype$getTarget=function(){return this.target};ol.renderer.dom.ImageLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-image";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.ol_renderer_dom_ImageLayer$image_=null;this.ol_renderer_dom_ImageLayer$transform_=goog.vec.Mat4.createNumberIdentity()};goog.inherits(ol.renderer.dom.ImageLayer,ol.renderer.dom.Layer);ol.renderer.dom.ImageLayer.prototype.ol_renderer_dom_ImageLayer_prototype$getImageLayer=function(){return this.getLayer()}; -ol.renderer.dom.ImageLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,b=this.ol_renderer_dom_ImageLayer$image_,f=this.ol_renderer_dom_ImageLayer_prototype$getImageLayer().getImageSource(),g=a.viewHints;!g[ol.ViewHint.ANIMATING]&&!g[ol.ViewHint.PANNING]&&(f=f.getImage(a.extent,d),goog.isNull(f)||(g=f.getState(),g==ol.ImageState.IDLE?(goog.events.listenOnce(f,goog.events.EventType.CHANGE,this.handleImageChange,!1,this),f.load()): -g==ol.ImageState.LOADED&&(b=f)));if(!goog.isNull(b)){var g=b.getExtent(),h=b.ol_Image_prototype$getResolution(),f=goog.vec.Mat4.createNumber();goog.vec.Mat4.makeIdentity(f);goog.vec.Mat4.translate(f,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(f,e);goog.vec.Mat4.scale(f,h/d,h/d,1);goog.vec.Mat4.translate(f,(g.minX-c.x)/h,(c.y-g.maxY)/h,0);b!=this.ol_renderer_dom_ImageLayer$image_&&(c=b.getImageElement(this),c.style.position="absolute",goog.dom.removeChildren(this.target),goog.dom.appendChild(this.target, -c),this.ol_renderer_dom_ImageLayer$image_=b);this.setTransform(f);this.updateAttributions(a.attributions,b.getAttributions())}};ol.renderer.dom.ImageLayer.prototype.setTransform=function(a){goog.vec.Mat4.equals(a,this.ol_renderer_dom_ImageLayer$transform_)||(ol.dom.transformElement2D(this.target,a,6),goog.vec.Mat4.setFromArray(this.ol_renderer_dom_ImageLayer$transform_,a))};ol.renderer.dom.TileLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-tile";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.ol_renderer_dom_TileLayer$renderedVisible_=!0;this.renderedOpacity_=1;this.tileLayerZs_={}};goog.inherits(ol.renderer.dom.TileLayer,ol.renderer.dom.Layer);ol.renderer.dom.TileLayer.prototype.ol_renderer_dom_TileLayer_prototype$getTileLayer=function(){return this.getLayer()}; -ol.renderer.dom.TileLayer.prototype.ol_renderer_Layer_prototype$renderFrame=function(a,b){if(b.visible){var c=a.view2DState,d=this.ol_renderer_dom_TileLayer_prototype$getTileLayer().getTileSource(),e=goog.getUid(d).toString(),f=d.getTileGrid(),g=f.getZForResolution(c.resolution),h=f.ol_tilegrid_TileGrid_prototype$getResolution(g),h=f.getTileRangeForExtentAndResolution(a.extent,h),i={};i[g]={};var k=goog.bind(d.findLoadedTiles,d,i,function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED}), -j,l,m,p,n;for(p=h.minX;p<=h.maxX;++p)for(n=h.minY;n<=h.maxY;++n)if(m=new ol.TileCoord(g,p,n),j=d.getTile(m),!goog.isNull(j)){l=j.getState();if(l==ol.TileState.IDLE)goog.events.listenOnce(j,goog.events.EventType.CHANGE,this.ol_renderer_Layer_prototype$handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,d,m),l=f.getTileCoordCenter(m),a.tileQueue.ol_TileQueue_prototype$enqueue(j,e,l);else if(l==ol.TileState.LOADED){i[g][m.toString()]=j;continue}else if(l==ol.TileState.ERROR)continue;f.forEachTileCoordParentTileRange(m, -k)}m=goog.array.map(goog.object.getKeys(i),Number);goog.array.sort(m);e={};f.getTileSize();var q;for(p=0;pj&&goog.dom.insertChildAt(this.target,k.target,0)}else!a.viewHints[ol.ViewHint.ANIMATING]&&!a.viewHints[ol.ViewHint.PANNING]&&k.removeTilesOutsideExtent(a.extent);else goog.dom.removeNode(k.target),delete this.tileLayerZs_[j];b.opacity!=this.renderedOpacity_&&(goog.style.setOpacity(this.target,b.opacity),this.renderedOpacity_=b.opacity);b.visible&&!this.ol_renderer_dom_TileLayer$renderedVisible_&&(goog.style.showElement(this.target,!0),this.ol_renderer_dom_TileLayer$renderedVisible_=!0);this.updateUsedTiles(a.usedTiles, -d,g,h);d.useLowResolutionTiles(g,a.extent);this.scheduleExpireCache(a,d)}else this.ol_renderer_dom_TileLayer$renderedVisible_&&(goog.style.showElement(this.target,!1),this.ol_renderer_dom_TileLayer$renderedVisible_=!1)}; -ol.renderer.dom.TileLayerZ_=function(a,b){this.target=goog.dom.createElement(goog.dom.TagName.DIV);this.target.style.position="absolute";this.tileGrid_=a;this.tileCoordOrigin_=b;this.ol_renderer_dom_TileLayerZ_$origin_=a.getTileCoordExtent(b).getTopLeft();this.ol_renderer_dom_TileLayerZ_$resolution_=a.ol_tilegrid_TileGrid_prototype$getResolution(b.z);this.tiles_={};this.documentFragment_=null;this.ol_renderer_dom_TileLayerZ_$transform_=goog.vec.Mat4.createNumberIdentity()}; -ol.renderer.dom.TileLayerZ_.prototype.addTile=function(a){var b=a.tileCoord;goog.asserts.assert(b.z==this.tileCoordOrigin_.z);var c=b.toString();if(!(c in this.tiles_)){var d=this.tileGrid_.getTileSize(),e=a.getImage(this),f=e.style;f.position="absolute";f.left=(b.x-this.tileCoordOrigin_.x)*d.width+"px";f.top=(this.tileCoordOrigin_.y-b.y)*d.height+"px";goog.isNull(this.documentFragment_)&&(this.documentFragment_=document.createDocumentFragment());goog.dom.appendChild(this.documentFragment_,e);this.tiles_[c]= -a}};ol.renderer.dom.TileLayerZ_.prototype.finalizeAddTiles=function(){goog.isNull(this.documentFragment_)||(goog.dom.appendChild(this.target,this.documentFragment_),this.documentFragment_=null)};ol.renderer.dom.TileLayerZ_.prototype.ol_renderer_dom_TileLayerZ__prototype$getOrigin=function(){return this.ol_renderer_dom_TileLayerZ_$origin_};ol.renderer.dom.TileLayerZ_.prototype.ol_renderer_dom_TileLayerZ__prototype$getResolution=function(){return this.ol_renderer_dom_TileLayerZ_$resolution_}; +Array(6);for(d=0;6>d;++d)e[d]=b[d].toFixed(c);c=e.join(",")}else c=b.join(",");ol.dom.setTransform(a,"matrix("+c+")")}else ol.dom.BrowserFeature.CAN_USE_MATRIX_FILTER?goog.asserts.assert(!1):(a=a.style,a.left=Math.round(goog.vec.Mat4.getElement(b,0,3))+"px",a.top=Math.round(goog.vec.Mat4.getElement(b,1,3))+"px")};ol.renderer.dom={};ol.renderer.dom.Layer=function(a,b,c){ol.renderer.Layer.call(this,a,b);this.target=c};goog.inherits(ol.renderer.dom.Layer,ol.renderer.Layer);ol.renderer.dom.Layer.prototype.disposeInternal=function(){goog.dom.removeNode(this.target);ol.renderer.dom.Layer.superClass_.disposeInternal.call(this)};ol.renderer.dom.Layer.prototype.getTarget=function(){return this.target};ol.renderer.dom.ImageLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-image";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.image_=null;this.transform_=goog.vec.Mat4.createNumberIdentity()};goog.inherits(ol.renderer.dom.ImageLayer,ol.renderer.dom.Layer);ol.renderer.dom.ImageLayer.prototype.getImageLayer=function(){return this.getLayer()}; +ol.renderer.dom.ImageLayer.prototype.renderFrame=function(a){var b=a.view2DState,c=b.center,d=b.resolution,e=b.rotation,b=this.image_,f=this.getImageLayer().getImageSource(),g=a.viewHints;!g[ol.ViewHint.ANIMATING]&&!g[ol.ViewHint.INTERACTING]&&(f=f.getImage(a.extent,d),goog.isNull(f)||(g=f.getState(),g==ol.ImageState.IDLE?(goog.events.listenOnce(f,goog.events.EventType.CHANGE,this.handleImageChange,!1,this),f.load()):g==ol.ImageState.LOADED&&(b=f)));if(!goog.isNull(b)){var g=b.getExtent(),h=b.getResolution(), +f=goog.vec.Mat4.createNumber();goog.vec.Mat4.makeIdentity(f);goog.vec.Mat4.translate(f,a.size.width/2,a.size.height/2,0);goog.vec.Mat4.rotateZ(f,e);goog.vec.Mat4.scale(f,h/d,h/d,1);goog.vec.Mat4.translate(f,(g.minX-c.x)/h,(c.y-g.maxY)/h,0);b!=this.image_&&(c=b.getImageElement(this),c.style.position="absolute",goog.dom.removeChildren(this.target),goog.dom.appendChild(this.target,c),this.image_=b);this.setTransform(f);this.updateAttributions(a.attributions,b.getAttributions())}}; +ol.renderer.dom.ImageLayer.prototype.setTransform=function(a){goog.vec.Mat4.equals(a,this.transform_)||(ol.dom.transformElement2D(this.target,a,6),goog.vec.Mat4.setFromArray(this.transform_,a))};ol.renderer.dom.TileLayer=function(a,b){var c=goog.dom.createElement(goog.dom.TagName.DIV);c.className="ol-layer-tile";c.style.position="absolute";ol.renderer.dom.Layer.call(this,a,b,c);this.renderedVisible_=!0;this.renderedOpacity_=1;this.tileLayerZs_={}};goog.inherits(ol.renderer.dom.TileLayer,ol.renderer.dom.Layer);ol.renderer.dom.TileLayer.prototype.getTileLayer=function(){return this.getLayer()}; +ol.renderer.dom.TileLayer.prototype.renderFrame=function(a,b){if(b.visible){var c=a.view2DState,d=this.getTileLayer().getTileSource(),e=goog.getUid(d).toString(),f=d.getTileGrid(),g=f.getZForResolution(c.resolution),h=f.getResolution(g),h=f.getTileRangeForExtentAndResolution(a.extent,h),i={};i[g]={};var k=goog.bind(d.findLoadedTiles,d,i,function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED}),j,l,m,p,n;for(p=h.minX;p<=h.maxX;++p)for(n=h.minY;n<=h.maxY;++n)if(m=new ol.TileCoord(g,p,n), +j=d.getTile(m),!goog.isNull(j)){l=j.getState();if(l==ol.TileState.IDLE)goog.events.listenOnce(j,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,d,m),l=f.getTileCoordCenter(m),a.tileQueue.enqueue(j,e,l);else if(l==ol.TileState.LOADED){i[g][m.toString()]=j;continue}else if(l==ol.TileState.ERROR)continue;f.forEachTileCoordParentTileRange(m,k)}m=goog.array.map(goog.object.getKeys(i),Number);goog.array.sort(m);var e={},q;for(p=0;pj&&goog.dom.insertChildAt(this.target,k.target,0)}else!a.viewHints[ol.ViewHint.ANIMATING]&&!a.viewHints[ol.ViewHint.INTERACTING]&&k.removeTilesOutsideExtent(a.extent);else goog.dom.removeNode(k.target), +delete this.tileLayerZs_[j];b.opacity!=this.renderedOpacity_&&(goog.style.setOpacity(this.target,b.opacity),this.renderedOpacity_=b.opacity);b.visible&&!this.renderedVisible_&&(goog.style.showElement(this.target,!0),this.renderedVisible_=!0);this.updateUsedTiles(a.usedTiles,d,g,h);d.useLowResolutionTiles(g,a.extent);this.scheduleExpireCache(a,d)}else this.renderedVisible_&&(goog.style.showElement(this.target,!1),this.renderedVisible_=!1)}; +ol.renderer.dom.TileLayerZ_=function(a,b){this.target=goog.dom.createElement(goog.dom.TagName.DIV);this.target.style.position="absolute";this.tileGrid_=a;this.tileCoordOrigin_=b;this.origin_=a.getTileCoordExtent(b).getTopLeft();this.resolution_=a.getResolution(b.z);this.tiles_={};this.documentFragment_=null;this.transform_=goog.vec.Mat4.createNumberIdentity()}; +ol.renderer.dom.TileLayerZ_.prototype.addTile=function(a){var b=a.tileCoord;goog.asserts.assert(b.z==this.tileCoordOrigin_.z);var c=b.toString();if(!(c in this.tiles_)){var d=this.tileGrid_.getTileSize(b.z),e=a.getImage(this),f=e.style;f.position="absolute";f.left=(b.x-this.tileCoordOrigin_.x)*d.width+"px";f.top=(this.tileCoordOrigin_.y-b.y)*d.height+"px";goog.isNull(this.documentFragment_)&&(this.documentFragment_=document.createDocumentFragment());goog.dom.appendChild(this.documentFragment_,e); +this.tiles_[c]=a}};ol.renderer.dom.TileLayerZ_.prototype.finalizeAddTiles=function(){goog.isNull(this.documentFragment_)||(goog.dom.appendChild(this.target,this.documentFragment_),this.documentFragment_=null)};ol.renderer.dom.TileLayerZ_.prototype.getOrigin=function(){return this.origin_};ol.renderer.dom.TileLayerZ_.prototype.getResolution=function(){return this.resolution_}; ol.renderer.dom.TileLayerZ_.prototype.removeTilesOutsideExtent=function(a){var b=this.tileGrid_.getTileRangeForExtentAndZ(a,this.tileCoordOrigin_.z),a=[],c,d;for(d in this.tiles_)c=this.tiles_[d],b.contains(c.tileCoord)||a.push(c);for(b=0;b=a.getCount()){for(var a=this.nodes_,d=0;d=b))return 1==b?goog.array.clear(a):(a[0]=a.pop(),this.moveDown_(0)),c.getValue()}; -goog.structs.Heap.prototype.peek=function(){var a=this.nodes_;return 0==a.length?void 0:a[0].getValue()};goog.structs.Heap.prototype.peekKey=function(){return this.nodes_[0]&&this.nodes_[0].goog_structs_Node_prototype$getKey()}; -goog.structs.Heap.prototype.moveDown_=function(a){for(var b=this.nodes_,c=b.length,d=b[a];a>1;){var e=this.goog_structs_Heap_prototype$getLeftChildIndex_(a),f=this.goog_structs_Heap_prototype$getRightChildIndex_(a),e=fd.goog_structs_Node_prototype$getKey())break;b[a]=b[e];a=e}b[a]=d}; -goog.structs.Heap.prototype.moveUp_=function(a){for(var b=this.nodes_,c=b[a];0c.goog_structs_Node_prototype$getKey())b[a]=b[d],a=d;else break}b[a]=c};goog.structs.Heap.prototype.goog_structs_Heap_prototype$getLeftChildIndex_=function(a){return 2*a+1};goog.structs.Heap.prototype.goog_structs_Heap_prototype$getRightChildIndex_=function(a){return 2*a+2}; -goog.structs.Heap.prototype.goog_structs_Heap_prototype$getParentIndex_=function(a){return a-1>>1};goog.structs.Heap.prototype.getValues=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d>1;){var e=this.getLeftChildIndex_(a),f=this.getRightChildIndex_(a),e=fd.getKey())break;b[a]=b[e];a=e}b[a]=d}; +goog.structs.Heap.prototype.moveUp_=function(a){for(var b=this.nodes_,c=b[a];0c.getKey())b[a]=b[d],a=d;else break}b[a]=c};goog.structs.Heap.prototype.getLeftChildIndex_=function(a){return 2*a+1};goog.structs.Heap.prototype.getRightChildIndex_=function(a){return 2*a+2};goog.structs.Heap.prototype.getParentIndex_=function(a){return a-1>>1}; +goog.structs.Heap.prototype.getValues=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;dc;++c)d=b.remove(),a.bindTileTexture(d,goog.webgl.LINEAR,goog.webgl.LINEAR)},b,k));v?(this.renderedTileRange_=j,this.renderedFramebufferExtent_=l):(this.renderedFramebufferExtent_=this.renderedTileRange_= -null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,f,i,j);f.useLowResolutionTiles(i,a.extent);this.scheduleExpireCache(a,f);goog.vec.Mat4.makeIdentity(this.ol_renderer_webgl_TileLayer$texCoordMatrix_);goog.vec.Mat4.translate(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,(d.center.x-l.minX)/(l.maxX-l.minX),(d.center.y-l.minY)/(l.maxY-l.minY),0);goog.vec.Mat4.rotateZ(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.ol_renderer_webgl_TileLayer$texCoordMatrix_, -a.size.width*d.resolution/(l.maxX-l.minX),a.size.height*d.resolution/(l.maxY-l.minY),1);goog.vec.Mat4.translate(this.ol_renderer_webgl_TileLayer$texCoordMatrix_,-0.5,-0.5,0)};ol.structs={};ol.structs.LRUCache=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null}; +ol.renderer.webgl.TileLayer=function(a,b){ol.renderer.webgl.Layer.call(this,a,b);this.fragmentShader_=ol.renderer.webgl.tilelayerrenderer.shader.Fragment.getInstance();this.vertexShader_=ol.renderer.webgl.tilelayerrenderer.shader.Vertex.getInstance();this.framebuffer_=this.texture_=this.arrayBuffer_=this.locations_=null;this.framebufferDimension_=void 0;this.texCoordMatrix_=goog.vec.Mat4.createNumber();this.vertexCoordMatrix_=goog.vec.Mat4.createNumberIdentity();this.renderedFramebufferExtent_=this.renderedTileRange_= +null};goog.inherits(ol.renderer.webgl.TileLayer,ol.renderer.webgl.Layer); +ol.renderer.webgl.TileLayer.prototype.bindFramebuffer_=function(a,b){var c=this.getMapRenderer().getGL();if(!goog.isDef(this.framebufferDimension_)||this.framebufferDimension_!=b){this.getMap();a.postRenderFunctions.push(goog.partial(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},c,this.framebuffer_,this.texture_));var d=c.createTexture();c.bindTexture(goog.webgl.TEXTURE_2D,d);c.texImage2D(goog.webgl.TEXTURE_2D,0,goog.webgl.RGBA,b,b,0,goog.webgl.RGBA,goog.webgl.UNSIGNED_BYTE, +null);c.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,goog.webgl.LINEAR);c.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MIN_FILTER,goog.webgl.LINEAR);var e=c.createFramebuffer();c.bindFramebuffer(goog.webgl.FRAMEBUFFER,e);c.framebufferTexture2D(goog.webgl.FRAMEBUFFER,goog.webgl.COLOR_ATTACHMENT0,goog.webgl.TEXTURE_2D,d,0);this.texture_=d;this.framebuffer_=e;this.framebufferDimension_=b}else c.bindFramebuffer(goog.webgl.FRAMEBUFFER,this.framebuffer_)}; +ol.renderer.webgl.TileLayer.prototype.disposeInternal=function(){var a=this.getMapRenderer().getGL();a.isContextLost()||(a.deleteBuffer(this.arrayBuffer_),a.deleteFramebuffer(this.framebuffer_),a.deleteTexture(this.texture_));ol.renderer.webgl.TileLayer.superClass_.disposeInternal.call(this)};ol.renderer.webgl.TileLayer.prototype.getTexCoordMatrix=function(){return this.texCoordMatrix_};ol.renderer.webgl.TileLayer.prototype.getTexture=function(){return this.texture_}; +ol.renderer.webgl.TileLayer.prototype.getVertexCoordMatrix=function(){return this.vertexCoordMatrix_};ol.renderer.webgl.TileLayer.prototype.getTileLayer=function(){return this.getLayer()};ol.renderer.webgl.TileLayer.prototype.handleWebGLContextLost=function(){this.framebuffer_=this.texture_=this.arrayBuffer_=this.locations_=null;this.framebufferDimension_=void 0}; +ol.renderer.webgl.TileLayer.prototype.renderFrame=function(a){var b=this.getMapRenderer(),c=b.getGL(),d=a.view2DState,e=d.center,f=this.getTileLayer().getTileSource(),g=goog.getUid(f).toString(),h=f.getTileGrid(),i=h.getZForResolution(d.resolution),k=h.getResolution(i),j=h.getTileRangeForExtentAndResolution(a.extent,k),l;if(!goog.isNull(this.renderedTileRange_)&&this.renderedTileRange_.equals(j))l=this.renderedFramebufferExtent_;else{var m=j.getSize(),p=h.getTileSize(i),m=Math.max(m.width*p.width, +m.height*p.height),m=Math.pow(2,Math.ceil(Math.log(m)/Math.log(2))),n=new ol.Size(k*m,k*m),q=h.getOrigin(i),r=q.x+j.minX*p.width*k,k=q.y+j.minY*p.height*k;l=new ol.Extent(r,k,r+n.width,k+n.height);this.bindFramebuffer_(a,m);c.viewport(0,0,m,m);c.clearColor(0,0,0,0);c.clear(goog.webgl.COLOR_BUFFER_BIT);c.disable(goog.webgl.BLEND);k=b.getProgram(this.fragmentShader_,this.vertexShader_);c.useProgram(k);goog.isNull(this.locations_)&&(this.locations_={aPosition:c.getAttribLocation(k,"aPosition"),aTexCoord:c.getAttribLocation(k, +"aTexCoord"),uTileOffset:c.getUniformLocation(k,"uTileOffset"),uTexture:c.getUniformLocation(k,"uTexture")});goog.isNull(this.arrayBuffer_)?(k=c.createBuffer(),c.bindBuffer(goog.webgl.ARRAY_BUFFER,k),c.bufferData(goog.webgl.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),goog.webgl.STATIC_DRAW),this.arrayBuffer_=k):c.bindBuffer(goog.webgl.ARRAY_BUFFER,this.arrayBuffer_);c.enableVertexAttribArray(this.locations_.aPosition);c.vertexAttribPointer(this.locations_.aPosition,2,goog.webgl.FLOAT, +!1,16,0);c.enableVertexAttribArray(this.locations_.aTexCoord);c.vertexAttribPointer(this.locations_.aTexCoord,2,goog.webgl.FLOAT,!1,16,8);c.uniform1i(this.locations_.uTexture,0);var u={};u[i]={};for(var p=goog.bind(f.findLoadedTiles,f,u,function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED&&b.isTileTextureLoaded(a)}),k=new goog.structs.PriorityQueue,v=!0,s,y,q=j.minX;q<=j.maxX;++q)for(y=j.minY;y<=j.maxY;++y)if(r=new ol.TileCoord(i,q,y),m=f.getTile(r),!goog.isNull(m)){s=m.getState(); +if(s==ol.TileState.IDLE)goog.events.listenOnce(m,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,f,r),s=h.getTileCoordCenter(r),a.tileQueue.enqueue(m,g,s);else if(s==ol.TileState.LOADED)if(b.isTileTextureLoaded(m)){u[i][r.toString()]=m;continue}else s=h.getTileCoordCenter(r),v=s.x-e.x,s=s.y-e.y,v=Math.sqrt(v*v+s*s),k.enqueue(v,m);else if(s==ol.TileState.ERROR)continue;v=!1;h.forEachTileCoordParentTileRange(r,p)}e=goog.array.map(goog.object.getKeys(u), +Number);goog.array.sort(e);var x=goog.vec.Vec4.createFloat32();goog.array.forEach(e,function(a){goog.object.forEach(u[a],function(a){var d=h.getTileCoordExtent(a.tileCoord),e=2*d.getWidth()/n.width,f=2*d.getHeight()/n.height;goog.vec.Vec4.setFromValues(x,e,f,2*(d.minX-l.minX)/n.width-1,2*(d.minY-l.minY)/n.height-1);c.uniform4fv(this.locations_.uTileOffset,x);b.bindTileTexture(a,goog.webgl.LINEAR,goog.webgl.LINEAR);c.drawArrays(goog.webgl.TRIANGLE_STRIP,0,4)},this)},this);k.isEmpty()||a.postRenderFunctions.push(goog.partial(function(a, +b){var c,d;for(c=0;!b.isEmpty()&&4>c;++c)d=b.remove(),a.bindTileTexture(d,goog.webgl.LINEAR,goog.webgl.LINEAR)},b,k));v?(this.renderedTileRange_=j,this.renderedFramebufferExtent_=l):(this.renderedFramebufferExtent_=this.renderedTileRange_=null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,f,i,j);f.useLowResolutionTiles(i,a.extent);this.scheduleExpireCache(a,f);goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);goog.vec.Mat4.translate(this.texCoordMatrix_,(d.center.x-l.minX)/(l.maxX-l.minX),(d.center.y- +l.minY)/(l.maxY-l.minY),0);goog.vec.Mat4.rotateZ(this.texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.texCoordMatrix_,a.size.width*d.resolution/(l.maxX-l.minX),a.size.height*d.resolution/(l.maxY-l.minY),1);goog.vec.Mat4.translate(this.texCoordMatrix_,-0.5,-0.5,0)};ol.structs={};ol.structs.LRUCache=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null}; ol.structs.LRUCache.prototype.assertValid=function(){if(0===this.count_)goog.asserts.assert(goog.object.isEmpty(this.entries_)),goog.asserts.assert(goog.isNull(this.oldest_)),goog.asserts.assert(goog.isNull(this.newest_));else{goog.asserts.assert(goog.object.getCount(this.entries_)==this.count_);goog.asserts.assert(!goog.isNull(this.oldest_));goog.asserts.assert(goog.isNull(this.oldest_.older));goog.asserts.assert(!goog.isNull(this.newest_));goog.asserts.assert(goog.isNull(this.newest_.newer));var a, b,c=null;a=0;for(b=this.oldest_;!goog.isNull(b);b=b.newer)goog.asserts.assert(b.older===c),c=b,++a;goog.asserts.assert(a==this.count_);c=null;a=0;for(b=this.newest_;!goog.isNull(b);b=b.older)goog.asserts.assert(b.newer===c),c=b,++a;goog.asserts.assert(a==this.count_)}};ol.structs.LRUCache.prototype.clear=function(){this.count_=0;this.entries_={};this.newest_=this.oldest_=null};ol.structs.LRUCache.prototype.containsKey=function(a){return this.entries_.hasOwnProperty(a)}; ol.structs.LRUCache.prototype.forEach=function(a,b){for(var c=this.oldest_;!goog.isNull(c);)a.call(b,c.value_,c.key_,this),c=c.newer};ol.structs.LRUCache.prototype.get=function(a){a=this.entries_[a];goog.asserts.assert(goog.isDef(a));if(a===this.newest_)return a.value_;a===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(a.newer.older=a.older,a.older.newer=a.newer);a.newer=null;a.older=this.newest_;this.newest_=this.newest_.newer=a;return a.value_}; ol.structs.LRUCache.prototype.getCount=function(){return this.count_};ol.structs.LRUCache.prototype.getKeys=function(){var a=Array(this.count_),b=0,c;for(c=this.newest_;!goog.isNull(c);c=c.older)a[b++]=c.key_;goog.asserts.assert(b==this.count_);return a};ol.structs.LRUCache.prototype.getValues=function(){var a=Array(this.count_),b=0,c;for(c=this.newest_;!goog.isNull(c);c=c.older)a[b++]=c.value_;goog.asserts.assert(b==this.count_);return a}; ol.structs.LRUCache.prototype.peekLast=function(){goog.asserts.assert(!goog.isNull(this.oldest_));return this.oldest_.value_};ol.structs.LRUCache.prototype.peekLastKey=function(){goog.asserts.assert(!goog.isNull(this.oldest_));return this.oldest_.key_}; -ol.structs.LRUCache.prototype.ol_structs_LRUCache_prototype$pop=function(){goog.asserts.assert(!goog.isNull(this.oldest_));goog.asserts.assert(!goog.isNull(this.newest_));var a=this.oldest_;goog.asserts.assert(a.key_ in this.entries_);delete this.entries_[a.key_];goog.isNull(a.newer)||(a.newer.older=null);this.oldest_=a.newer;goog.isNull(this.oldest_)&&(this.newest_=null);--this.count_;return a.value_}; +ol.structs.LRUCache.prototype.pop=function(){goog.asserts.assert(!goog.isNull(this.oldest_));goog.asserts.assert(!goog.isNull(this.newest_));var a=this.oldest_;goog.asserts.assert(a.key_ in this.entries_);delete this.entries_[a.key_];goog.isNull(a.newer)||(a.newer.older=null);this.oldest_=a.newer;goog.isNull(this.oldest_)&&(this.newest_=null);--this.count_;return a.value_}; ol.structs.LRUCache.prototype.set=function(a,b){goog.asserts.assert(!(a in{}));goog.asserts.assert(!(a in this.entries_));var c={key_:a,newer:null,older:this.newest_,value_:b};goog.isNull(this.newest_)?this.oldest_=c:this.newest_.newer=c;this.newest_=c;this.entries_[a]=c;++this.count_};ol.webgl={};ol.webgl.CONTEXT_IDS_=["webgl","webgl-experimental","webkit-3d","moz-webgl"];ol.webgl.WebGLContextEventType={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"};ol.webgl.getContext=function(a,b){var c,d,e=ol.webgl.CONTEXT_IDS_.length;for(d=0;dol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK;){d=this.textureCache_.peekLast();if(goog.isNull(d))if(+this.textureCache_.peekLastKey()==b.time)break;else--this.textureCacheFrameMarkerCount_;else c.deleteTexture(d.texture);this.textureCache_.ol_structs_LRUCache_prototype$pop()}};ol.renderer.webgl.Map.prototype.getCanvas=function(){return this.ol_renderer_webgl_Map$canvas_}; +ol.renderer.webgl.Map.prototype.disposeInternal=function(){var a=this.getGL();a.isContextLost()||(goog.object.forEach(this.programCache_,function(b){a.deleteProgram(b)}),goog.object.forEach(this.shaderCache_,function(b){a.deleteShader(b)}),this.textureCache_.forEach(function(b){goog.isNull(b)||a.deleteTexture(b.texture)}));ol.renderer.webgl.Map.superClass_.disposeInternal.call(this)}; +ol.renderer.webgl.Map.prototype.expireCache_=function(a,b){for(var c=this.getGL(),d;this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK;){d=this.textureCache_.peekLast();if(goog.isNull(d))if(+this.textureCache_.peekLastKey()==b.time)break;else--this.textureCacheFrameMarkerCount_;else c.deleteTexture(d.texture);this.textureCache_.pop()}};ol.renderer.webgl.Map.prototype.getCanvas=function(){return this.canvas_}; ol.renderer.webgl.Map.prototype.getGL=function(){return this.gl_}; -ol.renderer.webgl.Map.prototype.getProgram=function(a,b){var c=goog.getUid(a)+"/"+goog.getUid(b);if(c in this.programCache_)return this.programCache_[c];var d=this.getGL(),e=d.createProgram();d.attachShader(e,this.getShader(a));d.attachShader(e,this.getShader(b));d.linkProgram(e);goog.DEBUG&&(!d.getProgramParameter(e,goog.webgl.LINK_STATUS)&&!d.isContextLost())&&(this.ol_renderer_webgl_Map$logger.severe(d.getProgramInfoLog(e)),goog.asserts.assert(d.getProgramParameter(e,goog.webgl.LINK_STATUS))); -return this.programCache_[c]=e}; -ol.renderer.webgl.Map.prototype.getShader=function(a){var b=goog.getUid(a);if(b in this.shaderCache_)return this.shaderCache_[b];var c=this.getGL(),d=c.createShader(a.getType());c.shaderSource(d,a.getSource());c.compileShader(d);goog.DEBUG&&(!c.getShaderParameter(d,goog.webgl.COMPILE_STATUS)&&!c.isContextLost())&&(this.ol_renderer_webgl_Map$logger.severe(c.getShaderInfoLog(d)),goog.asserts.assert(c.getShaderParameter(d,goog.webgl.COMPILE_STATUS)));return this.shaderCache_[b]=d}; -ol.renderer.webgl.Map.prototype.handleWebGLContextLost=function(a){goog.DEBUG&&this.ol_renderer_webgl_Map$logger.goog_debug_Logger_prototype$info("WebGLContextLost");a.goog_events_Event_prototype$preventDefault();this.ol_renderer_webgl_Map$arrayBuffer_=this.locations_=null;this.shaderCache_={};this.programCache_={};this.textureCache_.clear();this.textureCacheFrameMarkerCount_=0;goog.object.forEach(this.layerRenderers,function(a){a.handleWebGLContextLost()})}; -ol.renderer.webgl.Map.prototype.handleWebGLContextResourced=function(){goog.DEBUG&&this.ol_renderer_webgl_Map$logger.goog_debug_Logger_prototype$info("WebGLContextResourced");this.initializeGL_();this.ol_renderer_Map_prototype$getMap().render()};ol.renderer.webgl.Map.prototype.initializeGL_=function(){var a=this.gl_;a.activeTexture(goog.webgl.TEXTURE0);a.blendFunc(goog.webgl.SRC_ALPHA,goog.webgl.ONE_MINUS_SRC_ALPHA);a.disable(goog.webgl.CULL_FACE);a.disable(goog.webgl.DEPTH_TEST);a.disable(goog.webgl.SCISSOR_TEST)}; -ol.renderer.webgl.Map.prototype.isTileTextureLoaded=function(a){return this.textureCache_.containsKey(a.ol_Tile_prototype$getKey())};ol.renderer.webgl.Map.prototype.removeLayer=function(a){ol.renderer.webgl.Map.superClass_.removeLayer.call(this,a);a.getVisible()&&this.ol_renderer_Map_prototype$getMap().render()}; -ol.renderer.webgl.Map.prototype.ol_renderer_Map_prototype$renderFrame=function(a){var b=this.getGL();if(goog.isNull(a))return this.ol_renderer_webgl_Map$renderedVisible_&&(goog.style.showElement(this.ol_renderer_webgl_Map$canvas_,!1),this.ol_renderer_webgl_Map$renderedVisible_=!1),!1;this.textureCache_.set(a.time.toString(),null);++this.textureCacheFrameMarkerCount_;goog.array.forEach(a.layersArray,function(b){var c=a.layerStates[goog.getUid(b)];c.visible&&c.ready&&this.getLayerRenderer(b).ol_renderer_Layer_prototype$renderFrame(a, -c)},this);var c=a.size;this.ol_renderer_webgl_Map$canvasSize_.equals(c)||(this.ol_renderer_webgl_Map$canvas_.width=c.width,this.ol_renderer_webgl_Map$canvas_.height=c.height,this.ol_renderer_webgl_Map$canvasSize_=c);b.bindFramebuffer(goog.webgl.FRAMEBUFFER,null);var d=a.backgroundColor;b.clearColor(d.r/255,d.g/255,d.ol_Color$b/255,d.ol_Color$a);b.clear(goog.webgl.COLOR_BUFFER_BIT);b.enable(goog.webgl.BLEND);b.viewport(0,0,c.width,c.height);c=this.getProgram(this.ol_renderer_webgl_Map$fragmentShader_, -this.ol_renderer_webgl_Map$vertexShader_);b.useProgram(c);goog.isNull(this.locations_)&&(this.locations_={aPosition:b.getAttribLocation(c,"aPosition"),aTexCoord:b.getAttribLocation(c,"aTexCoord"),uColorMatrix:b.getUniformLocation(c,"uColorMatrix"),uTexCoordMatrix:b.getUniformLocation(c,"uTexCoordMatrix"),uVertexCoordMatrix:b.getUniformLocation(c,"uVertexCoordMatrix"),uOpacity:b.getUniformLocation(c,"uOpacity"),uTexture:b.getUniformLocation(c,"uTexture")});goog.isNull(this.ol_renderer_webgl_Map$arrayBuffer_)? -(c=b.createBuffer(),b.bindBuffer(goog.webgl.ARRAY_BUFFER,c),b.bufferData(goog.webgl.ARRAY_BUFFER,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),goog.webgl.STATIC_DRAW),this.ol_renderer_webgl_Map$arrayBuffer_=c):b.bindBuffer(goog.webgl.ARRAY_BUFFER,this.ol_renderer_webgl_Map$arrayBuffer_);b.enableVertexAttribArray(this.locations_.aPosition);b.vertexAttribPointer(this.locations_.aPosition,2,goog.webgl.FLOAT,!1,16,0);b.enableVertexAttribArray(this.locations_.aTexCoord);b.vertexAttribPointer(this.locations_.aTexCoord, -2,goog.webgl.FLOAT,!1,16,8);b.uniform1i(this.locations_.uTexture,0);goog.array.forEach(a.layersArray,function(c){var d=a.layerStates[goog.getUid(c)];d.visible&&d.ready&&(d=this.getLayerRenderer(c),b.uniformMatrix4fv(this.locations_.uTexCoordMatrix,!1,d.getTexCoordMatrix()),b.uniformMatrix4fv(this.locations_.uVertexCoordMatrix,!1,d.getVertexCoordMatrix()),b.uniformMatrix4fv(this.locations_.uColorMatrix,!1,d.getColorMatrix()),b.uniform1f(this.locations_.uOpacity,c.getOpacity()),b.bindTexture(goog.webgl.TEXTURE_2D, -d.getTexture()),b.drawArrays(goog.webgl.TRIANGLE_STRIP,0,4))},this);this.ol_renderer_webgl_Map$renderedVisible_||(goog.style.showElement(this.ol_renderer_webgl_Map$canvas_,!0),this.ol_renderer_webgl_Map$renderedVisible_=!0);this.calculateMatrices2D(a);this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK&&a.postRenderFunctions.push(goog.bind(this.expireCache_,this))};ol.renderer.webgl.SUPPORTED=ol.webgl.SUPPORTED;ol.RendererHints={};ol.ENABLE_CANVAS=!0;ol.ENABLE_DOM=!0;ol.ENABLE_WEBGL=!0;ol.RendererHint={CANVAS:"canvas",DOM:"dom",WEBGL:"webgl"};ol.DEFAULT_RENDERER_HINTS=[ol.RendererHint.WEBGL,ol.RendererHint.CANVAS,ol.RendererHint.DOM];ol.MapProperty={BACKGROUND_COLOR:"backgroundColor",LAYERS:"layers",SIZE:"size",VIEW:"view"}; -ol.Map=function(a){ol.Object.call(this);goog.DEBUG&&(this.ol_Map$logger=goog.debug.Logger.getLogger("ol.map."+goog.getUid(this)));a=ol.Map.createOptionsInternal(a);this.animationDelay_=new goog.async.AnimationDelay(this.renderFrame_,void 0,this);this.registerDisposable(this.animationDelay_);this.coordinateToPixelMatrix_=goog.vec.Mat4.createNumber();this.pixelToCoordinateMatrix_=goog.vec.Mat4.createNumber();this.frameState_=null;this.freezeRenderingCount_=0;this.dirty_=!1;this.ol_Map$target_=a.target; -this.viewPropertyListenerKey_=null;this.viewport_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-viewport");this.viewport_.style.position="relative";this.viewport_.style.overflow="hidden";this.viewport_.style.width="100%";this.viewport_.style.height="100%";this.viewport_.style.msTouchAction="none";goog.dom.appendChild(this.ol_Map$target_,this.viewport_);this.overlayContainer_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-overlaycontainer");goog.events.listen(this.overlayContainer_,[goog.events.EventType.CLICK, -ol.BrowserFeature.HAS_TOUCH?goog.events.EventType.TOUCHSTART:goog.events.EventType.MOUSEDOWN],goog.events.Event.function__new_goog_events_Event__string___Object_null_____undefined$stopPropagation);goog.dom.appendChild(this.viewport_,this.overlayContainer_);var b=new ol.MapBrowserEventHandler(this);goog.events.listen(b,goog.object.getValues(ol.MapBrowserEvent.EventType),this.ol_Map_prototype$handleMapBrowserEvent,!1,this);this.registerDisposable(b);b=new goog.events.KeyHandler(document);goog.events.listen(b, -goog.events.KeyHandler.EventType.KEY,this.handleBrowserEvent,!1,this);this.registerDisposable(b);b=new goog.events.MouseWheelHandler(this.viewport_);goog.events.listen(b,goog.events.MouseWheelHandler.EventType.MOUSEWHEEL,this.handleBrowserEvent,!1,this);this.registerDisposable(b);this.interactions_=a.interactions;this.renderer_=new a.rendererConstructor(this.viewport_,this);this.registerDisposable(this.renderer_);this.viewportSizeMonitor_=new goog.dom.ViewportSizeMonitor;goog.events.listen(this.viewportSizeMonitor_, -goog.events.EventType.RESIZE,this.handleBrowserWindowResize,!1,this);this.preRenderFunctions_=[];this.postRenderFunctions_=[];this.handlePostRender_=goog.bind(this.handlePostRender,this);this.tileQueue_=new ol.TileQueue(goog.bind(this.getTilePriority,this));goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.VIEW),this.handleViewChanged_,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.SIZE),this.handleSizeChanged_,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.BACKGROUND_COLOR), -this.handleBackgroundColorChanged_,!1,this);this.ol_Object_prototype$setValues(a.values);this.handleBrowserWindowResize();goog.array.forEach(a.controls,function(a){a.ol_control_Control_prototype$setMap(this)},this)};goog.inherits(ol.Map,ol.Object);ol.Map.prototype.addPreRenderFunction=function(a){this.requestRenderFrame();this.preRenderFunctions_.push(a)};ol.Map.prototype.addPreRenderFunctions=function(a){this.requestRenderFrame();Array.prototype.push.apply(this.preRenderFunctions_,a)}; -ol.Map.prototype.removePreRenderFunction=function(a){return goog.array.remove(this.preRenderFunctions_,a)};ol.Map.prototype.goog_Disposable_prototype$disposeInternal=function(){goog.dom.removeNode(this.viewport_);ol.Map.superClass_.goog_Disposable_prototype$disposeInternal.call(this)};ol.Map.prototype.freezeRendering=function(){++this.freezeRenderingCount_};ol.Map.prototype.getBackgroundColor=function(){return this.get(ol.MapProperty.BACKGROUND_COLOR)}; -goog.exportProperty(ol.Map.prototype,"getBackgroundColor",ol.Map.prototype.getBackgroundColor);ol.Map.prototype.getRenderer=function(){return this.renderer_};ol.Map.prototype.ol_Map_prototype$getTarget=function(){return this.ol_Map$target_};ol.Map.prototype.getCoordinateFromPixel=function(a){var b=this.frameState_;if(goog.isNull(b))return null;a=[a.x,a.y,0];goog.vec.Mat4.multVec3(b.pixelToCoordinateMatrix,a,a);return new ol.Coordinate(a[0],a[1])};ol.Map.prototype.getInteractions=function(){return this.interactions_}; -ol.Map.prototype.getLayers=function(){return this.get(ol.MapProperty.LAYERS)};goog.exportProperty(ol.Map.prototype,"getLayers",ol.Map.prototype.getLayers);ol.Map.prototype.getPixelFromCoordinate=function(a){var b=this.frameState_;if(goog.isNull(b))return null;a=[a.x,a.y,0];goog.vec.Mat4.multVec3(b.coordinateToPixelMatrix,a,a);return new ol.Pixel(a[0],a[1])};ol.Map.prototype.getSize=function(){return this.get(ol.MapProperty.SIZE)};goog.exportProperty(ol.Map.prototype,"getSize",ol.Map.prototype.getSize); -ol.Map.prototype.getView=function(){return this.get(ol.MapProperty.VIEW)};goog.exportProperty(ol.Map.prototype,"getView",ol.Map.prototype.getView);ol.Map.prototype.getViewport=function(){return this.viewport_};ol.Map.prototype.getOverlayContainer=function(){return this.overlayContainer_}; -ol.Map.prototype.getTilePriority=function(a,b,c){var d=this.frameState_;if(goog.isNull(d)||!(b in d.wantedTiles)||!d.wantedTiles[b][a.tileCoord.toString()])return ol.TileQueue.function__new_ol_TileQueue__function___null_ol_Tile___string___null_ol_Coordinate____number___undefined$DROP;b=d.view2DState.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};ol.Map.prototype.handleBrowserEvent=function(a,b){var c=new ol.MapBrowserEvent(b||a.type,this,a);this.ol_Map_prototype$handleMapBrowserEvent(c)}; -ol.Map.prototype.ol_Map_prototype$handleMapBrowserEvent=function(a){a.frameState=this.frameState_;var b=this.getInteractions().getArray();if(!1!==this.dispatchEvent(a))for(var c=b.length-1;0<=c&&!(b[c].ol_interaction_Interaction_prototype$handleMapBrowserEvent(a),a.goog_events_Event_prototype$defaultPrevented);c--);}; -ol.Map.prototype.handlePostRender=function(){this.tileQueue_.reprioritize();this.tileQueue_.loadMoreTiles();var a=this.postRenderFunctions_,b;for(b=0;bb;++b)d=c[b],d.rotate(i),d.add(a);f.extent=ol.Extent.boundingExtent.apply(null,c)}this.frameState_=f;this.renderer_.ol_renderer_Map_prototype$renderFrame(f);this.dirty_=!1;goog.isNull(f)||(f.animate&&this.requestRenderFrame(),Array.prototype.push.apply(this.postRenderFunctions_,f.postRenderFunctions));this.dispatchEvent(new ol.MapEvent(ol.MapEventType.POSTRENDER, -this,f));goog.global.setTimeout(this.handlePostRender_,0)}};ol.Map.prototype.setBackgroundColor=function(a){this.set(ol.MapProperty.BACKGROUND_COLOR,a)};goog.exportProperty(ol.Map.prototype,"setBackgroundColor",ol.Map.prototype.setBackgroundColor);ol.Map.prototype.setLayers=function(a){this.set(ol.MapProperty.LAYERS,a)};goog.exportProperty(ol.Map.prototype,"setLayers",ol.Map.prototype.setLayers);ol.Map.prototype.setSize=function(a){this.set(ol.MapProperty.SIZE,a)}; -goog.exportProperty(ol.Map.prototype,"setSize",ol.Map.prototype.setSize);ol.Map.prototype.setView=function(a){this.set(ol.MapProperty.VIEW,a)};goog.exportProperty(ol.Map.prototype,"setView",ol.Map.prototype.setView);ol.Map.prototype.unfreezeRendering=function(){goog.asserts.assert(0ol.WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK&&a.postRenderFunctions.push(goog.bind(this.expireCache_, +this))};ol.renderer.webgl.SUPPORTED=ol.webgl.SUPPORTED;ol.RendererHints={};ol.ENABLE_CANVAS=!0;ol.ENABLE_DOM=!0;ol.ENABLE_WEBGL=!0;ol.RendererHint={CANVAS:"canvas",DOM:"dom",WEBGL:"webgl"};ol.DEFAULT_RENDERER_HINTS=[ol.RendererHint.WEBGL,ol.RendererHint.CANVAS,ol.RendererHint.DOM];ol.MapProperty={BACKGROUND_COLOR:"backgroundColor",LAYERS:"layers",SIZE:"size",VIEW:"view"}; +ol.Map=function(a){ol.Object.call(this);goog.DEBUG&&(this.logger=goog.debug.Logger.getLogger("ol.map."+goog.getUid(this)));a=ol.Map.createOptionsInternal(a);this.animationDelay_=new goog.async.AnimationDelay(this.renderFrame_,void 0,this);this.registerDisposable(this.animationDelay_);this.coordinateToPixelMatrix_=goog.vec.Mat4.createNumber();this.pixelToCoordinateMatrix_=goog.vec.Mat4.createNumber();this.frameState_=null;this.freezeRenderingCount_=0;this.dirty_=!1;this.target_=a.target;this.viewPropertyListenerKey_= +null;this.viewport_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-viewport");this.viewport_.style.position="relative";this.viewport_.style.overflow="hidden";this.viewport_.style.width="100%";this.viewport_.style.height="100%";this.viewport_.style.msTouchAction="none";goog.dom.appendChild(this.target_,this.viewport_);this.overlayContainer_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-overlaycontainer");goog.events.listen(this.overlayContainer_,[goog.events.EventType.CLICK,ol.BrowserFeature.HAS_TOUCH? +goog.events.EventType.TOUCHSTART:goog.events.EventType.MOUSEDOWN],goog.events.Event.stopPropagation);goog.dom.appendChild(this.viewport_,this.overlayContainer_);var b=new ol.MapBrowserEventHandler(this);goog.events.listen(b,goog.object.getValues(ol.MapBrowserEvent.EventType),this.handleMapBrowserEvent,!1,this);this.registerDisposable(b);b=new goog.events.KeyHandler(document);goog.events.listen(b,goog.events.KeyHandler.EventType.KEY,this.handleBrowserEvent,!1,this);this.registerDisposable(b);b=new goog.events.MouseWheelHandler(this.viewport_); +goog.events.listen(b,goog.events.MouseWheelHandler.EventType.MOUSEWHEEL,this.handleBrowserEvent,!1,this);this.registerDisposable(b);this.interactions_=a.interactions;this.renderer_=new a.rendererConstructor(this.viewport_,this);this.registerDisposable(this.renderer_);this.viewportSizeMonitor_=new goog.dom.ViewportSizeMonitor;goog.events.listen(this.viewportSizeMonitor_,goog.events.EventType.RESIZE,this.handleBrowserWindowResize,!1,this);this.preRenderFunctions_=[];this.postRenderFunctions_=[];this.handlePostRender_= +goog.bind(this.handlePostRender,this);this.tileQueue_=new ol.TileQueue(goog.bind(this.getTilePriority,this));goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.VIEW),this.handleViewChanged_,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.SIZE),this.handleSizeChanged_,!1,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.MapProperty.BACKGROUND_COLOR),this.handleBackgroundColorChanged_,!1,this);this.setValues(a.values);this.handleBrowserWindowResize(); +goog.array.forEach(a.controls,function(a){a.setMap(this)},this)};goog.inherits(ol.Map,ol.Object);ol.Map.prototype.addPreRenderFunction=function(a){this.requestRenderFrame();this.preRenderFunctions_.push(a)};ol.Map.prototype.addPreRenderFunctions=function(a){this.requestRenderFrame();Array.prototype.push.apply(this.preRenderFunctions_,a)};ol.Map.prototype.removePreRenderFunction=function(a){return goog.array.remove(this.preRenderFunctions_,a)}; +ol.Map.prototype.disposeInternal=function(){goog.dom.removeNode(this.viewport_);ol.Map.superClass_.disposeInternal.call(this)};ol.Map.prototype.freezeRendering=function(){++this.freezeRenderingCount_};ol.Map.prototype.getBackgroundColor=function(){return this.get(ol.MapProperty.BACKGROUND_COLOR)};goog.exportProperty(ol.Map.prototype,"getBackgroundColor",ol.Map.prototype.getBackgroundColor);ol.Map.prototype.getRenderer=function(){return this.renderer_};ol.Map.prototype.getTarget=function(){return this.target_}; +ol.Map.prototype.getCoordinateFromPixel=function(a){var b=this.frameState_;if(goog.isNull(b))return null;a=[a.x,a.y,0];goog.vec.Mat4.multVec3(b.pixelToCoordinateMatrix,a,a);return new ol.Coordinate(a[0],a[1])};ol.Map.prototype.getInteractions=function(){return this.interactions_};ol.Map.prototype.getLayers=function(){return this.get(ol.MapProperty.LAYERS)};goog.exportProperty(ol.Map.prototype,"getLayers",ol.Map.prototype.getLayers); +ol.Map.prototype.getPixelFromCoordinate=function(a){var b=this.frameState_;if(goog.isNull(b))return null;a=[a.x,a.y,0];goog.vec.Mat4.multVec3(b.coordinateToPixelMatrix,a,a);return new ol.Pixel(a[0],a[1])};ol.Map.prototype.getSize=function(){return this.get(ol.MapProperty.SIZE)};goog.exportProperty(ol.Map.prototype,"getSize",ol.Map.prototype.getSize);ol.Map.prototype.getView=function(){return this.get(ol.MapProperty.VIEW)};goog.exportProperty(ol.Map.prototype,"getView",ol.Map.prototype.getView); +ol.Map.prototype.getViewport=function(){return this.viewport_};ol.Map.prototype.getOverlayContainer=function(){return this.overlayContainer_};ol.Map.prototype.getTilePriority=function(a,b,c){var d=this.frameState_;if(goog.isNull(d)||!(b in d.wantedTiles)||!d.wantedTiles[b][a.tileCoord.toString()])return ol.TileQueue.DROP;b=d.view2DState.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};ol.Map.prototype.handleBrowserEvent=function(a,b){var c=new ol.MapBrowserEvent(b||a.type,this,a);this.handleMapBrowserEvent(c)}; +ol.Map.prototype.handleMapBrowserEvent=function(a){a.frameState=this.frameState_;var b=this.getInteractions().getArray();if(!1!==this.dispatchEvent(a))for(var c=b.length-1;0<=c&&!(b[c].handleMapBrowserEvent(a),a.defaultPrevented);c--);};ol.Map.prototype.handlePostRender=function(){this.tileQueue_.reprioritize();this.tileQueue_.loadMoreTiles();var a=this.postRenderFunctions_,b;for(b=0;bb;++b)d=c[b],d.rotate(i),d.add(a);f.extent=ol.Extent.boundingExtent.apply(null,c)}this.frameState_=f;this.renderer_.renderFrame(f);this.dirty_=!1;goog.isNull(f)||(f.animate&&this.requestRenderFrame(),Array.prototype.push.apply(this.postRenderFunctions_,f.postRenderFunctions));this.dispatchEvent(new ol.MapEvent(ol.MapEventType.POSTRENDER,this,f));goog.global.setTimeout(this.handlePostRender_, +0)}};ol.Map.prototype.setBackgroundColor=function(a){this.set(ol.MapProperty.BACKGROUND_COLOR,a)};goog.exportProperty(ol.Map.prototype,"setBackgroundColor",ol.Map.prototype.setBackgroundColor);ol.Map.prototype.setLayers=function(a){this.set(ol.MapProperty.LAYERS,a)};goog.exportProperty(ol.Map.prototype,"setLayers",ol.Map.prototype.setLayers);ol.Map.prototype.setSize=function(a){this.set(ol.MapProperty.SIZE,a)};goog.exportProperty(ol.Map.prototype,"setSize",ol.Map.prototype.setSize); +ol.Map.prototype.setView=function(a){this.set(ol.MapProperty.VIEW,a)};goog.exportProperty(ol.Map.prototype,"setView",ol.Map.prototype.setView);ol.Map.prototype.unfreezeRendering=function(){goog.asserts.assert(0=this.branches_&&this.cancel()};goog.async.Deferred.prototype.pause_=function(){this.paused_++};goog.async.Deferred.prototype.unpause_=function(){this.paused_--;0==this.paused_&&this.hasFired()&&this.fire_()};goog.async.Deferred.prototype.continue_=function(a,b){this.resback_(a,b);this.unpause_()};goog.async.Deferred.prototype.resback_=function(a,b){this.fired_=!0;this.result_=b;this.hadError_=!a;this.fire_()}; +goog.async.Deferred.prototype.cancel=function(a){if(this.hasFired())this.result_ instanceof goog.async.Deferred&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):b.branchCancel_()}this.canceller_?this.canceller_.call(this.defaultScope_,this):this.silentlyCancelled_=!0;this.hasFired()||this.errback(new goog.async.Deferred.CancelledError(this))}};goog.async.Deferred.prototype.branchCancel_=function(){this.branches_--;0>=this.branches_&&this.cancel()}; +goog.async.Deferred.prototype.pause_=function(){this.paused_++};goog.async.Deferred.prototype.unpause_=function(){this.paused_--;0==this.paused_&&this.hasFired()&&this.fire_()};goog.async.Deferred.prototype.continue_=function(a,b){this.resback_(a,b);this.unpause_()};goog.async.Deferred.prototype.resback_=function(a,b){this.fired_=!0;this.result_=b;this.hadError_=!a;this.fire_()}; goog.async.Deferred.prototype.check_=function(){if(this.hasFired()){if(!this.silentlyCancelled_)throw new goog.async.Deferred.AlreadyCalledError(this);this.silentlyCancelled_=!1}};goog.async.Deferred.prototype.callback=function(a){this.check_();this.assertNotDeferred_(a);this.resback_(!0,a)};goog.async.Deferred.prototype.errback=function(a){this.check_();this.assertNotDeferred_(a);this.resback_(!1,a)}; -goog.async.Deferred.prototype.assertNotDeferred_=function(a){goog.asserts.assert(!(a instanceof goog.async.Deferred),"Deferred instances can only be chained if they are the result of a callback")};goog.async.Deferred.prototype.goog_async_Deferred_prototype$addCallback=function(a,b){return this.addCallbacks(a,null,b)};goog.async.Deferred.prototype.addErrback=function(a,b){return this.addCallbacks(null,a,b)}; -goog.async.Deferred.prototype.addCallbacks=function(a,b,c){goog.asserts.assert(!this.chained_,"Chained Deferreds can not be re-used");this.chain_.push([a,b,c]);this.hasFired()&&this.fire_();return this};goog.async.Deferred.prototype.chainDeferred=function(a){this.addCallbacks(a.callback,a.errback,a);return this};goog.async.Deferred.prototype.awaitDeferred=function(a){return this.goog_async_Deferred_prototype$addCallback(goog.bind(a.branch,a))}; -goog.async.Deferred.prototype.branch=function(a){var b=new goog.async.Deferred;this.chainDeferred(b);a&&(b.goog_async_Deferred_prototype$parent_=this,this.branches_++);return b};goog.async.Deferred.prototype.addBoth=function(a,b){return this.addCallbacks(a,a,b)};goog.async.Deferred.prototype.hasFired=function(){return this.fired_};goog.async.Deferred.prototype.isError=function(a){return a instanceof Error};goog.async.Deferred.prototype.hasErrback_=function(){return goog.array.some(this.chain_,function(a){return goog.isFunction(a[1])})}; -goog.async.Deferred.prototype.fire_=function(){this.unhandledExceptionTimeoutId_&&(this.hasFired()&&this.hasErrback_())&&(goog.global.clearTimeout(this.unhandledExceptionTimeoutId_),delete this.unhandledExceptionTimeoutId_);this.goog_async_Deferred_prototype$parent_&&(this.goog_async_Deferred_prototype$parent_.branches_--,delete this.goog_async_Deferred_prototype$parent_);for(var a=this.result_,b=!1,c=!1;this.chain_.length&&0==this.paused_;){var d=this.chain_.shift(),e=d[0],f=d[1],d=d[2];if(e=this.hadError_? -f:e)try{var g=e.call(d||this.defaultScope_,a);goog.isDef(g)&&(this.hadError_=this.hadError_&&(g==a||this.isError(g)),this.result_=a=g);a instanceof goog.async.Deferred&&(c=!0,this.pause_())}catch(h){a=h,this.hadError_=!0,this.hasErrback_()||(b=!0)}}this.result_=a;c&&this.paused_&&(a.addCallbacks(goog.bind(this.continue_,this,!0),goog.bind(this.continue_,this,!1)),a.chained_=!0);b&&(this.unhandledExceptionTimeoutId_=goog.global.setTimeout(function(){throw a;},0))}; -goog.async.Deferred.succeed=function(a){var b=new goog.async.Deferred;b.callback(a);return b};goog.async.Deferred.fail=function(a){var b=new goog.async.Deferred;b.errback(a);return b};goog.async.Deferred.cancelled=function(){var a=new goog.async.Deferred;a.cancel();return a};goog.async.Deferred.when=function(a,b,c){return a instanceof goog.async.Deferred?a.branch(!0).goog_async_Deferred_prototype$addCallback(b,c):goog.async.Deferred.succeed(a).goog_async_Deferred_prototype$addCallback(b,c)}; -goog.async.Deferred.AlreadyCalledError=function(a){goog.debug.Error.call(this);this.goog_async_Deferred_AlreadyCalledError$deferred=a};goog.inherits(goog.async.Deferred.AlreadyCalledError,goog.debug.Error);goog.async.Deferred.AlreadyCalledError.prototype.message="Deferred has already fired";goog.async.Deferred.AlreadyCalledError.prototype.name="AlreadyCalledError";goog.async.Deferred.CancelledError=function(a){goog.debug.Error.call(this);this.goog_async_Deferred_CancelledError$deferred=a}; -goog.inherits(goog.async.Deferred.CancelledError,goog.debug.Error);goog.async.Deferred.CancelledError.prototype.message="Deferred was cancelled";goog.async.Deferred.CancelledError.prototype.name="CancelledError";goog.net={};goog.net.jsloader={};goog.net.jsloader.GLOBAL_VERIFY_OBJS_="closure_verification";goog.net.jsloader.DEFAULT_TIMEOUT=5E3;goog.net.jsloader.scriptsToLoad_=[];goog.net.jsloader.loadMany=function(a,b){if(a.length){var c=goog.net.jsloader.scriptsToLoad_.length;goog.array.extend(goog.net.jsloader.scriptsToLoad_,a);if(!c){var a=goog.net.jsloader.scriptsToLoad_,d=function(){var c=a.shift(),c=goog.net.jsloader.load(c,b);a.length&&c.addBoth(d)};d()}}}; +goog.async.Deferred.prototype.assertNotDeferred_=function(a){goog.asserts.assert(!(a instanceof goog.async.Deferred),"Deferred instances can only be chained if they are the result of a callback")};goog.async.Deferred.prototype.addCallback=function(a,b){return this.addCallbacks(a,null,b)};goog.async.Deferred.prototype.addErrback=function(a,b){return this.addCallbacks(null,a,b)}; +goog.async.Deferred.prototype.addCallbacks=function(a,b,c){goog.asserts.assert(!this.chained_,"Chained Deferreds can not be re-used");this.chain_.push([a,b,c]);this.hasFired()&&this.fire_();return this};goog.async.Deferred.prototype.chainDeferred=function(a){this.addCallbacks(a.callback,a.errback,a);return this};goog.async.Deferred.prototype.awaitDeferred=function(a){return this.addCallback(goog.bind(a.branch,a))}; +goog.async.Deferred.prototype.branch=function(a){var b=new goog.async.Deferred;this.chainDeferred(b);a&&(b.parent_=this,this.branches_++);return b};goog.async.Deferred.prototype.addBoth=function(a,b){return this.addCallbacks(a,a,b)};goog.async.Deferred.prototype.hasFired=function(){return this.fired_};goog.async.Deferred.prototype.isError=function(a){return a instanceof Error};goog.async.Deferred.prototype.hasErrback_=function(){return goog.array.some(this.chain_,function(a){return goog.isFunction(a[1])})}; +goog.async.Deferred.prototype.fire_=function(){this.unhandledExceptionTimeoutId_&&(this.hasFired()&&this.hasErrback_())&&(goog.global.clearTimeout(this.unhandledExceptionTimeoutId_),delete this.unhandledExceptionTimeoutId_);this.parent_&&(this.parent_.branches_--,delete this.parent_);for(var a=this.result_,b=!1,c=!1;this.chain_.length&&0==this.paused_;){var d=this.chain_.shift(),e=d[0],f=d[1],d=d[2];if(e=this.hadError_?f:e)try{var g=e.call(d||this.defaultScope_,a);goog.isDef(g)&&(this.hadError_=this.hadError_&& +(g==a||this.isError(g)),this.result_=a=g);a instanceof goog.async.Deferred&&(c=!0,this.pause_())}catch(h){a=h,this.hadError_=!0,this.hasErrback_()||(b=!0)}}this.result_=a;c&&this.paused_&&(a.addCallbacks(goog.bind(this.continue_,this,!0),goog.bind(this.continue_,this,!1)),a.chained_=!0);b&&(this.unhandledExceptionTimeoutId_=goog.global.setTimeout(function(){throw a;},0))};goog.async.Deferred.succeed=function(a){var b=new goog.async.Deferred;b.callback(a);return b}; +goog.async.Deferred.fail=function(a){var b=new goog.async.Deferred;b.errback(a);return b};goog.async.Deferred.cancelled=function(){var a=new goog.async.Deferred;a.cancel();return a};goog.async.Deferred.when=function(a,b,c){return a instanceof goog.async.Deferred?a.branch(!0).addCallback(b,c):goog.async.Deferred.succeed(a).addCallback(b,c)};goog.async.Deferred.AlreadyCalledError=function(a){goog.debug.Error.call(this);this.deferred=a};goog.inherits(goog.async.Deferred.AlreadyCalledError,goog.debug.Error); +goog.async.Deferred.AlreadyCalledError.prototype.message="Deferred has already fired";goog.async.Deferred.AlreadyCalledError.prototype.name="AlreadyCalledError";goog.async.Deferred.CancelledError=function(a){goog.debug.Error.call(this);this.deferred=a};goog.inherits(goog.async.Deferred.CancelledError,goog.debug.Error);goog.async.Deferred.CancelledError.prototype.message="Deferred was cancelled";goog.async.Deferred.CancelledError.prototype.name="CancelledError";goog.net={};goog.net.jsloader={};goog.net.jsloader.GLOBAL_VERIFY_OBJS_="closure_verification";goog.net.jsloader.DEFAULT_TIMEOUT=5E3;goog.net.jsloader.scriptsToLoad_=[];goog.net.jsloader.loadMany=function(a,b){if(a.length){var c=goog.net.jsloader.scriptsToLoad_.length;goog.array.extend(goog.net.jsloader.scriptsToLoad_,a);if(!c){var a=goog.net.jsloader.scriptsToLoad_,d=function(){var c=a.shift(),c=goog.net.jsloader.load(c,b);a.length&&c.addBoth(d)};d()}}}; goog.net.jsloader.load=function(a,b){var c=b||{},d=c.document||document,e=goog.dom.createElement(goog.dom.TagName.SCRIPT),f={script_:e,timeout_:void 0},g=new goog.async.Deferred(goog.net.jsloader.cancel_,f),h=null,i=goog.isDefAndNotNull(c.timeout)?c.timeout:goog.net.jsloader.DEFAULT_TIMEOUT;0this.highWaterMark_};ol.TileCache.prototype.expireCache=function(a){for(var b,c;this.ol_TileCache_prototype$canExpireCache()&&!(b=this.peekLast(),c=b.tileCoord.z.toString(),c in a&&a[c].contains(b.tileCoord));)this.ol_structs_LRUCache_prototype$pop()};ol.source.ImageTileSource=function(a){ol.source.TileSource.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=goog.isDef(a.tileUrlFunction)?a.tileUrlFunction:ol.TileUrlFunction.nullTileUrlFunction;this.ol_source_ImageTileSource$crossOrigin_=goog.isDef(a.crossOrigin)?a.crossOrigin:"anonymous";this.ol_source_ImageTileSource$tileCache_=new ol.TileCache};goog.inherits(ol.source.ImageTileSource,ol.source.TileSource); -ol.source.ImageTileSource.prototype.ol_source_TileSource_prototype$canExpireCache=function(){return this.ol_source_ImageTileSource$tileCache_.ol_TileCache_prototype$canExpireCache()};ol.source.ImageTileSource.prototype.expireCache=function(a){this.ol_source_ImageTileSource$tileCache_.expireCache(a)}; -ol.source.ImageTileSource.prototype.getTile=function(a){var b=a.toString();if(this.ol_source_ImageTileSource$tileCache_.containsKey(b))return this.ol_source_ImageTileSource$tileCache_.get(b);var c=this.getTileCoordUrl(a);goog.isDef(c)?(a=new ol.ImageTile(a,c,this.ol_source_ImageTileSource$crossOrigin_),this.ol_source_ImageTileSource$tileCache_.set(b,a)):a=null;return a};ol.source.ImageTileSource.prototype.getTileCoordUrl=function(a){return this.tileUrlFunction(a)}; -ol.source.ImageTileSource.prototype.useTile=function(a){a=a.toString();this.ol_source_ImageTileSource$tileCache_.containsKey(a)&&this.ol_source_ImageTileSource$tileCache_.get(a)};ol.tilegrid.XYZ=function(a){var b=Array(a.maxZoom+1),c,d=2*ol.projection.EPSG3857.HALF_SIZE/ol.DEFAULT_TILE_SIZE;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ol.tilegrid.TileGrid.call(this,{origin:new ol.Coordinate(-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE),resolutions:b,tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE)})};goog.inherits(ol.tilegrid.XYZ,ol.tilegrid.TileGrid); +ol.TileUrlFunction.createBboxParam=function(a,b,c){return function(d){if(!goog.isNull(d)){var e=b.getTileCoordExtent(d),e="ne"==c.substr(0,2)?[e.minY,e.minX,e.maxY,e.maxX]:[e.minX,e.minY,e.maxX,e.maxY],d=b.getTileSize(d.z);return goog.uri.utils.appendParams(a,"BBOX",e.join(","),"HEIGHT",d.height,"WIDTH",d.width)}}};ol.TileUrlFunction.nullTileUrlFunction=function(){};ol.TileUrlFunction.withTileCoordTransform=function(a,b){return function(c){return goog.isNull(c)?void 0:b(a(c))}};ol.ImageTile=function(a,b,c){ol.Tile.call(this,a);this.src_=b;this.image_=new Image;goog.isNull(c)||(this.image_.crossOrigin=c);this.imageByContext_={};this.imageListenerKeys_=null};goog.inherits(ol.ImageTile,ol.Tile);ol.ImageTile.prototype.getImage=function(a){if(goog.isDef(a)){var b=goog.getUid(a);if(b in this.imageByContext_)return this.imageByContext_[b];a=goog.object.isEmpty(this.imageByContext_)?this.image_:this.image_.cloneNode(!1);return this.imageByContext_[b]=a}return this.image_}; +ol.ImageTile.prototype.getKey=function(){return this.src_};ol.ImageTile.prototype.handleImageError_=function(){this.state=ol.TileState.ERROR;this.unlistenImage_();this.dispatchChangeEvent()};ol.ImageTile.prototype.handleImageLoad_=function(){this.state=ol.TileState.LOADED;this.unlistenImage_();this.dispatchChangeEvent()}; +ol.ImageTile.prototype.load=function(){this.state==ol.TileState.IDLE&&(this.state=ol.TileState.LOADING,goog.asserts.assert(goog.isNull(this.imageListenerKeys_)),this.imageListenerKeys_=[goog.events.listenOnce(this.image_,goog.events.EventType.ERROR,this.handleImageError_,!1,this),goog.events.listenOnce(this.image_,goog.events.EventType.LOAD,this.handleImageLoad_,!1,this)],this.image_.src=this.src_)}; +ol.ImageTile.prototype.unlistenImage_=function(){goog.asserts.assert(!goog.isNull(this.imageListenerKeys_));goog.array.forEach(this.imageListenerKeys_,goog.events.unlistenByKey);this.imageListenerKeys_=null};ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK=512;ol.TileCache=function(a){ol.structs.LRUCache.call(this);this.highWaterMark_=goog.isDef(a)?a:ol.DEFAULT_TILE_CACHE_HIGH_WATER_MARK};goog.inherits(ol.TileCache,ol.structs.LRUCache);ol.TileCache.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark_};ol.TileCache.prototype.expireCache=function(a){for(var b,c;this.canExpireCache()&&!(b=this.peekLast(),c=b.tileCoord.z.toString(),c in a&&a[c].contains(b.tileCoord));)this.pop()};ol.source.ImageTileSource=function(a){ol.source.TileSource.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.tileUrlFunction=goog.isDef(a.tileUrlFunction)?a.tileUrlFunction:ol.TileUrlFunction.nullTileUrlFunction;this.crossOrigin_=goog.isDef(a.crossOrigin)?a.crossOrigin:"anonymous";this.tileCache_=new ol.TileCache};goog.inherits(ol.source.ImageTileSource,ol.source.TileSource);ol.source.ImageTileSource.prototype.canExpireCache=function(){return this.tileCache_.canExpireCache()}; +ol.source.ImageTileSource.prototype.expireCache=function(a){this.tileCache_.expireCache(a)};ol.source.ImageTileSource.prototype.getTile=function(a){var b=a.toString();if(this.tileCache_.containsKey(b))return this.tileCache_.get(b);var c=this.getTileCoordUrl(a);goog.isDef(c)?(a=new ol.ImageTile(a,c,this.crossOrigin_),this.tileCache_.set(b,a)):a=null;return a};ol.source.ImageTileSource.prototype.getTileCoordUrl=function(a){return this.tileUrlFunction(a)}; +ol.source.ImageTileSource.prototype.useTile=function(a){a=a.toString();this.tileCache_.containsKey(a)&&this.tileCache_.get(a)};ol.tilegrid.XYZ=function(a){var b=Array(a.maxZoom+1),c,d=2*ol.projection.EPSG3857.HALF_SIZE/ol.DEFAULT_TILE_SIZE;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);ol.tilegrid.TileGrid.call(this,{origin:new ol.Coordinate(-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE),resolutions:b,tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE)})};goog.inherits(ol.tilegrid.XYZ,ol.tilegrid.TileGrid); ol.tilegrid.XYZ.prototype.forEachTileCoordParentTileRange=function(a,b,c){for(var d=a.x,e=a.y,a=a.z,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ol.TileRange(d,e,d,e);if(b.call(c,a,f))break}};ol.BingMapsStyle={AERIAL:"Aerial",AERIAL_WITH_LABELS:"AerialWithLabels",ROAD:"Road",ORDNANCE_SURVEY:"OrdnanceSurvey",COLLINS_BART:"CollinsBart"}; -ol.source.BingMaps=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.culture_=goog.isDef(a.culture)?a.culture:"en-us";this.ol_source_BingMaps$ready_=!1;var b=new goog.Uri("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style);(new goog.net.Jsonp(b,"jsonp")).goog_net_Jsonp_prototype$send({include:"ImageryProviders",key:a.key},goog.bind(this.handleImageryMetadataResponse,this))};goog.inherits(ol.source.BingMaps,ol.source.ImageTileSource); +ol.source.BingMaps=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.culture_=goog.isDef(a.culture)?a.culture:"en-us";this.ready_=!1;var b=new goog.Uri("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style);(new goog.net.Jsonp(b,"jsonp")).send({include:"ImageryProviders",key:a.key},goog.bind(this.handleImageryMetadataResponse,this))};goog.inherits(ol.source.BingMaps,ol.source.ImageTileSource); ol.source.BingMaps.prototype.handleImageryMetadataResponse=function(a){goog.asserts.assert("ValidCredentials"==a.authenticationResultCode);goog.asserts.assert(200==a.statusCode);goog.asserts.assert("OK"==a.statusDescription);goog.asserts.assert(1==a.resourceSets.length);a=a.resourceSets[0];goog.asserts.assert(1==a.resources.length);var b=a.resources[0],c=b.zoomMin,d=b.zoomMax,a=new ol.Size(b.imageWidth,b.imageHeight),e=new ol.tilegrid.XYZ({maxZoom:d,tileSize:a});this.tileGrid=e;this.tileUrlFunction= ol.TileUrlFunction.withTileCoordTransform(function(a){if(a.ze||b<=e)return null;b=goog.math.modulo(a.x,b);return new ol.TileCoord(a.z,b,e)},ol.TileUrlFunction.createFromTileUrlFunctions(goog.array.map(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.culture_);return function(a){return goog.isNull(a)?void 0:c.replace("{quadkey}",a.quadKey())}})));var f=ol.projection.getTransform(ol.projection.getFromCode("EPSG:4326"), -this.ol_source_Source_prototype$getProjection()),a=goog.array.map(b.imageryProviders,function(a){var b=a.attribution,c={};goog.array.forEach(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new ol.Extent(a[1],a[0],a[3],a[2])).transform(f),g,h;for(g=b;g<=d;++g)h=g.toString(),b=e.getTileRangeForExtentAndZ(a,g),h in c?c[h].push(b):c[h]=[b]});return new ol.Attribution(b,c)});this.setAttributions(a);this.ol_source_BingMaps$ready_=!0;this.dispatchLoadEvent()}; -ol.source.BingMaps.prototype.ol_source_Source_prototype$isReady=function(){return this.ol_source_BingMaps$ready_};ol.Ellipsoid=function(a,b){this.ol_Ellipsoid$a=a;this.flattening=b;this.ol_Ellipsoid$b=this.ol_Ellipsoid$a*(1-this.flattening)}; +this.getProjection()),a=goog.array.map(b.imageryProviders,function(a){var b=a.attribution,c={};goog.array.forEach(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new ol.Extent(a[1],a[0],a[3],a[2])).transform(f),g,h;for(g=b;g<=d;++g)h=g.toString(),b=e.getTileRangeForExtentAndZ(a,g),h in c?c[h].push(b):c[h]=[b]});return new ol.Attribution(b,c)});this.setAttributions(a);this.ready_=!0;this.dispatchLoadEvent()};ol.source.BingMaps.prototype.isReady=function(){return this.ready_};ol.Ellipsoid=function(a,b){this.a=a;this.flattening=b;this.b=this.a*(1-this.flattening)}; ol.Ellipsoid.prototype.vincenty=function(a,b,c,d){var c=goog.isDef(c)?c:1E-12,e=goog.isDef(d)?d:100,f=this.flattening,g=goog.math.toRadians(a.y),d=goog.math.toRadians(b.y),h=goog.math.toRadians(b.x-a.x),b=Math.atan((1-f)*Math.tan(g)),a=Math.cos(b),b=Math.sin(b),g=Math.atan((1-f)*Math.tan(d)),d=Math.cos(g),g=Math.sin(g),i=h,k,j,l;j=Infinity;for(var m,p,n;0h||c<=h)return null;c=goog.math.modulo(b.x,c);return!d.getTileCoordExtent(new ol.TileCoord(b.z,c,b.y)).intersects(e)?null:new ol.TileCoord(b.z,c,h)},c):ol.TileUrlFunction.withTileCoordTransform(function(b){if(a.maxZoomd||c<=d)return null;c=goog.math.modulo(b.x,c);return new ol.TileCoord(b.z,c,d)},c);ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:b,tileGrid:d,tileUrlFunction:c})}; goog.inherits(ol.source.XYZ,ol.source.ImageTileSource);ol.source.MapQuestOSM=function(){var a=[new ol.Attribution('Tiles Courtesy of MapQuest '),new ol.Attribution('Data © OpenStreetMap contributors, CC BY-SA')];ol.source.XYZ.call(this,{attributions:a,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}; goog.inherits(ol.source.MapQuestOSM,ol.source.XYZ);ol.source.MapQuestOpenAerial=function(){var a=[new ol.Attribution('Tiles Courtesy of MapQuest '),new ol.Attribution("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")];ol.source.XYZ.call(this,{attributions:a,maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}; goog.inherits(ol.source.MapQuestOpenAerial,ol.source.XYZ);ol.source.OpenStreetMap=function(){var a=new ol.Attribution('© OpenStreetMap contributors, CC BY-SA');ol.source.XYZ.call(this,{attributions:[a],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})};goog.inherits(ol.source.OpenStreetMap,ol.source.XYZ);ol.source.SingleImageWMS=function(a){var b=ol.projection.createProjection(a.projection,"EPSG:3857"),c=b.getExtent(),c=goog.isDef(a.extent)?a.extent:c,d=goog.isDef(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:!0};e["1.3"<=d?"CRS":"SRS"]=b.getCode();goog.object.extend(e,a.params);d=b.getAxisOrientation();a.url?(e=goog.uri.utils.appendParamsFromMap(a.url,e),e=ol.ImageUrlFunction.createBboxParam(e,d)):e=ol.ImageUrlFunction.nullImageUrlFunction; -ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,projection:b,resolutions:a.resolutions,imageUrlFunction:e});this.ol_source_SingleImageWMS$image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource); -ol.source.SingleImageWMS.prototype.getImage=function(a,b){var b=this.findNearestResolution(b),c=this.ol_source_SingleImageWMS$image_;if(!goog.isNull(c)&&c.ol_Image_prototype$getResolution()==b&&c.getExtent().containsExtent(a))return c;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var c=a.getWidth()/b,d=a.getHeight()/b,c=new ol.Size(c,d);return this.ol_source_SingleImageWMS$image_=this.createImage(a,b,c)};ol.source.StamenFlavor={TERRAIN_BACKGROUND:"background",TERRAIN_LABELS:"labels",TERRAIN_LINES:"lines",TONER_2010:"2010",TONER_2011:"2011",TONER_2011_LABELS:"2011-labels",TONER_2011_LINES:"2011-lines",TONER_2011_LITE:"2011-lite",TONER_BACKGROUND:"background",TONER_HYBRID:"hybrid",TONER_LABELS:"labels",TONER_LINES:"lines",TONER_LITE:"lite"};ol.source.StamenProvider={TERRAIN:"terrain",TONER:"toner",WATERCOLOR:"watercolor"};ol.source.StamenProviderConfig={}; +ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,projection:b,resolutions:a.resolutions,imageUrlFunction:e});this.image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource); +ol.source.SingleImageWMS.prototype.getImage=function(a,b){var b=this.findNearestResolution(b),c=this.image_;if(!goog.isNull(c)&&c.getResolution()==b&&c.getExtent().containsExtent(a))return c;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var c=a.getWidth()/b,d=a.getHeight()/b,c=new ol.Size(c,d);return this.image_=this.createImage(a,b,c)};ol.source.StamenFlavor={TERRAIN_BACKGROUND:"background",TERRAIN_LABELS:"labels",TERRAIN_LINES:"lines",TONER_2010:"2010",TONER_2011:"2011",TONER_2011_LABELS:"2011-labels",TONER_2011_LINES:"2011-lines",TONER_2011_LITE:"2011-lite",TONER_BACKGROUND:"background",TONER_HYBRID:"hybrid",TONER_LABELS:"labels",TONER_LINES:"lines",TONER_LITE:"lite"};ol.source.StamenProvider={TERRAIN:"terrain",TONER:"toner",WATERCOLOR:"watercolor"};ol.source.StamenProviderConfig={}; ol.source.StamenProviderConfig[ol.source.StamenProvider.TERRAIN]={type:"jpg",minZoom:4,maxZoom:18};ol.source.StamenProviderConfig[ol.source.StamenProvider.TONER]={type:"png",minZoom:0,maxZoom:20};ol.source.StamenProviderConfig[ol.source.StamenProvider.WATERCOLOR]={type:"jpg",minZoom:3,maxZoom:16}; ol.source.Stamen=function(a){var b=new ol.Attribution('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.provider;goog.isDef(a.flavor)&&(c+="-"+a.flavor);a=ol.source.StamenProviderConfig[a.provider];ol.source.XYZ.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+ -c+"/{z}/{x}/{y}."+a.type})};goog.inherits(ol.source.Stamen,ol.source.XYZ);ol.source.StaticImage=function(a){var b=ol.source.StaticImage.createImageFunction(a.url),c=a.imageExtent,d=a.imageSize,e=c.getHeight()/d.height;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,imageUrlFunction:b,resolutions:[e]});this.ol_source_StaticImage$image_=this.createImage(c,e,d)};goog.inherits(ol.source.StaticImage,ol.source.ImageSource); -ol.source.StaticImage.prototype.getImage=function(a){return a.intersects(this.ol_source_StaticImage$image_.getExtent())?this.ol_source_StaticImage$image_:null};ol.source.StaticImage.createImageFunction=function(a){return function(){return a}};ol.tilejson={};ol.tilejson.grids_=[];var grid=function(a){ol.tilejson.grids_.push(a)};goog.exportSymbol("grid",grid);ol.source.TileJSON=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.ol_source_TileJSON$ready_=!1;this.deferred_=goog.net.jsloader.load(a.uri,{cleanupWhenDone:!0});this.deferred_.goog_async_Deferred_prototype$addCallback(this.handleTileJSONResponse,this)};goog.inherits(ol.source.TileJSON,ol.source.ImageTileSource); -ol.source.TileJSON.prototype.handleTileJSONResponse=function(){var a=ol.tilejson.grids_.pop(),b=ol.projection.getFromCode("EPSG:4326"),c,d;goog.isDef(a.bounds)?(c=a.bounds,c=new ol.Extent(c[0],c[1],c[2],c[3]),d=c.transform(ol.projection.getTransform(b,this.ol_source_Source_prototype$getProjection())),this.setExtent(d)):d=c=null;goog.isDef(a.scheme);goog.isDef(a.scheme)&&goog.asserts.assert("xyz"==a.scheme);var e=a.minzoom||0;goog.asserts.assert(0===e);var f=a.maxzoom||22,g=new ol.tilegrid.XYZ({maxZoom:f}); -this.tileGrid=g;this.tileUrlFunction=ol.TileUrlFunction.withTileCoordTransform(function(a){if(a.zc||b<=c)return null;b=goog.math.modulo(a.x,b);return!goog.isNull(d)&&!g.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)).intersects(d)?null:new ol.TileCoord(a.z,b,c)},ol.TileUrlFunction.createFromTemplates(a.tiles));if(goog.isDef(a.attribution)){b=goog.isNull(d)?b.getExtent():d;c={};var h,i;for(h=e;h<=f;++h)i=h.toString(),c[i]=[g.getTileRangeForExtentAndZ(b, -h)];this.setAttributions([new ol.Attribution(a.attribution,c)])}this.ol_source_TileJSON$ready_=!0;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.ol_source_Source_prototype$isReady=function(){return this.ol_source_TileJSON$ready_};ol.source.TiledWMS=function(a){var b=ol.projection.createProjection(a.projection,"EPSG:3857"),c=b.getExtent(),d=goog.isDef(a.extent)?a.extent:c,e=goog.isDef(a.version)?a.version:"1.3",f;f=goog.isDef(a.tileGrid)?a.tileGrid:ol.tilegrid.createForProjection(b,a.maxZoom);var g={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:!0},h=f.getTileSize();g.WIDTH=h.width;g.HEIGHT=h.height;g["1.3"<=e?"CRS":"SRS"]=b.getCode();goog.object.extend(g,a.params);var i=b.getAxisOrientation(); -a.urls?(e=goog.array.map(a.urls,function(a){a=goog.uri.utils.appendParamsFromMap(a,g);return ol.TileUrlFunction.createBboxParam(a,f,i)}),e=ol.TileUrlFunction.createFromTileUrlFunctions(e)):a.url?(e=goog.uri.utils.appendParamsFromMap(a.url,g),e=ol.TileUrlFunction.createBboxParam(e,f,i)):e=ol.TileUrlFunction.nullTileUrlFunction;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(a){if(f.ol_tilegrid_TileGrid_prototype$getResolutions().length<= -a.z)return null;var b=a.x,e=f.getTileCoordExtent(a);d.minX===c.minX&&d.maxX===c.maxX&&(e=Math.ceil((d.maxX-d.minX)/(e.maxX-e.minX)),b=goog.math.modulo(b,e),e=f.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)));return!e.intersects(d)?null:new ol.TileCoord(a.z,b,a.y)},e)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);ol.AnchoredElementOptionsType={};ol.MapOptionsType={};ol.View2DOptionsType={};ol.animation.BounceOptionsType={};ol.animation.PanOptionsType={};ol.animation.RotateOptionsType={};ol.animation.ZoomOptionsType={};ol.control.AttributionOptionsType={};ol.control.MousePositionOptionsType={};ol.control.ZoomOptionsType={};ol.layer.LayerOptionsType={};ol.source.BingMapsOptionsType={};ol.source.DebugTileSourceOptionsType={};ol.source.SingleImageWMSOptionsType={};ol.source.StamenOptionsType={}; +c+"/{z}/{x}/{y}."+a.type})};goog.inherits(ol.source.Stamen,ol.source.XYZ);ol.source.StaticImage=function(a){var b=ol.source.StaticImage.createImageFunction(a.url),c=a.imageExtent,d=a.imageSize,e=c.getHeight()/d.height;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,imageUrlFunction:b,resolutions:[e]});this.image_=this.createImage(c,e,d)};goog.inherits(ol.source.StaticImage,ol.source.ImageSource); +ol.source.StaticImage.prototype.getImage=function(a){return a.intersects(this.image_.getExtent())?this.image_:null};ol.source.StaticImage.createImageFunction=function(a){return function(){return a}};ol.tilejson={};ol.tilejson.grids_=[];var grid=function(a){ol.tilejson.grids_.push(a)};goog.exportSymbol("grid",grid);ol.source.TileJSON=function(a){ol.source.ImageTileSource.call(this,{projection:ol.projection.getFromCode("EPSG:3857")});this.ready_=!1;this.deferred_=goog.net.jsloader.load(a.uri,{cleanupWhenDone:!0});this.deferred_.addCallback(this.handleTileJSONResponse,this)};goog.inherits(ol.source.TileJSON,ol.source.ImageTileSource); +ol.source.TileJSON.prototype.handleTileJSONResponse=function(){var a=ol.tilejson.grids_.pop(),b=ol.projection.getFromCode("EPSG:4326"),c,d;goog.isDef(a.bounds)?(c=a.bounds,c=new ol.Extent(c[0],c[1],c[2],c[3]),d=c.transform(ol.projection.getTransform(b,this.getProjection())),this.setExtent(d)):d=c=null;goog.isDef(a.scheme);goog.isDef(a.scheme)&&goog.asserts.assert("xyz"==a.scheme);var e=a.minzoom||0;goog.asserts.assert(0===e);var f=a.maxzoom||22,g=new ol.tilegrid.XYZ({maxZoom:f});this.tileGrid=g;this.tileUrlFunction= +ol.TileUrlFunction.withTileCoordTransform(function(a){if(a.zc||b<=c)return null;b=goog.math.modulo(a.x,b);return!goog.isNull(d)&&!g.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)).intersects(d)?null:new ol.TileCoord(a.z,b,c)},ol.TileUrlFunction.createFromTemplates(a.tiles));if(goog.isDef(a.attribution)){b=goog.isNull(d)?b.getExtent():d;c={};var h,i;for(h=e;h<=f;++h)i=h.toString(),c[i]=[g.getTileRangeForExtentAndZ(b,h)];this.setAttributions([new ol.Attribution(a.attribution, +c)])}this.ready_=!0;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.isReady=function(){return this.ready_};ol.source.TiledWMS=function(a){var b=ol.projection.createProjection(a.projection,"EPSG:3857"),c=b.getExtent(),d=goog.isDef(a.extent)?a.extent:c,e=goog.isDef(a.version)?a.version:"1.3",f;f=goog.isDef(a.tileGrid)?a.tileGrid:ol.tilegrid.createForProjection(b,a.maxZoom);var g={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:!0};g["1.3"<=e?"CRS":"SRS"]=b.getCode();goog.object.extend(g,a.params);var h=b.getAxisOrientation();a.urls?(e=goog.array.map(a.urls,function(a){a= +goog.uri.utils.appendParamsFromMap(a,g);return ol.TileUrlFunction.createBboxParam(a,f,h)}),e=ol.TileUrlFunction.createFromTileUrlFunctions(e)):a.url?(e=goog.uri.utils.appendParamsFromMap(a.url,g),e=ol.TileUrlFunction.createBboxParam(e,f,h)):e=ol.TileUrlFunction.nullTileUrlFunction;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(a){if(f.getResolutions().length<= +a.z)return null;var b=a.x,e=f.getTileCoordExtent(a);d.minX===c.minX&&d.maxX===c.maxX&&(e=Math.ceil((d.maxX-d.minX)/(e.maxX-e.minX)),b=goog.math.modulo(b,e),e=f.getTileCoordExtent(new ol.TileCoord(a.z,b,a.y)));return!e.intersects(d)?null:new ol.TileCoord(a.z,b,a.y)},e)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);ol.sphere.WGS84=new ol.Sphere(6378137);ol.AnchoredElementOptionsType={};ol.MapOptionsType={};ol.View2DOptionsType={};ol.animation.BounceOptionsType={};ol.animation.PanOptionsType={};ol.animation.RotateOptionsType={};ol.animation.ZoomOptionsType={};ol.control.AttributionOptionsType={};ol.control.MousePositionOptionsType={};ol.control.ZoomOptionsType={};ol.layer.LayerOptionsType={};ol.source.BingMapsOptionsType={};ol.source.DebugTileSourceOptionsType={};ol.source.SingleImageWMSOptionsType={};ol.source.StamenOptionsType={}; ol.source.StaticImageOptionsType={};ol.source.TiledWMSOptionsType={};ol.tilegrid.TileGridOptionsType={};ol.tilegrid.XYZOptionsType={}; diff --git a/master/build/ol-whitespace.js b/master/build/ol-whitespace.js index a257df4486..947fbc42f9 100644 --- a/master/build/ol-whitespace.js +++ b/master/build/ol-whitespace.js @@ -536,17 +536,17 @@ goog.addDependency("/third_party/closure/goog/silverlight/supporteduseragent.js" goog.addDependency("build/src/internal/src/requireall.js",[],["ol","ol.AnchoredElement","ol.AnchoredElementPositioning","ol.AnchoredElementProperty","ol.Attribution","ol.BingMapsStyle","ol.BrowserFeature","ol.Collection","ol.CollectionEvent","ol.CollectionEventType","ol.Color","ol.Constraints","ol.Coordinate","ol.CoordinateFormatType","ol.Ellipsoid","ol.Extent","ol.FrameState","ol.Geolocation","ol.GeolocationProperty","ol.IView","ol.IView2D","ol.IView3D","ol.Image","ol.ImageState","ol.ImageTile", "ol.ImageUrlFunction","ol.ImageUrlFunctionType","ol.Kinetic","ol.Map","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.MapBrowserEventHandler","ol.MapEvent","ol.MapEventType","ol.MapProperty","ol.Object","ol.ObjectEventType","ol.Pixel","ol.PixelBounds","ol.PostRenderFunction","ol.PreRenderFunction","ol.Projection","ol.ProjectionUnits","ol.Rectangle","ol.RendererHint","ol.RendererHints","ol.ResolutionConstraint","ol.ResolutionConstraintType","ol.RotationConstraint","ol.RotationConstraintType", "ol.Size","ol.Sphere","ol.Tile","ol.TileCache","ol.TileCoord","ol.TilePriorityFunction","ol.TileQueue","ol.TileRange","ol.TileState","ol.TileUrlFunction","ol.TileUrlFunctionType","ol.TransformFunction","ol.View","ol.View2D","ol.View2DProperty","ol.View2DState","ol.ViewHint","ol.animation","ol.array","ol.canvas","ol.control.Attribution","ol.control.Control","ol.control.ControlOptions","ol.control.DragBox","ol.control.MousePosition","ol.control.Zoom","ol.dom","ol.dom.BrowserFeature","ol.easing","ol.ellipsoid.WGS84", -"ol.interaction.ConditionType","ol.interaction.DblClickZoom","ol.interaction.Drag","ol.interaction.DragPan","ol.interaction.DragRotate","ol.interaction.DragRotateAndZoom","ol.interaction.DragZoom","ol.interaction.Interaction","ol.interaction.Keyboard","ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.Touch","ol.interaction.TouchPan","ol.interaction.TouchRotateAndZoom","ol.interaction.condition","ol.layer.ImageLayer","ol.layer.Layer","ol.layer.LayerProperty", -"ol.layer.LayerState","ol.layer.TileLayer","ol.parser.XML","ol.parser.ogc.ExceptionReport","ol.parser.ogc.OWSCommon_v1","ol.parser.ogc.OWSCommon_v1_1_0","ol.parser.ogc.Versioned","ol.parser.ogc.WMSCapabilities","ol.parser.ogc.WMSCapabilities_v1","ol.parser.ogc.WMSCapabilities_v1_1","ol.parser.ogc.WMSCapabilities_v1_1_0","ol.parser.ogc.WMSCapabilities_v1_1_1","ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC","ol.parser.ogc.WMSCapabilities_v1_3_0","ol.parser.ogc.WMTSCapabilities","ol.parser.ogc.WMTSCapabilities_v1_0_0", -"ol.renderer.Layer","ol.renderer.Map","ol.renderer.canvas.ImageLayer","ol.renderer.canvas.Layer","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.canvas.TileLayer","ol.renderer.dom.ImageLayer","ol.renderer.dom.Layer","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.dom.TileLayer","ol.renderer.webgl.FragmentShader","ol.renderer.webgl.ImageLayer","ol.renderer.webgl.Layer","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED","ol.renderer.webgl.TileLayer","ol.renderer.webgl.VertexShader", -"ol.renderer.webgl.map.shader","ol.renderer.webgl.tilelayerrenderer","ol.renderer.webgl.tilelayerrenderer.shader.Fragment","ol.renderer.webgl.tilelayerrenderer.shader.Vertex","ol.source.BingMaps","ol.source.DebugTileSource","ol.source.ImageSource","ol.source.ImageTileSource","ol.source.ImageTileSourceOptions","ol.source.MapQuestOSM","ol.source.MapQuestOpenAerial","ol.source.OpenStreetMap","ol.source.SingleImageWMS","ol.source.Source","ol.source.Stamen","ol.source.StamenFlavor","ol.source.StamenProvider", -"ol.source.StaticImage","ol.source.TileJSON","ol.source.TileSource","ol.source.TileSourceOptions","ol.source.TiledWMS","ol.source.XYZ","ol.source.XYZOptions","ol.structs.LRUCache","ol.tilegrid.TileGrid","ol.tilegrid.XYZ","ol.tilejson","ol.vec.Mat4","ol.webgl","ol.webgl.WebGLContextEventType"]); +"ol.interaction.ConditionType","ol.interaction.DblClickZoom","ol.interaction.Drag","ol.interaction.DragPan","ol.interaction.DragRotate","ol.interaction.DragRotateAndZoom","ol.interaction.DragZoom","ol.interaction.Interaction","ol.interaction.Keyboard","ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.Touch","ol.interaction.TouchPan","ol.interaction.TouchRotate","ol.interaction.TouchZoom","ol.interaction.condition","ol.layer.ImageLayer","ol.layer.Layer", +"ol.layer.LayerProperty","ol.layer.LayerState","ol.layer.TileLayer","ol.math","ol.parser.XML","ol.parser.ogc.ExceptionReport","ol.parser.ogc.OWSCommon_v1","ol.parser.ogc.OWSCommon_v1_1_0","ol.parser.ogc.Versioned","ol.parser.ogc.WMSCapabilities","ol.parser.ogc.WMSCapabilities_v1","ol.parser.ogc.WMSCapabilities_v1_1","ol.parser.ogc.WMSCapabilities_v1_1_0","ol.parser.ogc.WMSCapabilities_v1_1_1","ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC","ol.parser.ogc.WMSCapabilities_v1_3_0","ol.parser.ogc.WMTSCapabilities", +"ol.parser.ogc.WMTSCapabilities_v1_0_0","ol.projection","ol.projection.EPSG3857","ol.projection.EPSG4326","ol.projection.addCommonProjections","ol.renderer.Layer","ol.renderer.Map","ol.renderer.canvas.ImageLayer","ol.renderer.canvas.Layer","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.canvas.TileLayer","ol.renderer.dom.ImageLayer","ol.renderer.dom.Layer","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.dom.TileLayer","ol.renderer.webgl.FragmentShader","ol.renderer.webgl.ImageLayer", +"ol.renderer.webgl.Layer","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED","ol.renderer.webgl.TileLayer","ol.renderer.webgl.VertexShader","ol.renderer.webgl.map.shader","ol.renderer.webgl.tilelayerrenderer","ol.renderer.webgl.tilelayerrenderer.shader.Fragment","ol.renderer.webgl.tilelayerrenderer.shader.Vertex","ol.source.BingMaps","ol.source.DebugTileSource","ol.source.ImageSource","ol.source.ImageTileSource","ol.source.ImageTileSourceOptions","ol.source.MapQuestOSM","ol.source.MapQuestOpenAerial", +"ol.source.OpenStreetMap","ol.source.SingleImageWMS","ol.source.Source","ol.source.Stamen","ol.source.StamenFlavor","ol.source.StamenProvider","ol.source.StaticImage","ol.source.TileJSON","ol.source.TileSource","ol.source.TileSourceOptions","ol.source.TiledWMS","ol.source.XYZ","ol.source.XYZOptions","ol.sphere.NORMAL","ol.sphere.WGS84","ol.structs.LRUCache","ol.tilegrid.TileGrid","ol.tilegrid.XYZ","ol.tilejson","ol.vec.Mat4","ol.webgl","ol.webgl.WebGLContextEventType"]); goog.addDependency("build/src/internal/src/types.js",["ol.AnchoredElementOptionsType","ol.MapOptionsType","ol.View2DOptionsType","ol.animation.BounceOptionsType","ol.animation.PanOptionsType","ol.animation.RotateOptionsType","ol.animation.ZoomOptionsType","ol.control.AttributionOptionsType","ol.control.MousePositionOptionsType","ol.control.ZoomOptionsType","ol.layer.LayerOptionsType","ol.source.BingMapsOptionsType","ol.source.DebugTileSourceOptionsType","ol.source.SingleImageWMSOptionsType","ol.source.StamenOptionsType", "ol.source.StaticImageOptionsType","ol.source.TiledWMSOptionsType","ol.tilegrid.TileGridOptionsType","ol.tilegrid.XYZOptionsType"],[]);goog.addDependency("src/ol/anchoredelement.js",["ol.AnchoredElement","ol.AnchoredElementPositioning","ol.AnchoredElementProperty"],["goog.dom","goog.events","goog.style","ol.Coordinate","ol.Map","ol.MapEventType","ol.Object"]);goog.addDependency("src/ol/animation.js",["ol.animation"],["goog.fx.easing","ol.PreRenderFunction","ol.ViewHint","ol.easing"]); goog.addDependency("src/ol/array.js",["ol.array"],["goog.array"]);goog.addDependency("src/ol/attribution.js",["ol.Attribution"],["ol.TileRange"]);goog.addDependency("src/ol/browserfeature.js",["ol.BrowserFeature"],[]);goog.addDependency("src/ol/canvas/canvas.js",["ol.canvas"],["goog.dom","goog.dom.TagName"]);goog.addDependency("src/ol/collection.js",["ol.Collection","ol.CollectionEvent","ol.CollectionEventType"],["goog.array","goog.events.Event","ol.Object"]); goog.addDependency("src/ol/color.js",["ol.Color"],["goog.color","goog.math"]);goog.addDependency("src/ol/constraints.js",["ol.Constraints"],["ol.ResolutionConstraintType","ol.RotationConstraintType"]);goog.addDependency("src/ol/control/attributioncontrol.js",["ol.control.Attribution"],["goog.array","goog.dom","goog.dom.TagName","goog.events","goog.object","goog.style","ol.Attribution","ol.FrameState","ol.MapEvent","ol.MapEventType","ol.TileRange","ol.control.Control","ol.source.Source"]); goog.addDependency("src/ol/control/control.js",["ol.control.Control","ol.control.ControlOptions"],["goog.Disposable"]);goog.addDependency("src/ol/control/dragboxcontrol.js",["ol.control.DragBox"],["goog.asserts","goog.dom","goog.dom.TagName","goog.events","goog.style","ol.Coordinate","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.Pixel","ol.Size","ol.control.Control"]); -goog.addDependency("src/ol/control/mousepositioncontrol.js",["ol.control.MousePosition"],["goog.array","goog.dom","goog.events","goog.events.EventType","goog.style","ol.CoordinateFormatType","ol.MapEvent","ol.MapEventType","ol.Pixel","ol.Projection","ol.TransformFunction","ol.control.Control","ol.projection"]);goog.addDependency("src/ol/control/zoomcontrol.js",["ol.control.Zoom"],["goog.dom","goog.dom.TagName","goog.events","goog.events.EventType","ol.BrowserFeature","ol.control.Control"]); +goog.addDependency("src/ol/control/mousepositioncontrol.js",["ol.control.MousePosition"],["goog.array","goog.dom","goog.events","goog.events.EventType","goog.style","ol.Coordinate","ol.CoordinateFormatType","ol.MapEvent","ol.MapEventType","ol.Pixel","ol.Projection","ol.TransformFunction","ol.control.Control","ol.projection"]);goog.addDependency("src/ol/control/zoomcontrol.js",["ol.control.Zoom"],["goog.dom","goog.dom.TagName","goog.events","goog.events.EventType","ol.control.Control"]); goog.addDependency("src/ol/coordinate.js",["ol.Coordinate","ol.CoordinateFormatType"],["goog.math","goog.math.Vec2"]);goog.addDependency("src/ol/dom/dom.js",["ol.dom","ol.dom.BrowserFeature"],["goog.vec.Mat4"]);goog.addDependency("src/ol/easing.js",["ol.easing"],[]);goog.addDependency("src/ol/ellipsoid.js",["ol.Ellipsoid"],["goog.math","ol.Coordinate"]);goog.addDependency("src/ol/ellipsoid/wgs84.js",["ol.ellipsoid.WGS84"],["ol.Ellipsoid"]); goog.addDependency("src/ol/extent.js",["ol.Extent"],["ol.Coordinate","ol.Rectangle","ol.TransformFunction"]);goog.addDependency("src/ol/framestate.js",["ol.FrameState","ol.PostRenderFunction","ol.PreRenderFunction"],["goog.vec.Mat4","ol.Attribution","ol.Color","ol.Extent","ol.Size","ol.TileQueue","ol.TileRange","ol.View2DState","ol.layer.Layer","ol.layer.LayerState"]); goog.addDependency("src/ol/geolocation.js",["ol.Geolocation","ol.GeolocationProperty"],["goog.functions","goog.math","ol.Coordinate","ol.Object","ol.Projection","ol.projection"]);goog.addDependency("src/ol/image.js",["ol.Image","ol.ImageState"],["goog.array","goog.events","goog.events.EventTarget","goog.events.EventType","ol.Attribution","ol.Extent"]);goog.addDependency("src/ol/imagetile.js",["ol.ImageTile"],["goog.array","goog.events","goog.events.EventType","ol.Tile","ol.TileCoord","ol.TileState"]); @@ -556,12 +556,12 @@ goog.addDependency("src/ol/interaction/dragrotateandzoominteraction.js",["ol.int goog.addDependency("src/ol/interaction/dragzoominteraction.js",["ol.interaction.DragZoom"],["ol.Extent","ol.Size","ol.View2D","ol.control.DragBox","ol.interaction.ConditionType","ol.interaction.Drag"]);goog.addDependency("src/ol/interaction/interaction.js",["ol.interaction.Interaction"],["ol.MapBrowserEvent"]);goog.addDependency("src/ol/interaction/keyboardinteraction.js",["ol.interaction.Keyboard"],["ol.interaction.Interaction"]); goog.addDependency("src/ol/interaction/keyboardpaninteraction.js",["ol.interaction.KeyboardPan"],["goog.events.KeyCodes","goog.events.KeyHandler.EventType","ol.Coordinate","ol.View2D","ol.interaction.Interaction"]);goog.addDependency("src/ol/interaction/keyboardzoominteraction.js",["ol.interaction.KeyboardZoom"],["goog.events.KeyHandler.EventType","ol.View2D","ol.interaction.Interaction"]); goog.addDependency("src/ol/interaction/mousewheelzoominteraction.js",["ol.interaction.MouseWheelZoom"],["goog.events.MouseWheelEvent","goog.events.MouseWheelHandler.EventType","ol.View2D","ol.interaction.Interaction"]);goog.addDependency("src/ol/interaction/touchinteraction.js",["ol.interaction.Touch"],["goog.functions","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.Pixel","ol.interaction.Interaction"]); -goog.addDependency("src/ol/interaction/touchpaninteraction.js",["ol.interaction.TouchPan"],["goog.asserts","ol.Coordinate","ol.Kinetic","ol.Pixel","ol.PreRenderFunction","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/interaction/touchrotateandzoominteraction.js",["ol.interaction.TouchRotateAndZoom"],["goog.asserts","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/iview.js",["ol.IView"],["ol.IView2D","ol.IView3D"]); -goog.addDependency("src/ol/iview2d.js",["ol.IView2D","ol.View2DState"],["ol.Coordinate","ol.Projection"]);goog.addDependency("src/ol/iview3d.js",["ol.IView3D"],[]);goog.addDependency("src/ol/kinetic.js",["ol.Kinetic"],["ol.Coordinate","ol.PreRenderFunction","ol.animation"]);goog.addDependency("src/ol/layer/imagelayer.js",["ol.layer.ImageLayer"],["ol.layer.Layer","ol.source.ImageSource"]); -goog.addDependency("src/ol/layer/layer.js",["ol.layer.Layer","ol.layer.LayerProperty","ol.layer.LayerState"],["goog.events","goog.events.EventType","goog.math","ol.Object","ol.source.Source"]);goog.addDependency("src/ol/layer/tilelayer.js",["ol.layer.TileLayer"],["ol.layer.Layer","ol.source.TileSource"]); +goog.addDependency("src/ol/interaction/touchpaninteraction.js",["ol.interaction.TouchPan"],["goog.asserts","ol.Coordinate","ol.Kinetic","ol.Pixel","ol.PreRenderFunction","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/interaction/touchrotateinteraction.js",["ol.interaction.TouchRotate"],["goog.asserts","ol.View","ol.ViewHint","ol.interaction.Touch"]); +goog.addDependency("src/ol/interaction/touchzoominteraction.js",["ol.interaction.TouchZoom"],["goog.asserts","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/iview.js",["ol.IView"],["ol.IView2D","ol.IView3D"]);goog.addDependency("src/ol/iview2d.js",["ol.IView2D","ol.View2DState"],["ol.Coordinate","ol.Projection"]);goog.addDependency("src/ol/iview3d.js",["ol.IView3D"],[]);goog.addDependency("src/ol/kinetic.js",["ol.Kinetic"],["ol.Coordinate","ol.PreRenderFunction","ol.animation"]); +goog.addDependency("src/ol/layer/imagelayer.js",["ol.layer.ImageLayer"],["ol.layer.Layer","ol.source.ImageSource"]);goog.addDependency("src/ol/layer/layer.js",["ol.layer.Layer","ol.layer.LayerProperty","ol.layer.LayerState"],["goog.events","goog.events.EventType","goog.math","ol.Object","ol.source.Source"]);goog.addDependency("src/ol/layer/tilelayer.js",["ol.layer.TileLayer"],["ol.layer.Layer","ol.source.TileSource"]); goog.addDependency("src/ol/map.js",["ol.Map","ol.MapProperty","ol.RendererHint","ol.RendererHints"],["goog.Uri.QueryData","goog.async.AnimationDelay","goog.debug.Logger","goog.dom","goog.dom.ViewportSizeMonitor","goog.events","goog.events.BrowserEvent","goog.events.Event","goog.events.EventType","goog.events.KeyHandler","goog.events.KeyHandler.EventType","goog.events.MouseWheelHandler","goog.events.MouseWheelHandler.EventType","ol.BrowserFeature","ol.Collection","ol.Color","ol.Coordinate","ol.Extent", "ol.FrameState","ol.IView","ol.Kinetic","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.MapBrowserEventHandler","ol.MapEvent","ol.MapEventType","ol.Object","ol.ObjectEventType","ol.Pixel","ol.PostRenderFunction","ol.PreRenderFunction","ol.Size","ol.Tile","ol.TileQueue","ol.View","ol.View2D","ol.control.Attribution","ol.control.Control","ol.control.Zoom","ol.interaction.DblClickZoom","ol.interaction.DragPan","ol.interaction.DragRotate","ol.interaction.DragZoom","ol.interaction.Interaction", -"ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.TouchPan","ol.interaction.TouchRotateAndZoom","ol.interaction.condition","ol.layer.Layer","ol.projection","ol.projection.addCommonProjections","ol.renderer.Map","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED"]); +"ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.TouchPan","ol.interaction.TouchRotate","ol.interaction.TouchZoom","ol.interaction.condition","ol.layer.Layer","ol.projection","ol.projection.addCommonProjections","ol.renderer.Map","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED"]); goog.addDependency("src/ol/mapbrowserevent.js",["ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.MapBrowserEventHandler"],["goog.array","goog.events.BrowserEvent","goog.events.EventTarget","goog.events.EventType","goog.style","ol.BrowserFeature","ol.Coordinate","ol.FrameState","ol.MapEvent","ol.Pixel"]);goog.addDependency("src/ol/mapevent.js",["ol.MapEvent","ol.MapEventType"],["goog.events.Event","ol.FrameState"]);goog.addDependency("src/ol/math.js",["ol.math"],[]); goog.addDependency("src/ol/object.js",["ol.Object","ol.ObjectEventType"],["goog.array","goog.events","goog.events.EventTarget","goog.object"]);goog.addDependency("src/ol/ol.js",["ol"],["goog.debug.Logger"]);goog.addDependency("src/ol/parser/ogc/exceptionreport.js",["ol.parser.ogc.ExceptionReport"],["goog.dom.xml","ol.parser.XML"]);goog.addDependency("src/ol/parser/ogc/owscommon_v1.js",["ol.parser.ogc.OWSCommon_v1"],["ol.Extent","ol.parser.XML"]); goog.addDependency("src/ol/parser/ogc/owscommon_v1_1_0.js",["ol.parser.ogc.OWSCommon_v1_1_0"],["goog.object","ol.parser.ogc.OWSCommon_v1"]);goog.addDependency("src/ol/parser/ogc/versioned.js",["ol.parser.ogc.Versioned"],["goog.dom.xml","ol.parser.ogc.ExceptionReport"]); @@ -569,8 +569,8 @@ goog.addDependency("src/ol/parser/ogc/wmscapabilities.js",["ol.parser.ogc.WMSCap goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1.js",["ol.parser.ogc.WMSCapabilities_v1_1"],["ol.parser.ogc.WMSCapabilities_v1"]);goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1_0.js",["ol.parser.ogc.WMSCapabilities_v1_1_0"],["ol.parser.ogc.WMSCapabilities_v1_1"]);goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1_1.js",["ol.parser.ogc.WMSCapabilities_v1_1_1"],["ol.parser.ogc.WMSCapabilities_v1_1"]); goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1_1_WMSC.js",["ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC"],["ol.parser.ogc.WMSCapabilities_v1_1_1"]);goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_3_0.js",["ol.parser.ogc.WMSCapabilities_v1_3_0"],["ol.parser.ogc.WMSCapabilities_v1"]);goog.addDependency("src/ol/parser/ogc/wmtscapabilities.js",["ol.parser.ogc.WMTSCapabilities"],["ol.parser.ogc.Versioned","ol.parser.ogc.WMTSCapabilities_v1_0_0"]); goog.addDependency("src/ol/parser/ogc/wmtscapabilities_v1_0_0.js",["ol.parser.ogc.WMTSCapabilities_v1_0_0"],["goog.dom.xml","ol.Coordinate","ol.parser.XML","ol.parser.ogc.OWSCommon_v1_1_0","ol.projection"]);goog.addDependency("src/ol/parser/xml.js",["ol.parser.XML"],[]);goog.addDependency("src/ol/pixel.js",["ol.Pixel"],["goog.math.Coordinate"]);goog.addDependency("src/ol/pixelbounds.js",["ol.PixelBounds"],["ol.Rectangle"]); -goog.addDependency("src/ol/projection.js",["ol.Projection","ol.ProjectionUnits","ol.projection"],["goog.array","goog.asserts","goog.object","ol.Coordinate","ol.Extent","ol.TransformFunction"]);goog.addDependency("src/ol/projection/common.js",["ol.projection.addCommonProjections"],["ol.projection","ol.projection.EPSG3857","ol.projection.EPSG4326"]); -goog.addDependency("src/ol/projection/epsg3857.js",["ol.projection.EPSG3857"],["goog.array","ol.Coordinate","ol.Extent","ol.Projection","ol.ProjectionUnits","ol.projection"]);goog.addDependency("src/ol/projection/epsg4326.js",["ol.projection.EPSG4326"],["ol.Extent","ol.Projection","ol.ProjectionUnits","ol.projection"]);goog.addDependency("src/ol/rectangle.js",["ol.Rectangle"],["goog.asserts","ol.Coordinate","ol.Size"]); +goog.addDependency("src/ol/projection.js",["ol.Projection","ol.ProjectionUnits","ol.projection"],["goog.array","goog.asserts","goog.object","ol.Coordinate","ol.Extent","ol.TransformFunction","ol.sphere.NORMAL"]);goog.addDependency("src/ol/projection/common.js",["ol.projection.addCommonProjections"],["ol.projection","ol.projection.EPSG3857","ol.projection.EPSG4326"]); +goog.addDependency("src/ol/projection/epsg3857.js",["ol.projection.EPSG3857"],["goog.array","ol.Extent","ol.Projection","ol.ProjectionUnits","ol.math","ol.projection"]);goog.addDependency("src/ol/projection/epsg4326.js",["ol.projection.EPSG4326"],["ol.Extent","ol.Projection","ol.ProjectionUnits","ol.projection"]);goog.addDependency("src/ol/rectangle.js",["ol.Rectangle"],["goog.asserts","ol.Coordinate","ol.Size"]); goog.addDependency("src/ol/renderer/canvas/canvasimagelayerrenderer.js",["ol.renderer.canvas.ImageLayer"],["goog.vec.Mat4","ol.Image","ol.ImageState","ol.ViewHint","ol.layer.ImageLayer","ol.renderer.Map","ol.renderer.canvas.Layer"]);goog.addDependency("src/ol/renderer/canvas/canvaslayerrenderer.js",["ol.renderer.canvas.Layer"],["ol.layer.Layer","ol.renderer.Layer"]); goog.addDependency("src/ol/renderer/canvas/canvasmaprenderer.js",["ol.renderer.canvas.Map"],["goog.array","goog.dom","goog.style","goog.vec.Mat4","ol.Size","ol.layer.ImageLayer","ol.layer.TileLayer","ol.renderer.Map","ol.renderer.canvas.ImageLayer","ol.renderer.canvas.TileLayer"]);goog.addDependency("src/ol/renderer/canvas/canvasrenderer.js",["ol.renderer.canvas.SUPPORTED"],["ol.canvas"]); goog.addDependency("src/ol/renderer/canvas/canvastilelayerrenderer.js",["ol.renderer.canvas.TileLayer"],["goog.array","goog.dom","goog.vec.Mat4","ol.Size","ol.Tile","ol.TileCoord","ol.TileState","ol.layer.TileLayer","ol.renderer.Map","ol.renderer.canvas.Layer"]);goog.addDependency("src/ol/renderer/dom/domimagelayerrenderer.js",["ol.renderer.dom.ImageLayer"],["goog.dom","goog.vec.Mat4","ol.Image","ol.ImageState","ol.ViewHint","ol.dom","ol.layer.ImageLayer","ol.renderer.dom.Layer"]); @@ -589,12 +589,12 @@ goog.addDependency("src/ol/source/imagetilesource.js",["ol.source.ImageTileSourc goog.addDependency("src/ol/source/openstreetmapsource.js",["ol.source.OpenStreetMap"],["ol.Attribution","ol.source.XYZ"]);goog.addDependency("src/ol/source/singleimagewmssource.js",["ol.source.SingleImageWMS"],["goog.uri.utils","ol.Extent","ol.Image","ol.ImageUrlFunction","ol.Size","ol.projection","ol.source.ImageSource"]);goog.addDependency("src/ol/source/source.js",["ol.source.Source"],["goog.events.EventTarget","goog.events.EventType","goog.functions","ol.Attribution","ol.Extent","ol.Projection"]); goog.addDependency("src/ol/source/stamensource.js",["ol.source.Stamen","ol.source.StamenFlavor","ol.source.StamenProvider"],["ol.Attribution","ol.source.XYZ"]);goog.addDependency("src/ol/source/staticimagesource.js",["ol.source.StaticImage"],["ol.Image","ol.ImageUrlFunctionType","ol.source.ImageSource"]);goog.addDependency("src/ol/source/tiledwmssource.js",["ol.source.TiledWMS"],["goog.array","goog.object","goog.uri.utils","ol.Extent","ol.TileCoord","ol.TileUrlFunction","ol.projection","ol.source.ImageTileSource"]); goog.addDependency("src/ol/source/tilejsonsource.js",["ol.source.TileJSON","ol.tilejson"],["goog.asserts","goog.net.jsloader","ol.Attribution","ol.Extent","ol.TileCoord","ol.TileRange","ol.TileUrlFunction","ol.projection","ol.source.ImageTileSource","ol.tilegrid.XYZ"]);goog.addDependency("src/ol/source/tilesource.js",["ol.source.TileSource","ol.source.TileSourceOptions"],["goog.functions","ol.Attribution","ol.Extent","ol.Projection","ol.Tile","ol.TileCoord","ol.TileRange","ol.source.Source","ol.tilegrid.TileGrid"]); -goog.addDependency("src/ol/source/xyzsource.js",["ol.source.XYZ","ol.source.XYZOptions"],["goog.math","ol.Attribution","ol.Extent","ol.Projection","ol.TileCoord","ol.TileUrlFunction","ol.TileUrlFunctionType","ol.projection","ol.source.ImageTileSource","ol.tilegrid.XYZ"]);goog.addDependency("src/ol/sphere.js",["ol.Sphere"],["goog.math","ol.Coordinate"]);goog.addDependency("src/ol/structs/lrucache.js",["ol.structs.LRUCache"],["goog.asserts","goog.object"]); -goog.addDependency("src/ol/tile.js",["ol.Tile","ol.TileState"],["goog.events","goog.events.EventTarget","goog.events.EventType","ol.TileCoord"]);goog.addDependency("src/ol/tilecache.js",["ol.TileCache"],["ol.Tile","ol.TileRange","ol.structs.LRUCache"]);goog.addDependency("src/ol/tilecoord.js",["ol.TileCoord"],["goog.array","ol.Coordinate"]); +goog.addDependency("src/ol/source/xyzsource.js",["ol.source.XYZ","ol.source.XYZOptions"],["goog.math","ol.Attribution","ol.Extent","ol.Projection","ol.TileCoord","ol.TileUrlFunction","ol.TileUrlFunctionType","ol.projection","ol.source.ImageTileSource","ol.tilegrid.XYZ"]);goog.addDependency("src/ol/sphere.js",["ol.Sphere"],["goog.math","ol.Coordinate"]);goog.addDependency("src/ol/sphere/normal.js",["ol.sphere.NORMAL"],["ol.Sphere"]);goog.addDependency("src/ol/sphere/wgs84.js",["ol.sphere.WGS84"],["ol.Sphere"]); +goog.addDependency("src/ol/structs/lrucache.js",["ol.structs.LRUCache"],["goog.asserts","goog.object"]);goog.addDependency("src/ol/tile.js",["ol.Tile","ol.TileState"],["goog.events","goog.events.EventTarget","goog.events.EventType","ol.TileCoord"]);goog.addDependency("src/ol/tilecache.js",["ol.TileCache"],["ol.Tile","ol.TileRange","ol.structs.LRUCache"]);goog.addDependency("src/ol/tilecoord.js",["ol.TileCoord"],["goog.array","ol.Coordinate"]); goog.addDependency("src/ol/tilegrid/tilegrid.js",["ol.tilegrid.TileGrid"],["goog.array","goog.asserts","ol.Coordinate","ol.Extent","ol.PixelBounds","ol.Projection","ol.Size","ol.TileCoord","ol.TileRange","ol.array"]);goog.addDependency("src/ol/tilegrid/xyztilegrid.js",["ol.tilegrid.XYZ"],["ol.Coordinate","ol.Size","ol.TileRange","ol.projection","ol.projection.EPSG3857","ol.tilegrid.TileGrid"]); goog.addDependency("src/ol/tilequeue.js",["ol.TilePriorityFunction","ol.TileQueue"],["goog.events","goog.events.EventType","ol.Coordinate","ol.Tile","ol.TileState"]);goog.addDependency("src/ol/tilerange.js",["ol.TileRange"],["goog.asserts","ol.Rectangle","ol.TileCoord"]);goog.addDependency("src/ol/tileurlfunction.js",["ol.TileUrlFunction","ol.TileUrlFunctionType"],["goog.array","goog.math","goog.uri.utils","ol.TileCoord","ol.tilegrid.TileGrid"]); -goog.addDependency("src/ol/transformfunction.js",["ol.TransformFunction"],["ol.Coordinate"]);goog.addDependency("src/ol/vec/mat4.js",["ol.vec.Mat4"],["goog.vec.Mat4"]);goog.addDependency("src/ol/view.js",["ol.View","ol.ViewHint"],["goog.array","ol.IView","ol.Object"]); -goog.addDependency("src/ol/view2d.js",["ol.View2D","ol.View2DProperty"],["ol.Constraints","ol.Coordinate","ol.Extent","ol.IView2D","ol.IView3D","ol.Projection","ol.ResolutionConstraint","ol.RotationConstraint","ol.Size","ol.View","ol.animation","ol.projection"]);goog.addDependency("src/ol/webgl/webgl.js",["ol.webgl","ol.webgl.WebGLContextEventType"],[]);goog.provide("goog.debug.Error");goog.debug.Error=function(opt_msg){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else this.stack=(new Error).stack||"";if(opt_msg)this.message=String(opt_msg)};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.provide("goog.string");goog.provide("goog.string.Unicode");goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(str,prefix){return str.lastIndexOf(prefix,0)==0};goog.string.endsWith=function(str,suffix){var l=str.length-suffix.length;return l>=0&&str.indexOf(suffix,l)==l};goog.string.caseInsensitiveStartsWith=function(str,prefix){return goog.string.caseInsensitiveCompare(prefix,str.substr(0,prefix.length))==0}; +goog.addDependency("src/ol/transformfunction.js",["ol.TransformFunction"],[]);goog.addDependency("src/ol/vec/mat4.js",["ol.vec.Mat4"],["goog.vec.Mat4"]);goog.addDependency("src/ol/view.js",["ol.View","ol.ViewHint"],["goog.array","ol.IView","ol.Object"]);goog.addDependency("src/ol/view2d.js",["ol.View2D","ol.View2DProperty"],["ol.Constraints","ol.Coordinate","ol.Extent","ol.IView2D","ol.IView3D","ol.Projection","ol.ResolutionConstraint","ol.RotationConstraint","ol.Size","ol.View","ol.animation","ol.projection"]); +goog.addDependency("src/ol/webgl/webgl.js",["ol.webgl","ol.webgl.WebGLContextEventType"],[]);goog.provide("goog.debug.Error");goog.debug.Error=function(opt_msg){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else this.stack=(new Error).stack||"";if(opt_msg)this.message=String(opt_msg)};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.provide("goog.string");goog.provide("goog.string.Unicode");goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(str,prefix){return str.lastIndexOf(prefix,0)==0};goog.string.endsWith=function(str,suffix){var l=str.length-suffix.length;return l>=0&&str.indexOf(suffix,l)==l};goog.string.caseInsensitiveStartsWith=function(str,prefix){return goog.string.caseInsensitiveCompare(prefix,str.substr(0,prefix.length))==0}; goog.string.caseInsensitiveEndsWith=function(str,suffix){return goog.string.caseInsensitiveCompare(suffix,str.substr(str.length-suffix.length,suffix.length))==0};goog.string.subs=function(str,var_args){for(var i=1;i=" "&&ch<="~"||ch>="\u0080"&&ch<="\ufffd"};goog.string.stripNewlines=function(str){return str.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(str){return str.replace(/(\r\n|\r|\n)/g,"\n")};goog.string.normalizeWhitespace=function(str){return str.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(str){return str.replace(/\xa0|[ \t]+/g," ")}; @@ -1132,10 +1132,10 @@ goog.color.yiqBrightnessDiff_=function(rgb1,rgb2){return Math.abs(goog.color.yiq ol.Color.equals=function(color1,color2){return color1.r==color2.r&&color1.g==color2.g&&color1.b==color2.b&&color1.a==color2.a};goog.provide("ol.Size");goog.require("goog.math.Size");ol.Size=function(width,height){goog.base(this,width,height)};goog.inherits(ol.Size,goog.math.Size);ol.Size.prototype.equals=function(size){return this.width==size.width&&this.height==size.height};goog.provide("ol.Rectangle");goog.require("goog.asserts");goog.require("ol.Coordinate");goog.require("ol.Size");ol.Rectangle=function(minX,minY,maxX,maxY){goog.asserts.assert(minX<=maxX);goog.asserts.assert(minY<=maxY);this.minX=minX;this.minY=minY;this.maxX=maxX;this.maxY=maxY};ol.Rectangle.prototype.equals=function(rectangle){return this.minX==rectangle.minX&&this.minY==rectangle.minY&&this.maxX==rectangle.maxX&&this.maxY==rectangle.maxY}; ol.Rectangle.prototype.extend=function(rectangle){this.minX=Math.min(this.minX,rectangle.minX);this.minY=Math.min(this.minY,rectangle.minY);this.maxX=Math.max(this.maxX,rectangle.maxX);this.maxY=Math.max(this.maxY,rectangle.maxY)};ol.Rectangle.prototype.getCenter=function(){return new ol.Coordinate((this.minX+this.maxX)/2,(this.minY+this.maxY)/2)};ol.Rectangle.prototype.getHeight=function(){return this.maxY-this.minY};ol.Rectangle.prototype.getSize=function(){return new ol.Size(this.getWidth(),this.getHeight())}; ol.Rectangle.prototype.getWidth=function(){return this.maxX-this.minX};ol.Rectangle.prototype.intersects=function(rectangle){return this.minX<=rectangle.maxX&&this.maxX>=rectangle.minX&&this.minY<=rectangle.maxY&&this.maxY>=rectangle.minY};ol.Rectangle.prototype.normalize=function(coordinate){return new ol.Coordinate((coordinate.x-this.minX)/this.getWidth(),(coordinate.y-this.minY)/this.getHeight())}; -ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"};ol.Rectangle.prototype.scaleFromCenter=function(value){var deltaX=this.getWidth()/2*(value-1);var deltaY=this.getHeight()/2*(value-1);this.minX-=deltaX;this.minY-=deltaY;this.maxX+=deltaX;this.maxY+=deltaY};goog.provide("ol.TransformFunction");goog.require("ol.Coordinate");ol.TransformFunction;goog.provide("ol.Extent");goog.require("ol.Coordinate");goog.require("ol.Rectangle");goog.require("ol.TransformFunction");ol.Extent=function(minX,minY,maxX,maxY){goog.base(this,minX,minY,maxX,maxY)};goog.inherits(ol.Extent,ol.Rectangle); +ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"};ol.Rectangle.prototype.scaleFromCenter=function(value){var deltaX=this.getWidth()/2*(value-1);var deltaY=this.getHeight()/2*(value-1);this.minX-=deltaX;this.minY-=deltaY;this.maxX+=deltaX;this.maxY+=deltaY};goog.provide("ol.TransformFunction");ol.TransformFunction;goog.provide("ol.Extent");goog.require("ol.Coordinate");goog.require("ol.Rectangle");goog.require("ol.TransformFunction");ol.Extent=function(minX,minY,maxX,maxY){goog.base(this,minX,minY,maxX,maxY)};goog.inherits(ol.Extent,ol.Rectangle); ol.Extent.boundingExtent=function(var_args){var coordinate0=arguments[0];var extent=new ol.Extent(coordinate0.x,coordinate0.y,coordinate0.x,coordinate0.y);var i;for(i=1;i0&&this.tilesLoading_>1){var lIndex=this.getLeftChildIndex_(index);var rIndex=this.getRightChildIndex_(index);var smallerChildIndex=rIndexstartIndex){var parentIndex=this.getParentIndex_(index);if(heap[parentIndex][0]>node[0]){heap[index]=heap[parentIndex];index=parentIndex}else break}heap[index]=node}; -ol.TileQueue.prototype.reprioritize=function(){var heap=this.heap_;var i,n=0,node,priority,tile,tileCenter,tileKey,tileSourceKey;for(i=0;i1?opt_dimension:2,output=opt_output;if(!goog.isDef(output))if(dimension>2)output=input.slice(); +else output=new Array(length);goog.asserts.assert(output.length%dimension===0);var proj4jsPoint;for(var i=0;i=0)};goog.provide("ol.easing");ol.easing.linear=function(t){return t};ol.easing.upAndDown=function(t){if(t<0.5)return goog.fx.easing.inAndOut(2*t);else return 1-goog.fx.easing.inAndOut(2*(t-0.5))};ol.easing.elastic=function(t){return Math.pow(2,-10*t)*Math.sin((t-0.075)*2*Math.PI/0.3)+1};ol.easing.bounce=function(t){var s=7.5625,p=2.75,l;if(t<1/p)l=s*t*t;else if(t<2/p){t-=1.5/p;l=s*t*t+0.75}else if(t<2.5/p){t-=2.25/p;l=s*t*t+0.9375}else{t-=2.625/p;l=s*t*t+0.984375}return l};goog.provide("ol.animation");goog.require("goog.fx.easing");goog.require("ol.PreRenderFunction");goog.require("ol.ViewHint");goog.require("ol.easing"); ol.animation.bounce=function(options){var resolution=options.resolution;var start=goog.isDef(options.start)?options.start:goog.now();var duration=goog.isDef(options.duration)?options.duration:1E3;var easing=goog.isDef(options.easing)?options.easing:ol.easing.upAndDown;return function(map,frameState){if(frameState.time=1);var centroid=ol.interaction.Touch.centroid(this.targetTouches);if(!goog.isNull(this.lastCentroid)){this.kinetic_.update(centroid.x,centroid.y);var deltaX=this.lastCentroid.x-centroid.x;var deltaY=centroid.y-this.lastCentroid.y;var view=mapBrowserEvent.map.getView();var center=(new ol.Coordinate(deltaX,deltaY)).scale(view.getResolution()).rotate(view.getRotation()).add(view.getCenter()); +this.handleTouchStart(mapBrowserEvent)};goog.provide("ol.interaction.TouchPan");goog.require("goog.asserts");goog.require("ol.Coordinate");goog.require("ol.Kinetic");goog.require("ol.Pixel");goog.require("ol.PreRenderFunction");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchPan=function(opt_kinetic){goog.base(this);this.kinetic_=opt_kinetic;this.kineticPreRenderFn_=null;this.lastCentroid=null};goog.inherits(ol.interaction.TouchPan,ol.interaction.Touch); +ol.interaction.TouchPan.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=1);var centroid=ol.interaction.Touch.centroid(this.targetTouches);if(!goog.isNull(this.lastCentroid)){if(this.kinetic_)this.kinetic_.update(centroid.x,centroid.y);var deltaX=this.lastCentroid.x-centroid.x;var deltaY=centroid.y-this.lastCentroid.y;var view=mapBrowserEvent.map.getView();var center=(new ol.Coordinate(deltaX,deltaY)).scale(view.getResolution()).rotate(view.getRotation()).add(view.getCenter()); view.setCenter(center)}this.lastCentroid=centroid}; -ol.interaction.TouchPan.prototype.handleTouchEnd=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();if(this.targetTouches.length==0){view.setHint(ol.ViewHint.PANNING,-1);if(this.kinetic_.end()){var distance=this.kinetic_.getDistance();var angle=this.kinetic_.getAngle();var center=view.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(center);map.addPreRenderFunction(this.kineticPreRenderFn_);var centerpx=map.getPixelFromCoordinate(center);var destpx=new ol.Pixel(centerpx.x- -distance*Math.cos(angle),centerpx.y-distance*Math.sin(angle));var dest=map.getCoordinateFromPixel(destpx);view.setCenter(dest)}return false}else return true}; -ol.interaction.TouchPan.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=1){var map=mapBrowserEvent.map;var view=map.getView();this.lastCentroid=null;if(!goog.isNull(this.kineticPreRenderFn_)&&map.removePreRenderFunction(this.kineticPreRenderFn_)){map.requestRenderFrame();view.setCenter(mapBrowserEvent.frameState.view2DState.center);this.kineticPreRenderFn_=null}this.kinetic_.begin();view.setHint(ol.ViewHint.PANNING,1);return true}else return false};goog.provide("ol.interaction.TouchRotateAndZoom");goog.require("goog.asserts");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchRotateAndZoom=function(){goog.base(this);this.lastAngle_;this.lastDistance_;this.rotating_=false;this.rotationDelta_=0;this.rotationThreshold_=0.3};goog.inherits(ol.interaction.TouchRotateAndZoom,ol.interaction.Touch); -ol.interaction.TouchRotateAndZoom.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=2);var scaleDelta=1;var rotationDelta=0;var centroid=ol.interaction.Touch.centroid(this.targetTouches);var touch0=this.targetTouches[0];var touch1=this.targetTouches[1];var dx=touch0.clientX-touch1.clientX;var dy=touch0.clientY-touch1.clientY;var angle=Math.atan2(touch1.clientY-touch0.clientY,touch1.clientX-touch0.clientX);var distance=Math.sqrt(dx*dx+dy*dy);if(goog.isDef(this.lastDistance_))scaleDelta= -this.lastDistance_/distance;this.lastDistance_=distance;if(goog.isDef(this.lastAngle_)){var delta=angle-this.lastAngle_;this.rotationDelta_+=delta;if(!this.rotating_&&Math.abs(this.rotationDelta_)>this.rotationThreshold_)this.rotating_=true;rotationDelta=delta}this.lastAngle_=angle;var map=mapBrowserEvent.map;var view=map.getView();var viewportPosition=goog.style.getClientPosition(map.getViewport());centroid.x-=viewportPosition.x;centroid.y-=viewportPosition.y;var anchor=map.getCoordinateFromPixel(centroid); -view.zoom_(map,view.getResolution()*scaleDelta,anchor);if(this.rotating_)view.rotate(map,view.getRotation()+rotationDelta,anchor)};ol.interaction.TouchRotateAndZoom.prototype.handleTouchEnd=function(mapBrowserEvent){if(this.targetTouches.length<2){var map=mapBrowserEvent.map;var view=map.getView();view.zoomToResolution(map,view.getResolution());view.setHint(ol.ViewHint.PANNING,-1);return false}else return true}; -ol.interaction.TouchRotateAndZoom.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=2){var view=mapBrowserEvent.map.getView();this.lastDistance_=undefined;this.lastAngle_=undefined;this.rotating_=false;this.rotationDelta_=0;view.setHint(ol.ViewHint.PANNING,1);return true}else return false};goog.provide("ol.projection.EPSG3857");goog.require("goog.array");goog.require("ol.Coordinate");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.projection");ol.projection.EPSG3857=function(code){goog.base(this,code,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS; +ol.interaction.TouchPan.prototype.handleTouchEnd=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();if(this.targetTouches.length==0){view.setHint(ol.ViewHint.INTERACTING,-1);if(this.kinetic_&&this.kinetic_.end()){var distance=this.kinetic_.getDistance();var angle=this.kinetic_.getAngle();var center=view.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(center);map.addPreRenderFunction(this.kineticPreRenderFn_);var centerpx=map.getPixelFromCoordinate(center);var destpx= +new ol.Pixel(centerpx.x-distance*Math.cos(angle),centerpx.y-distance*Math.sin(angle));var dest=map.getCoordinateFromPixel(destpx);view.setCenter(dest)}return false}else{this.lastCentroid=null;return true}}; +ol.interaction.TouchPan.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=1){var map=mapBrowserEvent.map;var view=map.getView();this.lastCentroid=null;if(!goog.isNull(this.kineticPreRenderFn_)&&map.removePreRenderFunction(this.kineticPreRenderFn_)){map.requestRenderFrame();view.setCenter(mapBrowserEvent.frameState.view2DState.center);this.kineticPreRenderFn_=null}if(this.kinetic_)this.kinetic_.begin();view.setHint(ol.ViewHint.INTERACTING,1);return true}else return false};goog.provide("ol.interaction.TouchRotate");goog.require("goog.asserts");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchRotate=function(opt_threshold){goog.base(this);this.lastAngle_;this.rotating_=false;this.rotationDelta_=0;this.threshold_=goog.isDef(opt_threshold)?opt_threshold:0.3};goog.inherits(ol.interaction.TouchRotate,ol.interaction.Touch); +ol.interaction.TouchRotate.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=2);var rotationDelta=0;var touch0=this.targetTouches[0];var touch1=this.targetTouches[1];var dx=touch0.clientX-touch1.clientX;var dy=touch0.clientY-touch1.clientY;var angle=Math.atan2(touch1.clientY-touch0.clientY,touch1.clientX-touch0.clientX);if(goog.isDef(this.lastAngle_)){var delta=angle-this.lastAngle_;this.rotationDelta_+=delta;if(!this.rotating_&&Math.abs(this.rotationDelta_)> +this.threshold_)this.rotating_=true;rotationDelta=delta}this.lastAngle_=angle;var map=mapBrowserEvent.map;var view=map.getView();var viewportPosition=goog.style.getClientPosition(map.getViewport());var centroid=ol.interaction.Touch.centroid(this.targetTouches);centroid.x-=viewportPosition.x;centroid.y-=viewportPosition.y;var anchor=map.getCoordinateFromPixel(centroid);if(this.rotating_)view.rotate(map,view.getRotation()+rotationDelta,anchor)}; +ol.interaction.TouchRotate.prototype.handleTouchEnd=function(mapBrowserEvent){if(this.targetTouches.length<2){var map=mapBrowserEvent.map;var view=map.getView();view.setHint(ol.ViewHint.INTERACTING,-1);return false}else return true};ol.interaction.TouchRotate.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=2){var view=mapBrowserEvent.map.getView();this.lastAngle_=undefined;this.rotating_=false;this.rotationDelta_=0;view.setHint(ol.ViewHint.INTERACTING,1);return true}else return false};goog.provide("ol.interaction.TouchZoom");goog.require("goog.asserts");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchZoom=function(){goog.base(this);this.lastDistance_};goog.inherits(ol.interaction.TouchZoom,ol.interaction.Touch); +ol.interaction.TouchZoom.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=2);var scaleDelta=1;var touch0=this.targetTouches[0];var touch1=this.targetTouches[1];var dx=touch0.clientX-touch1.clientX;var dy=touch0.clientY-touch1.clientY;var distance=Math.sqrt(dx*dx+dy*dy);if(goog.isDef(this.lastDistance_))scaleDelta=this.lastDistance_/distance;this.lastDistance_=distance;var map=mapBrowserEvent.map;var view=map.getView();var viewportPosition=goog.style.getClientPosition(map.getViewport()); +var centroid=ol.interaction.Touch.centroid(this.targetTouches);centroid.x-=viewportPosition.x;centroid.y-=viewportPosition.y;var anchor=map.getCoordinateFromPixel(centroid);view.zoom_(map,view.getResolution()*scaleDelta,anchor)};ol.interaction.TouchZoom.prototype.handleTouchEnd=function(mapBrowserEvent){if(this.targetTouches.length<2){var map=mapBrowserEvent.map;var view=map.getView();view.zoomToResolution(map,view.getResolution());view.setHint(ol.ViewHint.INTERACTING,-1);return false}else return true}; +ol.interaction.TouchZoom.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=2){var view=mapBrowserEvent.map.getView();this.lastDistance_=undefined;view.setHint(ol.ViewHint.INTERACTING,1);return true}else return false};goog.provide("ol.math");ol.math.cosh=function(x){return(Math.exp(x)+Math.exp(-x))/2};ol.math.coth=function(x){var expMinusTwoX=Math.exp(-2*x);return(1+expMinusTwoX)/(1-expMinusTwoX)};ol.math.csch=function(x){return 2/(Math.exp(x)-Math.exp(-x))};ol.math.sech=function(x){return 2/(Math.exp(x)+Math.exp(-x))};ol.math.sinh=function(x){return(Math.exp(x)-Math.exp(-x))/2};ol.math.tanh=function(x){var expMinusTwoX=Math.exp(-2*x);return(1-expMinusTwoX)/(1+expMinusTwoX)};goog.provide("ol.projection.EPSG3857");goog.require("goog.array");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.math");goog.require("ol.projection");ol.projection.EPSG3857=function(code){goog.base(this,code,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS; ol.projection.EPSG3857.EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE);ol.projection.EPSG3857.CODES=["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"];ol.projection.EPSG3857.PROJECTIONS=goog.array.map(ol.projection.EPSG3857.CODES,function(code){return new ol.projection.EPSG3857(code)}); -ol.projection.EPSG3857.fromEPSG4326=function(point){var x=ol.projection.EPSG3857.RADIUS*Math.PI*point.x/180;var y=ol.projection.EPSG3857.RADIUS*Math.log(Math.tan(Math.PI*(point.y+90)/360));return new ol.Coordinate(x,y)};ol.projection.EPSG3857.toEPSG4326=function(point){var x=180*point.x/(ol.projection.EPSG3857.RADIUS*Math.PI);var y=360*Math.atan(Math.exp(point.y/ol.projection.EPSG3857.RADIUS))/Math.PI-90;return new ol.Coordinate(x,y)};goog.provide("ol.projection.EPSG4326");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.projection");ol.projection.EPSG4326=function(code,opt_axisOrientation){goog.base(this,code,ol.ProjectionUnits.DEGREES,ol.projection.EPSG4326.EXTENT,opt_axisOrientation)};goog.inherits(ol.projection.EPSG4326,ol.Projection);ol.projection.EPSG4326.EXTENT=new ol.Extent(-180,-90,180,90); -ol.projection.EPSG4326.PROJECTIONS=[new ol.projection.EPSG4326("CRS:84"),new ol.projection.EPSG4326("EPSG:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:OGC:1.3:CRS84")];goog.provide("ol.projection.addCommonProjections");goog.require("ol.projection");goog.require("ol.projection.EPSG3857");goog.require("ol.projection.EPSG4326");ol.projection.addCommonProjections=function(){ol.projection.addEquivalentProjections(ol.projection.EPSG3857.PROJECTIONS);ol.projection.addEquivalentProjections(ol.projection.EPSG4326.PROJECTIONS);ol.projection.addEquivalentTransforms(ol.projection.EPSG4326.PROJECTIONS,ol.projection.EPSG3857.PROJECTIONS,ol.projection.EPSG3857.fromEPSG4326,ol.projection.EPSG3857.toEPSG4326)};goog.provide("ol.Image");goog.provide("ol.ImageState");goog.require("goog.array");goog.require("goog.events");goog.require("goog.events.EventTarget");goog.require("goog.events.EventType");goog.require("ol.Attribution");goog.require("ol.Extent");ol.ImageState={IDLE:0,LOADING:1,LOADED:2,ERROR:3}; +ol.projection.EPSG3857.fromEPSG4326=function(input,opt_output,opt_dimension){var length=input.length,dimension=opt_dimension>1?opt_dimension:2,output=opt_output;if(!goog.isDef(output))if(dimension>2)output=input.slice();else output=new Array(length);goog.asserts.assert(output.length%dimension===0);for(var i=0;i1?opt_dimension:2,output=opt_output;if(!goog.isDef(output))if(dimension>2)output=input.slice();else output=new Array(length);goog.asserts.assert(output.length%dimension===0);for(var i=0;i=0){if(callback.call(opt_obj,z,this.getTileRangeForExtentAndZ(tileCoordExtent,z)))return;--z}}; +ol.tilegrid.TileGrid=function(tileGridOptions){this.resolutions_=tileGridOptions.resolutions;goog.asserts.assert(goog.array.isSorted(this.resolutions_,function(a,b){return b-a},true));this.numResolutions_=this.resolutions_.length;this.origin_=goog.isDef(tileGridOptions.origin)?tileGridOptions.origin:null;this.origins_=null;if(goog.isDef(tileGridOptions.origins)){this.origins_=tileGridOptions.origins;goog.asserts.assert(this.origins_.length==this.resolutions_.length)}goog.asserts.assert(goog.isNull(this.origin_)&& +!goog.isNull(this.origins_)||!goog.isNull(this.origin_)&&goog.isNull(this.origins_));this.tileSizes_=null;if(goog.isDef(tileGridOptions.tileSizes)){this.tileSizes_=tileGridOptions.tileSizes;goog.asserts.assert(this.tileSizes_.length==this.resolutions_.length)}this.tileSize_=goog.isDef(tileGridOptions.tileSize)?tileGridOptions.tileSize:goog.isNull(this.tileSizes_)?new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE):null;goog.asserts.assert(goog.isNull(this.tileSize_)&&!goog.isNull(this.tileSizes_)|| +!goog.isNull(this.tileSize_)&&goog.isNull(this.tileSizes_))};ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange=function(tileCoord,callback,opt_obj){var tileCoordExtent=this.getTileCoordExtent(tileCoord);var z=tileCoord.z-1;while(z>=0){if(callback.call(opt_obj,z,this.getTileRangeForExtentAndZ(tileCoordExtent,z)))return;--z}}; ol.tilegrid.TileGrid.prototype.getOrigin=function(z){if(!goog.isNull(this.origin_))return this.origin_;else{goog.asserts.assert(!goog.isNull(this.origins_));goog.asserts.assert(0<=z&&z=0;--j)if(j in this.tileLayerZs_){goog.dom.insertSiblingAfter(tileLayerZ.target,this.tileLayerZs_[j].target);break}if(j<0)goog.dom.insertChildAt(this.target,tileLayerZ.target,0)}else if(!frameState.viewHints[ol.ViewHint.ANIMATING]&& -!frameState.viewHints[ol.ViewHint.PANNING])tileLayerZ.removeTilesOutsideExtent(frameState.extent)}if(layerState.opacity!=this.renderedOpacity_){goog.style.setOpacity(this.target,layerState.opacity);this.renderedOpacity_=layerState.opacity}if(layerState.visible&&!this.renderedVisible_){goog.style.showElement(this.target,true);this.renderedVisible_=true}this.updateUsedTiles(frameState.usedTiles,tileSource,z,tileRange);tileSource.useLowResolutionTiles(z,frameState.extent);this.scheduleExpireCache(frameState, +!frameState.viewHints[ol.ViewHint.INTERACTING])tileLayerZ.removeTilesOutsideExtent(frameState.extent)}if(layerState.opacity!=this.renderedOpacity_){goog.style.setOpacity(this.target,layerState.opacity);this.renderedOpacity_=layerState.opacity}if(layerState.visible&&!this.renderedVisible_){goog.style.showElement(this.target,true);this.renderedVisible_=true}this.updateUsedTiles(frameState.usedTiles,tileSource,z,tileRange);tileSource.useLowResolutionTiles(z,frameState.extent);this.scheduleExpireCache(frameState, tileSource)};ol.renderer.dom.TileLayerZ_=function(tileGrid,tileCoordOrigin){this.target=goog.dom.createElement(goog.dom.TagName.DIV);this.target.style.position="absolute";this.tileGrid_=tileGrid;this.tileCoordOrigin_=tileCoordOrigin;this.origin_=tileGrid.getTileCoordExtent(tileCoordOrigin).getTopLeft();this.resolution_=tileGrid.getResolution(tileCoordOrigin.z);this.tiles_={};this.documentFragment_=null;this.transform_=goog.vec.Mat4.createNumberIdentity()}; -ol.renderer.dom.TileLayerZ_.prototype.addTile=function(tile){var tileCoord=tile.tileCoord;goog.asserts.assert(tileCoord.z==this.tileCoordOrigin_.z);var tileCoordKey=tileCoord.toString();if(tileCoordKey in this.tiles_)return;var tileSize=this.tileGrid_.getTileSize();var image=tile.getImage(this);var style=image.style;style.position="absolute";style.left=(tileCoord.x-this.tileCoordOrigin_.x)*tileSize.width+"px";style.top=(this.tileCoordOrigin_.y-tileCoord.y)*tileSize.height+"px";if(goog.isNull(this.documentFragment_))this.documentFragment_= +ol.renderer.dom.TileLayerZ_.prototype.addTile=function(tile){var tileCoord=tile.tileCoord;goog.asserts.assert(tileCoord.z==this.tileCoordOrigin_.z);var tileCoordKey=tileCoord.toString();if(tileCoordKey in this.tiles_)return;var tileSize=this.tileGrid_.getTileSize(tileCoord.z);var image=tile.getImage(this);var style=image.style;style.position="absolute";style.left=(tileCoord.x-this.tileCoordOrigin_.x)*tileSize.width+"px";style.top=(this.tileCoordOrigin_.y-tileCoord.y)*tileSize.height+"px";if(goog.isNull(this.documentFragment_))this.documentFragment_= document.createDocumentFragment();goog.dom.appendChild(this.documentFragment_,image);this.tiles_[tileCoordKey]=tile};ol.renderer.dom.TileLayerZ_.prototype.finalizeAddTiles=function(){if(!goog.isNull(this.documentFragment_)){goog.dom.appendChild(this.target,this.documentFragment_);this.documentFragment_=null}};ol.renderer.dom.TileLayerZ_.prototype.getOrigin=function(){return this.origin_};ol.renderer.dom.TileLayerZ_.prototype.getResolution=function(){return this.resolution_}; ol.renderer.dom.TileLayerZ_.prototype.removeTilesOutsideExtent=function(extent){var tileRange=this.tileGrid_.getTileRangeForExtentAndZ(extent,this.tileCoordOrigin_.z);var tilesToRemove=[];var tile,tileCoordKey;for(tileCoordKey in this.tiles_){tile=this.tiles_[tileCoordKey];if(!tileRange.contains(tile.tileCoord))tilesToRemove.push(tile)}var i;for(i=0;i="1.3"?"CRS":"SRS"]=projection.getCode();goog.object.extend(baseParams,tiledWMSOptions.params);var axisOrientation=projection.getAxisOrientation();var tileUrlFunction;if(tiledWMSOptions.urls){var tileUrlFunctions=goog.array.map(tiledWMSOptions.urls,function(url){url= -goog.uri.utils.appendParamsFromMap(url,baseParams);return ol.TileUrlFunction.createBboxParam(url,tileGrid,axisOrientation)});tileUrlFunction=ol.TileUrlFunction.createFromTileUrlFunctions(tileUrlFunctions)}else if(tiledWMSOptions.url){var url=goog.uri.utils.appendParamsFromMap(tiledWMSOptions.url,baseParams);tileUrlFunction=ol.TileUrlFunction.createBboxParam(url,tileGrid,axisOrientation)}else tileUrlFunction=ol.TileUrlFunction.nullTileUrlFunction;var tileCoordTransform=function(tileCoord){if(tileGrid.getResolutions().length<= -tileCoord.z)return null;var x=tileCoord.x;var tileExtent=tileGrid.getTileCoordExtent(tileCoord);if(extent.minX===projectionExtent.minX&&extent.maxX===projectionExtent.maxX){var numCols=Math.ceil((extent.maxX-extent.minX)/(tileExtent.maxX-tileExtent.minX));x=goog.math.modulo(x,numCols);tileExtent=tileGrid.getTileCoordExtent(new ol.TileCoord(tileCoord.z,x,tileCoord.y))}if(!tileExtent.intersects(extent))return null;return new ol.TileCoord(tileCoord.z,x,tileCoord.y)};goog.base(this,{attributions:tiledWMSOptions.attributions, -crossOrigin:tiledWMSOptions.crossOrigin,extent:extent,tileGrid:tileGrid,projection:projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(tileCoordTransform,tileUrlFunction)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);goog.require("ol");goog.require("ol.AnchoredElement");goog.require("ol.AnchoredElementPositioning");goog.require("ol.AnchoredElementProperty");goog.require("ol.Attribution");goog.require("ol.BingMapsStyle");goog.require("ol.BrowserFeature");goog.require("ol.Collection");goog.require("ol.CollectionEvent");goog.require("ol.CollectionEventType");goog.require("ol.Color");goog.require("ol.Constraints");goog.require("ol.Coordinate");goog.require("ol.CoordinateFormatType");goog.require("ol.Ellipsoid");goog.require("ol.Extent"); +var baseParams={"SERVICE":"WMS","VERSION":version,"REQUEST":"GetMap","STYLES":"","FORMAT":"image/png","TRANSPARENT":true};baseParams[version>="1.3"?"CRS":"SRS"]=projection.getCode();goog.object.extend(baseParams,tiledWMSOptions.params);var axisOrientation=projection.getAxisOrientation();var tileUrlFunction;if(tiledWMSOptions.urls){var tileUrlFunctions=goog.array.map(tiledWMSOptions.urls,function(url){url=goog.uri.utils.appendParamsFromMap(url,baseParams);return ol.TileUrlFunction.createBboxParam(url, +tileGrid,axisOrientation)});tileUrlFunction=ol.TileUrlFunction.createFromTileUrlFunctions(tileUrlFunctions)}else if(tiledWMSOptions.url){var url=goog.uri.utils.appendParamsFromMap(tiledWMSOptions.url,baseParams);tileUrlFunction=ol.TileUrlFunction.createBboxParam(url,tileGrid,axisOrientation)}else tileUrlFunction=ol.TileUrlFunction.nullTileUrlFunction;var tileCoordTransform=function(tileCoord){if(tileGrid.getResolutions().length<=tileCoord.z)return null;var x=tileCoord.x;var tileExtent=tileGrid.getTileCoordExtent(tileCoord); +if(extent.minX===projectionExtent.minX&&extent.maxX===projectionExtent.maxX){var numCols=Math.ceil((extent.maxX-extent.minX)/(tileExtent.maxX-tileExtent.minX));x=goog.math.modulo(x,numCols);tileExtent=tileGrid.getTileCoordExtent(new ol.TileCoord(tileCoord.z,x,tileCoord.y))}if(!tileExtent.intersects(extent))return null;return new ol.TileCoord(tileCoord.z,x,tileCoord.y)};goog.base(this,{attributions:tiledWMSOptions.attributions,crossOrigin:tiledWMSOptions.crossOrigin,extent:extent,tileGrid:tileGrid, +projection:projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(tileCoordTransform,tileUrlFunction)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);goog.provide("ol.sphere.WGS84");goog.require("ol.Sphere");ol.sphere.WGS84=new ol.Sphere(6378137);goog.require("ol");goog.require("ol.AnchoredElement");goog.require("ol.AnchoredElementPositioning");goog.require("ol.AnchoredElementProperty");goog.require("ol.Attribution");goog.require("ol.BingMapsStyle");goog.require("ol.BrowserFeature");goog.require("ol.Collection");goog.require("ol.CollectionEvent");goog.require("ol.CollectionEventType");goog.require("ol.Color");goog.require("ol.Constraints");goog.require("ol.Coordinate");goog.require("ol.CoordinateFormatType");goog.require("ol.Ellipsoid");goog.require("ol.Extent"); goog.require("ol.FrameState");goog.require("ol.Geolocation");goog.require("ol.GeolocationProperty");goog.require("ol.IView");goog.require("ol.IView2D");goog.require("ol.IView3D");goog.require("ol.Image");goog.require("ol.ImageState");goog.require("ol.ImageTile");goog.require("ol.ImageUrlFunction");goog.require("ol.ImageUrlFunctionType");goog.require("ol.Kinetic");goog.require("ol.Map");goog.require("ol.MapBrowserEvent");goog.require("ol.MapBrowserEvent.EventType");goog.require("ol.MapBrowserEventHandler"); goog.require("ol.MapEvent");goog.require("ol.MapEventType");goog.require("ol.MapProperty");goog.require("ol.Object");goog.require("ol.ObjectEventType");goog.require("ol.Pixel");goog.require("ol.PixelBounds");goog.require("ol.PostRenderFunction");goog.require("ol.PreRenderFunction");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.Rectangle");goog.require("ol.RendererHint");goog.require("ol.RendererHints");goog.require("ol.ResolutionConstraint");goog.require("ol.ResolutionConstraintType"); goog.require("ol.RotationConstraint");goog.require("ol.RotationConstraintType");goog.require("ol.Size");goog.require("ol.Sphere");goog.require("ol.Tile");goog.require("ol.TileCache");goog.require("ol.TileCoord");goog.require("ol.TilePriorityFunction");goog.require("ol.TileQueue");goog.require("ol.TileRange");goog.require("ol.TileState");goog.require("ol.TileUrlFunction");goog.require("ol.TileUrlFunctionType");goog.require("ol.TransformFunction");goog.require("ol.View");goog.require("ol.View2D");goog.require("ol.View2DProperty"); goog.require("ol.View2DState");goog.require("ol.ViewHint");goog.require("ol.animation");goog.require("ol.array");goog.require("ol.canvas");goog.require("ol.control.Attribution");goog.require("ol.control.Control");goog.require("ol.control.ControlOptions");goog.require("ol.control.DragBox");goog.require("ol.control.MousePosition");goog.require("ol.control.Zoom");goog.require("ol.dom");goog.require("ol.dom.BrowserFeature");goog.require("ol.easing");goog.require("ol.ellipsoid.WGS84");goog.require("ol.interaction.ConditionType"); goog.require("ol.interaction.DblClickZoom");goog.require("ol.interaction.Drag");goog.require("ol.interaction.DragPan");goog.require("ol.interaction.DragRotate");goog.require("ol.interaction.DragRotateAndZoom");goog.require("ol.interaction.DragZoom");goog.require("ol.interaction.Interaction");goog.require("ol.interaction.Keyboard");goog.require("ol.interaction.KeyboardPan");goog.require("ol.interaction.KeyboardZoom");goog.require("ol.interaction.MouseWheelZoom");goog.require("ol.interaction.Touch"); -goog.require("ol.interaction.TouchPan");goog.require("ol.interaction.TouchRotateAndZoom");goog.require("ol.interaction.condition");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.Layer");goog.require("ol.layer.LayerProperty");goog.require("ol.layer.LayerState");goog.require("ol.layer.TileLayer");goog.require("ol.parser.XML");goog.require("ol.parser.ogc.ExceptionReport");goog.require("ol.parser.ogc.OWSCommon_v1");goog.require("ol.parser.ogc.OWSCommon_v1_1_0");goog.require("ol.parser.ogc.Versioned"); -goog.require("ol.parser.ogc.WMSCapabilities");goog.require("ol.parser.ogc.WMSCapabilities_v1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_0");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC");goog.require("ol.parser.ogc.WMSCapabilities_v1_3_0");goog.require("ol.parser.ogc.WMTSCapabilities");goog.require("ol.parser.ogc.WMTSCapabilities_v1_0_0");goog.require("ol.renderer.Layer");goog.require("ol.renderer.Map"); -goog.require("ol.renderer.canvas.ImageLayer");goog.require("ol.renderer.canvas.Layer");goog.require("ol.renderer.canvas.Map");goog.require("ol.renderer.canvas.SUPPORTED");goog.require("ol.renderer.canvas.TileLayer");goog.require("ol.renderer.dom.ImageLayer");goog.require("ol.renderer.dom.Layer");goog.require("ol.renderer.dom.Map");goog.require("ol.renderer.dom.SUPPORTED");goog.require("ol.renderer.dom.TileLayer");goog.require("ol.renderer.webgl.FragmentShader");goog.require("ol.renderer.webgl.ImageLayer"); -goog.require("ol.renderer.webgl.Layer");goog.require("ol.renderer.webgl.Map");goog.require("ol.renderer.webgl.SUPPORTED");goog.require("ol.renderer.webgl.TileLayer");goog.require("ol.renderer.webgl.VertexShader");goog.require("ol.renderer.webgl.map.shader");goog.require("ol.renderer.webgl.tilelayerrenderer");goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Fragment");goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Vertex");goog.require("ol.source.BingMaps");goog.require("ol.source.DebugTileSource"); -goog.require("ol.source.ImageSource");goog.require("ol.source.ImageTileSource");goog.require("ol.source.ImageTileSourceOptions");goog.require("ol.source.MapQuestOSM");goog.require("ol.source.MapQuestOpenAerial");goog.require("ol.source.OpenStreetMap");goog.require("ol.source.SingleImageWMS");goog.require("ol.source.Source");goog.require("ol.source.Stamen");goog.require("ol.source.StamenFlavor");goog.require("ol.source.StamenProvider");goog.require("ol.source.StaticImage");goog.require("ol.source.TileJSON"); -goog.require("ol.source.TileSource");goog.require("ol.source.TileSourceOptions");goog.require("ol.source.TiledWMS");goog.require("ol.source.XYZ");goog.require("ol.source.XYZOptions");goog.require("ol.structs.LRUCache");goog.require("ol.tilegrid.TileGrid");goog.require("ol.tilegrid.XYZ");goog.require("ol.tilejson");goog.require("ol.vec.Mat4");goog.require("ol.webgl");goog.require("ol.webgl.WebGLContextEventType");goog.provide("ol.AnchoredElementOptionsType");goog.provide("ol.MapOptionsType");goog.provide("ol.View2DOptionsType");goog.provide("ol.animation.BounceOptionsType");goog.provide("ol.animation.PanOptionsType");goog.provide("ol.animation.RotateOptionsType");goog.provide("ol.animation.ZoomOptionsType");goog.provide("ol.control.AttributionOptionsType");goog.provide("ol.control.MousePositionOptionsType");goog.provide("ol.control.ZoomOptionsType");goog.provide("ol.layer.LayerOptionsType");goog.provide("ol.source.BingMapsOptionsType"); +goog.require("ol.interaction.TouchPan");goog.require("ol.interaction.TouchRotate");goog.require("ol.interaction.TouchZoom");goog.require("ol.interaction.condition");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.Layer");goog.require("ol.layer.LayerProperty");goog.require("ol.layer.LayerState");goog.require("ol.layer.TileLayer");goog.require("ol.math");goog.require("ol.parser.XML");goog.require("ol.parser.ogc.ExceptionReport");goog.require("ol.parser.ogc.OWSCommon_v1");goog.require("ol.parser.ogc.OWSCommon_v1_1_0"); +goog.require("ol.parser.ogc.Versioned");goog.require("ol.parser.ogc.WMSCapabilities");goog.require("ol.parser.ogc.WMSCapabilities_v1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_0");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC");goog.require("ol.parser.ogc.WMSCapabilities_v1_3_0");goog.require("ol.parser.ogc.WMTSCapabilities");goog.require("ol.parser.ogc.WMTSCapabilities_v1_0_0"); +goog.require("ol.projection");goog.require("ol.projection.EPSG3857");goog.require("ol.projection.EPSG4326");goog.require("ol.projection.addCommonProjections");goog.require("ol.renderer.Layer");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.ImageLayer");goog.require("ol.renderer.canvas.Layer");goog.require("ol.renderer.canvas.Map");goog.require("ol.renderer.canvas.SUPPORTED");goog.require("ol.renderer.canvas.TileLayer");goog.require("ol.renderer.dom.ImageLayer");goog.require("ol.renderer.dom.Layer"); +goog.require("ol.renderer.dom.Map");goog.require("ol.renderer.dom.SUPPORTED");goog.require("ol.renderer.dom.TileLayer");goog.require("ol.renderer.webgl.FragmentShader");goog.require("ol.renderer.webgl.ImageLayer");goog.require("ol.renderer.webgl.Layer");goog.require("ol.renderer.webgl.Map");goog.require("ol.renderer.webgl.SUPPORTED");goog.require("ol.renderer.webgl.TileLayer");goog.require("ol.renderer.webgl.VertexShader");goog.require("ol.renderer.webgl.map.shader");goog.require("ol.renderer.webgl.tilelayerrenderer"); +goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Fragment");goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Vertex");goog.require("ol.source.BingMaps");goog.require("ol.source.DebugTileSource");goog.require("ol.source.ImageSource");goog.require("ol.source.ImageTileSource");goog.require("ol.source.ImageTileSourceOptions");goog.require("ol.source.MapQuestOSM");goog.require("ol.source.MapQuestOpenAerial");goog.require("ol.source.OpenStreetMap");goog.require("ol.source.SingleImageWMS"); +goog.require("ol.source.Source");goog.require("ol.source.Stamen");goog.require("ol.source.StamenFlavor");goog.require("ol.source.StamenProvider");goog.require("ol.source.StaticImage");goog.require("ol.source.TileJSON");goog.require("ol.source.TileSource");goog.require("ol.source.TileSourceOptions");goog.require("ol.source.TiledWMS");goog.require("ol.source.XYZ");goog.require("ol.source.XYZOptions");goog.require("ol.sphere.NORMAL");goog.require("ol.sphere.WGS84");goog.require("ol.structs.LRUCache"); +goog.require("ol.tilegrid.TileGrid");goog.require("ol.tilegrid.XYZ");goog.require("ol.tilejson");goog.require("ol.vec.Mat4");goog.require("ol.webgl");goog.require("ol.webgl.WebGLContextEventType");goog.provide("ol.AnchoredElementOptionsType");goog.provide("ol.MapOptionsType");goog.provide("ol.View2DOptionsType");goog.provide("ol.animation.BounceOptionsType");goog.provide("ol.animation.PanOptionsType");goog.provide("ol.animation.RotateOptionsType");goog.provide("ol.animation.ZoomOptionsType");goog.provide("ol.control.AttributionOptionsType");goog.provide("ol.control.MousePositionOptionsType");goog.provide("ol.control.ZoomOptionsType");goog.provide("ol.layer.LayerOptionsType");goog.provide("ol.source.BingMapsOptionsType"); goog.provide("ol.source.DebugTileSourceOptionsType");goog.provide("ol.source.SingleImageWMSOptionsType");goog.provide("ol.source.StamenOptionsType");goog.provide("ol.source.StaticImageOptionsType");goog.provide("ol.source.TiledWMSOptionsType");goog.provide("ol.tilegrid.TileGridOptionsType");goog.provide("ol.tilegrid.XYZOptionsType");ol.AnchoredElementOptions;ol.MapOptions;ol.View2DOptions;ol.animation.BounceOptions;ol.animation.PanOptions;ol.animation.RotateOptions;ol.animation.ZoomOptions;ol.control.AttributionOptions; ol.control.MousePositionOptions;ol.control.ZoomOptions;ol.layer.LayerOptions;ol.source.BingMapsOptions;ol.source.DebugTileSourceOptions;ol.source.SingleImageWMSOptions;ol.source.StamenOptions;ol.source.StaticImageOptions;ol.source.TiledWMSOptions;ol.tilegrid.TileGridOptions;ol.tilegrid.XYZOptions; diff --git a/master/build/ol.js b/master/build/ol.js index 7dcd13d471..803c96d5ae 100644 --- a/master/build/ol.js +++ b/master/build/ol.js @@ -1,224 +1,234 @@ -(function(){var h=void 0,i=!0,k=null,m=!1;function q(a){return function(){return this[a]}}var s,v=this;function x(){}function aa(a){a.Ya=function(){return a.lc?a.lc:a.lc=new a}} -function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; -else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function y(a){return a!==h}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){return"string"==typeof a}function ga(a){return"function"==ba(a)}function ha(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(a){return a[ia]||(a[ia]=++ja)}var ia="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ja=0; -function ka(a,b,c){return a.call.apply(a.bind,arguments)}function la(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(ua,">"));-1!=a.indexOf('"')&&(a=a.replace(va,"""));return a}var sa=/&/g,ta=//g,va=/\"/g,ra=/[&<>\"]/;var wa=Array.prototype,xa=wa.indexOf?function(a,b,c){return wa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ea(a))return!ea(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?wa.slice.call(a,b):wa.slice.call(a,b,c)}function Ga(a){wa.sort.call(a,Ha)}function Ha(a,b){return a>b?1:a2*this.m&&Ya(this),i):m};function Ya(a){if(a.m!=a.a.length){for(var b=0,c=0;bparseFloat(rb)){qb=String(vb);break a}}qb=rb}var xb={}; -function yb(a){var b;if(!(b=xb[a])){b=0;for(var c=String(qb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==n[2].length)<(0==r[2].length)?-1:(0==n[2].length)>(0==r[2].length)?1:0)||(n[2]r[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ea(c)&&c.match(/\S+/g)||[];for(var d=Fa(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c};function Gb(a,b){this.x=y(a)?a:0;this.y=y(b)?b:0}Gb.prototype.R=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}s=Hb.prototype;s.R=function(){return new Hb(this.width,this.height)};s.Ia=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Pa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; -function Nb(a){a=a.document.documentElement;return new Hb(a.clientWidth,a.clientHeight)}function Ob(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Cb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',qa(g.name),'"');if(g.type){f.push(' type="',qa(g.type),'"');var j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ea(g)?f.className=g:ca(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2=a.keyCode)a.keyCode=-1}catch(b){}};s.bd=q("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.xa=m;lc.prototype.a=m;lc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Nb||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var nc={},oc={},pc={},qc={}; -function H(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return i;a:{var p=m;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(n){p=i}if(p||f.returnValue==h)f.returnValue=i}}p=new hc;ic(p,f,this);f=i;try{if(j){for(var r=[],u=p.c;u;u=u.parentNode)r.push(u);g=e[i];g.P=g.m;for(var t=r.length- -1;!p.oa&&0<=t&&g.P;t--)p.c=r[t],f&=vc(g,r[t],d,i,p);if(l){g=e[m];g.P=g.m;for(t=0;!p.oa&&t=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ac(a,b){return yc(a,b)||zc(a,b)||a.style&&a.style[b]}function Bc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Cc(c,e);a.style.top=Cc(d,e)} -function Dc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} -function Ec(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Ac(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ac(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Fc(a,b){var c=Gc(a),d=Gc(b);return new Gb(c.x-d.x,c.y-d.y)} -function Gc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Dc(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Ac(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),l;d=e?Kb(e):document;if(l=F)if(l=!Ab(9))Ib(d),l=m;l=l?d.body:d.documentElement;if(a!=l)if(a.getBoundingClientRect)d=Dc(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a), -e=e.getBoxObjectFor(l),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Ac(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Ec(g))&&g!=e.body&&g!=l;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var p;F?p="-ms-transform":G?p="-webkit-transform": -lb?p="-o-transform":mb&&(p="-moz-transform");var n;p&&(n=Ac(a,p));n||(n=Ac(a,"transform"));n?(a=n.match(Hc),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else p=ga(a.bd),n=a,a.targetTouches?n=a.targetTouches[0]:p&&a.K.targetTouches&&(n=a.K.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Cc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ic(a,b){a.style.display=b?"":"none"} -function Jc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Kc(a,zc(a,"paddingLeft"));var e=Kc(a,zc(a,"paddingRight")),f=Kc(a,zc(a,"paddingTop")),g=Kc(a,zc(a,"paddingBottom"));d=new xc(f,e,g,d)}else d=yc(a,"paddingLeft"),e=yc(a,"paddingRight"),f=yc(a,"paddingTop"),g=yc(a,"paddingBottom"),d=new xc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Lc(a,"borderLeft"),f=Lc(a,"borderRight"),g=Lc(a,"borderTop"),j=Lc(a,"borderBottom"),e=new xc(g,f,j,e);else e=yc(a,"borderLeftWidth"), -f=yc(a,"borderRightWidth"),g=yc(a,"borderTopWidth"),j=yc(a,"borderBottomWidth"),e=new xc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,mb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"} -function Kc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Mc={thin:2,medium:4,thick:6};function Lc(a,b){if("none"==zc(a,b+"Style"))return 0;var c=zc(a,b+"Width");return c in Mc?Mc[c]:Kc(a,c)}var Hc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Nc(a,b){this.x=a;this.y=b}B(Nc,Gb);Nc.prototype.R=function(){return new Nc(this.x,this.y)};Nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Nc.call(this,a,b)}B(K,Nc);function Oc(a,b){var c=Fb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Qc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Rc(a,b,c){if(ca(b))for(var d=0;db)throw Error("Bad port number "+b);a.qb=b}else a.qb=k} -function Zc(a,b,c){Xc(a);if(b instanceof $c){a.a=b;b=a.a;if((a=a.ja)&&!b.b){fd(b);b.a=k;var d=b.C,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),gd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(da(d)||ea(d))D(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.N)if(da(d)||ea(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var bd=/[#\/\?@]/g,dd=/[\#\?:]/g,cd=/[\#\?]/g,hd=/[\#\?@]/g,ed=/#/g;function $c(a,b,c){this.a=a||k;this.b=!!c} -function fd(a){if(!a.C&&(a.C=new Wa,a.m=0,a.a))for(var b=a.a.split("&"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return m}} -function Dd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ed(a,b){Zb.call(this);a&&(this.gb&&Fd(this),this.Da=a,this.fb=H(this.Da,"keypress",this,b),this.Ob=H(this.Da,"keydown",this.a,b,this),this.gb=H(this.Da,"keyup",this.b,b,this))}B(Ed,qd);s=Ed.prototype;s.Da=k;s.fb=k;s.Ob=k;s.gb=k;s.da=-1;s.ca=-1;s.Ab=m; -var Gd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Hd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Id=F||G&&yb("525"),Jd=eb&&mb; -Ed.prototype.a=function(a){if(G&&(17==this.da&&!a.ab||18==this.da&&!a.aa))this.ca=this.da=-1;Id&&!Bd(a.ua,this.da,a.ka,a.ab,a.aa)?this.handleEvent(a):(this.ca=mb?Dd(a.ua):a.ua,Jd&&(this.Ab=a.aa))};Ed.prototype.b=function(a){this.ca=this.da=-1;this.Ab=a.aa}; -Ed.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ca,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ca,d=0<=b.charCode&&63232>b.charCode&&Cd(c)?b.charCode:0):lb?(c=this.ca,d=Cd(c)?b.keyCode:0):(c=b.keyCode||this.ca,d=b.charCode||0,Jd&&(e=this.Ab),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Gd?f=Gd[c]:25==c&&a.ka&&(f=9):g&&g in Hd&&(f=Hd[g]);a=f==this.da;this.da=f;b=new Kd(f,d,a,b);b.aa=e;J(this,b)}; -function Fd(a){a.fb&&(I(a.fb),I(a.Ob),I(a.gb),a.fb=k,a.Ob=k,a.gb=k);a.Da=k;a.da=-1;a.ca=-1}Ed.prototype.q=function(){Ed.v.q.call(this);Fd(this)};function Kd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.ua=a;this.$a=b;this.b=c}B(Kd,hc);function Ld(a){Zb.call(this);this.a=a;a=ha(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Ld,qd); -Ld.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Md(-a.wheelDelta,c);y(a.wheelDeltaX)?(b=Md(-a.wheelDeltaX,c),c=Md(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),y(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Nd(d,a,b,c);J(this,b)};function Md(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b} -Ld.prototype.q=function(){Ld.v.q.call(this);I(this.b);delete this.b};function Nd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Nd,hc);var Od=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){Zb.call(this);this.o={};y(a)&&this.mb(a)}B(L,qd);var Pd={},Qd={},Rd={};function Sd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Td(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ud(a){return Pd.hasOwnProperty(a)?Pd[a]:Pd[a]=a.toLowerCase()+"_changed"}function Vd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype; -s.Rc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Ud(c);Vd(this)[a]=H(b,e,function(){Wd(this,a)},h,this);Td(this)[a]={target:b,key:c};d||Wd(this,a)};s.Uc=x;s.r=function(a){var b,c=Td(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Qd.hasOwnProperty(b)?Qd[b]:Qd[b]="get"+Sd(b),b=a[c]?a[c]():a.r(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b}; -s.V=function(){for(var a=Ra(Td(this)).concat(Ra(this.o)),b={},c=0,d=0;d=b.h&&a.j<=b.i&&a.i>=b.j}ae.prototype.toString=function(){return"("+[this.h,this.j,this.k,this.i].join(", ")+")"};function N(a,b,c,d){ae.call(this,a,b,c,d)}B(N,ae);function ce(a){var b=arguments[0],b=new N(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}re.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function te(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}B(te,ae);te.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.k&&this.j<=a.y&&a.y<=this.i};te.prototype.a=function(){return this.i-this.j+1};te.prototype.b=function(){return this.k-this.h+1};function ue(a,b){this.b=a;this.a=b||k};function ve(a){Zb.call(this);this.X=a;this.b=0}B(ve,qd);ve.prototype.ma=function(){return z(this).toString()};ve.prototype.L=q("b");function we(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function xe(a,b,c,d){if(0==b.L()){var e=b.ma();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ye(a,0,a.a.length-1))}}}we.prototype.f=function(){--this.c};function ze(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b>1;){var g=2*b+1,j=2*b+2,g=jb;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};var Ae="object"==typeof Proj4js,Be={fe:"degrees",oe:"m"};function P(a,b,c,d){this.a=a;this.g=b;this.f=c;this.b=y(d)?d:"enu"}P.prototype.d=q("a");P.prototype.G=q("f");P.prototype.e=q("g");P.prototype.c=q("b");function Ce(a,b){P.call(this,a,b.units,k,b.axis);this.wc=b}B(Ce,P);var De={},Ee={},Fe={};function Ge(a){D(a,function(a){He(a)});D(a,function(b){D(a,function(a){b!==a&&Ie(b,a,Je)})})}function He(a){Ee[a.a]=a;Ie(a,a,Je)}function Ke(a){return a!=k?ea(a)?Le(a):a:Le("EPSG:3857")} -function Ie(a,b,c){a=a.a;b=b.a;a in Fe||(Fe[a]={});Fe[a][b]=c}function Le(a){var b=Ee[a];Ae&&!y(b)&&(b=Me(a));y(b)||(b=k);return b}function Me(a){var b=De[a];y(b)||(b=new Proj4js.Proj(a),b=new Ce(a,b),De[a]=b);return b} -function Ne(a,b){var c=a.a,d=b.a,e;c in Fe&&d in Fe[c]&&(e=Fe[c][d]);if(Ae&&!y(e)){var f;f=(a instanceof Ce?a:Me(a.a)).wc;var g;g=(b instanceof Ce?b:Me(b.a)).wc;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new K(a.x,a.y)};Ie(a,b,e)}y(e)||(e=Oe);return e}function Pe(a,b){var c=Le(a),d=Le(b);return Ne(c,d)}function Oe(a){return a}function Je(a){return new K(a.x,a.y)};function Qe(a){Zb.call(this);this.l=y(a.projection)?a.projection:k;this.o=y(a.extent)?a.extent:a.projection.G();this.e=y(a.attributions)?a.attributions:k}B(Qe,qd);Qe.prototype.ha=q("e");Qe.prototype.G=q("o");Qe.prototype.c=td;function Q(a){L.call(this);this.g=a.source;this.l(y(a.brightness)?a.brightness:0);this.s(y(a.contrast)?a.contrast:1);this.u(y(a.hue)?a.hue:0);this.D(y(a.opacity)?a.opacity:1);this.F(y(a.saturation)?a.saturation:1);this.H(y(a.visible)?a.visible:i);this.g.c()||sc(this.g,"load",this.J,m,this)}B(Q,L);Q.prototype.b=function(){return this.r("brightness")};Q.prototype.getBrightness=Q.prototype.b;Q.prototype.c=function(){return this.r("contrast")};Q.prototype.getContrast=Q.prototype.c;Q.prototype.d=function(){return this.r("hue")}; -Q.prototype.getHue=Q.prototype.d;Q.prototype.e=function(){return this.r("opacity")};Q.prototype.getOpacity=Q.prototype.e;Q.prototype.f=function(){return this.r("saturation")};Q.prototype.getSaturation=Q.prototype.f;Q.prototype.W=q("g");Q.prototype.a=function(){return this.r("visible")};Q.prototype.getVisible=Q.prototype.a;Q.prototype.J=function(){J(this,"load")};Q.prototype.l=function(a){a=Eb(a,-1,1);a!=this.b()&&this.p("brightness",a)};Q.prototype.setBrightness=Q.prototype.l; -Q.prototype.s=function(a){a=Math.max(0,a);a!=this.c()&&this.p("contrast",a)};Q.prototype.setContrast=Q.prototype.s;Q.prototype.u=function(a){a!=this.d()&&this.p("hue",a)};Q.prototype.setHue=Q.prototype.u;Q.prototype.D=function(a){a=Eb(a,0,1);a!=this.e()&&this.p("opacity",a)};Q.prototype.setOpacity=Q.prototype.D;Q.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.p("saturation",a)};Q.prototype.setSaturation=Q.prototype.F;Q.prototype.H=function(a){a=!!a;a!=this.a()&&this.p("visible",a)}; -Q.prototype.setVisible=Q.prototype.H;function Re(a){return 3*a*a-2*a*a*a};function Se(){L.call(this);this.e=[0,0]}B(Se,L);function Te(a,b){a.e[1]+=b};var Ue={mc:function(a){return a},Gc:function(a){return 0.5>a?Re(2*a):1-Re(2*(a-0.5))},Xc:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Bb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ve={Bb:function(a){var b=a.resolution,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Ue.Gc;return function(a,g){if(g.timeb-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Oa-b.Oa);return a.b>a.d}return m}We.prototype.Ka=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ve.Ka({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ye(a,b,c){ec.call(this,a);this.map=b;this.bb=m;this.d=y(c)?c:k}B(Ye,ec);Ye.prototype.B=function(){Ye.v.B.call(this);this.bb=i};function Ze(a,b){Gb.call(this,a,b)}B(Ze,Gb);function $e(a,b,c,d){Ye.call(this,a,b,d);this.a=c;this.f=this.e=k}B($e,Ye);$e.prototype.b=function(){this.e===k&&(this.e=af(this.map,bf(this)));return this.e};function bf(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ze(b.x,b.y)}return a.f} -function cf(a){this.a=a;this.e=k;this.b=m;this.c=this.g=this.d=this.l=this.o=this.f=k;a=this.a.b;this.o=H(a,["click","dblclick"],this.ac,m,this);this.l=H(a,"mousedown",this.vd,m,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Fd,m,this),H(a,["touchmove","MSPointerMove"],this.Ed,m,this),H(a,["touchend","MSPointerUp"],this.Dd,m,this)]}B(cf,qd);s=cf.prototype; -s.ac=function(a){if(!this.b){var b=a.type;0==this.f||"dblclick"==b?(a=new $e(df,this.a,a),J(this,a)):"click"==b&&(a=new $e(ef,this.a,a),J(this,a))}};s.xd=function(a){this.e&&(this.c=k,D(this.d,I),this.e=this.d=k,this.b&&J(this,new $e(ff,this.a,a)))};s.vd=function(a){J(this,new $e(gf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=m,this.d=[H(document,"mousemove",this.wd,m,this),H(document,"mouseup",this.xd,m,this)],a.B())}; -s.wd=function(a){var b;this.b||(this.b=i,b=new $e(hf,this.a,this.c),J(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new $e(jf,this.a,a);J(this,b)};s.Fd=function(a){a.B();this.c=a;this.b=m;J(this,new $e(kf,this.a,a))};s.Ed=function(a){this.b=i;J(this,new $e(lf,this.a,a))};s.Dd=function(a){J(this,new $e(mf,this.a,a));this.b||(a=oa(),this.f=!this.f||250")&&(a=a.replace(va,">"));-1!=a.indexOf('"')&&(a=a.replace(wa,"""));return a}var ta=/&/g,ua=//g,wa=/\"/g,sa=/[&<>\"]/;var xa=Array.prototype,ya=xa.indexOf?function(a,b,c){return xa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?xa.slice.call(a,b):xa.slice.call(a,b,c)}function Ha(a){xa.sort.call(a,Ia)}function Ia(a,b){return a>b?1:a2*this.n&&Za(this),i):l};function Za(a){if(a.n!=a.a.length){for(var b=0,c=0;bparseFloat(sb)){rb=String(wb);break a}}rb=sb}var yb={}; +function zb(a){var b;if(!(b=yb[a])){b=0;for(var c=String(rb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==n[2].length)<(0==r[2].length)?-1:(0==n[2].length)>(0==r[2].length)?1:0)||(n[2]r[2]?1:0)}while(0==b)}b=yb[a]=0<=b}return b}var Ab={};function Bb(a){return Ab[a]||(Ab[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Cb,Db=!F||Bb(9);!nb&&!F||F&&Bb(9)||nb&&zb("1.9.1");F&&zb("9");function Eb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ga(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c};function Hb(a,b){this.x=y(a)?a:0;this.y=y(b)?b:0}Hb.prototype.R=function(){return new Hb(this.x,this.y)};function Ib(a,b){this.width=a;this.height=b}s=Ib.prototype;s.R=function(){return new Ib(this.width,this.height)};s.Ha=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Jb(a){return a?new Kb(Lb(a)):Cb||(Cb=new Kb)}function Mb(a,b){Ja(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Nb?a.setAttribute(Nb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Nb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"}; +function Ob(a){a=a.document.documentElement;return new Ib(a.clientWidth,a.clientHeight)}function Pb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Db&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var j={};Va(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:da(g)?Eb.apply(k,[f].concat(g)):Mb(f,g));2=a.keyCode)a.keyCode=-1}catch(b){}};s.bd=p("K");function mc(){}var nc=0;mc.prototype.key=0;mc.prototype.wa=l;mc.prototype.a=l;mc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Nb||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var oc={},pc={},qc={},rc={}; +function H(a,b,c,d,e){if(b){if(da(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return i;a:{var q=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(n){q=i}if(q||f.returnValue==h)f.returnValue=i}}q=new ic;jc(q,f,this);f=i;try{if(j){for(var r=[],t=q.c;t;t=t.parentNode)r.push(t);g=e[i];g.P=g.n;for(var u=r.length- +1;!q.na&&0<=u&&g.P;u--)q.c=r[u],f&=wc(g,r[u],d,i,q);if(m){g=e[l];g.P=g.n;for(u=0;!q.na&&u=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function zc(a,b){var c=Lb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Ac(a,b){return a.currentStyle?a.currentStyle[b]:k}function Bc(a,b){return zc(a,b)||Ac(a,b)||a.style&&a.style[b]}function Cc(a,b){var c,d,e=nb&&(fb||qb)&&zb("1.9");b instanceof Hb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Dc(c,e);a.style.top=Dc(d,e)} +function Ec(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b} +function Fc(a){if(F&&!Bb(8))return a.offsetParent;for(var b=Lb(a),c=Bc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Bc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Gc(a,b){var c=Hc(a),d=Hc(b);return new Hb(c.x-d.x,c.y-d.y)} +function Hc(a){var b=new Hb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Ec(a);b.x=c.left;b.y=c.top}else{c=Wb(Jb(a));var d,e=Lb(a),f=Bc(a,"position"),g=nb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Hb(0,0),m;d=e?Lb(e):document;if(m=F)if(m=!Bb(9))Jb(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Ec(a),e=Wb(Jb(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a), +e=e.getBoxObjectFor(m),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Bc(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(mb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Fc(g))&&g!=e.body&&g!=m;)if(j.x-=g.scrollLeft,!mb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(nb&&!zb(12)){var q;F?q="-ms-transform":G?q="-webkit-transform": +mb?q="-o-transform":nb&&(q="-moz-transform");var n;q&&(n=Bc(a,q));n||(n=Bc(a,"transform"));n?(a=n.match(Ic),a=!a?new Hb(0,0):new Hb(parseFloat(a[1]),parseFloat(a[2]))):a=new Hb(0,0);b=new Hb(b.x+a.x,b.y+a.y)}}else q=ha(a.bd),n=a,a.targetTouches?n=a.targetTouches[0]:q&&a.K.targetTouches&&(n=a.K.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Dc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Jc(a,b){a.style.display=b?"":"none"} +function Kc(a,b){Jb(Lb(a));if(F&&!zb("8")){var c=a.style,d;if(F){d=Lc(a,Ac(a,"paddingLeft"));var e=Lc(a,Ac(a,"paddingRight")),f=Lc(a,Ac(a,"paddingTop")),g=Lc(a,Ac(a,"paddingBottom"));d=new yc(f,e,g,d)}else d=zc(a,"paddingLeft"),e=zc(a,"paddingRight"),f=zc(a,"paddingTop"),g=zc(a,"paddingBottom"),d=new yc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Mc(a,"borderLeft"),f=Mc(a,"borderRight"),g=Mc(a,"borderTop"),j=Mc(a,"borderBottom"),e=new yc(g,f,j,e);else e=zc(a,"borderLeftWidth"), +f=zc(a,"borderRightWidth"),g=zc(a,"borderTopWidth"),j=zc(a,"borderBottomWidth"),e=new yc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,nb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"} +function Lc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Nc={thin:2,medium:4,thick:6};function Mc(a,b){if("none"==Ac(a,b+"Style"))return 0;var c=Ac(a,b+"Width");return c in Nc?Nc[c]:Lc(a,c)}var Ic=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Oc(a,b){this.x=a;this.y=b}B(Oc,Hb);Oc.prototype.R=function(){return new Oc(this.x,this.y)};Oc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Oc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Oc.call(this,a,b)}B(K,Oc);function Pc(a,b){var c=Gb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Qc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Rc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Sc(a,b,c){if(da(b))for(var d=0;db)throw Error("Bad port number "+b);a.qb=b}else a.qb=k} +function $c(a,b,c){Yc(a);if(b instanceof ad){a.a=b;b=a.a;if((a=a.ja)&&!b.b){gd(b);b.a=k;var d=b.C,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),hd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ea(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.N)if(ea(d)||ga(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var cd=/[#\/\?@]/g,ed=/[\#\?:]/g,dd=/[\#\?]/g,id=/[\#\?@]/g,fd=/#/g;function ad(a,b,c){this.a=a||k;this.b=!!c} +function gd(a){if(!a.C&&(a.C=new Xa,a.n=0,a.a))for(var b=a.a.split("&"),c=0;c=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}} +function Ed(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Fd(a,b){$b.call(this);a&&(this.gb&&Gd(this),this.Ca=a,this.fb=H(this.Ca,"keypress",this,b),this.Ob=H(this.Ca,"keydown",this.a,b,this),this.gb=H(this.Ca,"keyup",this.b,b,this))}B(Fd,od);s=Fd.prototype;s.Ca=k;s.fb=k;s.Ob=k;s.gb=k;s.da=-1;s.ca=-1;s.Ab=l; +var Hd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Id={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Jd=F||G&&zb("525"),Kd=fb&&nb; +Fd.prototype.a=function(a){if(G&&(17==this.da&&!a.ab||18==this.da&&!a.aa))this.ca=this.da=-1;Jd&&!Cd(a.ta,this.da,a.ka,a.ab,a.aa)?this.handleEvent(a):(this.ca=nb?Ed(a.ta):a.ta,Kd&&(this.Ab=a.aa))};Fd.prototype.b=function(a){this.ca=this.da=-1;this.Ab=a.aa}; +Fd.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ca,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ca,d=0<=b.charCode&&63232>b.charCode&&Dd(c)?b.charCode:0):mb?(c=this.ca,d=Dd(c)?b.keyCode:0):(c=b.keyCode||this.ca,d=b.charCode||0,Kd&&(e=this.Ab),fb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Hd?f=Hd[c]:25==c&&a.ka&&(f=9):g&&g in Id&&(f=Id[g]);a=f==this.da;this.da=f;b=new Ld(f,d,a,b);b.aa=e;J(this,b)}; +function Gd(a){a.fb&&(I(a.fb),I(a.Ob),I(a.gb),a.fb=k,a.Ob=k,a.gb=k);a.Ca=k;a.da=-1;a.ca=-1}Fd.prototype.q=function(){Fd.v.q.call(this);Gd(this)};function Ld(a,b,c,d){d&&jc(this,d,h);this.type="key";this.ta=a;this.$a=b;this.b=c}B(Ld,ic);function Md(a){$b.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Bc(a,"direction");this.b=H(this.a,nb?"DOMMouseScroll":"mousewheel",this)}B(Md,od); +Md.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(gb||zb("532.0")))c=40;d=Nd(-a.wheelDelta,c);y(a.wheelDeltaX)?(b=Nd(-a.wheelDeltaX,c),c=Nd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),y(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Fb(b,-this.c,this.c));"number"==typeof this.d&&(c=Fb(c,-this.d,this.d));this.e&&(b=-b);b=new Od(d,a,b,c);J(this,b)};function Nd(a,b){return G&&(fb||hb)&&0!=a%b?a:a/b} +Md.prototype.q=function(){Md.v.q.call(this);I(this.b);delete this.b};function Od(a,b,c,d){b&&jc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Od,ic);var Pd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){$b.call(this);this.o={};y(a)&&this.mb(a)}B(L,od);var Qd={},Rd={},Sd={};function Td(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Ud(a){return a.ol_accessors_||(a.ol_accessors_={})}function Vd(a){return Qd.hasOwnProperty(a)?Qd[a]:Qd[a]=a.toLowerCase()+"_changed"}function Wd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype; +s.Rc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Vd(c);Wd(this)[a]=H(b,e,function(){Xd(this,a)},h,this);Ud(this)[a]={target:b,key:c};d||Xd(this,a)};s.Uc=x;s.r=function(a){var b,c=Ud(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Rd.hasOwnProperty(b)?Rd[b]:Rd[b]="get"+Td(b),b=a[c]?a[c]():a.r(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b}; +s.V=function(){for(var a=Sa(Ud(this)).concat(Sa(this.o)),b={},c=0,d=0;d=b.h&&a.j<=b.i&&a.i>=b.j}be.prototype.toString=function(){return"("+[this.h,this.j,this.k,this.i].join(", ")+")"};function N(a,b,c,d){be.call(this,a,b,c,d)}B(N,be);function de(a){var b=arguments[0],b=new N(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}se.prototype.toString=function(){return[this.m,this.x,this.y].join("/")};function ue(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}B(ue,be);ue.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.k&&this.j<=a.y&&a.y<=this.i};ue.prototype.a=function(){return this.i-this.j+1};ue.prototype.b=function(){return this.k-this.h+1};function ve(a,b){this.b=a;this.a=b||k};function we(a){$b.call(this);this.X=a;this.b=0}B(we,od);we.prototype.la=function(){return z(this).toString()};we.prototype.L=p("b");function xe(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function ye(a,b,c,d){if(0==b.L()){var e=b.la();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ze(a,0,a.a.length-1))}}}xe.prototype.f=function(){--this.c};function Ae(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b>1;){var g=2*b+1,j=2*b+2,g=jb;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/* + + Latitude/longitude spherical geodesy formulae taken from + http://www.movable-type.co.uk/scripts/latlong.html + Licenced under CC-BY-3.0. +*/ +function Be(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Ce.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var Ce=new function(){this.a=6370997};var De="object"==typeof Proj4js,Ee={fe:"degrees",oe:"m"};function P(a,b,c,d){this.a=a;this.e=b;this.l=c;this.b=y(d)?d:"enu"}P.prototype.g=p("a");P.prototype.G=p("l");P.prototype.o=p("e");P.prototype.f=p("b");function Fe(a,b){P.call(this,a,b.units,k,b.axis);this.wc=b;this.d=k}B(Fe,P); +Fe.prototype.c=function(a,b){if("degrees"==this.e)return a;this.d===k&&(this.d=Ge(this,He("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.d(c,c,2);return(Be(new K(c[0],c[1]),new K(c[2],c[3]))+Be(new K(c[4],c[5]),new K(c[6],c[7])))/2};var Ie={},Je={},Ke={};function Le(a){C(a,function(a){Me(a)});C(a,function(b){C(a,function(a){b!==a&&Ne(b,a,Oe)})})}function Me(a){Je[a.a]=a;Ne(a,a,Oe)}function Pe(a){return a!=k?ga(a)?Qe(a):a:Qe("EPSG:3857")} +function Ne(a,b,c){a=a.a;b=b.a;a in Ke||(Ke[a]={});Ke[a][b]=c}function Qe(a){var b=Je[a];De&&!y(b)&&(b=He(a));y(b)||(b=k);return b}function He(a){var b=Ie[a];y(b)||(b=new Proj4js.Proj(a),b=new Fe(a,b),Ie[a]=b);return b} +function Ge(a,b){var c=a.a,d=b.a,e;c in Ke&&d in Ke[c]&&(e=Ke[c][d]);if(De&&!y(e)){var f;f=(a instanceof Fe?a:He(a.a)).wc;var g;g=(b instanceof Fe?b:He(b.a)).wc;e=function(a,b,c){var d=a.length,c=1a?Ue(2*a):1-Ue(2*(a-0.5))},Xc:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Bb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ye={Bb:function(a){var b=a.resolution,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Xe.Gc;return function(a,g){if(g.timeb-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Oa-b.Oa);return a.b>a.d}return l}Ze.prototype.Ka=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ye.Ka({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function af(a,b,c){fc.call(this,a);this.map=b;this.bb=l;this.d=y(c)?c:k}B(af,fc);af.prototype.B=function(){af.v.B.call(this);this.bb=i};function bf(a,b){Hb.call(this,a,b)}B(bf,Hb);function cf(a,b,c,d){af.call(this,a,b,d);this.a=c;this.f=this.e=k}B(cf,af);cf.prototype.b=function(){this.e===k&&(this.e=df(this.map,ef(this)));return this.e};function ef(a){if(a.f===k){var b=Gc(a.a,a.map.b);a.f=new bf(b.x,b.y)}return a.f} +function ff(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.l=this.o=this.f=k;a=this.a.b;this.o=H(a,["click","dblclick"],this.ac,l,this);this.l=H(a,"mousedown",this.vd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Fd,l,this),H(a,["touchmove","MSPointerMove"],this.Ed,l,this),H(a,["touchend","MSPointerUp"],this.Dd,l,this)]}B(ff,od);s=ff.prototype;s.ac=function(a){if(!this.b){var b=a.type;J(this,0==this.f||"dblclick"==b?new cf(gf,this.a,a):new cf(hf,this.a,a))}}; +s.xd=function(a){this.e&&(this.c=k,C(this.d,I),this.e=this.d=k,this.b&&J(this,new cf(jf,this.a,a)))};s.vd=function(a){J(this,new cf(kf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.wd,l,this),H(document,"mouseup",this.xd,l,this)],a.B())};s.wd=function(a){var b;this.b||(this.b=i,b=new cf(lf,this.a,this.c),J(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new cf(mf,this.a,a);J(this,b)}; +s.Fd=function(a){a.B();this.c=a;this.b=l;J(this,new cf(nf,this.a,a))};s.Ed=function(a){this.b=i;J(this,new cf(of,this.a,a))};s.Dd=function(a){J(this,new cf(pf,this.a,a));this.b||(a=pa(),this.f=!this.f||250c.b?this.a:-this.a,f=b.a();tf(b);f.zoom(b,e,d);a.B();c.B()}};function Lf(){this.g=m;this.l={};this.targetTouches=[]}B(Lf,xf);function Mf(a){for(var b=a.length,c=0,d=0,e=0;ethis.la&&(this.a=i));this.o=e;a=a.map;g=a.a();j=Gc(a.b);d.x-=j.x;d.y-=j.y;d=af(a,d);sf(g,a,g.U()*b,d);this.a&&g.rotate(a,g.ia()+c,d)}; -Of.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.U(),c=b.b.resolution(c,0);sf(b,a,c,h);Te(b,-1);return m}return i};Of.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.o=this.c=h,this.a=m,this.b=0,Te(a,1),i):m};function Pf(a){P.call(this,a,"m",Qf)}B(Pf,P);var Rf=6378137*Math.PI,Qf=new N(-Rf,-Rf,Rf,Rf),Sf=ya(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Pf(a)});function Tf(a,b){P.call(this,a,"degrees",Uf,b)}B(Tf,P);var Uf=new N(-180,-90,180,90),Vf=[new Tf("CRS:84"),new Tf("EPSG:4326","neu"),new Tf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Tf("urn:ogc:def:crs:OGC:1.3:CRS84")];function Wf(a,b,c,d,e){this.f=e;this.g=a;this.o=c;this.e=b;this.a=new Image;d!==k&&(this.a.crossOrigin=d);this.d={};this.b=k;this.c=0}B(Wf,qd);s=Wf.prototype;s.ha=q("f");s.G=q("g");function Xf(a,b){if(y(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.a:a.a.cloneNode(m);return a.d[d]=c}return a.a}s.L=q("c");s.Ld=function(){this.c=3;D(this.b,I);this.b=k;J(this,"change")};s.Md=function(){this.c=2;D(this.b,I);this.b=k;J(this,"change")}; -function Yf(a){0==a.c&&(a.c=1,a.b=[sc(a.a,"error",a.Ld,m,a),sc(a.a,"load",a.Md,m,a)],a.a.src=a.o)};function Zf(a){this.a=a.resolutions;this.f=this.a.length;this.d=y(a.origin)?a.origin:k;this.e=k;y(a.origins)&&(this.e=a.origins);this.b=y(a.tileSize)?a.tileSize:new $d(256,256)}Zf.prototype.c=function(a,b,c){for(var d=$f(this,a),a=a.n-1;0<=a&&!b.call(c,a,ag(this,d,this.a[a]));)--a};function bg(a,b){return a.d===k?a.e[b]:a.d}function ag(a,b,c){var d=cg(a,new K(b.h,b.j),c),a=cg(a,new K(b.k,b.i),c,i);return new te(d.x,d.y,a.x,a.y)} -function dg(a,b){var c=bg(a,b.n),d=a.a[b.n],e=a.b;return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function $f(a,b){var c=bg(a,b.n),d=a.a[b.n],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new N(f,c,f+e.width*d,c+e.height*d)}function cg(a,b,c,d){var e=of(a.a,c),f=c/a.a[e],g=bg(a,e),j=a.b,a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new re(e,a,b)};function eg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=y(a.tileGrid)?a.tileGrid:k}B(eg,Qe);eg.prototype.f=sd;eg.prototype.d=function(a,b,c,d){var e=i,f,g,j,l;for(j=d.h;j<=d.k;++j)for(l=d.j;l<=d.i;++l)if(f=new re(c,j,l),g=f.toString(),!a[c]||!a[c][g])f=this.b(f),b(f)?(a[c]||(a[c]={}),a[c][g]=f):e=m;return e}; -function fg(a,b,c){for(var d=a.tileGrid,e,f,g;0<=b;--b){e=ag(d,c,d.a[b]);for(f=e.h;f<=e.k;++f)for(g=e.j;g<=e.i;++g)a.s(b+"/"+f+"/"+g)}}eg.prototype.s=x;function gg(a,b){L.call(this);this.s=a;this.a=b;H(this.a,Ud("brightness"),this.Jb,m,this);H(this.a,Ud("contrast"),this.Kb,m,this);H(this.a,Ud("hue"),this.Lb,m,this);H(this.a,"load",this.nd,m,this);H(this.a,Ud("opacity"),this.od,m,this);H(this.a,Ud("saturation"),this.Mb,m,this);H(this.a,Ud("visible"),this.qd,m,this)}B(gg,L);function hg(a){J(a,"change")}s=gg.prototype;s.$=q("s");s.Jb=x;s.Kb=x;s.Lb=x;s.Ib=function(a){2===a.target.L()&&tf(this.s.map)};s.nd=function(){hg(this)};s.od=function(){hg(this)}; -s.Mb=x;s.qd=function(){hg(this)};s.Pb=function(a){2===a.target.L()&&tf(this.s.map)};function ig(a,b){b.f()&&a.va.push(na(function(a,b,e){b=z(a).toString();a.Ca(e.Pa[b])},b))}function jg(a,b){var c,d;for(c=0;cc;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Cg(a,b,c){gg.call(this,a,b);this.target=c}B(Cg,gg);Cg.prototype.q=function(){Ub(this.target);Cg.v.q.call(this)};function Dg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Cg.call(this,a,b,c);this.b=k;this.c=ie()}B(Dg,Cg); -Dg.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.W(),g=a.A;!g[0]&&!g[1]&&(f=f.I(a.extent,d),f!==k&&(g=f.L(),0==g?(sc(f,"change",this.Ib,m,this),Yf(f)):2==g&&(b=f)));if(b!==k){var g=b.G(),j=b.e,f=ge();ke(f);oe(f,a.size.width/2,a.size.height/2);qe(f,e);pe(f,j/d,j/d);oe(f,(g.h-c.x)/j,(c.y-g.i)/j);b!=this.b&&(c=Xf(b,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=b);me(f,this.c)||(Bg(this.target,f),je(this.c,f));jg(a.attributions, -b.ha())}};function Eg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Cg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Eg,Cg); -Eg.prototype.ea=function(a,b){if(b.visible){var c=a.t,d=this.a.W(),e=z(d).toString(),f=d.tileGrid,g=of(f.a,c.resolution),j=ag(f,a.extent,f.a[g]),l={};l[g]={};var p=ma(d.d,d,l,function(a){return a!==k&&2==a.L()}),n,r,u,t,w;for(t=j.h;t<=j.k;++t)for(w=j.j;w<=j.i;++w)if(u=new re(g,t,w),n=d.b(u),n!==k){r=n.L();if(0==r)sc(n,"change",this.Pb,m,this),lg(a.Qa,d,u),r=dg(f,u),xe(a.Ub,n,e,r);else if(2==r){l[g][u.toString()]=n;continue}else if(3==r)continue;f.c(u,p)}n=ya(Ra(l),Number);Ga(n);var e={},E;for(u=0;u< -n.length;++u){t=n[u];t in this.b?p=this.b[t]:(p=cg(f,c.center,f.a[t]),p=new Fg(f,p),e[t]=i,this.b[t]=p);t=l[t];for(E in t){w=p;r=t[E];var C=r.X,S=C.toString();if(!(S in w.b)){var V=w.d.b,O=r.I(w),X=O.style;X.position="absolute";X.left=(C.x-w.c.x)*V.width+"px";X.top=(w.c.y-C.y)*V.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(O);w.b[S]=r}}p.a!==k&&(p.target.appendChild(p.a),p.a=k)}f=ya(Ra(this.b),Number);Ga(f);n=ge();for(E=0;Eu&&Tb(this.target,p.target)}else{if(!a.A[0]&&!a.A[1]){r=ag(p.d,a.extent,p.d.a[p.c.n]);u=[];w=t=h;for(w in p.b)t=p.b[w],r.contains(t.X)||u.push(t);r=h;for(r=0;r=a.Z()){for(var a=this.a,d=0;d>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}s=Og.prototype; -s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Aa(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2,f=ge.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};s.N=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),Wg(a,d)},b,u));V?(this.b=n,this.u=r):(this.u=this.b=k,a.Q=i)}kg(a.Pa,f,l,n);fg(f,l,a.extent);ig(a,f);ke(this.d);oe(this.d,(d.center.x-r.h)/(r.k-r.h),(d.center.y-r.j)/(r.i-r.j));qe(this.d, -d.rotation);pe(this.d,a.size.width*d.resolution/(r.k-r.h),a.size.height*d.resolution/(r.i-r.j));oe(this.d,-0.5,-0.5)};function Xg(){this.m=0;this.c={};this.b=this.a=k}s=Xg.prototype;s.clear=function(){this.m=0;this.c={};this.b=this.a=k};function Vg(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.S};function Yg(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.S,a.a.fa=k):(c.S.fa=c.fa,c.fa.S=c.S);c.S=k;c.fa=a.b;a.b.S=c;a.b=c;return c.Y}s.Z=q("m");s.V=function(){var a=Array(this.m),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.M;return a}; -s.N=function(){var a=Array(this.m),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.Y;return a};function Zg(a){var b=a.a;delete a.c[b.M];b.S!==k&&(b.S.fa=k);a.a=b.S;a.a===k&&(a.b=k);--a.m}function $g(a,b,c){c={M:b,S:k,fa:a.b,Y:c};a.b===k?a.a=c:a.b.S=c;a.b=c;a.c[b]=c;++a.m};var ah=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function bh(a,b){var c,d,e=ah.length;for(d=0;d>1)-1;0<=b;b--)ze(a,b);for(a=this.pa;0b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ce.apply(k,c)}this.d=f;this.J.nb(f);this.s=m;f!==k&&(f.Q&&tf(this),Array.prototype.push.apply(this.yb, -f.va));J(this,new Ye("postrender",this,f));v.setTimeout(this.Mc,0)}};s.Pd=function(a){this.p("backgroundColor",a)};U.prototype.setBackgroundColor=U.prototype.Pd;U.prototype.Oc=function(a){this.p(ng,a)};U.prototype.setLayers=U.prototype.Oc;U.prototype.Ra=function(a){this.p("size",a)};U.prototype.setSize=U.prototype.Ra;U.prototype.Pc=function(a){this.p("view",a)};U.prototype.setView=U.prototype.Pc;function rf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.s&&(a=a.c,wd(a),a.Eb())}} -ih.Vc=function(a){var b=v.location.search.substring(1),a=y(a)?a:new $c(b);return ld(a,"renderers")?md(a,"renderers").split(","):ld(a,"renderer")?[md(a,"renderer")]:kh};Ge(Sf);Ge(Vf);function lh(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new K(b,a)}function mh(a){return new K(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}D(Vf,function(a){D(Sf,function(b){Ie(a,b,lh);Ie(b,a,mh)})});var nh={Zd:"bottom-left",$d:"bottom-right",Ie:"top-left",Je:"top-right"};function W(a){L.call(this);this.b=Qb("DIV");this.b.style.position="absolute";this.a={Ta:"",jb:"",tb:"",vb:"",visible:i};H(this,Ud("element"),this.md,m,this);H(this,Ud("map"),this.ud,m,this);H(this,Ud("position"),this.yd,m,this);H(this,Ud("positioning"),this.zd,m,this);y(a.element)&&this.Ac(a.element);y(a.position)&&this.s(a.position);y(a.positioning)&&this.p("positioning",a.positioning);y(a.map)&&this.l(a.map)}B(W,L); -W.prototype.f=function(){return this.r("element")};W.prototype.getElement=W.prototype.f;W.prototype.d=function(){return this.r("map")};W.prototype.getMap=W.prototype.d;W.prototype.g=function(){return this.r("position")};W.prototype.getPosition=W.prototype.g;W.prototype.e=function(){return this.r("positioning")};W.prototype.getPositioning=W.prototype.e;s=W.prototype;s.md=function(){Sb(this.b);var a=this.f();a!=k&&Rb(this.b,a)}; -s.ud=function(){this.c!==k&&(Ub(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Kd,m,this),oh(this),Rb(a.D,this.b))};s.Kd=function(){oh(this)};s.yd=function(){oh(this)};s.zd=function(){oh(this)};s.Ac=function(a){this.p("element",a)};W.prototype.setElement=W.prototype.Ac;W.prototype.l=function(a){this.p("map",a)};W.prototype.setMap=W.prototype.l;W.prototype.s=function(a){this.p("position",a)};W.prototype.setPosition=W.prototype.s; -function oh(a){var b=a.d(),c=a.g();if(!y(b)||!b.Ha()||!y(c))a.a.visible&&(Ic(a.b,m),a.a.visible=m);else{var c=Ef(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.jb&&(a.a.jb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.tb!=f&&(a.a.tb=b.right=f)}else""!==a.a.tb&&(a.a.tb=b.right=""),f=Math.round(c.x)+"px",a.a.jb!=f&&(a.a.jb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ta&&(a.a.Ta=b.bottom=""),c=Math.round(c.y)+"px",a.a.vb!=c&&(a.a.vb=b.top=c)):(""!==a.a.vb&& -(a.a.vb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ta!=c&&(a.a.Ta=b.bottom=c));a.a.visible||(Ic(a.b,i),a.a.visible=i)}};/* +R.prototype.rotate=function(a,b,c){b=this.b.rotation(b,0);if(c!=k){var d=this.T(),e=new K(d.x-c.x,d.y-c.y);e.rotate(b-this.ia());e.x+=c.x;e.y+=c.y;uf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};function vf(a,b,c,d){if(c!=k&&d!=k){var e=a.T(),f=a.U(),g=new K(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);uf(b,function(){this.a(g);this.c(c)},a)}else a.c(c)} +R.prototype.zoom=function(a,b,c,d){var e=this.U();y(e)&&y(d)&&(wf(a),a.l(Ye.zoom({resolution:e,duration:d})));b=this.b.resolution(e,b);vf(this,a,b,c)};function xf(a){$b.call(this);this.element=y(a.element)?a.element:k;this.o=a.target;this.b=k;y(a.map)&&this.a(a.map)}B(xf,$b);xf.prototype.q=function(){Vb(this.element);xf.v.q.call(this)};xf.prototype.a=function(a){this.b===k||Vb(this.element);this.b=a;this.b!==k&&(y(this.o)?this.o:a.D).appendChild(this.element)};function yf(a){this.g=Rb("UL");var b=Pb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);xf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(yf,xf); +yf.prototype.l=function(a){var b=a.d;if(b===k)this.f&&(Jc(this.element,l),this.f=l);else{var c={},d={},a=this.b.u();y(a)&&a.forEach(function(a){a=a.W();d[z(a).toString()]=a;a=a.ha();if(a!==k){var b,e;for(e=0;ec.b?this.a:-this.a,f=b.a();wf(b);f.zoom(b,e,d);a.B();c.B()}};function Of(){this.g=l;this.o={};this.targetTouches=[]}B(Of,Af);function Pf(a){for(var b=a.length,c=0,d=0,e=0;ethis.l&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Hc(a.b),e=Pf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=df(a,e);this.a&&c.rotate(a,c.ia()+b,d)};Rf.prototype.d=function(a){return 2>this.targetTouches.length?(We(a.map.a(),-1),l):i}; +Rf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,We(a,1),i):l};function Sf(){Of.call(this)}B(Sf,Of);Sf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);y(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Hc(a.b);d=Pf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=df(a,d);vf(e,a,e.U()*b,c)};Sf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.U(),c=b.b.resolution(c,0);vf(b,a,c,h);We(b,-1);return l}return i}; +Sf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,We(a,1),i):l};function Tf(a){P.call(this,a,"m",Uf)}B(Tf,P);var Vf=6378137*Math.PI,Uf=new N(-Vf,-Vf,Vf,Vf),Wf=za(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Tf(a)});Tf.prototype.c=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Xf(a,b){P.call(this,a,"degrees",Yf,b)}B(Xf,P);var Yf=new N(-180,-90,180,90),Zf=[new Xf("CRS:84"),new Xf("EPSG:4326","neu"),new Xf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Xf("urn:ogc:def:crs:OGC:1.3:CRS84")];Xf.prototype.c=aa();function $f(a,b,c,d,e){this.f=e;this.g=a;this.o=c;this.e=b;this.a=new Image;d!==k&&(this.a.crossOrigin=d);this.d={};this.b=k;this.c=0}B($f,od);s=$f.prototype;s.ha=p("f");s.G=p("g");function ag(a,b){if(y(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Ta(a.d)?a.a:a.a.cloneNode(l);return a.d[d]=c}return a.a}s.L=p("c");s.Ld=function(){this.c=3;C(this.b,I);this.b=k;J(this,"change")};s.Md=function(){this.c=2;C(this.b,I);this.b=k;J(this,"change")}; +function bg(a){0==a.c&&(a.c=1,a.b=[tc(a.a,"error",a.Ld,l,a),tc(a.a,"load",a.Md,l,a)],a.a.src=a.o)};function cg(a){this.a=a.resolutions;this.g=this.a.length;this.d=y(a.origin)?a.origin:k;this.f=k;y(a.origins)&&(this.f=a.origins);this.c=k;y(a.tileSizes)&&(this.c=a.tileSizes);this.e=y(a.tileSize)?a.tileSize:this.c===k?new ae(256,256):k}cg.prototype.b=function(a,b,c){for(var d=dg(this,a),a=a.m-1;0<=a&&!b.call(c,a,eg(this,d,this.a[a]));)--a};function fg(a,b){return a.d===k?a.f[b]:a.d}function eg(a,b,c){var d=gg(a,new K(b.h,b.j),c),a=gg(a,new K(b.k,b.i),c,i);return new ue(d.x,d.y,a.x,a.y)} +function hg(a,b){var c=fg(a,b.m),d=a.a[b.m],e=ig(a,b.m);return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function dg(a,b){var c=fg(a,b.m),d=a.a[b.m],e=ig(a,b.m),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new N(f,c,f+e.width*d,c+e.height*d)}function gg(a,b,c,d){var e=rf(a.a,c),f=c/a.a[e],g=fg(a,e),j=ig(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new se(e,a,b)} +function ig(a,b){return a.e===k?a.c[b]:a.e};function jg(a){Te.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=y(a.tileGrid)?a.tileGrid:k}B(jg,Te);jg.prototype.f=qd;jg.prototype.d=function(a,b,c,d){var e=i,f,g,j,m;for(j=d.h;j<=d.k;++j)for(m=d.j;m<=d.i;++m)if(f=new se(c,j,m),g=f.toString(),!a[c]||!a[c][g])f=this.b(f),b(f)?(a[c]||(a[c]={}),a[c][g]=f):e=l;return e}; +function kg(a,b,c){for(var d=a.tileGrid,e,f,g;0<=b;--b){e=eg(d,c,d.a[b]);for(f=e.h;f<=e.k;++f)for(g=e.j;g<=e.i;++g)a.s(b+"/"+f+"/"+g)}}jg.prototype.s=x;function lg(a,b){L.call(this);this.s=a;this.a=b;H(this.a,Vd("brightness"),this.Jb,l,this);H(this.a,Vd("contrast"),this.Kb,l,this);H(this.a,Vd("hue"),this.Lb,l,this);H(this.a,"load",this.nd,l,this);H(this.a,Vd("opacity"),this.od,l,this);H(this.a,Vd("saturation"),this.Mb,l,this);H(this.a,Vd("visible"),this.qd,l,this)}B(lg,L);function mg(a){J(a,"change")}s=lg.prototype;s.$=p("s");s.Jb=x;s.Kb=x;s.Lb=x;s.Ib=function(a){2===a.target.L()&&wf(this.s.map)};s.nd=function(){mg(this)};s.od=function(){mg(this)}; +s.Mb=x;s.qd=function(){mg(this)};s.Pb=function(a){2===a.target.L()&&wf(this.s.map)};function ng(a,b){b.f()&&a.ua.push(oa(function(a,b,e){b=z(a).toString();a.Ba(e.Pa[b])},b))}function og(a,b){var c,d;for(c=0;cc;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Hg(a,b,c){lg.call(this,a,b);this.target=c}B(Hg,lg);Hg.prototype.q=function(){Vb(this.target);Hg.v.q.call(this)};function Ig(a,b){var c=Rb("DIV");c.className="ol-layer-image";c.style.position="absolute";Hg.call(this,a,b,c);this.b=k;this.c=je()}B(Ig,Hg); +Ig.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.W(),g=a.A;!g[0]&&!g[1]&&(f=f.I(a.extent,d),f!==k&&(g=f.L(),0==g?(tc(f,"change",this.Ib,l,this),bg(f)):2==g&&(b=f)));if(b!==k){var g=b.G(),j=b.e,f=he();le(f);pe(f,a.size.width/2,a.size.height/2);re(f,e);qe(f,j/d,j/d);pe(f,(g.h-c.x)/j,(c.y-g.i)/j);b!=this.b&&(c=ag(b,this),c.style.position="absolute",Tb(this.target),this.target.appendChild(c),this.b=b);ne(f,this.c)||(Gg(this.target,f),ke(this.c,f));og(a.attributions, +b.ha())}};function Jg(a,b){var c=Rb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Hg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Jg,Hg); +Jg.prototype.ea=function(a,b){if(b.visible){var c=a.t,d=this.a.W(),e=z(d).toString(),f=d.tileGrid,g=rf(f.a,c.resolution),j=eg(f,a.extent,f.a[g]),m={};m[g]={};var q=na(d.d,d,m,function(a){return a!==k&&2==a.L()}),n,r,t,u,w;for(u=j.h;u<=j.k;++u)for(w=j.j;w<=j.i;++w)if(t=new se(g,u,w),n=d.b(t),n!==k){r=n.L();if(0==r)tc(n,"change",this.Pb,l,this),qg(a.Qa,d,t),r=hg(f,t),ye(a.Ub,n,e,r);else if(2==r){m[g][t.toString()]=n;continue}else if(3==r)continue;f.b(t,q)}n=za(Sa(m),Number);Ha(n);var e={},D;for(t=0;t< +n.length;++t){u=n[t];u in this.b?q=this.b[u]:(q=gg(f,c.center,f.a[u]),q=new Kg(f,q),e[u]=i,this.b[u]=q);u=m[u];for(D in u){w=q;r=u[D];var E=r.X,U=E.toString();if(!(U in w.b)){var V=ig(w.d,E.m),O=r.I(w),Y=O.style;Y.position="absolute";Y.left=(E.x-w.c.x)*V.width+"px";Y.top=(w.c.y-E.y)*V.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(O);w.b[U]=r}}q.a!==k&&(q.target.appendChild(q.a),q.a=k)}f=za(Sa(this.b),Number);Ha(f);n=he();for(D=0;Dt&&Ub(this.target,q.target)}else{if(!a.A[0]&&!a.A[1]){r=eg(q.d,a.extent,q.d.a[q.c.m]);t=[];w=u=h;for(w in q.b)u=q.b[w],r.contains(u.X)||t.push(u);r=h;for(r=0;r< +t.length;++r)u=t[r],w=u.X.toString(),Vb(u.I(q)),delete q.b[w]}}else Vb(q.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,m=this.target.style,"opacity"in m?m.opacity=c:"MozOpacity"in m?m.MozOpacity=c:"filter"in m&&(m.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Jc(this.target,i),this.c=i);pg(a.Pa,d,g,j);kg(d,g,a.extent);ng(a,d)}else this.c&&(Jc(this.target,l),this.c=l)}; +function Kg(a,b){this.target=Rb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=ee(dg(a,b));this.g=a.a[b.m];this.b={};this.a=k;this.e=je()};function Lg(a,b){rg.call(this,a,b);this.c=Rb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Ub(a,this.c);this.f=i}B(Lg,rg);Lg.prototype.sa=function(a){Lg.v.sa.call(this,a);vg(this.map)};Lg.prototype.Ua=function(a){var b;a instanceof Ag?b=new Jg(this,a):a instanceof zg&&(b=new Ig(this,a));this.c.appendChild(b.target);return b}; +Lg.prototype.nb=function(a){a===k?this.f&&(Jc(this.c,l),this.f=l):(C(a.ib,function(b){var c=a.hb[z(b)];c.rb&&ug(this,b).ea(a,c)},this),this.f||(Jc(this.c,i),this.f=i),tg(a))};function Mg(a){this.a=a}Mg.prototype.W=p("a");function Ng(a){this.a=a}B(Ng,Mg);Ng.prototype.b=function(){return 35632};function Og(a){this.a=a}B(Og,Mg);Og.prototype.b=function(){return 35633};function Pg(a,b){lg.call(this,a,b);this.D=new Float32Array(16);this.H=new Float32Array(16);this.oa=new Float32Array(16);this.Ma=new Float32Array(16);this.F=new Float32Array(16);this.c=i;this.Jb();this.Kb();this.Lb();this.Mb()}B(Pg,lg);function Qg(a){if(a.c){var b=a.F;le(b);me(b,a.H,b);me(b,a.D,b);me(b,a.Ma,b);me(b,a.oa,b);a.c=l}return a.F}s=Pg.prototype;s.$=function(){return Pg.v.$.call(this)};s.Jb=function(){var a=this.a.b(),b=this.D;le(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)}; +s.Kb=function(){var a=this.a.c(),b=this.H;le(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};s.Lb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);ie(this.oa,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;mg(this)}; +s.Mb=function(){var a=this.a.f();ie(this.Ma,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;mg(this)};s.Ea=x;function Rg(a,b){Pg.call(this,a,b);this.b=this.d=k;this.e=je();this.f=he()}B(Rg,Pg);s=Rg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||a.deleteTexture(this.b);Rg.v.q.call(this)};s.fc=p("e");s.gc=p("b");s.hc=p("f");s.Ea=function(){this.b=k}; +s.ea=function(a){var b=this.$().a,c=a.t,d=c.center,e=c.resolution,f=c.rotation,c=this.d,g=this.b,j=this.a.W(),m=a.A;!m[0]&&!m[1]&&(j=j.I(a.extent,e),j!==k&&(m=j.L(),0==m?(tc(j,"change",this.Ib,l,this),bg(j)):2==m&&(c=j,g=ag(j,this),j=this.$().a,m=j.createTexture(),j.bindTexture(3553,m),j.texImage2D(3553,0,6408,6408,5121,g),j.texParameteri(3553,10242,33071),j.texParameteri(3553,10243,33071),j.texParameteri(3553,10241,9729),j.texParameteri(3553,10240,9729),g=m,this.b===k||a.ua.push(oa(function(a,b){a.isContextLost()|| +a.deleteTexture(b)},b,this.b)))));c!==k&&(m=this.$().Xa(),b=c.G(),j=m.width*e,e*=m.height,m=this.f,le(m),qe(m,2/j,2/e),re(m,-f),pe(m,b.h-d.x,b.j-d.y),qe(m,b.b()/2,b.a()/2),pe(m,1,1),d=this.e,le(d),qe(d,1,-1),pe(d,0,-1),this.d=c,this.b=g,og(a.attributions,c.ha()))};function Sg(a,b){this.M=a;this.Y=b}Sg.prototype.R=function(){return new Sg(this.M,this.Y)};function Tg(a){this.a=[];if(a)a:{var b,c;if(a instanceof Tg){if(b=a.V(),c=a.N(),0>=a.Z()){for(var a=this.a,d=0;d>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}s=Tg.prototype; +s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ba(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a>1;){var f=2*a+1,g=2*a+2,f=ge.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};s.N=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),ah(a,d)},b,t));V?(this.b=n,this.u=r):(this.u=this.b=k,a.Q=i)}pg(a.Pa,f,m,n);kg(f,m,a.extent);ng(a,f);le(this.d);pe(this.d,(d.center.x-r.h)/(r.k-r.h),(d.center.y-r.j)/(r.i-r.j));re(this.d, +d.rotation);qe(this.d,a.size.width*d.resolution/(r.k-r.h),a.size.height*d.resolution/(r.i-r.j));pe(this.d,-0.5,-0.5)};function bh(){this.n=0;this.c={};this.b=this.a=k}s=bh.prototype;s.clear=function(){this.n=0;this.c={};this.b=this.a=k};function $g(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.S};function ch(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.S,a.a.fa=k):(c.S.fa=c.fa,c.fa.S=c.S);c.S=k;c.fa=a.b;a.b.S=c;a.b=c;return c.Y}s.Z=p("n");s.V=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.M;return a}; +s.N=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.Y;return a};function dh(a){var b=a.a;delete a.c[b.M];b.S!==k&&(b.S.fa=k);a.a=b.S;a.a===k&&(a.b=k);--a.n}function eh(a,b,c){c={M:b,S:k,fa:a.b,Y:c};a.b===k?a.a=c:a.b.S=c;a.b=c;a.c[b]=c;++a.n};var fh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function gh(a,b){var c,d,e=fh.length;for(d=0;d>1)-1;0<=b;b--)Ae(a,b);for(a=this.oa;0b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=de.apply(k,c)}this.d=f;this.J.nb(f);this.s=l;f!==k&&(f.Q&&wf(this),Array.prototype.push.apply(this.yb, +f.ua));J(this,new af("postrender",this,f));v.setTimeout(this.Mc,0)}};s.Pd=function(a){this.p("backgroundColor",a)};T.prototype.setBackgroundColor=T.prototype.Pd;T.prototype.Oc=function(a){this.p(sg,a)};T.prototype.setLayers=T.prototype.Oc;T.prototype.Ra=function(a){this.p("size",a)};T.prototype.setSize=T.prototype.Ra;T.prototype.Pc=function(a){this.p("view",a)};T.prototype.setView=T.prototype.Pc;function uf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.s&&(a=a.c,xd(a),a.Eb())}} +nh.Vc=function(a){var b=v.location.search.substring(1),a=y(a)?a:new ad(b);return md(a,"renderers")?nd(a,"renderers").split(","):md(a,"renderer")?[nd(a,"renderer")]:ph};Le(Wf);Le(Zf);function qh(a,b,c){var d=a.length,c=1this.d&&!(b=this.a.Y,c=b.X.n.toString(),c in a&&a[c].contains(b.X));)Zg(this)};function Lh(a){eg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.ba=y(a.ba)?a.ba:Hh;this.F=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new Kh}B(Lh,eg);Lh.prototype.f=function(){return this.a.Z()>this.a.d};Lh.prototype.Ca=function(a){this.a.Ca(a)};Lh.prototype.b=function(a){var b=a.toString();if(Vg(this.a,b))return Yg(this.a,b);var c=this.ba(a);y(c)?(a=new Jh(a,c,this.F),$g(this.a,b,a)):a=k;return a}; -Lh.prototype.s=function(a){a=a.toString();Vg(this.a,a)&&Yg(this.a,a)};function Mh(a){var b=Array(a.maxZoom+1),c,d=2*Rf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Zf.call(this,{origin:new K(-Rf,Rf),resolutions:b,tileSize:new $d(256,256)})}B(Mh,Zf);Mh.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new te(d,e,d,e);if(b.call(c,a,f))break}};var Nh={Xd:"Aerial",Yd:"AerialWithLabels",re:"Road",pe:"OrdnanceSurvey",de:"CollinsBart"}; -function Oh(a){Lh.call(this,{projection:Le("EPSG:3857")});this.Wc=y(a.culture)?a.culture:"en-us";this.g=m;var b=new Vc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Bh(b),a={include:"ImageryProviders",key:a.key},c=ma(this.u,this),a=a||k,d="_"+(Ch++).toString(36)+oa().toString(36);v._callbacks_||(v._callbacks_={});var e=b.b.R();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&id(e,f,a[f]);c&&(v._callbacks_[d]=function(a){Dh(d,i);c.apply(h,arguments)},id(e,b.a,"_callbacks_."+ -d));f=vh(e.toString(),{timeout:b.ub,$b:i});f.a.push([k,function(){Dh(d,m)},h]);f.ga&&rh(f)}B(Oh,Lh); -Oh.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Mh({maxZoom:d,tileSize:new $d(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ba=Ih(function(a){if(a.ne||b<=e?k:new re(a.n,Fb(a.x,b),e)},Fh(ya(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Wc);return function(a){return a===k?h:c.replace("{quadkey}",se(a))}})));var f=Ne(Le("EPSG:4326"),this.l);this.e= -ya(b.imageryProviders,function(a){var b=a.attribution,c={};D(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new N(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=ag(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new ue(b,c)});this.g=i;J(this,"load")};Oh.prototype.c=q("g");function Y(a){L.call(this);this.a=k;Ph&&(H(this,Ud("projection"),this.s,m,this),this.J=navigator.geolocation.watchPosition(ma(this.F,this),ma(this.H,this),a))}B(Y,L);Y.prototype.q=function(){navigator.geolocation.clearWatch(this.J);Y.v.q.call(this)};Y.prototype.s=function(){var a=this.c();a!=k&&(this.b=Ne(Le("EPSG:4326"),a),this.a===k||this.p("position",this.b(this.a)))};var Ph="geolocation"in navigator; -Y.prototype.F=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);this.p("position",this.b(this.a));this.p("speed",a.speed===k?h:a.speed)};Y.prototype.H=function(){};Y.prototype.d=function(){return this.r("accuracy")};Y.prototype.getAccuracy=Y.prototype.d;Y.prototype.e=function(){return this.r("altitude")}; -Y.prototype.getAltitude=Y.prototype.e;Y.prototype.f=function(){return this.r("altitudeAccuracy")};Y.prototype.getAltitudeAccuracy=Y.prototype.f;Y.prototype.g=function(){return this.r("heading")};Y.prototype.getHeading=Y.prototype.g;Y.prototype.u=function(){return this.r("position")};Y.prototype.getPosition=Y.prototype.u;Y.prototype.c=function(){return this.r("projection")};Y.prototype.getProjection=Y.prototype.c;Y.prototype.l=function(){return this.r("speed")};Y.prototype.getSpeed=Y.prototype.l; -Y.prototype.D=function(a){this.p("projection",a)};Y.prototype.setProjection=Y.prototype.D;Y.prototype.b=function(a){return a};function Qh(a){var b=Ob("DIV",{"class":"ol-mouse-position"});uf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=y(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=Oe;this.d=this.e=this.u=k}B(Qh,uf);Qh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.t.projection;Rh(this,this.e)};Qh.prototype.D=function(a){a=Fc(a,this.b.b);a=new Ze(a.x,a.y);Rh(this,a);this.e=a};Qh.prototype.F=function(){Rh(this,k);this.e=k}; -Qh.prototype.a=function(a){this.d!==k&&(D(this.d,I),this.d=k);Qh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.D,m,this),H(b,"mouseout",this.F,m,this),H(a,"postrender",this.H,m,this)]}};function Rh(a,b){var c=a.J;if(b!==k){a.u!=a.c&&(a.s=y(a.l)?Ne(a.c,a.l):Oe,a.u=a.c);var d=af(a.b,b);d!==k&&(d=a.s(d),c=y(a.g)?a.g(d):d.toString())}if(!y(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Sh(){this.a={}}B(Sh,xf);Sh.prototype.b=function(a,b){var c;for(c=0;cthis.d&&!(b=this.a.Y,c=b.X.m.toString(),c in a&&a[c].contains(b.X));)dh(this)};function Qh(a){jg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.ba=y(a.ba)?a.ba:Mh;this.F=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new Ph}B(Qh,jg);Qh.prototype.f=function(){return this.a.Z()>this.a.d};Qh.prototype.Ba=function(a){this.a.Ba(a)};Qh.prototype.b=function(a){var b=a.toString();if($g(this.a,b))return ch(this.a,b);var c=this.ba(a);y(c)?(a=new Oh(a,c,this.F),eh(this.a,b,a)):a=k;return a}; +Qh.prototype.s=function(a){a=a.toString();$g(this.a,a)&&ch(this.a,a)};function Rh(a){var b=Array(a.maxZoom+1),c,d=2*Vf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);cg.call(this,{origin:new K(-Vf,Vf),resolutions:b,tileSize:new ae(256,256)})}B(Rh,cg);Rh.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.m,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ue(d,e,d,e);if(b.call(c,a,f))break}};var Sh={Xd:"Aerial",Yd:"AerialWithLabels",re:"Road",pe:"OrdnanceSurvey",de:"CollinsBart"}; +function Th(a){Qh.call(this,{projection:Qe("EPSG:3857")});this.Wc=y(a.culture)?a.culture:"en-us";this.g=l;var b=new Wc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Gh(b),a={include:"ImageryProviders",key:a.key},c=na(this.u,this),a=a||k,d="_"+(Hh++).toString(36)+pa().toString(36);v._callbacks_||(v._callbacks_={});var e=b.b.R();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&jd(e,f,a[f]);c&&(v._callbacks_[d]=function(a){Ih(d,i);c.apply(h,arguments)},jd(e,b.a,"_callbacks_."+ +d));f=Ah(e.toString(),{timeout:b.ub,$b:i});f.a.push([k,function(){Ih(d,l)},h]);f.ga&&wh(f)}B(Th,Qh); +Th.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Rh({maxZoom:d,tileSize:new ae(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ba=Nh(function(a){if(a.me||b<=e?k:new se(a.m,Gb(a.x,b),e)},Kh(za(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Wc);return function(a){return a===k?h:c.replace("{quadkey}",te(a))}})));var f=Ge(Qe("EPSG:4326"),this.l);this.e= +za(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new N(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=eg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new ve(b,c)});this.g=i;J(this,"load")};Th.prototype.c=p("g");function X(a){L.call(this);this.a=k;Uh&&(H(this,Vd("projection"),this.s,l,this),this.J=navigator.geolocation.watchPosition(na(this.F,this),na(this.H,this),a))}B(X,L);X.prototype.q=function(){navigator.geolocation.clearWatch(this.J);X.v.q.call(this)};X.prototype.s=function(){var a=this.c();a!=k&&(this.b=Ge(Qe("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.b(a,a,2),this.p("position",new K(a[0],a[1]))))};var Uh="geolocation"in navigator; +X.prototype.F=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.b(b,b,2);this.p("position",new K(b[0],b[1]));this.p("speed",a.speed===k?h:a.speed)};X.prototype.H=function(){};X.prototype.d=function(){return this.r("accuracy")}; +X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.r("altitude")};X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.r("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.r("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.u=function(){return this.r("position")};X.prototype.getPosition=X.prototype.u;X.prototype.c=function(){return this.r("projection")};X.prototype.getProjection=X.prototype.c; +X.prototype.l=function(){return this.r("speed")};X.prototype.getSpeed=X.prototype.l;X.prototype.D=function(a){this.p("projection",a)};X.prototype.setProjection=X.prototype.D;X.prototype.b=aa();function Vh(a){var b=Pb("DIV",{"class":"ol-mouse-position"});xf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=y(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=Re;this.d=this.e=this.u=k}B(Vh,xf);Vh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.t.projection;Wh(this,this.e)};Vh.prototype.D=function(a){a=Gc(a,this.b.b);a=new bf(a.x,a.y);Wh(this,a);this.e=a};Vh.prototype.F=function(){Wh(this,k);this.e=k}; +Vh.prototype.a=function(a){this.d!==k&&(C(this.d,I),this.d=k);Vh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.D,l,this),H(b,"mouseout",this.F,l,this),H(a,"postrender",this.H,l,this)]}};function Wh(a,b){var c=a.J;if(b!==k){a.u!=a.c&&(a.s=y(a.l)?Ge(a.c,a.l):Re,a.u=a.c);var d=df(a.b,b);d!==k&&(c=[d.x,d.y],c=a.s(c,c),d=new K(c[0],c[1]),c=y(a.g)?a.g(d):d.toString())}if(!y(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Xh(){this.a={}}B(Xh,Af);Xh.prototype.b=function(a,b){var c;for(c=0;cthis.a.d};ji.prototype.Ca=function(a){this.a.Ca(a)};ji.prototype.b=function(a){var b=a.toString();if(Vg(this.a,b))return Yg(this.a,b);a=new ii(a,this.tileGrid);$g(this.a,b,a);return a};function ki(a){var b=a.projection||Le("EPSG:3857"),c=Hh;y(a.ba)?c=a.ba:y(a.urls)?c=Fh(ya(a.urls,Eh)):y(a.url)&&(c=Eh(a.url));var d=new Mh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Ih(function(b){if(a.maxZoomj||c<=j)return k;c=Fb(b.x,c);return!be($f(d,new re(b.n,c,b.y)),e)?k:new re(b.n,c,j)},c):Ih(function(b){if(a.maxZoomd||c<=d?k:new re(b.n,Fb(b.x,c),d)},c);Lh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, -extent:a.extent,projection:b,tileGrid:d,ba:c})}B(ki,Lh);function li(){ki.call(this,{attributions:[new ue('Tiles Courtesy of MapQuest '),new ue('Data © OpenStreetMap contributors, CC BY-SA')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(li,ki); -function mi(){ki.call(this,{attributions:[new ue('Tiles Courtesy of MapQuest '),new ue("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(mi,ki);function ni(){ki.call(this,{attributions:[new ue('© OpenStreetMap contributors, CC BY-SA')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ni,ki);function oi(a){var b=Ke(a.projection),c=b.G(),c=y(a.extent)?a.extent:c,d=y(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};e["1.3"<=d?"CRS":"SRS"]=b.a;Ua(e,a.params);var f=b.b;if(a.url)var g=Qc(Tc([a.url],e)),d=function(a,b){return Uc(g,"BBOX",("ne"==f.substr(0,2)?[a.j,a.h,a.i,a.k]:[a.h,a.j,a.k,a.i]).join(","),"HEIGHT",b.height,"WIDTH",b.width)};else d=rg;sg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c, -projection:b,resolutions:a.resolutions,Ga:d});this.b=k;this.f=1.5}B(oi,sg);oi.prototype.I=function(a,b){var c=b;this.a===k||(c=this.a[of(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.G(),d=d.h<=a.h&&a.k<=d.k&&d.j<=a.j&&a.i<=d.i;if(d)return c;var c=a=new N(a.h,a.j,a.k,a.i),e=this.f;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.j-=e;c.k+=d;c.i+=e;return this.b=tg(this,a,b,new $d(a.b()/b,a.a()/b))};var pi={ue:"background",ve:"labels",we:"lines",ye:"2010",ze:"2011",Ae:"2011-labels",Be:"2011-lines",Ce:"2011-lite",De:"background",Ee:"hybrid",Fe:"labels",Ge:"lines",He:"lite"},qi={te:"terrain",xe:"toner",Oe:"watercolor"},ri={terrain:{type:"jpg",pc:4,maxZoom:18},toner:{type:"png",pc:0,maxZoom:20},watercolor:{type:"jpg",pc:3,maxZoom:16}}; -function si(a){var b=new ue('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.provider;y(a.flavor)&&(c+="-"+a.flavor);a=ri[a.provider];ki.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(si,ki);function ti(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;sg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return e},resolutions:[d]});this.b=tg(this,b,d,c)}B(ti,sg);ti.prototype.I=function(a){return be(a,this.b.G())?this.b:k};var ui=[];A("grid",function(a){ui.push(a)});function vi(a){Lh.call(this,{projection:Le("EPSG:3857")});this.g=m;a=this.u=vh(a.uri,{$b:i});a.a.push([this.D,k,this]);a.ga&&rh(a)}B(vi,Lh); -vi.prototype.D=function(){var a=ui.pop(),b=Le("EPSG:4326"),c,d;y(a.bounds)?(c=a.bounds,c=new N(c[0],c[1],c[2],c[3]),this.o=d=c.transform(Ne(b,this.l))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new Mh({maxZoom:f});this.tileGrid=g;this.ba=Ih(function(a){if(a.nc||b<=c)return k;b=Fb(a.x,b);return d!==k&&!be($f(g,new re(a.n,b,a.y)),d)?k:new re(a.n,b,c)},Fh(ya(a.tiles,Eh)));if(y(a.attribution)){b=d===k?b.G():d;c={};var j,l;for(j=e;j<=f;++j)l=j.toString(), -c[l]=[ag(g,b,g.a[j])];this.e=[new ue(a.attribution,c)]}this.g=i;J(this,"load")};vi.prototype.c=q("g");function wi(a){var b=Ke(a.projection),c=b.G(),d=y(a.extent)?a.extent:c,e=y(a.version)?a.version:"1.3",f,g;if(y(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.G();for(var l=Math.max(g.k-g.h,g.i-g.j),p=y(h)?h:new $d(256,256),j=Array((y(j)?j:18)+1),l=l/p.width,n=0,r=j.length;nthis.a.d};oi.prototype.Ba=function(a){this.a.Ba(a)};oi.prototype.b=function(a){var b=a.toString();if($g(this.a,b))return ch(this.a,b);a=new ni(a,this.tileGrid);eh(this.a,b,a);return a};function pi(a){var b=a.projection||Qe("EPSG:3857"),c=Mh;y(a.ba)?c=a.ba:y(a.urls)?c=Kh(za(a.urls,Jh)):y(a.url)&&(c=Jh(a.url));var d=new Rh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Nh(function(b){if(a.maxZoomj||c<=j)return k;c=Gb(b.x,c);return!ce(dg(d,new se(b.m,c,b.y)),e)?k:new se(b.m,c,j)},c):Nh(function(b){if(a.maxZoomd||c<=d?k:new se(b.m,Gb(b.x,c),d)},c);Qh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, +extent:a.extent,projection:b,tileGrid:d,ba:c})}B(pi,Qh);function qi(){pi.call(this,{attributions:[new ve('Tiles Courtesy of MapQuest '),new ve('Data © OpenStreetMap contributors, CC BY-SA')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(qi,pi); +function ri(){pi.call(this,{attributions:[new ve('Tiles Courtesy of MapQuest '),new ve("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(ri,pi);function si(){pi.call(this,{attributions:[new ve('© OpenStreetMap contributors, CC BY-SA')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(si,pi);function ti(a){var b=Pe(a.projection),c=b.G(),c=y(a.extent)?a.extent:c,d=y(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};e["1.3"<=d?"CRS":"SRS"]=b.a;Va(e,a.params);var f=b.b;if(a.url)var g=Rc(Uc([a.url],e)),d=function(a,b){return Vc(g,"BBOX",("ne"==f.substr(0,2)?[a.j,a.h,a.i,a.k]:[a.h,a.j,a.k,a.i]).join(","),"HEIGHT",b.height,"WIDTH",b.width)};else d=wg;xg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c, +projection:b,resolutions:a.resolutions,Fa:d});this.b=k;this.f=1.5}B(ti,xg);ti.prototype.I=function(a,b){var c=b;this.a===k||(c=this.a[rf(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.G(),d=d.h<=a.h&&a.k<=d.k&&d.j<=a.j&&a.i<=d.i;if(d)return c;var c=a=new N(a.h,a.j,a.k,a.i),e=this.f;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.j-=e;c.k+=d;c.i+=e;return this.b=yg(this,a,b,new ae(a.b()/b,a.a()/b))};var ui={ue:"background",ve:"labels",we:"lines",ye:"2010",ze:"2011",Ae:"2011-labels",Be:"2011-lines",Ce:"2011-lite",De:"background",Ee:"hybrid",Fe:"labels",Ge:"lines",He:"lite"},vi={te:"terrain",xe:"toner",Oe:"watercolor"},wi={terrain:{type:"jpg",pc:4,maxZoom:18},toner:{type:"png",pc:0,maxZoom:20},watercolor:{type:"jpg",pc:3,maxZoom:16}}; +function xi(a){var b=new ve('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.provider;y(a.flavor)&&(c+="-"+a.flavor);a=wi[a.provider];pi.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(xi,pi);function yi(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;xg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Fa:function(){return e},resolutions:[d]});this.b=yg(this,b,d,c)}B(yi,xg);yi.prototype.I=function(a){return ce(a,this.b.G())?this.b:k};var zi=[];A("grid",function(a){zi.push(a)});function Ai(a){Qh.call(this,{projection:Qe("EPSG:3857")});this.g=l;a=this.u=Ah(a.uri,{$b:i});a.a.push([this.D,k,this]);a.ga&&wh(a)}B(Ai,Qh); +Ai.prototype.D=function(){var a=zi.pop(),b=Qe("EPSG:4326"),c,d;y(a.bounds)?(c=a.bounds,c=new N(c[0],c[1],c[2],c[3]),this.o=d=c.transform(Ge(b,this.l))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new Rh({maxZoom:f});this.tileGrid=g;this.ba=Nh(function(a){if(a.mc||b<=c)return k;b=Gb(a.x,b);return d!==k&&!ce(dg(g,new se(a.m,b,a.y)),d)?k:new se(a.m,b,c)},Kh(za(a.tiles,Jh)));if(y(a.attribution)){b=d===k?b.G():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(), +c[m]=[eg(g,b,g.a[j])];this.e=[new ve(a.attribution,c)]}this.g=i;J(this,"load")};Ai.prototype.c=p("g");function Bi(a){var b=Pe(a.projection),c=b.G(),d=y(a.extent)?a.extent:c,e=y(a.version)?a.version:"1.3",f,g;if(y(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.G();for(var m=Math.max(g.k-g.h,g.i-g.j),q=y(h)?h:new ae(256,256),j=Array((y(j)?j:18)+1),m=m/q.width,n=0,r=j.length;n