diff --git a/master/apidoc/44f1750883.html b/master/apidoc/44f1750883.html index 099b515a39..dd07e81c31 100644 --- a/master/apidoc/44f1750883.html +++ b/master/apidoc/44f1750883.html @@ -143,7 +143,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/global.html b/master/apidoc/global.html index b7c0c5c722..41f5fdb696 100644 --- a/master/apidoc/global.html +++ b/master/apidoc/global.html @@ -348,7 +348,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/index.html b/master/apidoc/index.html index 00bf49726c..2fed7f5071 100644 --- a/master/apidoc/index.html +++ b/master/apidoc/index.html @@ -56,7 +56,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.AnchoredElement.html b/master/apidoc/ol.AnchoredElement.html index 4db65d40fc..55f7394a29 100644 --- a/master/apidoc/ol.AnchoredElement.html +++ b/master/apidoc/ol.AnchoredElement.html @@ -2343,7 +2343,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Attribution.html b/master/apidoc/ol.Attribution.html index 34e9941c87..eaf1ea9431 100644 --- a/master/apidoc/ol.Attribution.html +++ b/master/apidoc/ol.Attribution.html @@ -434,7 +434,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Collection.html b/master/apidoc/ol.Collection.html index 5712081482..00f08c1cb1 100644 --- a/master/apidoc/ol.Collection.html +++ b/master/apidoc/ol.Collection.html @@ -2380,7 +2380,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.CollectionEvent.html b/master/apidoc/ol.CollectionEvent.html index 79da57d2ed..be73309dc2 100644 --- a/master/apidoc/ol.CollectionEvent.html +++ b/master/apidoc/ol.CollectionEvent.html @@ -461,7 +461,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Color.html b/master/apidoc/ol.Color.html index 8ec6028b8b..64e31665bd 100644 --- a/master/apidoc/ol.Color.html +++ b/master/apidoc/ol.Color.html @@ -762,7 +762,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Constraints.html b/master/apidoc/ol.Constraints.html index 8db11cdd67..8b598e3b7e 100644 --- a/master/apidoc/ol.Constraints.html +++ b/master/apidoc/ol.Constraints.html @@ -300,7 +300,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Coordinate.html b/master/apidoc/ol.Coordinate.html index 14a0c281e4..24c3c6839e 100644 --- a/master/apidoc/ol.Coordinate.html +++ b/master/apidoc/ol.Coordinate.html @@ -866,7 +866,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Ellipsoid.html b/master/apidoc/ol.Ellipsoid.html index b4335e5826..fca8198105 100644 --- a/master/apidoc/ol.Ellipsoid.html +++ b/master/apidoc/ol.Ellipsoid.html @@ -1274,7 +1274,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Extent.html b/master/apidoc/ol.Extent.html index 303ca3f04a..40d1821aad 100644 --- a/master/apidoc/ol.Extent.html +++ b/master/apidoc/ol.Extent.html @@ -2383,7 +2383,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Geolocation.html b/master/apidoc/ol.Geolocation.html index 0abd216f61..edbb6f0108 100644 --- a/master/apidoc/ol.Geolocation.html +++ b/master/apidoc/ol.Geolocation.html @@ -2089,7 +2089,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Image.html b/master/apidoc/ol.Image.html index 4a4c61dfb0..bea4cc2a45 100644 --- a/master/apidoc/ol.Image.html +++ b/master/apidoc/ol.Image.html @@ -958,7 +958,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.ImageTile.html b/master/apidoc/ol.ImageTile.html index dd6ee439af..f53f473466 100644 --- a/master/apidoc/ol.ImageTile.html +++ b/master/apidoc/ol.ImageTile.html @@ -235,6 +235,62 @@
    +
    +

    inQueue :number

    + + +
    +
    + +
    + A count incremented each time the tile is inQueue in a tile queue, +and decremented each time the tile is dequeued from a tile queue. +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • tile.js, line 38
    + + + + + + + +
    + + + +
    + + +

    tileCoord :ol.TileCoord

    @@ -270,7 +326,7 @@
    Source:
    -
    • tile.js, line 34
    +
    • tile.js, line 43
    @@ -334,7 +390,7 @@
    Source:
    -
    • tile.js, line 49
    +
    • tile.js, line 58
    @@ -516,7 +572,7 @@
    Source:
    -
    • tile.js, line 72
    +
    • tile.js, line 81
    @@ -645,7 +701,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Kinetic.html b/master/apidoc/ol.Kinetic.html index 878218e478..362a51b724 100644 --- a/master/apidoc/ol.Kinetic.html +++ b/master/apidoc/ol.Kinetic.html @@ -797,7 +797,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Map.html b/master/apidoc/ol.Map.html index db69bd8d1a..a64252dec7 100644 --- a/master/apidoc/ol.Map.html +++ b/master/apidoc/ol.Map.html @@ -4342,7 +4342,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.MapBrowserEvent.html b/master/apidoc/ol.MapBrowserEvent.html index 939eda4ac2..7df600111c 100644 --- a/master/apidoc/ol.MapBrowserEvent.html +++ b/master/apidoc/ol.MapBrowserEvent.html @@ -1319,7 +1319,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.MapBrowserEventHandler.html b/master/apidoc/ol.MapBrowserEventHandler.html index c970e74721..4a207e7eb9 100644 --- a/master/apidoc/ol.MapBrowserEventHandler.html +++ b/master/apidoc/ol.MapBrowserEventHandler.html @@ -254,7 +254,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.MapEvent.html b/master/apidoc/ol.MapEvent.html index 303bc52aa5..a87e3bdf16 100644 --- a/master/apidoc/ol.MapEvent.html +++ b/master/apidoc/ol.MapEvent.html @@ -466,7 +466,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Object.html b/master/apidoc/ol.Object.html index efc01bf8f1..c11486e552 100644 --- a/master/apidoc/ol.Object.html +++ b/master/apidoc/ol.Object.html @@ -2005,7 +2005,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Pixel.html b/master/apidoc/ol.Pixel.html index fb7f22eed1..fce6d5bb45 100644 --- a/master/apidoc/ol.Pixel.html +++ b/master/apidoc/ol.Pixel.html @@ -210,7 +210,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.PixelBounds.html b/master/apidoc/ol.PixelBounds.html index 61914369e7..82c3c1f3c3 100644 --- a/master/apidoc/ol.PixelBounds.html +++ b/master/apidoc/ol.PixelBounds.html @@ -1524,7 +1524,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Projection.html b/master/apidoc/ol.Projection.html index ce4b106ef4..d6f67c6bc1 100644 --- a/master/apidoc/ol.Projection.html +++ b/master/apidoc/ol.Projection.html @@ -220,7 +220,7 @@
    Source:
    -
    +
    @@ -288,7 +288,7 @@
    Source:
    -
    +
    @@ -347,7 +347,7 @@
    Source:
    -
    +
    @@ -428,7 +428,7 @@
    Source:
    -
    +
    @@ -509,7 +509,7 @@
    Source:
    -
    +
    @@ -590,7 +590,7 @@
    Source:
    -
    +
    @@ -671,7 +671,7 @@
    Source:
    -
    +
    @@ -800,7 +800,7 @@
    Source:
    -
    +
    @@ -844,7 +844,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Rectangle.html b/master/apidoc/ol.Rectangle.html index ca3502eeb0..09383ce08a 100644 --- a/master/apidoc/ol.Rectangle.html +++ b/master/apidoc/ol.Rectangle.html @@ -1448,7 +1448,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Size.html b/master/apidoc/ol.Size.html index 3d379d896c..92d4763fbd 100644 --- a/master/apidoc/ol.Size.html +++ b/master/apidoc/ol.Size.html @@ -343,7 +343,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Sphere.html b/master/apidoc/ol.Sphere.html index 0165a7ce4e..60ff2cafa4 100644 --- a/master/apidoc/ol.Sphere.html +++ b/master/apidoc/ol.Sphere.html @@ -1687,7 +1687,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.Tile.html b/master/apidoc/ol.Tile.html index 04b5ff3bd3..13a30c5274 100644 --- a/master/apidoc/ol.Tile.html +++ b/master/apidoc/ol.Tile.html @@ -123,7 +123,7 @@
    Source:
    -
    +
    @@ -197,7 +197,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    inQueue :number

    + + +
    +
    + +
    + A count incremented each time the tile is inQueue in a tile queue, +and decremented each time the tile is dequeued from a tile queue. +
    + + + +
    + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    • tile.js, line 38
    @@ -247,7 +298,7 @@
    Source:
    -
    • tile.js, line 80
    +
    • tile.js, line 89
    @@ -293,7 +344,7 @@
    Source:
    -
    • tile.js, line 40
    +
    • tile.js, line 49
    @@ -339,7 +390,7 @@
    Source:
    -
    • tile.js, line 34
    +
    • tile.js, line 43
    @@ -398,7 +449,7 @@
    Source:
    -
    • tile.js, line 49
    +
    • tile.js, line 58
    @@ -457,7 +508,7 @@
    Source:
    -
    • tile.js, line 64
    +
    • tile.js, line 73
    @@ -538,7 +589,7 @@
    Source:
    -
    • tile.js, line 72
    +
    • tile.js, line 81
    @@ -604,7 +655,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.TileCache.html b/master/apidoc/ol.TileCache.html index 2d86ead642..b25b64fc53 100644 --- a/master/apidoc/ol.TileCache.html +++ b/master/apidoc/ol.TileCache.html @@ -1595,7 +1595,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.TileCoord.html b/master/apidoc/ol.TileCoord.html index cd14d4e020..b11c496502 100644 --- a/master/apidoc/ol.TileCoord.html +++ b/master/apidoc/ol.TileCoord.html @@ -789,7 +789,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.TileQueue.html b/master/apidoc/ol.TileQueue.html index 269440bf9f..a6d9859acd 100644 --- a/master/apidoc/ol.TileQueue.html +++ b/master/apidoc/ol.TileQueue.html @@ -298,7 +298,7 @@
    Source:
    -
    +
    @@ -357,7 +357,7 @@
    Source:
    -
    +
    @@ -420,7 +420,7 @@
    Source:
    -
    +
    @@ -483,7 +483,7 @@
    Source:
    -
    +
    @@ -527,7 +527,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.TileRange.html b/master/apidoc/ol.TileRange.html index 6f7c129c3d..9c249a11e3 100644 --- a/master/apidoc/ol.TileRange.html +++ b/master/apidoc/ol.TileRange.html @@ -1886,7 +1886,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.View.html b/master/apidoc/ol.View.html index 46ba4fc4e0..16018daebe 100644 --- a/master/apidoc/ol.View.html +++ b/master/apidoc/ol.View.html @@ -1526,7 +1526,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.View2D.html b/master/apidoc/ol.View2D.html index db7f00390e..e615de63ed 100644 --- a/master/apidoc/ol.View2D.html +++ b/master/apidoc/ol.View2D.html @@ -133,7 +133,7 @@
    Source:
    -
    +
    @@ -309,7 +309,7 @@
    Source:
    -
    +
    @@ -650,7 +650,7 @@
    Source:
    -
    +
    @@ -843,7 +843,7 @@
    Source:
    -
    +
    @@ -950,7 +950,7 @@
    Source:
    -
    +
    @@ -1207,7 +1207,7 @@
    Source:
    -
    +
    @@ -1266,7 +1266,7 @@
    Source:
    -
    +
    @@ -1396,7 +1396,7 @@
    Source:
    -
    +
    @@ -1477,7 +1477,7 @@
    Source:
    -
    +
    @@ -1558,7 +1558,7 @@
    Source:
    -
    +
    @@ -1617,7 +1617,7 @@
    Source:
    -
    +
    @@ -1680,7 +1680,7 @@
    Source:
    -
    +
    @@ -1739,7 +1739,7 @@
    Source:
    -
    +
    @@ -2025,6 +2025,37 @@ + + + + duration + + + + + +number= + + + + + + + + + <optional>
    + + + + + + + + + (Optional) Duration. + + + @@ -2051,7 +2082,216 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + + + + + + + +
    +

    rotateWithoutConstraints

    + + +
    +
    + + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeArgumentDescription
    map + + +ol.Map + + + + + + + + Map.
    rotation + + +number +| + +undefined + + + + + + + + Rotation.
    anchor + + +ol.Coordinate= + + + + + + <optional>
    + + + +
    (Optional) Anchor coordinate.
    duration + + +number= + + + + + + <optional>
    + + + +
    (Optional) Duration.
    + + + +
    + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    • view2d.js, line 277
    @@ -2296,7 +2536,7 @@
    Source:
    -
    • view2d.js, line 212
    +
    • view2d.js, line 213
    @@ -2653,7 +2893,7 @@
    Source:
    -
    • view2d.js, line 224
    +
    • view2d.js, line 225
    @@ -2763,7 +3003,7 @@
    Source:
    -
    • view2d.js, line 236
    +
    • view2d.js, line 237
    @@ -2873,7 +3113,7 @@
    Source:
    -
    • view2d.js, line 248
    +
    • view2d.js, line 249
    @@ -3089,6 +3329,215 @@ +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeArgumentDescription
    map + + +ol.Map + + + + + + + + Map.
    resolution + + +number +| + +undefined + + + + + + + + Resolution to go to.
    anchor + + +ol.Coordinate= + + + + + + <optional>
    + + + +
    (Optional) Anchor coordinate.
    duration + + +number= + + + + + + <optional>
    + + + +
    (Optional) Duration.
    + + + +
    + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    • view2d.js, line 324
    + + + + + + + +
    + + + + + + + + + +
    + + + +
    +

    zoomByDelta

    + + +
    +
    + + + + + + + +
    Parameters:
    @@ -3259,7 +3708,7 @@
    Source:
    -
    +
    @@ -3282,7 +3731,7 @@
    -

    zoomToResolution

    +

    zoomWithoutConstraints

    @@ -3411,6 +3860,37 @@ + + + + duration + + + + + +number= + + + + + + + + + <optional>
    + + + + + + + + + (Optional) Duration. + + + @@ -3437,7 +3917,7 @@
    Source:
    -
    +
    @@ -3481,7 +3961,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.control.Attribution.html b/master/apidoc/ol.control.Attribution.html index 7a8ca2011b..2d5b9d8c2f 100644 --- a/master/apidoc/ol.control.Attribution.html +++ b/master/apidoc/ol.control.Attribution.html @@ -732,7 +732,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.control.Control.html b/master/apidoc/ol.control.Control.html index 75e1caf9dd..7b97804f95 100644 --- a/master/apidoc/ol.control.Control.html +++ b/master/apidoc/ol.control.Control.html @@ -499,7 +499,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.control.DragBox.html b/master/apidoc/ol.control.DragBox.html index 26829da3d4..bdd963c38e 100644 --- a/master/apidoc/ol.control.DragBox.html +++ b/master/apidoc/ol.control.DragBox.html @@ -455,7 +455,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.control.MousePosition.html b/master/apidoc/ol.control.MousePosition.html index b3255f3816..435ae4490d 100644 --- a/master/apidoc/ol.control.MousePosition.html +++ b/master/apidoc/ol.control.MousePosition.html @@ -777,7 +777,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.control.ScaleLine.html b/master/apidoc/ol.control.ScaleLine.html index e1a310ee3c..0dc824148a 100644 --- a/master/apidoc/ol.control.ScaleLine.html +++ b/master/apidoc/ol.control.ScaleLine.html @@ -618,7 +618,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.control.Zoom.html b/master/apidoc/ol.control.Zoom.html index e9229158f6..7c5dd2c0a2 100644 --- a/master/apidoc/ol.control.Zoom.html +++ b/master/apidoc/ol.control.Zoom.html @@ -514,7 +514,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.DblClickZoom.html b/master/apidoc/ol.interaction.DblClickZoom.html index 0d52a02024..e111e97f51 100644 --- a/master/apidoc/ol.interaction.DblClickZoom.html +++ b/master/apidoc/ol.interaction.DblClickZoom.html @@ -123,7 +123,7 @@
    Source:
    -
    +
    @@ -206,7 +206,7 @@
    Source:
    -
    +
    @@ -250,7 +250,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.Drag.html b/master/apidoc/ol.interaction.Drag.html index ae4f61026b..b572943e37 100644 --- a/master/apidoc/ol.interaction.Drag.html +++ b/master/apidoc/ol.interaction.Drag.html @@ -666,7 +666,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.DragPan.html b/master/apidoc/ol.interaction.DragPan.html index 67d37b6daf..55750db388 100644 --- a/master/apidoc/ol.interaction.DragPan.html +++ b/master/apidoc/ol.interaction.DragPan.html @@ -840,7 +840,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.DragRotate.html b/master/apidoc/ol.interaction.DragRotate.html index d678666792..2fdd96f69d 100644 --- a/master/apidoc/ol.interaction.DragRotate.html +++ b/master/apidoc/ol.interaction.DragRotate.html @@ -123,7 +123,7 @@
    Source:
    -
    +
    @@ -210,57 +210,6 @@ - - - - - - - - -
    -

    <protected> handleDragEnd

    - - -
    -
    - - - -
    - - - - - - - -
    Inherited From:
    -
    - - - - - - - - - - - - - -
    Source:
    -
    • draginteraction.js, line 71
    - - - - - - -
    @@ -618,7 +567,66 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + + + + + + + +
    +

    handleDragEnd

    + + +
    +
    + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    • dragrotateinteraction.js, line 65
    @@ -677,7 +685,7 @@
    Source:
    -
    • dragrotateinteraction.js, line 58
    +
    • dragrotateinteraction.js, line 80
    @@ -785,7 +793,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.DragRotateAndZoom.html b/master/apidoc/ol.interaction.DragRotateAndZoom.html index 43f6715f94..bd62f8606c 100644 --- a/master/apidoc/ol.interaction.DragRotateAndZoom.html +++ b/master/apidoc/ol.interaction.DragRotateAndZoom.html @@ -785,7 +785,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.DragZoom.html b/master/apidoc/ol.interaction.DragZoom.html index faab7af5c0..468aad8f89 100644 --- a/master/apidoc/ol.interaction.DragZoom.html +++ b/master/apidoc/ol.interaction.DragZoom.html @@ -785,7 +785,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.Interaction.html b/master/apidoc/ol.interaction.Interaction.html index b4ef1c3998..21c87b3c59 100644 --- a/master/apidoc/ol.interaction.Interaction.html +++ b/master/apidoc/ol.interaction.Interaction.html @@ -183,7 +183,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.Keyboard.html b/master/apidoc/ol.interaction.Keyboard.html index 0fafa01e7a..a24b419519 100644 --- a/master/apidoc/ol.interaction.Keyboard.html +++ b/master/apidoc/ol.interaction.Keyboard.html @@ -332,7 +332,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.KeyboardPan.html b/master/apidoc/ol.interaction.KeyboardPan.html index 9a9b7422c2..ab046e1225 100644 --- a/master/apidoc/ol.interaction.KeyboardPan.html +++ b/master/apidoc/ol.interaction.KeyboardPan.html @@ -250,7 +250,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.KeyboardZoom.html b/master/apidoc/ol.interaction.KeyboardZoom.html index dc5f145527..8ebd590fd5 100644 --- a/master/apidoc/ol.interaction.KeyboardZoom.html +++ b/master/apidoc/ol.interaction.KeyboardZoom.html @@ -202,7 +202,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.MouseWheelZoom.html b/master/apidoc/ol.interaction.MouseWheelZoom.html index c0e126c45d..c0f7bac373 100644 --- a/master/apidoc/ol.interaction.MouseWheelZoom.html +++ b/master/apidoc/ol.interaction.MouseWheelZoom.html @@ -52,54 +52,6 @@ -
    Parameters:
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeDescription
    delta - - -number - - - - The zoom delta applied on each mousewheel.
    -
    @@ -123,7 +75,7 @@
    Source:
    -
    • mousewheelzoominteraction.js, line 17
    +
    • mousewheelzoominteraction.js, line 36
    @@ -206,7 +158,7 @@
    Source:
    -
    • mousewheelzoominteraction.js, line 32
    +
    • mousewheelzoominteraction.js, line 71
    @@ -250,7 +202,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.Touch.html b/master/apidoc/ol.interaction.Touch.html index 5b2d29db13..40d1749281 100644 --- a/master/apidoc/ol.interaction.Touch.html +++ b/master/apidoc/ol.interaction.Touch.html @@ -519,7 +519,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.TouchPan.html b/master/apidoc/ol.interaction.TouchPan.html index 282229afe5..c2cd368f37 100644 --- a/master/apidoc/ol.interaction.TouchPan.html +++ b/master/apidoc/ol.interaction.TouchPan.html @@ -543,7 +543,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.TouchRotate.html b/master/apidoc/ol.interaction.TouchRotate.html index 7b556a1a5e..dba50363d2 100644 --- a/master/apidoc/ol.interaction.TouchRotate.html +++ b/master/apidoc/ol.interaction.TouchRotate.html @@ -46,6 +46,10 @@
    +
    + /** +
    + @@ -134,7 +138,7 @@
    Source:
    -
    +
    @@ -336,7 +340,7 @@
    Source:
    -
    +
    @@ -395,7 +399,7 @@
    Source:
    -
    +
    @@ -454,7 +458,7 @@
    Source:
    -
    +
    @@ -498,7 +502,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.interaction.TouchZoom.html b/master/apidoc/ol.interaction.TouchZoom.html index 85b069301e..32b20b8b0e 100644 --- a/master/apidoc/ol.interaction.TouchZoom.html +++ b/master/apidoc/ol.interaction.TouchZoom.html @@ -75,7 +75,7 @@
    Source:
    -
    +
    @@ -277,7 +277,7 @@
    Source:
    -
    +
    @@ -336,7 +336,7 @@
    Source:
    -
    +
    @@ -395,7 +395,7 @@
    Source:
    -
    +
    @@ -439,7 +439,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.layer.ImageLayer.html b/master/apidoc/ol.layer.ImageLayer.html index dcbfb45e2d..354bbf5ea0 100644 --- a/master/apidoc/ol.layer.ImageLayer.html +++ b/master/apidoc/ol.layer.ImageLayer.html @@ -2835,7 +2835,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.layer.Layer.html b/master/apidoc/ol.layer.Layer.html index 2a4417a40c..65e85954c5 100644 --- a/master/apidoc/ol.layer.Layer.html +++ b/master/apidoc/ol.layer.Layer.html @@ -2679,7 +2679,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.layer.TileLayer.html b/master/apidoc/ol.layer.TileLayer.html index 398a8caf77..bc8011b3e0 100644 --- a/master/apidoc/ol.layer.TileLayer.html +++ b/master/apidoc/ol.layer.TileLayer.html @@ -2835,7 +2835,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.XML.html b/master/apidoc/ol.parser.XML.html index 8f29b4dacb..7a8dca4e93 100644 --- a/master/apidoc/ol.parser.XML.html +++ b/master/apidoc/ol.parser.XML.html @@ -976,7 +976,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.ExceptionReport.html b/master/apidoc/ol.parser.ogc.ExceptionReport.html index fe339cf7f8..f2a4ee996f 100644 --- a/master/apidoc/ol.parser.ogc.ExceptionReport.html +++ b/master/apidoc/ol.parser.ogc.ExceptionReport.html @@ -1144,7 +1144,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.OWSCommon_v1.html b/master/apidoc/ol.parser.ogc.OWSCommon_v1.html index 51f2b42868..c43f4daf6f 100644 --- a/master/apidoc/ol.parser.ogc.OWSCommon_v1.html +++ b/master/apidoc/ol.parser.ogc.OWSCommon_v1.html @@ -1007,7 +1007,7 @@ items from the cache is the responsibility of the user.
  • 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 23e935cff3..3f4d19d287 100644 --- a/master/apidoc/ol.parser.ogc.OWSCommon_v1_1_0.html +++ b/master/apidoc/ol.parser.ogc.OWSCommon_v1_1_0.html @@ -1007,7 +1007,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.Versioned.html b/master/apidoc/ol.parser.ogc.Versioned.html index 0a0e78d220..8902fa3849 100644 --- a/master/apidoc/ol.parser.ogc.Versioned.html +++ b/master/apidoc/ol.parser.ogc.Versioned.html @@ -828,7 +828,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities.html b/master/apidoc/ol.parser.ogc.WMSCapabilities.html index bfa8da0e44..b828280ecb 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities.html @@ -864,7 +864,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html index 342a0030f1..1b95fbd111 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1.html @@ -1142,7 +1142,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html index c332f5e929..76a8745864 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1.html @@ -1147,7 +1147,7 @@ items from the cache is the responsibility of the user.
  • 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 59c8f83624..d3192d0862 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_0.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_0.html @@ -1147,7 +1147,7 @@ items from the cache is the responsibility of the user.
  • 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 dc5b145c56..69113c26b6 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_1_1.html @@ -1147,7 +1147,7 @@ items from the cache is the responsibility of the user.
  • 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 be60b9071b..ecc11d774b 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 @@ -1147,7 +1147,7 @@ items from the cache is the responsibility of the user.
  • 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 93c43211c3..3af2e30a0d 100644 --- a/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_3_0.html +++ b/master/apidoc/ol.parser.ogc.WMSCapabilities_v1_3_0.html @@ -1147,7 +1147,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.parser.ogc.WMTSCapabilities.html b/master/apidoc/ol.parser.ogc.WMTSCapabilities.html index e6a4254284..a38bc5aa89 100644 --- a/master/apidoc/ol.parser.ogc.WMTSCapabilities.html +++ b/master/apidoc/ol.parser.ogc.WMTSCapabilities.html @@ -864,7 +864,7 @@ items from the cache is the responsibility of the user.
  • 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 06aa3b166b..90d0d1f3ed 100644 --- a/master/apidoc/ol.parser.ogc.WMTSCapabilities_v1_0_0.html +++ b/master/apidoc/ol.parser.ogc.WMTSCapabilities_v1_0_0.html @@ -744,7 +744,7 @@ first child value exists.
    Source:
    -
    +
    @@ -1142,7 +1142,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.projection.EPSG3857.html b/master/apidoc/ol.projection.EPSG3857.html index 983ca0ea2d..c3efa05c69 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:
    -
    +
    @@ -711,7 +711,7 @@
    Source:
    -
    +
    @@ -856,7 +856,7 @@
    Source:
    -
    +
    @@ -990,7 +990,7 @@
    Source:
    -
    +
    @@ -1440,7 +1440,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.projection.EPSG4326.html b/master/apidoc/ol.projection.EPSG4326.html index 44ef149381..9f4a9365ca 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:
    -
    +
    @@ -612,7 +612,7 @@
    Source:
    -
    +
    @@ -757,7 +757,7 @@
    Source:
    -
    +
    @@ -891,7 +891,7 @@
    Source:
    -
    +
    @@ -935,7 +935,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.Layer.html b/master/apidoc/ol.renderer.Layer.html index 6c947c6cd3..a642ab609a 100644 --- a/master/apidoc/ol.renderer.Layer.html +++ b/master/apidoc/ol.renderer.Layer.html @@ -271,7 +271,7 @@
    Source:
    -
    +
    @@ -317,7 +317,7 @@
    Source:
    -
    +
    @@ -363,7 +363,7 @@
    Source:
    -
    +
    @@ -409,7 +409,53 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -455,7 +501,7 @@
    Source:
    -
    • layerrenderer.js, line 184
    +
    • layerrenderer.js, line 206
    @@ -894,7 +940,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -975,7 +1021,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1258,7 +1304,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1339,7 +1385,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1420,7 +1466,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1553,7 +1599,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1612,7 +1658,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1671,7 +1717,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -1730,7 +1776,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -1753,7 +1799,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -1761,7 +1807,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -1795,13 +1841,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -1811,7 +1857,7 @@ - Tile change event. + Tile. @@ -1841,7 +1887,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2083,7 +2129,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -2641,7 +2687,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -2817,7 +2863,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -2970,7 +3016,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3014,7 +3060,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.Map.html b/master/apidoc/ol.renderer.Map.html index e70c5f55b4..f05ad39202 100644 --- a/master/apidoc/ol.renderer.Map.html +++ b/master/apidoc/ol.renderer.Map.html @@ -1764,7 +1764,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.canvas.ImageLayer.html b/master/apidoc/ol.renderer.canvas.ImageLayer.html index 318981c484..5dd5be0591 100644 --- a/master/apidoc/ol.renderer.canvas.ImageLayer.html +++ b/master/apidoc/ol.renderer.canvas.ImageLayer.html @@ -276,7 +276,7 @@
    Source:
    -
    +
    @@ -327,7 +327,7 @@
    Source:
    -
    +
    @@ -378,7 +378,7 @@
    Source:
    -
    +
    @@ -429,7 +429,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -873,7 +924,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -959,7 +1010,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1387,7 +1438,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1473,7 +1524,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1559,7 +1610,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1756,7 +1807,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1820,7 +1871,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1884,7 +1935,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -1948,7 +1999,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -1971,7 +2022,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -1979,7 +2030,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -2013,13 +2064,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -2029,7 +2080,7 @@ - Tile change event. + Tile. @@ -2048,7 +2099,7 @@
    Inherited From:
    @@ -2064,7 +2115,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2370,7 +2421,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -2933,7 +2984,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -3114,7 +3165,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -3272,7 +3323,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3316,7 +3367,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.canvas.Layer.html b/master/apidoc/ol.renderer.canvas.Layer.html index 24f2e9f791..1e49deade2 100644 --- a/master/apidoc/ol.renderer.canvas.Layer.html +++ b/master/apidoc/ol.renderer.canvas.Layer.html @@ -368,7 +368,7 @@
    Source:
    -
    +
    @@ -419,7 +419,7 @@
    Source:
    -
    +
    @@ -470,7 +470,7 @@
    Source:
    -
    +
    @@ -521,7 +521,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -572,7 +623,7 @@
    Source:
    -
    • layerrenderer.js, line 184
    +
    • layerrenderer.js, line 206
    @@ -1016,7 +1067,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -1102,7 +1153,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1390,7 +1441,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1476,7 +1527,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1562,7 +1613,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1700,7 +1751,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1764,7 +1815,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1828,7 +1879,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -1892,7 +1943,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -1915,7 +1966,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -1923,7 +1974,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -1957,13 +2008,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -1973,7 +2024,7 @@ - Tile change event. + Tile. @@ -1992,7 +2043,7 @@
    Inherited From:
    @@ -2008,7 +2059,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2255,7 +2306,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -2818,7 +2869,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -2999,7 +3050,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -3157,7 +3208,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3201,7 +3252,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.canvas.Map.html b/master/apidoc/ol.renderer.canvas.Map.html index 6a5f877682..677eafb9f2 100644 --- a/master/apidoc/ol.renderer.canvas.Map.html +++ b/master/apidoc/ol.renderer.canvas.Map.html @@ -1786,7 +1786,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.canvas.TileLayer.html b/master/apidoc/ol.renderer.canvas.TileLayer.html index b1b5675a55..ca42c54b0d 100644 --- a/master/apidoc/ol.renderer.canvas.TileLayer.html +++ b/master/apidoc/ol.renderer.canvas.TileLayer.html @@ -276,7 +276,7 @@
    Source:
    -
    +
    @@ -327,7 +327,7 @@
    Source:
    -
    +
    @@ -378,7 +378,7 @@
    Source:
    -
    +
    @@ -429,7 +429,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -873,7 +924,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -959,7 +1010,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1306,7 +1357,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1392,7 +1443,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1478,7 +1529,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1756,7 +1807,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1820,7 +1871,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1884,7 +1935,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -1948,7 +1999,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -1971,7 +2022,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -1979,7 +2030,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -2013,13 +2064,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -2029,7 +2080,7 @@ - Tile change event. + Tile. @@ -2048,7 +2099,7 @@
    Inherited From:
    @@ -2064,7 +2115,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2370,7 +2421,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -2933,7 +2984,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -3114,7 +3165,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -3272,7 +3323,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3316,7 +3367,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.dom.ImageLayer.html b/master/apidoc/ol.renderer.dom.ImageLayer.html index da33de557a..e2afd6c421 100644 --- a/master/apidoc/ol.renderer.dom.ImageLayer.html +++ b/master/apidoc/ol.renderer.dom.ImageLayer.html @@ -276,7 +276,7 @@
    Source:
    -
    +
    @@ -327,7 +327,7 @@
    Source:
    -
    +
    @@ -378,7 +378,7 @@
    Source:
    -
    +
    @@ -429,7 +429,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -924,7 +975,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -1010,7 +1061,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1443,7 +1494,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1529,7 +1580,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1615,7 +1666,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1839,7 +1890,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1903,7 +1954,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1967,7 +2018,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -2031,7 +2082,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -2054,7 +2105,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -2062,7 +2113,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -2096,13 +2147,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -2112,7 +2163,7 @@ - Tile change event. + Tile. @@ -2131,7 +2182,7 @@
    Inherited From:
    @@ -2147,7 +2198,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2453,7 +2504,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -3123,7 +3174,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -3304,7 +3355,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -3462,7 +3513,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3506,7 +3557,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.dom.Layer.html b/master/apidoc/ol.renderer.dom.Layer.html index be91b56025..15989cd6e4 100644 --- a/master/apidoc/ol.renderer.dom.Layer.html +++ b/master/apidoc/ol.renderer.dom.Layer.html @@ -299,7 +299,7 @@
    Source:
    -
    +
    @@ -350,7 +350,7 @@
    Source:
    -
    +
    @@ -401,7 +401,7 @@
    Source:
    -
    +
    @@ -452,7 +452,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -503,7 +554,7 @@
    Source:
    -
    • layerrenderer.js, line 184
    +
    • layerrenderer.js, line 206
    @@ -993,7 +1044,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -1079,7 +1130,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1426,7 +1477,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1512,7 +1563,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1598,7 +1649,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1817,7 +1868,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1881,7 +1932,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1945,7 +1996,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -2009,7 +2060,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -2032,7 +2083,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -2040,7 +2091,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -2074,13 +2125,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -2090,7 +2141,7 @@ - Tile change event. + Tile. @@ -2109,7 +2160,7 @@
    Inherited From:
    @@ -2125,7 +2176,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2372,7 +2423,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -2935,7 +2986,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -3116,7 +3167,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -3274,7 +3325,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3318,7 +3369,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.dom.Map.html b/master/apidoc/ol.renderer.dom.Map.html index bf3e5f6e25..04895cd0bc 100644 --- a/master/apidoc/ol.renderer.dom.Map.html +++ b/master/apidoc/ol.renderer.dom.Map.html @@ -1725,7 +1725,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.dom.TileLayer.html b/master/apidoc/ol.renderer.dom.TileLayer.html index d5ddc6947d..59218c927c 100644 --- a/master/apidoc/ol.renderer.dom.TileLayer.html +++ b/master/apidoc/ol.renderer.dom.TileLayer.html @@ -276,7 +276,7 @@
    Source:
    -
    +
    @@ -327,7 +327,7 @@
    Source:
    -
    +
    @@ -378,7 +378,7 @@
    Source:
    -
    +
    @@ -429,7 +429,58 @@
    Source:
    -
    +
    + + + + + + + + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    @@ -924,7 +975,7 @@
    Source:
    -
    • layerrenderer.js, line 271
    +
    • layerrenderer.js, line 293
    @@ -1010,7 +1061,7 @@
    Source:
    -
    • layerrenderer.js, line 77
    +
    • layerrenderer.js, line 83
    @@ -1362,7 +1413,7 @@
    Source:
    -
    • layerrenderer.js, line 85
    +
    • layerrenderer.js, line 91
    @@ -1448,7 +1499,7 @@
    Source:
    -
    • layerrenderer.js, line 93
    +
    • layerrenderer.js, line 99
    @@ -1534,7 +1585,7 @@
    Source:
    -
    • layerrenderer.js, line 101
    +
    • layerrenderer.js, line 107
    @@ -1839,7 +1890,7 @@
    Source:
    -
    • layerrenderer.js, line 129
    +
    • layerrenderer.js, line 135
    @@ -1903,7 +1954,7 @@
    Source:
    -
    • layerrenderer.js, line 140
    +
    • layerrenderer.js, line 146
    @@ -1967,7 +2018,7 @@
    Source:
    -
    • layerrenderer.js, line 148
    +
    • layerrenderer.js, line 154
    @@ -2031,7 +2082,7 @@
    Source:
    -
    • layerrenderer.js, line 162
    +
    • layerrenderer.js, line 168
    @@ -2054,7 +2105,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -2062,7 +2113,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -2096,13 +2147,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -2112,7 +2163,7 @@ - Tile change event. + Tile. @@ -2131,7 +2182,7 @@
    Inherited From:
    @@ -2147,7 +2198,7 @@
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 192
    @@ -2453,7 +2504,7 @@
    Source:
    -
    • layerrenderer.js, line 192
    +
    • layerrenderer.js, line 214
    @@ -3016,7 +3067,7 @@
    Source:
    -
    • layerrenderer.js, line 210
    +
    • layerrenderer.js, line 232
    @@ -3197,7 +3248,7 @@
    Source:
    -
    • layerrenderer.js, line 228
    +
    • layerrenderer.js, line 250
    @@ -3355,7 +3406,7 @@
    Source:
    -
    • layerrenderer.js, line 252
    +
    • layerrenderer.js, line 274
    @@ -3399,7 +3450,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.FragmentShader.html b/master/apidoc/ol.renderer.webgl.FragmentShader.html index 22b2f575cf..e01964f92c 100644 --- a/master/apidoc/ol.renderer.webgl.FragmentShader.html +++ b/master/apidoc/ol.renderer.webgl.FragmentShader.html @@ -391,7 +391,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.ImageLayer.html b/master/apidoc/ol.renderer.webgl.ImageLayer.html index dc49adbfcf..d104434e11 100644 --- a/master/apidoc/ol.renderer.webgl.ImageLayer.html +++ b/master/apidoc/ol.renderer.webgl.ImageLayer.html @@ -233,6 +233,57 @@ + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    + + + + + + +
    @@ -669,7 +720,7 @@
    Source:
    -
    +
    @@ -755,7 +806,7 @@
    Source:
    -
    +
    @@ -1269,7 +1320,7 @@
    Source:
    -
    +
    @@ -1355,7 +1406,7 @@
    Source:
    -
    +
    @@ -1756,7 +1807,7 @@
    Source:
    -
    +
    @@ -2012,7 +2063,7 @@
    Source:
    -
    +
    @@ -2076,7 +2127,7 @@
    Source:
    -
    +
    @@ -2204,123 +2255,7 @@
    Source:
    -
    - - - - - - - - - - - - - - - - - - - - - -
    -

    <protected> handleTileChange

    - - -
    -
    - - -
    - Handle changes in tile state. -
    - - - - - - - -
    Parameters:
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeDescription
    event - - -goog.events.Event - - - - Tile change event.
    - - - -
    - - - - - - - -
    Inherited From:
    -
    - - - - - - - - - - - - - -
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 168
    @@ -2397,6 +2332,122 @@ +
    + + + +
    +

    <protected> listenToTileChange

    + + +
    +
    + + +
    + Listen once to titileKey, le change event. +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    tile + + +ol.Tile + + + + Tile.
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 192
    + + + + + + + +
    + + + + + + + + +
    @@ -2685,7 +2736,7 @@
    Source:
    -
    +
    @@ -3248,7 +3299,7 @@
    Source:
    -
    +
    @@ -3429,7 +3480,7 @@
    Source:
    -
    +
    @@ -3587,7 +3638,7 @@
    Source:
    -
    +
    @@ -3631,7 +3682,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.Layer.html b/master/apidoc/ol.renderer.webgl.Layer.html index 11acfdb3d4..7b125c17d4 100644 --- a/master/apidoc/ol.renderer.webgl.Layer.html +++ b/master/apidoc/ol.renderer.webgl.Layer.html @@ -421,6 +421,57 @@ + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    + + + + + + +
    @@ -464,7 +515,7 @@
    Source:
    -
    +
    @@ -908,7 +959,7 @@
    Source:
    -
    +
    @@ -994,7 +1045,7 @@
    Source:
    -
    +
    @@ -1363,7 +1414,7 @@
    Source:
    -
    +
    @@ -1449,7 +1500,7 @@
    Source:
    -
    +
    @@ -1668,7 +1719,7 @@
    Source:
    -
    +
    @@ -1909,7 +1960,7 @@
    Source:
    -
    +
    @@ -1973,7 +2024,7 @@
    Source:
    -
    +
    @@ -2096,7 +2147,7 @@
    Source:
    -
    +
    @@ -2119,7 +2170,7 @@
    -

    <protected> handleTileChange

    +

    <protected> listenToTileChange

    @@ -2127,7 +2178,7 @@
    - Handle changes in tile state. + Listen once to titileKey, le change event.
    @@ -2161,13 +2212,13 @@ - event + tile -goog.events.Event +ol.Tile @@ -2177,7 +2228,7 @@ - Tile change event. + Tile. @@ -2196,7 +2247,7 @@
    Inherited From:
    @@ -2212,7 +2263,7 @@
    Source:
    -
    +
    @@ -2459,7 +2510,7 @@
    Source:
    -
    +
    @@ -3022,7 +3073,7 @@
    Source:
    -
    +
    @@ -3203,7 +3254,7 @@
    Source:
    -
    +
    @@ -3361,7 +3412,7 @@
    Source:
    -
    +
    @@ -3405,7 +3456,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.Map.html b/master/apidoc/ol.renderer.webgl.Map.html index 26b4f7657a..d52e6d7df8 100644 --- a/master/apidoc/ol.renderer.webgl.Map.html +++ b/master/apidoc/ol.renderer.webgl.Map.html @@ -2531,7 +2531,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.Shader.html b/master/apidoc/ol.renderer.webgl.Shader.html index 7444e97450..c5230e8ec6 100644 --- a/master/apidoc/ol.renderer.webgl.Shader.html +++ b/master/apidoc/ol.renderer.webgl.Shader.html @@ -362,7 +362,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.TileLayer.html b/master/apidoc/ol.renderer.webgl.TileLayer.html index 9c3c1d11c5..cba6916421 100644 --- a/master/apidoc/ol.renderer.webgl.TileLayer.html +++ b/master/apidoc/ol.renderer.webgl.TileLayer.html @@ -233,6 +233,57 @@ + + + + + + + + +
    +

    <protected> observedTileKeys :Object.<string, boolean>

    + + +
    +
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 47
    + + + + + + +
    @@ -669,7 +720,7 @@
    Source:
    -
    +
    @@ -755,7 +806,7 @@
    Source:
    -
    +
    @@ -1188,7 +1239,7 @@
    Source:
    -
    +
    @@ -1274,7 +1325,7 @@
    Source:
    -
    +
    @@ -1756,7 +1807,7 @@
    Source:
    -
    +
    @@ -2012,7 +2063,7 @@
    Source:
    -
    +
    @@ -2076,7 +2127,7 @@
    Source:
    -
    +
    @@ -2204,123 +2255,7 @@
    Source:
    -
    - - - - - - - - - - - - - - - - - - - - - -
    -

    <protected> handleTileChange

    - - -
    -
    - - -
    - Handle changes in tile state. -
    - - - - - - - -
    Parameters:
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    NameTypeDescription
    event - - -goog.events.Event - - - - Tile change event.
    - - - -
    - - - - - - - -
    Inherited From:
    -
    - - - - - - - - - - - - - -
    Source:
    -
    • layerrenderer.js, line 172
    +
    • layerrenderer.js, line 168
    @@ -2397,6 +2332,122 @@ +
    + + + +
    +

    <protected> listenToTileChange

    + + +
    +
    + + +
    + Listen once to titileKey, le change event. +
    + + + + + + + +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameTypeDescription
    tile + + +ol.Tile + + + + Tile.
    + + + +
    + + + + + + + +
    Inherited From:
    +
    + + + + + + + + + + + + + +
    Source:
    +
    • layerrenderer.js, line 192
    + + + + + + + +
    + + + + + + + + +
    @@ -2685,7 +2736,7 @@
    Source:
    -
    +
    @@ -3248,7 +3299,7 @@
    Source:
    -
    +
    @@ -3429,7 +3480,7 @@
    Source:
    -
    +
    @@ -3587,7 +3638,7 @@
    Source:
    -
    +
    @@ -3631,7 +3682,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.VertexShader.html b/master/apidoc/ol.renderer.webgl.VertexShader.html index 9243fe9b82..77edaba7f0 100644 --- a/master/apidoc/ol.renderer.webgl.VertexShader.html +++ b/master/apidoc/ol.renderer.webgl.VertexShader.html @@ -391,7 +391,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html b/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html index 38a04107f4..9e3db08463 100644 --- a/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html +++ b/master/apidoc/ol.renderer.webgl.map.shader.Fragment.html @@ -355,7 +355,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html b/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html index a889835d2c..38525de121 100644 --- a/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html +++ b/master/apidoc/ol.renderer.webgl.map.shader.Vertex.html @@ -348,7 +348,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html index 5a992adfcc..bf9cbbebf7 100644 --- a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html +++ b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Fragment.html @@ -348,7 +348,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html index f0e4f0883e..d7a6b1b784 100644 --- a/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html +++ b/master/apidoc/ol.renderer.webgl.tilelayerrenderer.shader.Vertex.html @@ -348,7 +348,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.BingMaps.html b/master/apidoc/ol.source.BingMaps.html index 2274ed2c48..d2b36fb446 100644 --- a/master/apidoc/ol.source.BingMaps.html +++ b/master/apidoc/ol.source.BingMaps.html @@ -1876,7 +1876,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.DebugTileSource.html b/master/apidoc/ol.source.DebugTileSource.html index 00a33527a3..42a35d048e 100644 --- a/master/apidoc/ol.source.DebugTileSource.html +++ b/master/apidoc/ol.source.DebugTileSource.html @@ -1792,7 +1792,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.ImageSource.html b/master/apidoc/ol.source.ImageSource.html index 21180ec879..cff7d01ed6 100644 --- a/master/apidoc/ol.source.ImageSource.html +++ b/master/apidoc/ol.source.ImageSource.html @@ -1375,7 +1375,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.ImageTileSource.html b/master/apidoc/ol.source.ImageTileSource.html index f86697461c..8684fee6f2 100644 --- a/master/apidoc/ol.source.ImageTileSource.html +++ b/master/apidoc/ol.source.ImageTileSource.html @@ -1842,7 +1842,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.MapQuestOSM.html b/master/apidoc/ol.source.MapQuestOSM.html index 8de9f717b7..6298992d3a 100644 --- a/master/apidoc/ol.source.MapQuestOSM.html +++ b/master/apidoc/ol.source.MapQuestOSM.html @@ -1819,7 +1819,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.MapQuestOpenAerial.html b/master/apidoc/ol.source.MapQuestOpenAerial.html index 46ea4363e7..ea5266e740 100644 --- a/master/apidoc/ol.source.MapQuestOpenAerial.html +++ b/master/apidoc/ol.source.MapQuestOpenAerial.html @@ -1819,7 +1819,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.OpenStreetMap.html b/master/apidoc/ol.source.OpenStreetMap.html index f2495f6214..3d83f5ddc9 100644 --- a/master/apidoc/ol.source.OpenStreetMap.html +++ b/master/apidoc/ol.source.OpenStreetMap.html @@ -1819,7 +1819,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.SingleImageWMS.html b/master/apidoc/ol.source.SingleImageWMS.html index 2902dee10a..ba91c42f92 100644 --- a/master/apidoc/ol.source.SingleImageWMS.html +++ b/master/apidoc/ol.source.SingleImageWMS.html @@ -936,7 +936,7 @@
    Source:
    -
    +
    @@ -1402,7 +1402,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.Source.html b/master/apidoc/ol.source.Source.html index 47a3cbc680..bcdd042928 100644 --- a/master/apidoc/ol.source.Source.html +++ b/master/apidoc/ol.source.Source.html @@ -910,7 +910,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.Stamen.html b/master/apidoc/ol.source.Stamen.html index 9daf3adae7..5c81924f90 100644 --- a/master/apidoc/ol.source.Stamen.html +++ b/master/apidoc/ol.source.Stamen.html @@ -77,7 +77,7 @@ - stamenOptions + options @@ -93,7 +93,7 @@ - Stamen options. + Options. @@ -123,7 +123,7 @@
    Source:
    -
    +
    @@ -1867,7 +1867,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.StaticImage.html b/master/apidoc/ol.source.StaticImage.html index a984081056..6ef22510fc 100644 --- a/master/apidoc/ol.source.StaticImage.html +++ b/master/apidoc/ol.source.StaticImage.html @@ -1534,7 +1534,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.TileJSON.html b/master/apidoc/ol.source.TileJSON.html index 1268446c9c..aa9f39af1f 100644 --- a/master/apidoc/ol.source.TileJSON.html +++ b/master/apidoc/ol.source.TileJSON.html @@ -1828,7 +1828,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.TileSource.html b/master/apidoc/ol.source.TileSource.html index bc9109689d..637bf0698b 100644 --- a/master/apidoc/ol.source.TileSource.html +++ b/master/apidoc/ol.source.TileSource.html @@ -1718,7 +1718,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.TiledWMS.html b/master/apidoc/ol.source.TiledWMS.html index 5c7500d741..19ab1e8b80 100644 --- a/master/apidoc/ol.source.TiledWMS.html +++ b/master/apidoc/ol.source.TiledWMS.html @@ -1867,7 +1867,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.source.XYZ.html b/master/apidoc/ol.source.XYZ.html index 079fdcbd00..6a451df8a2 100644 --- a/master/apidoc/ol.source.XYZ.html +++ b/master/apidoc/ol.source.XYZ.html @@ -1913,7 +1913,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.tilegrid.TileGrid.html b/master/apidoc/ol.tilegrid.TileGrid.html index 07080a3755..761f73f094 100644 --- a/master/apidoc/ol.tilegrid.TileGrid.html +++ b/master/apidoc/ol.tilegrid.TileGrid.html @@ -2262,7 +2262,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/apidoc/ol.tilegrid.XYZ.html b/master/apidoc/ol.tilegrid.XYZ.html index 17859afbbc..187f2645f3 100644 --- a/master/apidoc/ol.tilegrid.XYZ.html +++ b/master/apidoc/ol.tilegrid.XYZ.html @@ -2222,7 +2222,7 @@ items from the cache is the responsibility of the user.
  • diff --git a/master/build/ol-simple.js b/master/build/ol-simple.js index 2ea43620f8..e9b0b2a458 100644 --- a/master/build/ol-simple.js +++ b/master/build/ol-simple.js @@ -469,11 +469,11 @@ 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 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.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};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;bc?(b="\u2032",a*=60):b="\u00b0":this.units_==ol.control.ScaleLineUnits.IMPERIAL?0.9144>c?(b="in",a/=0.0254):1609.344>c?(b="ft",a/=0.3048):(b="mi",a/=1609.344):this.units_==ol.control.ScaleLineUnits.NAUTICAL?(a/=1852,b="nm"):this.units_==ol.control.ScaleLineUnits.METRIC?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):this.units_==ol.control.ScaleLineUnits.US? -0.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=0.30480061):(b="mi",a/=1609.3472):goog.asserts.assert(!1);for(var c=3*Math.floor(Math.log(this.minWidth_*a)/Math.log(10)),e,f;;){e=ol.control.ScaleLine.LEADING_DIGITS[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(e/a);if(f>=this.minWidth_)break;++c}e+=b;this.renderedHTML_!=e&&(this.renderedHTML_=this.innerElement_.innerHTML=e);this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f);this.renderedVisible_||(goog.style.showElement(this.element_, -!0),this.renderedVisible_=!0)}};ol.control.ZOOM_DURATION=250; +ol.control.ScaleLine.prototype.updateElement_=function(a){if(goog.isNull(a))this.renderedVisible_&&(goog.style.showElement(this.element_,!1),this.renderedVisible_=!1);else{var a=a.view2DState,b=a.center,c=a.projection,a=c.getPointResolution(a.resolution,b),d=c.getUnits();d==ol.ProjectionUnits.DEGREES&&(this.units_==ol.control.ScaleLineUnits.METRIC||this.units_==ol.control.ScaleLineUnits.IMPERIAL)?(this.toEPSG4326_=null,b=Math.cos(goog.math.toRadians(b.y)),a*=Math.PI*b*ol.sphere.NORMAL.radius/180, +d=ol.ProjectionUnits.METERS):(d==ol.ProjectionUnits.FEET||d==ol.ProjectionUnits.METERS)&&this.units_==ol.control.ScaleLineUnits.DEGREES?(goog.isNull(this.toEPSG4326_)&&(this.toEPSG4326_=ol.projection.getTransform(c,ol.projection.getFromCode("EPSG:4326"))),b=[b.x,b.y],b=this.toEPSG4326_(b,b,2),b=Math.cos(goog.math.toRadians(b[1])),c=ol.sphere.NORMAL.radius,d==ol.ProjectionUnits.FEET&&(c/=0.3048),a*=180/(Math.PI*b*c),d=ol.ProjectionUnits.DEGREES):this.toEPSG4326_=null;goog.asserts.assert((this.units_== +ol.control.ScaleLineUnits.METRIC||this.units_==ol.control.ScaleLineUnits.IMPERIAL)&&d==ol.ProjectionUnits.METERS||this.units_==ol.control.ScaleLineUnits.DEGREES&&d==ol.ProjectionUnits.DEGREES);b=this.minWidth_*a;d="";this.units_==ol.control.ScaleLineUnits.DEGREES?b<1/60?(d="\u2033",a*=3600):1>b?(d="\u2032",a*=60):d="\u00b0":this.units_==ol.control.ScaleLineUnits.IMPERIAL?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):this.units_==ol.control.ScaleLineUnits.NAUTICAL? +(a/=1852,d="nm"):this.units_==ol.control.ScaleLineUnits.METRIC?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):this.units_==ol.control.ScaleLineUnits.US?0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472):goog.asserts.assert(!1);for(var b=3*Math.floor(Math.log(this.minWidth_*a)/Math.log(10)),e,f;;){e=ol.control.ScaleLine.LEADING_DIGITS[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.minWidth_)break;++b}e+=d;this.renderedHTML_!=e&&(this.renderedHTML_=this.innerElement_.innerHTML= +e);this.renderedWidth_!=f&&(this.innerElement_.style.width=f+"px",this.renderedWidth_=f);this.renderedVisible_||(goog.style.showElement(this.element_,!0),this.renderedVisible_=!0)}};ol.control.ZOOM_DURATION=250; ol.control.Zoom=function(a){var b=goog.dom.createDom(goog.dom.TagName.A,{href:"#zoomIn","class":"ol-zoom-in"});goog.events.listen(b,[goog.events.EventType.TOUCHEND,goog.events.EventType.CLICK],this.handleIn_,!1,this);var c=goog.dom.createDom(goog.dom.TagName.A,{href:"#zoomOut","class":"ol-zoom-out"});goog.events.listen(c,[goog.events.EventType.TOUCHEND,goog.events.EventType.CLICK],this.handleOut_,!1,this);b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-zoom ol-unselectable",b,c);ol.control.Control.call(this, -{element:b,map:a.map,target:a.target});this.delta_=goog.isDef(a.delta)?a.delta:1};goog.inherits(ol.control.Zoom,ol.control.Control);ol.control.Zoom.prototype.handleIn_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoom(a,this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.control.Zoom.prototype.handleOut_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoom(a,-this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.interaction={};ol.interaction.Interaction=function(){};ol.interaction.DblClickZoom=function(a){this.delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.DblClickZoom,ol.interaction.Interaction); -ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent=function(a){var b=a.browserEvent;if(a.type==ol.MapBrowserEvent.EventType.DBLCLICK&&a.isMouseActionButton()){var c=a.map,d=a.getCoordinate(),e=a.browserEvent.shiftKey?-this.delta_:this.delta_,f=c.getView();goog.asserts.assert(f instanceof ol.View2D);f.zoom(c,e,d);a.preventDefault();b.preventDefault()}};ol.interaction.condition={};ol.interaction.condition.altKeyOnly=function(a){return a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.altShiftKeysOnly=function(a){return a.altKey&&!a.platformModifierKey&&a.shiftKey};ol.interaction.condition.noModifierKeys=function(a){return!a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.platformModifierKeyOnly=function(a){return!a.altKey&&a.platformModifierKey&&!a.shiftKey}; +{element:b,map:a.map,target:a.target});this.delta_=goog.isDef(a.delta)?a.delta:1};goog.inherits(ol.control.Zoom,ol.control.Control);ol.control.Zoom.prototype.handleIn_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoomByDelta(a,this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.control.Zoom.prototype.handleOut_=function(a){a.preventDefault();a=this.getMap();a.requestRenderFrame();a.getView().zoomByDelta(a,-this.delta_,void 0,ol.control.ZOOM_DURATION)};ol.interaction={};ol.interaction.Interaction=function(){};ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION=250;ol.interaction.DblClickZoom=function(a){this.delta_=a;ol.interaction.Interaction.call(this)};goog.inherits(ol.interaction.DblClickZoom,ol.interaction.Interaction); +ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent=function(a){var b=a.browserEvent;if(a.type==ol.MapBrowserEvent.EventType.DBLCLICK&&a.isMouseActionButton()){var c=a.map,d=a.getCoordinate(),e=a.browserEvent.shiftKey?-this.delta_:this.delta_,f=c.getView();goog.asserts.assert(f instanceof ol.View2D);f.zoomByDelta(c,e,d,ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION);a.preventDefault();b.preventDefault()}};ol.interaction.condition={};ol.interaction.condition.altKeyOnly=function(a){return a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.altShiftKeysOnly=function(a){return a.altKey&&!a.platformModifierKey&&a.shiftKey};ol.interaction.condition.noModifierKeys=function(a){return!a.altKey&&!a.platformModifierKey&&!a.shiftKey};ol.interaction.condition.platformModifierKeyOnly=function(a){return!a.altKey&&a.platformModifierKey&&!a.shiftKey}; ol.interaction.condition.shiftKeyOnly=function(a){return!a.altKey&&!a.platformModifierKey&&a.shiftKey};ol.interaction.Drag=function(){ol.interaction.Interaction.call(this);this.dragging_=!1;this.offsetY=this.offsetX=this.startY=this.startX=0;this.startCoordinate=this.startCenter=null};goog.inherits(ol.interaction.Drag,ol.interaction.Interaction);ol.interaction.Drag.prototype.handleDrag=goog.nullFunction;ol.interaction.Drag.prototype.handleDragEnd=goog.nullFunction;ol.interaction.Drag.prototype.handleDragStart=goog.functions.FALSE;ol.interaction.Drag.prototype.handleDown=goog.nullFunction; ol.interaction.Drag.prototype.handleMapBrowserEvent=function(a){var b=a.map;if(b.isDef()){var b=b.getView(),c=a.browserEvent;a.type==ol.MapBrowserEvent.EventType.DOWN&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.handleDown(a));this.dragging_?a.type==ol.MapBrowserEvent.EventType.DRAG?(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.deltaX=c.clientX-this.startX,this.deltaY=c.clientY-this.startY,this.handleDrag(a)):a.type==ol.MapBrowserEvent.EventType.DRAGEND&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.deltaX=c.clientX-this.startX,this.deltaY=c.clientY-this.startY,this.handleDragEnd(a),this.dragging_=!1):a.type==ol.MapBrowserEvent.EventType.DRAGSTART&&(goog.asserts.assert(c instanceof goog.events.BrowserEvent),this.startX=c.clientX,this.startY=c.clientY,this.deltaY=this.deltaX=0,this.startCenter=b.getCenter(),this.startCoordinate=a.getCoordinate(),this.handleDragStart(a)&&(this.dragging_=!0,a.preventDefault()))}};ol.interaction.DragPan=function(a,b){ol.interaction.Drag.call(this);this.condition_=a;this.kinetic_=b;this.kineticPreRenderFn_=null};goog.inherits(ol.interaction.DragPan,ol.interaction.Drag); ol.interaction.DragPan.prototype.handleDrag=function(a){this.kinetic_&&this.kinetic_.update(a.browserEvent.clientX,a.browserEvent.clientY);var a=a.map,b=a.getView();goog.asserts.assert(b instanceof ol.View2D);var c=b.getResolution(),d=b.getRotation(),c=new ol.Coordinate(-c*this.deltaX,c*this.deltaY);c.rotate(d);d=new ol.Coordinate(this.startCenter.x+c.x,this.startCenter.y+c.y);a.requestRenderFrame();b.setCenter(d)}; ol.interaction.DragPan.prototype.handleDragEnd=function(a){var b=a.map,a=b.getView();a.setHint(ol.ViewHint.INTERACTING,-1);if(this.kinetic_&&this.kinetic_.end()){var c=this.kinetic_.getDistance(),d=this.kinetic_.getAngle(),e=a.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(e);b.addPreRenderFunction(this.kineticPreRenderFn_);e=b.getPixelFromCoordinate(e);c=new ol.Pixel(e.x-c*Math.cos(d),e.y-c*Math.sin(d));b=b.getCoordinateFromPixel(c);a.setCenter(b)}}; ol.interaction.DragPan.prototype.handleDragStart=function(a){var b=a.browserEvent;return this.condition_(b)?(this.kinetic_&&(this.kinetic_.begin(),this.kinetic_.update(b.clientX,b.clientY)),a=a.map,a.requestRenderFrame(),a.getView().setHint(ol.ViewHint.INTERACTING,1),!0):!1}; -ol.interaction.DragPan.prototype.handleDown=function(a){var b=a.map,c=b.getView();goog.asserts.assert(c instanceof ol.View2D);goog.asserts.assert(!goog.isNull(a.frameState));!goog.isNull(this.kineticPreRenderFn_)&&b.removePreRenderFunction(this.kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.kineticPreRenderFn_=null)};ol.interaction.DragRotate=function(a){ol.interaction.Drag.call(this);this.condition_=a};goog.inherits(ol.interaction.DragRotate,ol.interaction.Drag);ol.interaction.DragRotate.prototype.handleDrag=function(a){var b=a.map,c=b.getSize(),a=a.getPixel(),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(goog.isDef(this.lastAngle_)){var a=c-this.lastAngle_,d=b.getView();goog.asserts.assert(d instanceof ol.View2D);b.requestRenderFrame();d.rotate(b,d.getRotation()-a)}this.lastAngle_=c}; -ol.interaction.DragRotate.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.isMouseActionButton()&&this.condition_(b)?(a=a.map,b=a.getView(),goog.asserts.assert(b instanceof ol.View2D),a.requestRenderFrame(),this.lastAngle_=void 0,!0):!1};ol.control.DragBox=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-dragbox");this.startPixel_=null;this.startCoordinate_=a.startCoordinate;this.dragListenKey_=null;ol.control.Control.call(this,{element:b,map:a.map})};goog.inherits(ol.control.DragBox,ol.control.Control); +ol.interaction.DragPan.prototype.handleDown=function(a){var b=a.map,c=b.getView();goog.asserts.assert(c instanceof ol.View2D);goog.asserts.assert(!goog.isNull(a.frameState));!goog.isNull(this.kineticPreRenderFn_)&&b.removePreRenderFunction(this.kineticPreRenderFn_)&&(b.requestRenderFrame(),c.setCenter(a.frameState.view2DState.center),this.kineticPreRenderFn_=null)};ol.interaction.DRAGROTATE_ANIMATION_DURATION=250;ol.interaction.DragRotate=function(a){ol.interaction.Drag.call(this);this.condition_=a};goog.inherits(ol.interaction.DragRotate,ol.interaction.Drag); +ol.interaction.DragRotate.prototype.handleDrag=function(a){var b=a.map,c=b.getSize(),a=a.getPixel(),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(goog.isDef(this.lastAngle_)){var a=c-this.lastAngle_,d=b.getView();goog.asserts.assert(d instanceof ol.View2D);b.requestRenderFrame();d.rotateWithoutConstraints(b,d.getRotation()-a)}this.lastAngle_=c}; +ol.interaction.DragRotate.prototype.handleDragEnd=function(a){var a=a.map,b=a.getView();goog.asserts.assert(b instanceof ol.View2D);b.rotate(a,b.getRotation(),void 0,ol.interaction.DRAGROTATE_ANIMATION_DURATION);b.setHint(ol.ViewHint.INTERACTING,-1)}; +ol.interaction.DragRotate.prototype.handleDragStart=function(a){var b=a.browserEvent;return b.isMouseActionButton()&&this.condition_(b)?(a=a.map,b=a.getView(),goog.asserts.assert(b instanceof ol.View2D),a.requestRenderFrame(),this.lastAngle_=void 0,b.setHint(ol.ViewHint.INTERACTING,1),!0):!1};ol.control.DragBox=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,"ol-dragbox");this.startPixel_=null;this.startCoordinate_=a.startCoordinate;this.dragListenKey_=null;ol.control.Control.call(this,{element:b,map:a.map})};goog.inherits(ol.control.DragBox,ol.control.Control); ol.control.DragBox.prototype.setMap=function(a){goog.isNull(this.dragListenKey_)||(goog.events.unlistenByKey(this.dragListenKey_),this.dragListenKey_=null);goog.isNull(a)||(this.startPixel_=a.getPixelFromCoordinate(this.startCoordinate_),goog.asserts.assert(goog.isDef(this.startPixel_)),goog.style.setPosition(this.element,this.startPixel_),goog.style.setBorderBoxSize(this.element,new ol.Size(0,0)),this.dragListenKey_=goog.events.listen(a,ol.MapBrowserEvent.EventType.DRAG,this.updateBox_,!1,this)); ol.control.DragBox.superClass_.setMap.call(this,a)};ol.control.DragBox.prototype.updateBox_=function(a){var b=this.getMap(),a=a.getCoordinate();goog.asserts.assert(goog.isDef(a));b=b.getPixelFromCoordinate(a);goog.style.setPosition(this.element,new ol.Pixel(Math.min(b.x,this.startPixel_.x),Math.min(b.y,this.startPixel_.y)));goog.style.setBorderBoxSize(this.element,new ol.Size(Math.abs(b.x-this.startPixel_.x),Math.abs(b.y-this.startPixel_.y)))};ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS=8;ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS_SQUARED=ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS*ol.SHIFT_DRAG_ZOOM_HYSTERESIS_PIXELS;ol.interaction.DragZoom=function(a){ol.interaction.Drag.call(this);this.condition_=a;this.dragBox_=null};goog.inherits(ol.interaction.DragZoom,ol.interaction.Drag); ol.interaction.DragZoom.prototype.handleDragEnd=function(a){this.dragBox_.setMap(null);this.dragBox_=null;if(this.deltaX*this.deltaX+this.deltaY*this.deltaY>=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.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); +e.x-=d.x;e.y-=d.y;d=a.getCoordinateFromPixel(e);this.rotating_&&c.rotateWithoutConstraints(a,c.getRotation()+b,d)};ol.interaction.TouchRotate.prototype.handleTouchEnd=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.getView();this.rotating_&&b.rotate(a,b.getRotation(),void 0,ol.interaction.TOUCHROTATE_ANIMATION_DURATION);b.setHint(ol.ViewHint.INTERACTING,-1);return!1}return!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_ANIMATION_DURATION=250;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.zoomWithoutConstraints(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.zoom(a,b.getResolution(),void 0,ol.interaction.TOUCHZOOM_ANIMATION_DURATION);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=1j&&goog.dom.insertChildAt(this.target,f.target,0)}else!a.viewHints[ol.ViewHint.ANIMATING]&&!a.viewHints[ol.ViewHint.INTERACTING]&&f.removeTilesOutsideExtent(a.extent); else goog.dom.removeNode(f.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,e,h,i);e.useLowResolutionTiles(h,a.extent,g);this.scheduleExpireCache(a,e)}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()}; @@ -690,10 +697,10 @@ ol.renderer.webgl.TileLayer.prototype.renderFrame=function(a){var b=this.getMapR else{var n=k.getSize(),p=i.getTileSize(l),n=Math.max(n.width*p.width,n.height*p.height),n=Math.pow(2,Math.ceil(Math.log(n)/Math.log(2))),q=new ol.Size(j*n,j*n),r=i.getOrigin(l),s=r.x+k.minX*p.width*j,j=r.y+k.minY*p.height*j;m=new ol.Extent(s,j,s+q.width,j+q.height);this.bindFramebuffer_(a,n);c.viewport(0,0,n,n);c.clearColor(0,0,0,0);c.clear(goog.webgl.COLOR_BUFFER_BIT);c.disable(goog.webgl.BLEND);j=b.getProgram(this.fragmentShader_,this.vertexShader_);c.useProgram(j);goog.isNull(this.locations_)&& (this.locations_={aPosition:c.getAttribLocation(j,"aPosition"),aTexCoord:c.getAttribLocation(j,"aTexCoord"),uTileOffset:c.getUniformLocation(j,"uTileOffset"),uTexture:c.getUniformLocation(j,"uTexture")});goog.isNull(this.arrayBuffer_)?(j=c.createBuffer(),c.bindBuffer(goog.webgl.ARRAY_BUFFER,j),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_=j):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 z={};z[l]={};for(var j=this.createGetTileIfLoadedFunction(function(a){return!goog.isNull(a)&&a.getState()==ol.TileState.LOADED&&b.isTileTextureLoaded(a)},g,i,e),p=goog.bind(g.findLoadedTiles,g,z,j),j=new goog.structs.PriorityQueue,w=!0,t,v,r=k.minX;r<= -k.maxX;++r)for(v=k.minY;v<=k.maxY;++v)if(s=new ol.TileCoord(l,r,v),n=g.getTile(s,i,e),!goog.isNull(n)){t=n.getState();if(t==ol.TileState.IDLE)goog.events.listenOnce(n,goog.events.EventType.CHANGE,this.handleTileChange,!1,this),this.updateWantedTiles(a.wantedTiles,g,s),t=i.getTileCoordCenter(s),a.tileQueue.enqueue(n,h,t);else if(t==ol.TileState.LOADED)if(b.isTileTextureLoaded(n)){z[l][s.toString()]=n;continue}else t=i.getTileCoordCenter(s),w=t.x-f.x,t=t.y-f.y,w=Math.sqrt(w*w+t*t),j.enqueue(w,n);else if(t== -ol.TileState.ERROR)continue;w=!1;i.forEachTileCoordParentTileRange(s,p)}e=goog.array.map(goog.object.getKeys(z),Number);goog.array.sort(e);var u=goog.vec.Vec4.createFloat32();goog.array.forEach(e,function(a){goog.object.forEach(z[a],function(a){var d=i.getTileCoordExtent(a.tileCoord),e=2*d.getWidth()/q.width,f=2*d.getHeight()/q.height;goog.vec.Vec4.setFromValues(u,e,f,2*(d.minX-m.minX)/q.width-1,2*(d.minY-m.minY)/q.height-1);c.uniform4fv(this.locations_.uTileOffset,u);b.bindTileTexture(a,goog.webgl.LINEAR, -goog.webgl.LINEAR);c.drawArrays(goog.webgl.TRIANGLE_STRIP,0,4)},this)},this);j.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,j));w?(this.renderedTileRange_=k,this.renderedFramebufferExtent_=m):(this.renderedFramebufferExtent_=this.renderedTileRange_=null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,g,l,k);g.useLowResolutionTiles(l,a.extent,i);this.scheduleExpireCache(a, -g);goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);goog.vec.Mat4.translate(this.texCoordMatrix_,(d.center.x-m.minX)/(m.maxX-m.minX),(d.center.y-m.minY)/(m.maxY-m.minY),0);goog.vec.Mat4.rotateZ(this.texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.texCoordMatrix_,a.size.width*d.resolution/(m.maxX-m.minX),a.size.height*d.resolution/(m.maxY-m.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}; +k.maxX;++r)for(v=k.minY;v<=k.maxY;++v)if(s=new ol.TileCoord(l,r,v),n=g.getTile(s,i,e),!goog.isNull(n)){t=n.getState();if(t==ol.TileState.IDLE)this.listenToTileChange(n),this.updateWantedTiles(a.wantedTiles,g,s),t=i.getTileCoordCenter(s),a.tileQueue.enqueue(n,h,t);else if(t==ol.TileState.LOADED)if(b.isTileTextureLoaded(n)){z[l][s.toString()]=n;continue}else t=i.getTileCoordCenter(s),w=t.x-f.x,t=t.y-f.y,w=Math.sqrt(w*w+t*t),j.enqueue(w,n);else if(t==ol.TileState.ERROR)continue;w=!1;i.forEachTileCoordParentTileRange(s, +p)}e=goog.array.map(goog.object.getKeys(z),Number);goog.array.sort(e);var u=goog.vec.Vec4.createFloat32();goog.array.forEach(e,function(a){goog.object.forEach(z[a],function(a){var d=i.getTileCoordExtent(a.tileCoord),e=2*d.getWidth()/q.width,f=2*d.getHeight()/q.height;goog.vec.Vec4.setFromValues(u,e,f,2*(d.minX-m.minX)/q.width-1,2*(d.minY-m.minY)/q.height-1);c.uniform4fv(this.locations_.uTileOffset,u);b.bindTileTexture(a,goog.webgl.LINEAR,goog.webgl.LINEAR);c.drawArrays(goog.webgl.TRIANGLE_STRIP,0, +4)},this)},this);j.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,j));w?(this.renderedTileRange_=k,this.renderedFramebufferExtent_=m):(this.renderedFramebufferExtent_=this.renderedTileRange_=null,a.animate=!0)}this.updateUsedTiles(a.usedTiles,g,l,k);g.useLowResolutionTiles(l,a.extent,i);this.scheduleExpireCache(a,g);goog.vec.Mat4.makeIdentity(this.texCoordMatrix_);goog.vec.Mat4.translate(this.texCoordMatrix_, +(d.center.x-m.minX)/(m.maxX-m.minX),(d.center.y-m.minY)/(m.maxY-m.minY),0);goog.vec.Mat4.rotateZ(this.texCoordMatrix_,d.rotation);goog.vec.Mat4.scale(this.texCoordMatrix_,a.size.width*d.resolution/(m.maxX-m.minX),a.size.height*d.resolution/(m.maxY-m.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_}; @@ -745,10 +752,10 @@ backgroundColor:goog.isDef(f)?f:new ol.Color(255,255,255,1),coordinateToPixelMat 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(0this.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.TileUrlFunction={};ol.TileUrlFunction.createFromTemplate=function(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){for(var c=[],d=b[1].charCodeAt(0),e=b[2].charCodeAt(0);d<=e;++d)c.push(a.replace(b[0],String.fromCharCode(d)));return ol.TileUrlFunction.createFromTemplates(c)}return function(b){return goog.isNull(b)?void 0:a.replace("{z}",b.z).replace("{x}",b.x).replace("{y}",b.y)}}; ol.TileUrlFunction.createFromTemplates=function(a){return ol.TileUrlFunction.createFromTileUrlFunctions(goog.array.map(a,ol.TileUrlFunction.createFromTemplate))};ol.TileUrlFunction.createFromTileUrlFunctions=function(a){return function(b,c,d){if(!goog.isNull(b)){var e=goog.math.modulo(b.hash(),a.length);return a[e](b,c,d)}}}; -ol.TileUrlFunction.createWMSParams=function(a,b,c){return function(d,e,f){if(!goog.isNull(d)){var g=e.getTileSize(d.z),d=e.getTileCoordExtent(d);return ol.source.wms.getUrl(a,b,d,g,f,c)}}};ol.TileUrlFunction.nullTileUrlFunction=function(){};ol.TileUrlFunction.withTileCoordTransform=function(a,b){return function(c,d,e){return goog.isNull(c)?void 0:b(a(c,d,e),d,e)}};ol.control.MousePosition=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-mouse-position"});ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.projection_=a.projection;this.coordinateFormat_=a.coordinateFormat;this.undefinedHTML_=goog.isDef(a.undefinedHTML)?a.undefinedHTML:"";this.renderedHTML_=b.innerHTML;this.mapProjection_=null;this.transform_=ol.projection.identityTransform;this.listenerKeys_=this.lastMouseMovePixel_=this.renderedProjection_=null}; +ol.TileUrlFunction.createWMSParams=function(a,b){return function(c,d,e){if(!goog.isNull(c)){var f=d.getTileSize(c.z),c=d.getTileCoordExtent(c);return ol.source.wms.getUrl(a,b,c,f,e)}}};ol.TileUrlFunction.nullTileUrlFunction=function(){};ol.TileUrlFunction.withTileCoordTransform=function(a,b){return function(c,d,e){return goog.isNull(c)?void 0:b(a(c,d,e),d,e)}};ol.control.MousePosition=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-mouse-position"});ol.control.Control.call(this,{element:b,map:a.map,target:a.target});this.projection_=a.projection;this.coordinateFormat_=a.coordinateFormat;this.undefinedHTML_=goog.isDef(a.undefinedHTML)?a.undefinedHTML:"";this.renderedHTML_=b.innerHTML;this.mapProjection_=null;this.transform_=ol.projection.identityTransform;this.listenerKeys_=this.lastMouseMovePixel_=this.renderedProjection_=null}; goog.inherits(ol.control.MousePosition,ol.control.Control);ol.control.MousePosition.prototype.handleMapPostrender=function(a){a=a.frameState;this.mapProjection_=goog.isNull(a)?null:a.view2DState.projection;this.updateHTML_(this.lastMouseMovePixel_)};ol.control.MousePosition.prototype.handleMouseMove=function(a){var b=this.getMap(),a=goog.style.getRelativePosition(a,b.getViewport()),a=new ol.Pixel(a.x,a.y);this.updateHTML_(a);this.lastMouseMovePixel_=a}; ol.control.MousePosition.prototype.handleMouseOut=function(){this.updateHTML_(null);this.lastMouseMovePixel_=null}; ol.control.MousePosition.prototype.setMap=function(a){goog.isNull(this.listenerKeys_)||(goog.array.forEach(this.listenerKeys_,goog.events.unlistenByKey),this.listenerKeys_=null);ol.control.MousePosition.superClass_.setMap.call(this,a);if(!goog.isNull(a)){var b=a.getViewport();this.listenerKeys_=[goog.events.listen(b,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this),goog.events.listen(b,goog.events.EventType.MOUSEOUT,this.handleMouseOut,!1,this),goog.events.listen(a,ol.MapEventType.POSTRENDER, this.handleMapPostrender,!1,this)]}}; ol.control.MousePosition.prototype.updateHTML_=function(a){var b=this.undefinedHTML_;goog.isNull(a)||(this.renderedProjection_!=this.mapProjection_&&(this.transform_=goog.isDef(this.projection_)?ol.projection.getTransform(this.mapProjection_,this.projection_):ol.projection.identityTransform,this.renderedProjection_=this.mapProjection_),a=this.getMap().getCoordinateFromPixel(a),goog.isNull(a)||(b=[a.x,a.y],b=this.transform_(b,b),a=new ol.Coordinate(b[0],b[1]),b=goog.isDef(this.coordinateFormat_)?this.coordinateFormat_(a): a.toString()));if(!goog.isDef(this.renderedHTML_)||b!=this.renderedHTML_)this.renderedHTML_=this.element.innerHTML=b};ol.ellipsoid={};ol.ellipsoid.WGS84=new ol.Ellipsoid(6378137,1/298.257223563);ol.interaction.DragRotateAndZoom=function(a){ol.interaction.Drag.call(this);this.condition_=a};goog.inherits(ol.interaction.DragRotateAndZoom,ol.interaction.Drag); -ol.interaction.DragRotateAndZoom.prototype.handleDrag=function(a){var b=a.browserEvent,a=a.map,c=a.getSize(),c=new goog.math.Vec2(b.offsetX-c.width/2,c.height/2-b.offsetY),b=Math.atan2(c.y,c.x),c=c.magnitude(),d=a.getView();goog.asserts.assert(d instanceof ol.View2D);a.requestRenderFrame();if(goog.isDef(this.lastAngle_)){var e=b-this.lastAngle_;d.rotate(a,d.getRotation()-e)}this.lastAngle_=b;goog.isDef(this.lastMagnitude_)&&(b=this.lastMagnitude_*(d.getResolution()/c),d.zoomToResolution(a,b));this.lastMagnitude_= +ol.interaction.DragRotateAndZoom.prototype.handleDrag=function(a){var b=a.browserEvent,a=a.map,c=a.getSize(),c=new goog.math.Vec2(b.offsetX-c.width/2,c.height/2-b.offsetY),b=Math.atan2(c.y,c.x),c=c.magnitude(),d=a.getView();goog.asserts.assert(d instanceof ol.View2D);a.requestRenderFrame();if(goog.isDef(this.lastAngle_)){var e=b-this.lastAngle_;d.rotate(a,d.getRotation()-e)}this.lastAngle_=b;goog.isDef(this.lastMagnitude_)&&(b=this.lastMagnitude_*(d.getResolution()/c),d.zoom(a,b));this.lastMagnitude_= c};ol.interaction.DragRotateAndZoom.prototype.handleDragStart=function(a){return this.condition_(a.browserEvent)?(this.lastMagnitude_=this.lastAngle_=void 0,!0):!1};ol.interaction.Keyboard=function(){ol.interaction.Interaction.call(this);this.charCodeCallbacks_={}};goog.inherits(ol.interaction.Keyboard,ol.interaction.Interaction);ol.interaction.Keyboard.prototype.addCallback=function(a,b){var c;for(c=0;ch||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,opaque:!0,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,opaque:!0,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],opaque:!0,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=goog.isDef(a.url)?ol.ImageUrlFunction.createWMSParams(a.url,a.params,a.version):ol.ImageUrlFunction.nullImageUrlFunction;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,imageUrlFunction:b});this.image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource); -ol.source.SingleImageWMS.prototype.getImage=function(a,b,c){var b=this.findNearestResolution(b),d=this.image_;if(!goog.isNull(d)&&d.getResolution()==b&&d.getExtent().containsExtent(a))return d;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var d=a.getWidth()/b,e=a.getHeight()/b,d=new ol.Size(d,e);return this.image_=this.createImage(a,b,d,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,opaque:!1,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,f=goog.isDef(a.projection)?a.projection:null;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,f)};goog.inherits(ol.source.StaticImage,ol.source.ImageSource); +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],opaque:!0,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=goog.isDef(a.url)?ol.ImageUrlFunction.createWMSParams(a.url,a.params):ol.ImageUrlFunction.nullImageUrlFunction;ol.source.ImageSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,imageUrlFunction:b});this.image_=null;this.ratio_=1.5};goog.inherits(ol.source.SingleImageWMS,ol.source.ImageSource); +ol.source.SingleImageWMS.prototype.getImage=function(a,b,c){var b=this.findNearestResolution(b),d=this.image_;if(!goog.isNull(d)&&d.getResolution()==b&&d.getExtent().containsExtent(a))return d;a=new ol.Extent(a.minX,a.minY,a.maxX,a.maxY);a.scaleFromCenter(this.ratio_);var d=a.getWidth()/b,e=a.getHeight()/b,d=new ol.Size(d,e);return this.image_=this.createImage(a,b,d,c)};ol.source.StamenLayerConfig={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}}; +ol.source.StamenProviderConfig={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{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.layer.indexOf("-"),c=-1==c?a.layer:a.layer.slice(0,c);goog.asserts.assert(c in ol.source.StamenProviderConfig);c=ol.source.StamenProviderConfig[c];goog.asserts.assert(a.layer in +ol.source.StamenLayerConfig);var d=ol.source.StamenLayerConfig[a.layer],a=goog.isDef(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+"/{z}/{x}/{y}."+d.extension;ol.source.XYZ.call(this,{attributions:[b],maxZoom:c.maxZoom,opaque:d.opaque,url:a})};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,f=goog.isDef(a.projection)?a.projection:null;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,f)};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){goog.isDef(a.tileGrid);var b=a.version,c;a.urls?(c=goog.array.map(a.urls,function(c){return ol.TileUrlFunction.createWMSParams(c,a.params,b)}),c=ol.TileUrlFunction.createFromTileUrlFunctions(c)):c=a.url?ol.TileUrlFunction.createWMSParams(a.url,a.params,b):ol.TileUrlFunction.nullTileUrlFunction;var d=goog.isDef(a.transparent)?a.transparent:!0;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,tileGrid:a.tileGrid, -opaque:!d,projection:a.projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(b,c,d){if(c.getResolutions().length<=b.z)return null;var h=b.x,i=c.getTileCoordExtent(b),l=d.getExtent(),d=goog.isDef(a.extent)?a.extent:l;d.minX===l.minX&&d.maxX===l.maxX&&(i=Math.ceil((d.maxX-d.minX)/(i.maxX-i.minX)),h=goog.math.modulo(h,i),i=c.getTileCoordExtent(new ol.TileCoord(b.z,h,b.y)));return!i.intersects(d)?null:new ol.TileCoord(b.z,h,b.y)},c)})};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.ScaleLineOptionsType={};ol.control.ZoomOptionsType={};ol.layer.LayerOptionsType={};ol.source.BingMapsOptionsType={};ol.source.DebugTileSourceOptionsType={};ol.source.SingleImageWMSOptionsType={}; +c)])}this.ready_=!0;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.isReady=function(){return this.ready_};ol.source.TiledWMS=function(a){goog.isDef(a.tileGrid);var b;a.urls?(b=goog.array.map(a.urls,function(b){return ol.TileUrlFunction.createWMSParams(b,a.params)}),b=ol.TileUrlFunction.createFromTileUrlFunctions(b)):b=a.url?ol.TileUrlFunction.createWMSParams(a.url,a.params):ol.TileUrlFunction.nullTileUrlFunction;var c=goog.isDef(a.params.TRANSPARENT)?a.params.TRANSPARENT:!0,d=a.extent;ol.source.ImageTileSource.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:a.tileGrid, +opaque:!c,projection:a.projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(function(a,b,c){if(b.getResolutions().length<=a.z)return null;var h=a.x,i=b.getTileCoordExtent(a),c=c.getExtent();d=goog.isDef(d)?d:c;d.minX===c.minX&&d.maxX===c.maxX&&(i=Math.ceil((d.maxX-d.minX)/(i.maxX-i.minX)),h=goog.math.modulo(h,i),i=b.getTileCoordExtent(new ol.TileCoord(a.z,h,a.y)));return!i.intersects(d)?null:new ol.TileCoord(a.z,h,a.y)},b)})};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.ScaleLineOptionsType={};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 f5082dd7ba..9cb56d0cba 100644 --- a/master/build/ol-whitespace.js +++ b/master/build/ol-whitespace.js @@ -1476,8 +1476,8 @@ goog.addDependency("build/src/internal/src/requireall.js", [], ["ol", "ol.Anchor "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.source.wms", "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"]); +"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.StaticImage", "ol.source.TileJSON", "ol.source.TileSource", "ol.source.TileSourceOptions", "ol.source.TiledWMS", "ol.source.XYZ", "ol.source.XYZOptions", "ol.source.wms", "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.ScaleLineOptionsType", "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"]); @@ -1511,13 +1511,13 @@ goog.addDependency("src/ol/interaction/dblclickzoominteraction.js", ["ol.interac goog.addDependency("src/ol/interaction/draginteraction.js", ["ol.interaction.Drag"], ["goog.asserts", "goog.functions", "ol.Coordinate", "ol.MapBrowserEvent", "ol.MapBrowserEvent.EventType", "ol.interaction.Interaction"]); goog.addDependency("src/ol/interaction/dragpaninteraction.js", ["ol.interaction.DragPan"], ["goog.asserts", "ol.Coordinate", "ol.Kinetic", "ol.Pixel", "ol.PreRenderFunction", "ol.View2D", "ol.ViewHint", "ol.interaction.ConditionType", "ol.interaction.Drag"]); goog.addDependency("src/ol/interaction/dragrotateandzoominteraction.js", ["ol.interaction.DragRotateAndZoom"], ["goog.math.Vec2", "ol.View2D", "ol.interaction.ConditionType", "ol.interaction.Drag"]); -goog.addDependency("src/ol/interaction/dragrotateinteraction.js", ["ol.interaction.DragRotate"], ["ol.View2D", "ol.interaction.ConditionType", "ol.interaction.Drag"]); +goog.addDependency("src/ol/interaction/dragrotateinteraction.js", ["ol.interaction.DragRotate"], ["ol.View2D", "ol.ViewHint", "ol.interaction.ConditionType", "ol.interaction.Drag"]); 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/mousewheelzoominteraction.js", ["ol.interaction.MouseWheelZoom"], ["goog.events.MouseWheelEvent", "goog.events.MouseWheelHandler.EventType", "goog.math", "ol.Coordinate", "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/touchrotateinteraction.js", ["ol.interaction.TouchRotate"], ["goog.asserts", "ol.View", "ol.ViewHint", "ol.interaction.Touch"]); @@ -1589,7 +1589,7 @@ goog.addDependency("src/ol/source/mapquestsource.js", ["ol.source.MapQuestOSM", 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"], ["ol.Extent", "ol.Image", "ol.ImageUrlFunction", "ol.Size", "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/stamensource.js", ["ol.source.Stamen"], ["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", "ol.Extent", "ol.TileCoord", "ol.TileUrlFunction", "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"]); @@ -1611,7 +1611,7 @@ goog.addDependency("src/ol/tileurlfunction.js", ["ol.TileUrlFunction", "ol.TileU 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/view2d.js", ["ol.View2D", "ol.View2DProperty"], ["goog.fx.easing", "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) { @@ -11138,6 +11138,7 @@ goog.require("ol.TileCoord"); ol.TileState = {IDLE:0, LOADING:1, LOADED:2, ERROR:3}; ol.Tile = function(tileCoord) { goog.base(this); + this.inQueue = 0; this.tileCoord = tileCoord; this.state = ol.TileState.IDLE }; @@ -11181,6 +11182,8 @@ ol.TileQueue.prototype.dequeue_ = function() { } var tileKey = tile.getKey(); delete this.queuedTileKeys_[tileKey]; + tile.inQueue--; + goog.asserts.assert(tile.inQueue >= 0); return tile }; ol.TileQueue.prototype.enqueue = function(tile, tileSourceKey, tileCenter) { @@ -11193,7 +11196,9 @@ ol.TileQueue.prototype.enqueue = function(tile, tileSourceKey, tileCenter) { if(priority != ol.TileQueue.DROP) { this.heap_.push([priority, tile, tileSourceKey, tileCenter]); this.queuedTileKeys_[tileKey] = true; - this.siftDown_(0, this.heap_.length - 1) + this.siftDown_(0, this.heap_.length - 1); + tile.inQueue++; + goog.asserts.assert(tile.inQueue > 0) } } }; @@ -11263,7 +11268,12 @@ ol.TileQueue.prototype.reprioritize = function() { priority = this.tilePriorityFunction_(tile, tileSourceKey, tileCenter); if(priority == ol.TileQueue.DROP) { tileKey = tile.getKey(); - delete this.queuedTileKeys_[tileKey] + delete this.queuedTileKeys_[tileKey]; + tile.inQueue--; + goog.asserts.assert(tile.inQueue >= 0); + if(tile.inQueue === 0) { + goog.events.removeAll(tile) + } }else { node[0] = priority; heap[n++] = node @@ -11362,7 +11372,7 @@ goog.require("ol.TransformFunction"); goog.require("ol.sphere.NORMAL"); ol.ENABLE_PROJ4JS = true; ol.HAVE_PROJ4JS = ol.ENABLE_PROJ4JS && typeof Proj4js == "object"; -ol.ProjectionUnits = {DEGREES:"degrees", METERS:"m"}; +ol.ProjectionUnits = {DEGREES:"degrees", FEET:"ft", METERS:"m"}; ol.Projection = function(code, units, extent, opt_axisOrientation) { this.code_ = code; this.units_ = units; @@ -11407,7 +11417,11 @@ ol.Proj4jsProjection_.prototype.getPointResolution = function(resolution, point) vertices = this.toEPSG4326_(vertices, vertices, 2); var width = ol.sphere.NORMAL.haversineDistance(new ol.Coordinate(vertices[0], vertices[1]), new ol.Coordinate(vertices[2], vertices[3])); var height = ol.sphere.NORMAL.haversineDistance(new ol.Coordinate(vertices[4], vertices[5]), new ol.Coordinate(vertices[6], vertices[7])); - return(width + height) / 2 + var pointResolution = (width + height) / 2; + if(this.getUnits() == ol.ProjectionUnits.FEET) { + pointResolution /= 0.3048 + } + return pointResolution } }; ol.Proj4jsProjection_.prototype.getProj4jsProj = function() { @@ -12315,6 +12329,20 @@ ol.RotationConstraint.createSnapToN = function(n) { } } }; +ol.RotationConstraint.createSnapToZero = function(opt_tolerance) { + var tolerance = opt_tolerance || 0.1; + return function(rotation, delta) { + if(goog.isDef(rotation)) { + if(Math.abs(rotation + delta) <= tolerance) { + return 0 + }else { + return rotation + delta + } + }else { + return undefined + } + } +}; goog.provide("ol.Constraints"); goog.require("ol.ResolutionConstraintType"); goog.require("ol.RotationConstraintType"); @@ -12324,6 +12352,7 @@ ol.Constraints = function(resolutionConstraint, rotationConstraint) { }; goog.provide("ol.View2D"); goog.provide("ol.View2DProperty"); +goog.require("goog.fx.easing"); goog.require("ol.Constraints"); goog.require("ol.Coordinate"); goog.require("ol.Extent"); @@ -12426,51 +12455,72 @@ ol.View2D.prototype.setRotation = function(rotation) { this.set(ol.View2DProperty.ROTATION, rotation) }; goog.exportProperty(ol.View2D.prototype, "setRotation", ol.View2D.prototype.setRotation); -ol.View2D.prototype.rotate = function(map, rotation, opt_anchor) { +ol.View2D.prototype.rotate = function(map, rotation, opt_anchor, opt_duration) { rotation = this.constraints_.rotation(rotation, 0); - if(goog.isDefAndNotNull(opt_anchor)) { - var anchor = opt_anchor; - var oldCenter = this.getCenter(); - var center = new ol.Coordinate(oldCenter.x - anchor.x, oldCenter.y - anchor.y); - center.rotate(rotation - this.getRotation()); - center.x += anchor.x; - center.y += anchor.y; - map.withFrozenRendering(function() { - this.setCenter(center); + this.rotateWithoutConstraints(map, rotation, opt_anchor, opt_duration) +}; +ol.View2D.prototype.rotateWithoutConstraints = function(map, rotation, opt_anchor, opt_duration) { + if(goog.isDefAndNotNull(rotation)) { + var currentRotation = this.getRotation(); + var currentCenter = this.getCenter(); + if(goog.isDef(currentRotation) && goog.isDef(currentCenter) && goog.isDef(opt_duration)) { + map.requestRenderFrame(); + map.addPreRenderFunction(ol.animation.rotate({rotation:currentRotation, duration:opt_duration, easing:goog.fx.easing.easeOut})); + if(goog.isDef(opt_anchor)) { + map.addPreRenderFunction(ol.animation.pan({source:currentCenter, duration:opt_duration, easing:goog.fx.easing.easeOut})) + } + } + if(goog.isDefAndNotNull(opt_anchor)) { + var anchor = opt_anchor; + var oldCenter = this.getCenter(); + var center = new ol.Coordinate(oldCenter.x - anchor.x, oldCenter.y - anchor.y); + center.rotate(rotation - this.getRotation()); + center.x += anchor.x; + center.y += anchor.y; + map.withFrozenRendering(function() { + this.setCenter(center); + this.setRotation(rotation) + }, this) + }else { this.setRotation(rotation) - }, this) - }else { - this.setRotation(rotation) + } } }; -ol.View2D.prototype.zoom_ = function(map, resolution, opt_anchor) { - if(goog.isDefAndNotNull(resolution) && goog.isDefAndNotNull(opt_anchor)) { - var anchor = opt_anchor; - var oldCenter = this.getCenter(); - var oldResolution = this.getResolution(); - var x = anchor.x - resolution * (anchor.x - oldCenter.x) / oldResolution; - var y = anchor.y - resolution * (anchor.y - oldCenter.y) / oldResolution; - var center = new ol.Coordinate(x, y); - map.withFrozenRendering(function() { - this.setCenter(center); - this.setResolution(resolution) - }, this) - }else { - this.setResolution(resolution) - } -}; -ol.View2D.prototype.zoom = function(map, delta, opt_anchor, opt_duration) { - var currentResolution = this.getResolution(); - if(goog.isDef(currentResolution) && goog.isDef(opt_duration)) { - map.requestRenderFrame(); - map.addPreRenderFunction(ol.animation.zoom({resolution:currentResolution, duration:opt_duration})) - } - var resolution = this.constraints_.resolution(currentResolution, delta); - this.zoom_(map, resolution, opt_anchor) -}; -ol.View2D.prototype.zoomToResolution = function(map, resolution, opt_anchor) { +ol.View2D.prototype.zoom = function(map, resolution, opt_anchor, opt_duration) { resolution = this.constraints_.resolution(resolution, 0); - this.zoom_(map, resolution, opt_anchor) + this.zoomWithoutConstraints(map, resolution, opt_anchor, opt_duration) +}; +ol.View2D.prototype.zoomByDelta = function(map, delta, opt_anchor, opt_duration) { + var currentResolution = this.getResolution(); + var resolution = this.constraints_.resolution(currentResolution, delta); + this.zoomWithoutConstraints(map, resolution, opt_anchor, opt_duration) +}; +ol.View2D.prototype.zoomWithoutConstraints = function(map, resolution, opt_anchor, opt_duration) { + if(goog.isDefAndNotNull(resolution)) { + var currentResolution = this.getResolution(); + var currentCenter = this.getCenter(); + if(goog.isDef(currentResolution) && goog.isDef(currentCenter) && goog.isDef(opt_duration)) { + map.requestRenderFrame(); + map.addPreRenderFunction(ol.animation.zoom({resolution:currentResolution, duration:opt_duration, easing:goog.fx.easing.easeOut})); + if(goog.isDef(opt_anchor)) { + map.addPreRenderFunction(ol.animation.pan({source:currentCenter, duration:opt_duration, easing:goog.fx.easing.easeOut})) + } + } + if(goog.isDefAndNotNull(opt_anchor)) { + var anchor = opt_anchor; + var oldCenter = this.getCenter(); + var oldResolution = this.getResolution(); + var x = anchor.x - resolution * (anchor.x - oldCenter.x) / oldResolution; + var y = anchor.y - resolution * (anchor.y - oldCenter.y) / oldResolution; + var center = new ol.Coordinate(x, y); + map.withFrozenRendering(function() { + this.setCenter(center); + this.setResolution(resolution) + }, this) + }else { + this.setResolution(resolution) + } + } }; ol.View2D.createConstraints_ = function(view2DOptions) { var resolutionConstraint; @@ -12485,13 +12535,12 @@ ol.View2D.createConstraints_ = function(view2DOptions) { }else { var projectionExtent = ol.projection.createProjection(view2DOptions.projection, "EPSG:3857").getExtent(); maxResolution = Math.max(projectionExtent.maxX - projectionExtent.minX, projectionExtent.maxY - projectionExtent.minY) / ol.DEFAULT_TILE_SIZE; - var numSteps = 4; - numZoomLevels = 29 * numSteps; - zoomFactor = Math.exp(Math.log(2) / numSteps) + numZoomLevels = 29; + zoomFactor = 2 } resolutionConstraint = ol.ResolutionConstraint.createSnapToPower(zoomFactor, maxResolution, numZoomLevels - 1) } - var rotationConstraint = ol.RotationConstraint.none; + var rotationConstraint = ol.RotationConstraint.createSnapToZero(); return new ol.Constraints(resolutionConstraint, rotationConstraint) }; goog.provide("ol.control.Control"); @@ -12705,21 +12754,27 @@ ol.control.ScaleLine.prototype.updateElement_ = function(frameState) { if(projectionUnits == ol.ProjectionUnits.DEGREES && (this.units_ == ol.control.ScaleLineUnits.METRIC || this.units_ == ol.control.ScaleLineUnits.IMPERIAL)) { this.toEPSG4326_ = null; cosLatitude = Math.cos(goog.math.toRadians(center.y)); - pointResolution *= Math.PI * cosLatitude * ol.sphere.NORMAL.radius / 180 + pointResolution *= Math.PI * cosLatitude * ol.sphere.NORMAL.radius / 180; + projectionUnits = ol.ProjectionUnits.METERS }else { - if(projectionUnits == ol.ProjectionUnits.METERS && this.units_ == ol.control.ScaleLineUnits.DEGREES) { + if((projectionUnits == ol.ProjectionUnits.FEET || projectionUnits == ol.ProjectionUnits.METERS) && this.units_ == ol.control.ScaleLineUnits.DEGREES) { if(goog.isNull(this.toEPSG4326_)) { this.toEPSG4326_ = ol.projection.getTransform(projection, ol.projection.getFromCode("EPSG:4326")) } var vertex = [center.x, center.y]; vertex = this.toEPSG4326_(vertex, vertex, 2); cosLatitude = Math.cos(goog.math.toRadians(vertex[1])); - pointResolution *= 180 / (Math.PI * cosLatitude * ol.sphere.NORMAL.radius) + var radius = ol.sphere.NORMAL.radius; + if(projectionUnits == ol.ProjectionUnits.FEET) { + radius /= 0.3048 + } + pointResolution *= 180 / (Math.PI * cosLatitude * radius); + projectionUnits = ol.ProjectionUnits.DEGREES }else { - this.toEPSG4326_ = null; - goog.asserts.assert((this.units_ == ol.control.ScaleLineUnits.METRIC || this.units_ == ol.control.ScaleLineUnits.IMPERIAL) && projectionUnits == ol.ProjectionUnits.METERS || this.units_ == ol.control.ScaleLineUnits.DEGREES && projectionUnits == ol.ProjectionUnits.DEGREES) + this.toEPSG4326_ = null } } + goog.asserts.assert((this.units_ == ol.control.ScaleLineUnits.METRIC || this.units_ == ol.control.ScaleLineUnits.IMPERIAL) && projectionUnits == ol.ProjectionUnits.METERS || this.units_ == ol.control.ScaleLineUnits.DEGREES && projectionUnits == ol.ProjectionUnits.DEGREES); var nominalCount = this.minWidth_ * pointResolution; var suffix = ""; if(this.units_ == ol.control.ScaleLineUnits.DEGREES) { @@ -12831,13 +12886,13 @@ ol.control.Zoom.prototype.handleIn_ = function(browserEvent) { browserEvent.preventDefault(); var map = this.getMap(); map.requestRenderFrame(); - map.getView().zoom(map, this.delta_, undefined, ol.control.ZOOM_DURATION) + map.getView().zoomByDelta(map, this.delta_, undefined, ol.control.ZOOM_DURATION) }; ol.control.Zoom.prototype.handleOut_ = function(browserEvent) { browserEvent.preventDefault(); var map = this.getMap(); map.requestRenderFrame(); - map.getView().zoom(map, -this.delta_, undefined, ol.control.ZOOM_DURATION) + map.getView().zoomByDelta(map, -this.delta_, undefined, ol.control.ZOOM_DURATION) }; goog.provide("ol.interaction.Interaction"); goog.require("ol.MapBrowserEvent"); @@ -12849,6 +12904,7 @@ goog.require("ol.MapBrowserEvent"); goog.require("ol.MapBrowserEvent.EventType"); goog.require("ol.View2D"); goog.require("ol.interaction.Interaction"); +ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION = 250; ol.interaction.DblClickZoom = function(delta) { this.delta_ = delta; goog.base(this) @@ -12862,7 +12918,7 @@ ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent = function(mapBrowse var delta = mapBrowserEvent.browserEvent.shiftKey ? -this.delta_ : this.delta_; var view = map.getView(); goog.asserts.assert(view instanceof ol.View2D); - view.zoom(map, delta, anchor); + view.zoomByDelta(map, delta, anchor, ol.interaction.DBLCLICKZOOM_ANIMATION_DURATION); mapBrowserEvent.preventDefault(); browserEvent.preventDefault() } @@ -13026,8 +13082,10 @@ ol.interaction.DragPan.prototype.handleDown = function(mapBrowserEvent) { }; goog.provide("ol.interaction.DragRotate"); goog.require("ol.View2D"); +goog.require("ol.ViewHint"); goog.require("ol.interaction.ConditionType"); goog.require("ol.interaction.Drag"); +ol.interaction.DRAGROTATE_ANIMATION_DURATION = 250; ol.interaction.DragRotate = function(condition) { goog.base(this); this.condition_ = condition; @@ -13045,10 +13103,18 @@ ol.interaction.DragRotate.prototype.handleDrag = function(mapBrowserEvent) { var view = map.getView(); goog.asserts.assert(view instanceof ol.View2D); map.requestRenderFrame(); - view.rotate(map, view.getRotation() - delta) + view.rotateWithoutConstraints(map, view.getRotation() - delta) } this.lastAngle_ = theta }; +ol.interaction.DragRotate.prototype.handleDragEnd = function(mapBrowserEvent) { + var browserEvent = mapBrowserEvent.browserEvent; + var map = mapBrowserEvent.map; + var view = map.getView(); + goog.asserts.assert(view instanceof ol.View2D); + view.rotate(map, view.getRotation(), undefined, ol.interaction.DRAGROTATE_ANIMATION_DURATION); + view.setHint(ol.ViewHint.INTERACTING, -1) +}; ol.interaction.DragRotate.prototype.handleDragStart = function(mapBrowserEvent) { var browserEvent = mapBrowserEvent.browserEvent; if(browserEvent.isMouseActionButton() && this.condition_(browserEvent)) { @@ -13057,6 +13123,7 @@ ol.interaction.DragRotate.prototype.handleDragStart = function(mapBrowserEvent) goog.asserts.assert(view instanceof ol.View2D); map.requestRenderFrame(); this.lastAngle_ = undefined; + view.setHint(ol.ViewHint.INTERACTING, 1); return true }else { return false @@ -13207,7 +13274,7 @@ ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent = function(mapBrowse map.requestRenderFrame(); var view = map.getView(); goog.asserts.assert(view instanceof ol.View2D); - view.zoom(map, delta, undefined, ol.interaction.KEYBOARD_ZOOM_DURATION); + view.zoomByDelta(map, delta, undefined, ol.interaction.KEYBOARD_ZOOM_DURATION); keyEvent.preventDefault(); mapBrowserEvent.preventDefault() } @@ -13216,11 +13283,19 @@ ol.interaction.KeyboardZoom.prototype.handleMapBrowserEvent = function(mapBrowse goog.provide("ol.interaction.MouseWheelZoom"); goog.require("goog.events.MouseWheelEvent"); goog.require("goog.events.MouseWheelHandler.EventType"); +goog.require("goog.math"); +goog.require("ol.Coordinate"); goog.require("ol.View2D"); goog.require("ol.interaction.Interaction"); -ol.interaction.MouseWheelZoom = function(delta) { - this.delta_ = delta; - goog.base(this) +ol.interaction.MOUSEWHEELZOOM_ANIMATION_DURATION = 250; +ol.interaction.MOUSEWHEELZOOM_MAXDELTA = 1; +ol.interaction.MOUSEWHEELZOOM_TIMEOUT_DURATION = 80; +ol.interaction.MouseWheelZoom = function() { + goog.base(this); + this.delta_ = 0; + this.lastAnchor_ = null; + this.startTime_ = undefined; + this.timeoutId_ = undefined }; goog.inherits(ol.interaction.MouseWheelZoom, ol.interaction.Interaction); ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent = function(mapBrowserEvent) { @@ -13228,16 +13303,31 @@ ol.interaction.MouseWheelZoom.prototype.handleMapBrowserEvent = function(mapBrow var map = mapBrowserEvent.map; var mouseWheelEvent = mapBrowserEvent.browserEvent; goog.asserts.assert(mouseWheelEvent instanceof goog.events.MouseWheelEvent); - var anchor = mapBrowserEvent.getCoordinate(); - var delta = mouseWheelEvent.deltaY < 0 ? this.delta_ : -this.delta_; - var view = map.getView(); - goog.asserts.assert(view instanceof ol.View2D); - map.requestRenderFrame(); - view.zoom(map, delta, anchor); + this.lastAnchor_ = mapBrowserEvent.getCoordinate(); + this.delta_ += mouseWheelEvent.deltaY / 3; + if(!goog.isDef(this.startTime_)) { + this.startTime_ = goog.now() + } + var duration = ol.interaction.MOUSEWHEELZOOM_TIMEOUT_DURATION; + var timeLeft = Math.max(duration - (goog.now() - this.startTime_), 0); + goog.global.clearTimeout(this.timeoutId_); + this.timeoutId_ = goog.global.setTimeout(goog.bind(this.doZoom_, this, map), timeLeft); mapBrowserEvent.preventDefault(); mouseWheelEvent.preventDefault() } }; +ol.interaction.MouseWheelZoom.prototype.doZoom_ = function(map) { + var maxDelta = ol.interaction.MOUSEWHEELZOOM_MAXDELTA; + var delta = goog.math.clamp(this.delta_, -maxDelta, maxDelta); + var view = map.getView(); + goog.asserts.assert(view instanceof ol.View2D); + map.requestRenderFrame(); + view.zoomByDelta(map, -delta, this.lastAnchor_, ol.interaction.MOUSEWHEELZOOM_ANIMATION_DURATION); + this.delta_ = 0; + this.lastAnchor_ = null; + this.startTime_ = undefined; + this.timeoutId_ = undefined +}; goog.provide("ol.interaction.Touch"); goog.require("goog.functions"); goog.require("ol.MapBrowserEvent"); @@ -13370,6 +13460,7 @@ goog.require("goog.asserts"); goog.require("ol.View"); goog.require("ol.ViewHint"); goog.require("ol.interaction.Touch"); +ol.interaction.TOUCHROTATE_ANIMATION_DURATION = 250; ol.interaction.TouchRotate = function(opt_threshold) { goog.base(this); this.lastAngle_; @@ -13403,13 +13494,16 @@ ol.interaction.TouchRotate.prototype.handleTouchMove = function(mapBrowserEvent) centroid.y -= viewportPosition.y; var anchor = map.getCoordinateFromPixel(centroid); if(this.rotating_) { - view.rotate(map, view.getRotation() + rotationDelta, anchor) + view.rotateWithoutConstraints(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(); + if(this.rotating_) { + view.rotate(map, view.getRotation(), undefined, ol.interaction.TOUCHROTATE_ANIMATION_DURATION) + } view.setHint(ol.ViewHint.INTERACTING, -1); return false }else { @@ -13433,6 +13527,7 @@ goog.require("goog.asserts"); goog.require("ol.View"); goog.require("ol.ViewHint"); goog.require("ol.interaction.Touch"); +ol.interaction.TOUCHZOOM_ANIMATION_DURATION = 250; ol.interaction.TouchZoom = function() { goog.base(this); this.lastDistance_ @@ -13457,13 +13552,13 @@ ol.interaction.TouchZoom.prototype.handleTouchMove = function(mapBrowserEvent) { centroid.x -= viewportPosition.x; centroid.y -= viewportPosition.y; var anchor = map.getCoordinateFromPixel(centroid); - view.zoom_(map, view.getResolution() * scaleDelta, anchor) + view.zoomWithoutConstraints(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.zoom(map, view.getResolution(), undefined, ol.interaction.TOUCHZOOM_ANIMATION_DURATION); view.setHint(ol.ViewHint.INTERACTING, -1); return false }else { @@ -13916,6 +14011,7 @@ ol.renderer.Layer = function(mapRenderer, layer) { goog.base(this); this.mapRenderer_ = mapRenderer; this.layer_ = layer; + this.observedTileKeys = {}; goog.events.listen(this.layer_, ol.Object.getChangedEventType(ol.layer.LayerProperty.BRIGHTNESS), this.handleLayerBrightnessChange, false, this); goog.events.listen(this.layer_, ol.Object.getChangedEventType(ol.layer.LayerProperty.CONTRAST), this.handleLayerContrastChange, false, this); goog.events.listen(this.layer_, ol.Object.getChangedEventType(ol.layer.LayerProperty.HUE), this.handleLayerHueChange, false, this); @@ -13956,11 +14052,19 @@ ol.renderer.Layer.prototype.handleLayerSaturationChange = goog.nullFunction; ol.renderer.Layer.prototype.handleLayerVisibleChange = function() { this.dispatchChangeEvent() }; -ol.renderer.Layer.prototype.handleTileChange = function(event) { +ol.renderer.Layer.prototype.handleTileChange_ = function(event) { var tile = event.target; if(tile.getState() === ol.TileState.LOADED) { this.getMap().requestRenderFrame() } + delete this.observedTileKeys[tile.getKey()] +}; +ol.renderer.Layer.prototype.listenToTileChange = function(tile) { + var tileKey = tile.getKey(); + if(!(tileKey in this.observedTileKeys)) { + this.observedTileKeys[tileKey] = true; + goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange_, false, this) + } }; ol.renderer.Layer.prototype.renderFrame = goog.abstractMethod; ol.renderer.Layer.prototype.scheduleExpireCache = function(frameState, tileSource) { @@ -14116,16 +14220,16 @@ ol.renderer.Map.prototype.setLayerRenderer = function(layer, layerRenderer) { this.layerRendererChangeListenKeys_[layerKey] = goog.events.listen(layerRenderer, goog.events.EventType.CHANGE, this.handleLayerRendererChange, false, this) }; goog.provide("ol.source.wms"); -ol.source.wms.getUrl = function(baseUrl, params, extent, size, projection, opt_version) { - var version = goog.isDef(opt_version) ? opt_version : "1.3.0"; - var wms13 = version >= "1.3"; - var axisOrientation = projection.getAxisOrientation(); - var bboxValues = wms13 && axisOrientation.substr(0, 2) == "ne" ? [extent.minY, extent.minX, extent.maxY, extent.maxX] : [extent.minX, extent.minY, extent.maxX, extent.maxY]; - var baseParams = {"SERVICE":"WMS", "VERSION":version, "REQUEST":"GetMap", "FORMAT":"image/png", "TRANSPARENT":true, "WIDTH":size.width, "HEIGHT":size.height, "BBOX":bboxValues.join(",")}; +ol.source.wms.getUrl = function(baseUrl, params, extent, size, projection) { + var baseParams = {"SERVICE":"WMS", "VERSION":"1.3.0", "REQUEST":"GetMap", "FORMAT":"image/png", "TRANSPARENT":true, "WIDTH":size.width, "HEIGHT":size.height}; goog.object.extend(baseParams, params); - baseParams[wms13 ? "CRS" : "SRS"] = projection.getCode(); var stylesParam = "STYLES"; baseParams[stylesParam] = params[stylesParam] || new String(""); + var wms13 = baseParams["VERSION"] > "1.3"; + baseParams[wms13 ? "CRS" : "SRS"] = projection.getCode(); + var axisOrientation = projection.getAxisOrientation(); + var bboxValues = wms13 && axisOrientation.substr(0, 2) == "ne" ? [extent.minY, extent.minX, extent.maxY, extent.maxX] : [extent.minX, extent.minY, extent.maxX, extent.maxY]; + baseParams["BBOX"] = bboxValues.join(","); return goog.uri.utils.appendParamsFromMap(baseUrl, baseParams) }; goog.provide("ol.ImageUrlFunction"); @@ -14134,9 +14238,9 @@ goog.require("ol.Extent"); goog.require("ol.Size"); goog.require("ol.source.wms"); ol.ImageUrlFunctionType; -ol.ImageUrlFunction.createWMSParams = function(baseUrl, params, opt_version) { +ol.ImageUrlFunction.createWMSParams = function(baseUrl, params) { return function(extent, size, projection) { - return ol.source.wms.getUrl(baseUrl, params, extent, size, projection, opt_version) + return ol.source.wms.getUrl(baseUrl, params, extent, size, projection) } }; ol.ImageUrlFunction.nullImageUrlFunction = function(extent, size) { @@ -14351,7 +14455,7 @@ ol.renderer.canvas.TileLayer.prototype.renderFrame = function(frameState, layerS } tileState = tile.getState(); if(tileState == ol.TileState.IDLE) { - goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange, false, this); + this.listenToTileChange(tile); this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord); tileCenter = tileGrid.getTileCoordCenter(tileCoord); frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter) @@ -14732,7 +14836,7 @@ ol.renderer.dom.TileLayer.prototype.renderFrame = function(frameState, layerStat } tileState = tile.getState(); if(tileState == ol.TileState.IDLE) { - goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange, false, this); + this.listenToTileChange(tile); this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord); tileCenter = tileGrid.getTileCoordCenter(tileCoord); frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter) @@ -15848,7 +15952,7 @@ ol.renderer.webgl.TileLayer.prototype.renderFrame = function(frameState, layerSt } tileState = tile.getState(); if(tileState == ol.TileState.IDLE) { - goog.events.listenOnce(tile, goog.events.EventType.CHANGE, this.handleTileChange, false, this); + this.listenToTileChange(tile); this.updateWantedTiles(frameState.wantedTiles, tileSource, tileCoord); tileCenter = tileGrid.getTileCoordCenter(tileCoord); frameState.tileQueue.enqueue(tile, tileSourceKey, tileCenter) @@ -16819,7 +16923,7 @@ ol.Map.createControls_ = function(mapOptions) { } var zoomControl = goog.isDef(mapOptions.zoomControl) ? mapOptions.zoomControl : true; if(zoomControl) { - var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 4; + var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 1; controls.push(new ol.control.Zoom({delta:zoomDelta})) } return controls @@ -16832,7 +16936,7 @@ ol.Map.createInteractions_ = function(mapOptions) { } var doubleClickZoom = goog.isDef(mapOptions.doubleClickZoom) ? mapOptions.doubleClickZoom : true; if(doubleClickZoom) { - var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 4; + var zoomDelta = goog.isDef(mapOptions.zoomDelta) ? mapOptions.zoomDelta : 1; interactions.push(new ol.interaction.DblClickZoom(zoomDelta)) } var touchPan = goog.isDef(mapOptions.touchPan) ? mapOptions.touchPan : true; @@ -16859,8 +16963,7 @@ ol.Map.createInteractions_ = function(mapOptions) { } var mouseWheelZoom = goog.isDef(mapOptions.mouseWheelZoom) ? mapOptions.mouseWheelZoom : true; if(mouseWheelZoom) { - var mouseWheelZoomDelta = goog.isDef(mapOptions.mouseWheelZoomDelta) ? mapOptions.mouseWheelZoomDelta : 1; - interactions.push(new ol.interaction.MouseWheelZoom(mouseWheelZoomDelta)) + interactions.push(new ol.interaction.MouseWheelZoom) } var shiftDragZoom = goog.isDef(mapOptions.shiftDragZoom) ? mapOptions.shiftDragZoom : true; if(shiftDragZoom) { @@ -17319,14 +17422,14 @@ ol.TileUrlFunction.createFromTileUrlFunctions = function(tileUrlFunctions) { } } }; -ol.TileUrlFunction.createWMSParams = function(baseUrl, params, opt_version) { +ol.TileUrlFunction.createWMSParams = function(baseUrl, params) { return function(tileCoord, tileGrid, projection) { if(goog.isNull(tileCoord)) { return undefined }else { var size = tileGrid.getTileSize(tileCoord.z); var extent = tileGrid.getTileCoordExtent(tileCoord); - return ol.source.wms.getUrl(baseUrl, params, extent, size, projection, opt_version) + return ol.source.wms.getUrl(baseUrl, params, extent, size, projection) } } }; @@ -17463,7 +17566,7 @@ ol.interaction.DragRotateAndZoom.prototype.handleDrag = function(mapBrowserEvent this.lastAngle_ = theta; if(goog.isDef(this.lastMagnitude_)) { var resolution = this.lastMagnitude_ * (view.getResolution() / magnitude); - view.zoomToResolution(map, resolution) + view.zoom(map, resolution) } this.lastMagnitude_ = magnitude }; @@ -18407,6 +18510,8 @@ goog.require("ol.parser.XML"); goog.require("ol.parser.ogc.OWSCommon_v1_1_0"); goog.require("ol.projection"); ol.parser.ogc.WMTSCapabilities_v1_0_0 = function() { + this.defaultNamespaceURI = "http://www.opengis.net/wtms/1.0"; + this.errorProperty = "serviceIdentification"; this.readers = {"http://www.opengis.net/wmts/1.0":{"Capabilities":function(node, obj) { this.readChildNodes(node, obj) }, "Contents":function(node, obj) { @@ -19273,7 +19378,7 @@ goog.require("ol.ImageUrlFunction"); goog.require("ol.Size"); goog.require("ol.source.ImageSource"); ol.source.SingleImageWMS = function(options) { - var imageUrlFunction = goog.isDef(options.url) ? ol.ImageUrlFunction.createWMSParams(options.url, options.params, options.version) : ol.ImageUrlFunction.nullImageUrlFunction; + var imageUrlFunction = goog.isDef(options.url) ? ol.ImageUrlFunction.createWMSParams(options.url, options.params) : ol.ImageUrlFunction.nullImageUrlFunction; goog.base(this, {attributions:options.attributions, crossOrigin:options.crossOrigin, extent:options.extent, projection:options.projection, resolutions:options.resolutions, imageUrlFunction:imageUrlFunction}); this.image_ = null; this.ratio_ = 1.5 @@ -19294,24 +19399,21 @@ ol.source.SingleImageWMS.prototype.getImage = function(extent, resolution, proje return this.image_ }; goog.provide("ol.source.Stamen"); -goog.provide("ol.source.StamenFlavor"); -goog.provide("ol.source.StamenProvider"); goog.require("ol.Attribution"); goog.require("ol.source.XYZ"); -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(stamenOptions) { +ol.source.StamenLayerConfig = {"terrain":{extension:"jpg", opaque:true}, "terrain-background":{extension:"jpg", opaque:true}, "terrain-labels":{extension:"png", opaque:false}, "terrain-lines":{extension:"png", opaque:false}, "toner-background":{extension:"png", opaque:true}, "toner":{extension:"png", opaque:true}, "toner-hybrid":{extension:"png", opaque:false}, "toner-labels":{extension:"png", opaque:false}, "toner-lines":{extension:"png", opaque:false}, "toner-lite":{extension:"png", opaque:true}, +"watercolor":{extension:"jpg", opaque:true}}; +ol.source.StamenProviderConfig = {"terrain":{minZoom:4, maxZoom:18}, "toner":{minZoom:0, maxZoom:20}, "watercolor":{minZoom:3, maxZoom:16}}; +ol.source.Stamen = function(options) { var attribution = new ol.Attribution('Map tiles by Stamen Design, ' + "under " + 'CC BY 3.0. ' + 'Data by OpenStreetMap, ' + "under " + 'CC BY SA.'); - var layer = stamenOptions.provider; - if(goog.isDef(stamenOptions.flavor)) { - layer += "-" + stamenOptions.flavor - } - var config = ol.source.StamenProviderConfig[stamenOptions.provider]; - goog.base(this, {attributions:[attribution], maxZoom:config.maxZoom, opaque:false, url:"http://{a-d}.tile.stamen.com/" + layer + "/{z}/{x}/{y}." + config.type}) + var i = options.layer.indexOf("-"); + var provider = i == -1 ? options.layer : options.layer.slice(0, i); + goog.asserts.assert(provider in ol.source.StamenProviderConfig); + var providerConfig = ol.source.StamenProviderConfig[provider]; + goog.asserts.assert(options.layer in ol.source.StamenLayerConfig); + var layerConfig = ol.source.StamenLayerConfig[options.layer]; + var url = goog.isDef(options.url) ? options.url : "http://{a-d}.tile.stamen.com/" + options.layer + "/{z}/{x}/{y}." + layerConfig.extension; + goog.base(this, {attributions:[attribution], maxZoom:providerConfig.maxZoom, opaque:layerConfig.opaque, url:url}) }; goog.inherits(ol.source.Stamen, ol.source.XYZ); goog.provide("ol.source.StaticImage"); @@ -19431,21 +19533,20 @@ ol.source.TiledWMS = function(tiledWMSOptions) { if(goog.isDef(tiledWMSOptions.tileGrid)) { tileGrid = tiledWMSOptions.tileGrid } - var version = tiledWMSOptions.version; var tileUrlFunction; if(tiledWMSOptions.urls) { var tileUrlFunctions = goog.array.map(tiledWMSOptions.urls, function(url) { - return ol.TileUrlFunction.createWMSParams(url, tiledWMSOptions.params, version) + return ol.TileUrlFunction.createWMSParams(url, tiledWMSOptions.params) }); tileUrlFunction = ol.TileUrlFunction.createFromTileUrlFunctions(tileUrlFunctions) }else { if(tiledWMSOptions.url) { - tileUrlFunction = ol.TileUrlFunction.createWMSParams(tiledWMSOptions.url, tiledWMSOptions.params, version) + tileUrlFunction = ol.TileUrlFunction.createWMSParams(tiledWMSOptions.url, tiledWMSOptions.params) }else { tileUrlFunction = ol.TileUrlFunction.nullTileUrlFunction } } - var transparent = goog.isDef(tiledWMSOptions.transparent) ? tiledWMSOptions.transparent : true; + var transparent = goog.isDef(tiledWMSOptions.params["TRANSPARENT"]) ? tiledWMSOptions.params["TRANSPARENT"] : true; var extent = tiledWMSOptions.extent; var tileCoordTransform = function(tileCoord, tileGrid, projection) { if(tileGrid.getResolutions().length <= tileCoord.z) { @@ -19454,7 +19555,7 @@ ol.source.TiledWMS = function(tiledWMSOptions) { var x = tileCoord.x; var tileExtent = tileGrid.getTileCoordExtent(tileCoord); var projectionExtent = projection.getExtent(); - var extent = goog.isDef(tiledWMSOptions.extent) ? tiledWMSOptions.extent : projectionExtent; + extent = goog.isDef(extent) ? extent : projectionExtent; 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); @@ -19627,8 +19728,6 @@ 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"); diff --git a/master/build/ol.js b/master/build/ol.js index b24f8cde67..d9862b64b1 100644 --- a/master/build/ol.js +++ b/master/build/ol.js @@ -1,237 +1,238 @@ -(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function n(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Xa=function(){return a.oc?a.oc:a.oc=new a}} +(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function m(a){return function(){return this[a]}}var p,w=this;function ba(){}function ca(a){a.Ya=function(){return a.pc?a.pc:a.pc=new a}} function da(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 x(a){return a!==h}function ea(a){return"array"==da(a)}function fa(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==da(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function y(a){return a[ja]||(a[ja]=++ka)}var ja="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ka=0; function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(a,b,c){if(!a)throw Error();if(2")&&(a=a.replace(wa,">"));-1!=a.indexOf('"')&&(a=a.replace(xa,"""));return a}var ua=/&/g,va=//g,xa=/\"/g,ta=/[&<>\"]/;var ya=Array.prototype,za=ya.indexOf?function(a,b,c){return ya.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?ya.slice.call(a,b):ya.slice.call(a,b,c)}function Ia(a){ya.sort.call(a,Ja)}function Ja(a,b){return a>b?1:a2*this.o&&Ya(this),i):l};function Ya(a){if(a.o!=a.a.length){for(var b=0,c=0;b2*this.n&&Ya(this),i):l};function Ya(a){if(a.n!=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==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]q[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=ga(c)&&c.match(/\S+/g)||[];for(var d=Ha(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c};function Gb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Gb.prototype.Q=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}p=Hb.prototype;p.Q=function(){return new Hb(this.width,this.height)};p.Ha=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.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){Ka(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 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==q[1].length?0:parseInt(q[1],10))?1:0)||((0==s[2].length)<(0==q[2].length)?-1:(0==s[2].length)>(0==q[2].length)?1:0)||(s[2]q[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=ga(c)&&c.match(/\S+/g)||[];for(var d=Ha(arguments,1),e=c.length+d.length,f=c,g=0;gc*b?c+b:c};function Gb(a,b){this.x=x(a)?a:0;this.y=x(b)?b:0}Gb.prototype.S=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}p=Hb.prototype;p.S=function(){return new Hb(this.width,this.height)};p.Ia=function(){return!(this.width*this.height)};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.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){Ka(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="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:ea(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2=a.keyCode)a.keyCode=-1}catch(b){}};p.fd=n("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.ya=l;lc.prototype.a=l;lc.prototype.handleEvent=function(a){return this.b?this.Ia.call(this.Nb||this.src,a):this.Ia.handleEvent.call(this.Ia,a)};var nc={},oc={},pc={},qc={}; -function H(a,b,c,d,e){if(b){if(ea(b)){for(var f=0;f=a.keyCode)a.keyCode=-1}catch(b){}};p.dd=m("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.za=l;lc.prototype.a=l;lc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Ob||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(ea(b)){for(var f=0;ff.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new hc;ic(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.O=g.o;for(var u=q.length- -1;!r.pa&&0<=u&&g.O;u--)r.c=q[u],f&=vc(g,q[u],d,i,r);if(m){g=e[l];g.O=g.o;for(u=0;!r.pa&&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 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),m;d=e?Kb(e):document;if(m=F)if(m=!Ab(9))Ib(d),m=l;m=m?d.body:d.documentElement;if(a!=m)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(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"==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!=m;)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 r;F?r="-ms-transform":G?r="-webkit-transform": -lb?r="-o-transform":mb&&(r="-moz-transform");var s;r&&(s=Ac(a,r));s||(s=Ac(a,"transform"));s?(a=s.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 r=ha(a.fd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.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.Q=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 L(a,b){Nc.call(this,a,b)}B(L,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,b,c){if(ea(b))for(var d=0;db)throw Error("Bad port number "+b);a.pb=b}else a.pb=k} -function Vc(a,b,c){Tc(a);if(b instanceof Wc){a.a=b;b=a.a;if((a=a.la)&&!b.b){bd(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),cd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.M)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var Yc=/[#\/\?@]/g,$c=/[\#\?:]/g,Zc=/[\#\?]/g,dd=/[\#\?@]/g,ad=/#/g;function Wc(a,b,c){this.a=a||k;this.b=!!c} -function bd(a){if(!a.D&&(a.D=new Wa,a.o=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 zd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ad(a,b){Zb.call(this);a&&(this.fb&&Bd(this),this.Ca=a,this.eb=H(this.Ca,"keypress",this,b),this.Ob=H(this.Ca,"keydown",this.a,b,this),this.fb=H(this.Ca,"keyup",this.b,b,this))}B(Ad,jd);p=Ad.prototype;p.Ca=k;p.eb=k;p.Ob=k;p.fb=k;p.fa=-1;p.ea=-1;p.zb=l; -var Cd={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},Dd={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},Ed=F||G&&yb("525"),Fd=eb&&mb; -Ad.prototype.a=function(a){if(G&&(17==this.fa&&!a.$a||18==this.fa&&!a.ba))this.ea=this.fa=-1;Ed&&!xd(a.va,this.fa,a.ma,a.$a,a.ba)?this.handleEvent(a):(this.ea=mb?zd(a.va):a.va,Fd&&(this.zb=a.ba))};Ad.prototype.b=function(a){this.ea=this.fa=-1;this.zb=a.ba}; -Ad.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ea,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ea,d=0<=b.charCode&&63232>b.charCode&&yd(c)?b.charCode:0):lb?(c=this.ea,d=yd(c)?b.keyCode:0):(c=b.keyCode||this.ea,d=b.charCode||0,Fd&&(e=this.zb),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Cd?f=Cd[c]:25==c&&a.ma&&(f=9):g&&g in Dd&&(f=Dd[g]);a=f==this.fa;this.fa=f;b=new Gd(f,d,a,b);b.ba=e;K(this,b)}; -function Bd(a){a.eb&&(J(a.eb),J(a.Ob),J(a.fb),a.eb=k,a.Ob=k,a.fb=k);a.Ca=k;a.fa=-1;a.ea=-1}Ad.prototype.r=function(){Ad.v.r.call(this);Bd(this)};function Gd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.va=a;this.Za=b;this.b=c}B(Gd,hc);function Hd(a){Zb.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"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Hd,jd); -Hd.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=Id(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Id(-a.wheelDeltaX,c),c=Id(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),x(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 Jd(d,a,b,c);K(this,b)};function Id(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b} -Hd.prototype.r=function(){Hd.v.r.call(this);J(this.b);delete this.b};function Jd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Jd,hc);var Kd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){Zb.call(this);this.l={};x(a)&&this.lb(a)}B(M,jd);var Ld={},Md={},Nd={};function Od(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Pd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Qd(a){return Ld.hasOwnProperty(a)?Ld[a]:Ld[a]=a.toLowerCase()+"_changed"}function Rd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype; -p.Vc=function(a,b,c,d){c=c||a;this.Vb(a);var e=Qd(c);Rd(this)[a]=H(b,e,function(){Sd(this,a)},h,this);Pd(this)[a]={target:b,key:c};d||Sd(this,a)};p.Yc=ba;p.s=function(a){var b,c=Pd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Md.hasOwnProperty(b)?Md[b]:Md[b]="get"+Od(b),b=a[c]?a[c]():a.s(b)):this.l.hasOwnProperty(a)&&(b=this.l[a]);return b}; -p.V=function(){for(var a=Ma(Pd(this)).concat(Ma(this.l)),b={},c=0,d=0;d=b.h&&a.i<=b.k&&a.k>=b.i}Xd.prototype.toString=function(){return"("+[this.h,this.i,this.m,this.k].join(", ")+")"};function Zd(a,b,c,d){Xd.call(this,a,b,c,d)}B(Zd,Xd);function $d(a){var b=arguments[0],b=new Zd(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}oe.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function qe(a,b,c,d){this.h=a;this.i=b;this.m=c;this.k=d}B(qe,Xd);qe.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.m&&this.i<=a.y&&a.y<=this.k};qe.prototype.$=function(){return this.k-this.i+1};qe.prototype.da=function(){return this.m-this.h+1};function re(a,b){this.b=a;this.a=b||k};function se(a){Zb.call(this);this.U=a;this.a=0}B(se,jd);se.prototype.c=function(){return y(this).toString()};function te(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function ue(a,b,c,d){if(0==b.a){var e=b.c();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,ve(a,0,a.a.length-1))}}}te.prototype.f=function(){--this.c};function we(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};/* +function rc(a,b){if(!nc[a])return i;var c=nc[a],d=c.type,e=oc;if(!(d in e))return i;var e=e[d],f,g;if(!Xb){var j;if(!(j=b))a:{j=["window","event"];for(var n=w;f=j.shift();)if(n[f]!=k)n=n[f];else{j=k;break a}j=n}f=j;j=i in e;n=l in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var r=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(s){r=i}if(r||f.returnValue==h)f.returnValue=i}}r=new hc;ic(r,f,this);f=i;try{if(j){for(var q=[],v=r.c;v;v=v.parentNode)q.push(v);g=e[i];g.Q=g.n;for(var u=q.length- +1;!r.qa&&0<=u&&g.Q;u--)r.c=q[u],f&=wc(g,q[u],d,i,r);if(n){g=e[l];g.Q=g.n;for(u=0;!r.qa&&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=Kb(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=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(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&&!Ab(8))return a.offsetParent;for(var b=Kb(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 Gb(c.x-d.x,c.y-d.y)} +function Hc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Ec(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Bc(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),n;d=e?Kb(e):document;if(n=F)if(n=!Ab(9))Ib(d),n=l;n=n?d.body:d.documentElement;if(a!=n)if(a.getBoundingClientRect)d=Ec(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(n),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(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Fc(g))&&g!=e.body&&g!=n;)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 r;F?r="-ms-transform":G?r="-webkit-transform": +lb?r="-o-transform":mb&&(r="-moz-transform");var s;r&&(s=Bc(a,r));s||(s=Bc(a,"transform"));s?(a=s.match(Ic),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 r=ha(a.dd),s=a,a.targetTouches?s=a.targetTouches[0]:r&&a.K.targetTouches&&(s=a.K.targetTouches[0]),b.x=s.clientX,b.y=s.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){Ib(Kb(a));if(F&&!yb("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,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 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,Gb);Oc.prototype.S=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 L(a,b){Oc.call(this,a,b)}B(L,Oc);function Pc(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 Qc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Rc(a,b,c){if(ea(b))for(var d=0;db)throw Error("Bad port number "+b);a.rb=b}else a.rb=k} +function Wc(a,b,c){Uc(a);if(b instanceof Xc){a.a=b;b=a.a;if((a=a.la)&&!b.b){cd(b);b.a=k;var d=b.D,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),dd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(fa(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.W)e=d.W();else if("function"!=typeof d.N)if(fa(d)||ga(d)){e=[];for(var f=d.length,g=0;g>4&15).toString(16)+(a&15).toString(16)}var Zc=/[#\/\?@]/g,ad=/[\#\?:]/g,$c=/[\#\?]/g,ed=/[\#\?@]/g,bd=/#/g;function Xc(a,b,c){this.a=a||k;this.b=!!c} +function cd(a){if(!a.D&&(a.D=new Wa,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 Ad(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Bd(a,b){Zb.call(this);a&&(this.hb&&Cd(this),this.Da=a,this.gb=H(this.Da,"keypress",this,b),this.Pb=H(this.Da,"keydown",this.a,b,this),this.hb=H(this.Da,"keyup",this.b,b,this))}B(Bd,kd);p=Bd.prototype;p.Da=k;p.gb=k;p.Pb=k;p.hb=k;p.ga=-1;p.fa=-1;p.Bb=l; +var Dd={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},Ed={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},Fd=F||G&&yb("525"),Gd=eb&&mb; +Bd.prototype.a=function(a){if(G&&(17==this.ga&&!a.ab||18==this.ga&&!a.ca))this.fa=this.ga=-1;Fd&&!yd(a.wa,this.ga,a.ma,a.ab,a.ca)?this.handleEvent(a):(this.fa=mb?Ad(a.wa):a.wa,Gd&&(this.Bb=a.ca))};Bd.prototype.b=function(a){this.fa=this.ga=-1;this.Bb=a.ca}; +Bd.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.fa,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.fa,d=0<=b.charCode&&63232>b.charCode&&zd(c)?b.charCode:0):lb?(c=this.fa,d=zd(c)?b.keyCode:0):(c=b.keyCode||this.fa,d=b.charCode||0,Gd&&(e=this.Bb),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Dd?f=Dd[c]:25==c&&a.ma&&(f=9):g&&g in Ed&&(f=Ed[g]);a=f==this.ga;this.ga=f;b=new Hd(f,d,a,b);b.ca=e;K(this,b)}; +function Cd(a){a.gb&&(J(a.gb),J(a.Pb),J(a.hb),a.gb=k,a.Pb=k,a.hb=k);a.Da=k;a.ga=-1;a.fa=-1}Bd.prototype.r=function(){Bd.v.r.call(this);Cd(this)};function Hd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.wa=a;this.$a=b;this.b=c}B(Hd,hc);function Id(a){Zb.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,mb?"DOMMouseScroll":"mousewheel",this)}B(Id,kd); +Id.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=Jd(-a.wheelDelta,c);x(a.wheelDeltaX)?(b=Jd(-a.wheelDeltaX,c),c=Jd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100d&&(d=-3),x(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 Kd(d,a,b,c);K(this,b)};function Jd(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b} +Id.prototype.r=function(){Id.v.r.call(this);J(this.b);delete this.b};function Kd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Kd,hc);var Ld=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function M(a){Zb.call(this);this.o={};x(a)&&this.nb(a)}B(M,kd);var Md={},Nd={},Od={};function Pd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Qd(a){return a.ol_accessors_||(a.ol_accessors_={})}function Rd(a){return Md.hasOwnProperty(a)?Md[a]:Md[a]=a.toLowerCase()+"_changed"}function Sd(a){return a.ol_bindings_||(a.ol_bindings_={})}p=M.prototype; +p.Uc=function(a,b,c,d){c=c||a;this.Vb(a);var e=Rd(c);Sd(this)[a]=H(b,e,function(){Td(this,a)},h,this);Qd(this)[a]={target:b,key:c};d||Td(this,a)};p.Xc=ba;p.s=function(a){var b,c=Qd(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Nd.hasOwnProperty(b)?Nd[b]:Nd[b]="get"+Pd(b),b=a[c]?a[c]():a.s(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b}; +p.W=function(){for(var a=Ma(Qd(this)).concat(Ma(this.o)),b={},c=0,d=0;d=b.i&&a.j<=b.k&&a.k>=b.j}Yd.prototype.toString=function(){return"("+[this.i,this.j,this.l,this.k].join(", ")+")"};function $d(a,b,c,d){Yd.call(this,a,b,c,d)}B($d,Yd);function ae(a){var b=arguments[0],b=new $d(b.x,b.y,b.x,b.y),c;for(c=1;c>=1;return b.join("")}pe.prototype.toString=function(){return[this.m,this.x,this.y].join("/")};function re(a,b,c,d){this.i=a;this.j=b;this.l=c;this.k=d}B(re,Yd);re.prototype.contains=function(a){return this.i<=a.x&&a.x<=this.l&&this.j<=a.y&&a.y<=this.k};re.prototype.aa=function(){return this.k-this.j+1};re.prototype.ea=function(){return this.l-this.i+1};function se(a,b){this.b=a;this.a=b||k};function te(a){Zb.call(this);this.e=0;this.V=a;this.a=0}B(te,kd);te.prototype.b=function(){return y(this).toString()};function ue(a){this.d=a;this.f=8;this.c=0;this.a=[];this.b={}}function ve(a,b,c,d){if(0==b.a){var e=b.b();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,we(a,0,a.a.length-1),b.e++)}}}ue.prototype.e=function(){--this.c};function xe(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 xe(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*ye.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var ye=new function(){this.a=6370997};var ze="object"==typeof Proj4js,Ae={Oc:"degrees",pe:"m"};function O(a,b,c,d){this.a=a;this.e=b;this.na=c;this.c=x(d)?d:"enu";this.f=k}O.prototype.l=n("a");O.prototype.H=n("na");O.prototype.j=n("e");O.prototype.g=n("c");function Be(a,b){O.call(this,a,b.units,k,b.axis);this.zc=b;this.d=k}B(Be,O); -Be.prototype.b=function(a,b){if("degrees"==this.e)return a;this.d===k&&(this.d=Ce(this,De("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(xe(new L(c[0],c[1]),new L(c[2],c[3]))+xe(new L(c[4],c[5]),new L(c[6],c[7])))/2};var Ee={},Fe={},Ge={};function He(a){C(a,function(a){Ie(a)});C(a,function(b){C(a,function(a){b!==a&&Je(b,a,Ke)})})}function Ie(a){Fe[a.a]=a;Je(a,a,Ke)}function Le(a){return a!=k?ga(a)?Me(a):a:Me("EPSG:3857")} -function Je(a,b,c){a=a.a;b=b.a;a in Ge||(Ge[a]={});Ge[a][b]=c}function Me(a){var b=Fe[a];ze&&!x(b)&&(b=De(a));x(b)||(b=k);return b}function De(a){var b=Ee[a];x(b)||(b=new Proj4js.Proj(a),b=new Be(a,b),Ee[a]=b);return b} -function Ce(a,b){var c=a.a,d=b.a,e;c in Ge&&d in Ge[c]&&(e=Ge[c][d]);if(ze&&!x(e)){var f;f=(a instanceof Be?a:De(a.a)).zc;var g;g=(b instanceof Be?b:De(b.a)).zc;e=function(a,b,c){var d=a.length,c=1a?Qe(2*a):1-Qe(2*(a-0.5))},ad:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Ab: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 Ue={Ab:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Te.Jc;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.Na-b.Na);return a.b>a.d}return l}Ve.prototype.Ja=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ue.Ja({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Xe(a,b,c){ec.call(this,a);this.map=b;this.ab=l;this.b=x(c)?c:k}B(Xe,ec);Xe.prototype.C=function(){Xe.v.C.call(this);this.ab=i};function Ye(a,b){Gb.call(this,a,b)}B(Ye,Gb);function Ze(a,b,c,d){Xe.call(this,a,b,d);this.a=c;this.f=this.e=k}B(Ze,Xe);Ze.prototype.d=function(){this.e===k&&(this.e=$e(this.map,af(this)));return this.e};function af(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ye(b.x,b.y)}return a.f} -function bf(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.j=this.l=this.f=k;a=this.a.b;this.l=H(a,["click","dblclick"],this.dc,l,this);this.j=H(a,"mousedown",this.zd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Jd,l,this),H(a,["touchmove","MSPointerMove"],this.Id,l,this),H(a,["touchend","MSPointerUp"],this.Hd,l,this)]}B(bf,jd);p=bf.prototype;p.dc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new Ze(cf,this.a,a):new Ze(df,this.a,a))}}; -p.Bd=function(a){this.e&&(this.c=k,C(this.d,J),this.e=this.d=k,this.b&&K(this,new Ze(ef,this.a,a)))};p.zd=function(a){K(this,new Ze(ff,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.Ad,l,this),H(document,"mouseup",this.Bd,l,this)],a.C())};p.Ad=function(a){var b;this.b||(this.b=i,b=new Ze(gf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new Ze(hf,this.a,a);K(this,b)}; -p.Jd=function(a){a.C();this.c=a;this.b=l;K(this,new Ze(jf,this.a,a))};p.Id=function(a){this.b=i;K(this,new Ze(kf,this.a,a))};p.Hd=function(a){K(this,new Ze(lf,this.a,a));this.b||(a=pa(),this.f=!this.f||250c?(b="\u2032",a*=60): -b="\u00b0":"imperial"==this.c?0.9144>c?(b="in",a/=0.0254):1609.344>c?(b="ft",a/=0.3048):(b="mi",a/=1609.344):"nautical"==this.c?(a/=1852,b="nm"):"metric"==this.c?1>c?(b="mm",a*=1E3):1E3>c?b="m":(b="km",a/=1E3):"us"==this.c&&(0.9144>c?(b="in",a*=39.37):1609.344>c?(b="ft",a/=0.30480061):(b="mi",a/=1609.3472));for(var c=3*Math.floor(Math.log(this.l*a)/Math.log(10)),e,f;;){e=xf[c%3]*Math.pow(10,Math.floor(c/3));f=Math.round(e/a);if(f>=this.l)break;++c}e=e+b;this.t!=e&&(this.t=this.g.innerHTML=e);this.F!= -f&&(this.g.style.width=f+"px",this.F=f);this.f||(Ic(this.j,i),this.f=i)}};wf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);wf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.A,l,this)])};function yf(a){var b=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Ob("DIV","ol-zoom ol-unselectable",b,c);tf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(yf,tf);yf.prototype.d=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,this.c,h,250)};yf.prototype.e=function(a){a.C();a=this.b;sf(a);a.a().zoom(a,-this.c,h,250)};function zf(){};function Af(a){this.a=a}B(Af,zf);Af.prototype.oa=function(a){var b=a.a;if(a.type==cf&&(Kd||kc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;c.a().zoom(c,e,d);a.C();b.C()}};function Bf(a){return a.ba&&!a.ob&&a.ma}function Cf(a){return!a.ba&&!a.ob&&!a.ma}function Df(a){return!a.ba&&!a.ob&&a.ma};function Ef(){this.e=l;this.p=this.na=this.l=this.g=0;this.Ma=this.f=k}B(Ef,zf);p=Ef.prototype;p.Gb=ba;p.Hb=ba;p.bb=ld;p.nc=ba;p.oa=function(a){var b=a.map;if(b.Ga()){var b=b.a(),c=a.a;a.type==ff&&this.nc(a);this.e?a.type==hf?(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Gb(a)):a.type==ef&&(this.d=c.clientX-this.g,this.b=c.clientY-this.l,this.Hb(a),this.e=l):a.type==gf&&(this.g=c.clientX,this.l=c.clientY,this.b=this.d=0,this.f=b.S(),this.Ma=a.d(),this.bb(a)&&(this.e=i,a.C()))}};function Ff(a,b){Ef.call(this);this.j=a;this.a=b;this.c=k}B(Ff,Ef);Ff.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.T(),d=b.ka(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)}; -Ff.prototype.Hb=function(a){var b=a.map,a=b.a();Se(a,-1);if(this.a&&We(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.S();this.c=this.a.Ja(e);b.j(this.c);e=Gf(b,e);b=$e(b,new Ye(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Ff.prototype.bb=function(a){var b=a.a;if(this.j(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);Se(a.a(),1);return i}return l}; -Ff.prototype.nc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.g,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Hf(a){Ef.call(this);this.c=a}B(Hf,Ef);Hf.prototype.Gb=function(a){var b=a.map,c=b.e(),a=af(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);d.rotate(b,d.ka()-a)}this.a=c};Hf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,a.a(),sf(a),this.a=h,i):l};function If(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;tf.call(this,{element:b,map:a.map})}B(If,tf);If.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Gf(a,this.e),Bc(this.element,this.c),Jc(this.element,new Wd(0,0)),this.d=H(a,hf,this.f,l,this));If.v.a.call(this,a)};If.prototype.f=function(a){var b=this.b,a=a.d(),b=Gf(b,a);Bc(this.element,new Ye(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Jc(this.element,new Wd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Jf(a){Ef.call(this);this.c=a;this.a=k}B(Jf,Ef);Jf.prototype.Hb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=$d(this.Ma,a.d());qf(b,function(){var a=b.a(),e=b.e();a.a(new L((c.h+c.m)/2,(c.i+c.k)/2));e=Math.max((c.m-c.h)/e.width,(c.k-c.i)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Jf.prototype.bb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new If({map:a.map,Ma:this.Ma}),i):l};function Kf(a){this.a=a}B(Kf,zf);Kf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.va;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.T()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.S();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Lf(){}B(Lf,zf);Lf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.Za;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);d.a().zoom(d,c,h,100);b.C();a.C()}}};function Mf(a){this.a=a}B(Mf,zf);Mf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.d(),e=0>c.b?this.a:-this.a,f=b.a();sf(b);f.zoom(b,e,d);a.C();c.C()}};function Nf(){this.g=l;this.l={};this.targetTouches=[]}B(Nf,zf);function Of(a){for(var b=a.length,c=0,d=0,e=0;ethis.j&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Gc(a.b),e=Of(this.targetTouches);e.x-=d.x;e.y-=d.y;d=$e(a,e);this.a&&c.rotate(a,c.ka()+b,d)};Qf.prototype.d=function(a){return 2>this.targetTouches.length?(Se(a.map.a(),-1),l):i}; -Qf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,Se(a,1),i):l};function Rf(){Nf.call(this)}B(Rf,Nf);Rf.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);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Gc(a.b);d=Of(this.targetTouches);d.x-=c.x;d.y-=c.y;c=$e(a,d);rf(e,a,e.T()*b,c)};Rf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.T(),c=b.b.resolution(c,0);rf(b,a,c,h);Se(b,-1);return l}return i}; -Rf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,Se(a,1),i):l};function Sf(a){O.call(this,a,"m",Tf)}B(Sf,O);var Uf=6378137*Math.PI,Tf=new Zd(-Uf,-Uf,Uf,Uf),Vf=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Sf(a)});Sf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Wf(a,b){O.call(this,a,"degrees",Xf,b)}B(Wf,O);var Xf=new Zd(-180,-90,180,90),Yf=[new Wf("CRS:84"),new Wf("EPSG:4326","neu"),new Wf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Wf("urn:ogc:def:crs:OGC:1.3:CRS84")];Wf.prototype.b=aa();function Zf(a,b,c,d,e){this.f=e;this.g=a;this.l=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(Zf,jd);Zf.prototype.ja=n("f");Zf.prototype.H=n("g");function $f(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}Zf.prototype.j=function(){this.a=3;C(this.c,J);this.c=k;K(this,"change")};Zf.prototype.p=function(){this.a=2;C(this.c,J);this.c=k;K(this,"change")}; -function ag(a){0==a.a&&(a.a=1,a.c=[sc(a.b,"error",a.j,l,a),sc(a.b,"load",a.p,l,a)],a.b.src=a.l)};function bg(a){this.a=a.resolutions;this.g=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Wd(256,256):k}bg.prototype.b=function(a,b,c){for(var d=cg(this,a),a=a.n-1;0<=a&&!b.call(c,a,dg(this,d,this.a[a]));)--a};function eg(a,b){return a.d===k?a.f[b]:a.d}bg.prototype.Db=n("a"); -function dg(a,b,c){var d=fg(a,new L(b.h,b.i),c),a=fg(a,new L(b.m,b.k),c,i);return new qe(d.x,d.y,a.x,a.y)}function gg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function cg(a,b){var c=eg(a,b.n),d=a.a[b.n],e=hg(a,b.n),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new Zd(f,c,f+e.width*d,c+e.height*d)} -function fg(a,b,c,d){var e=nf(a.a,c),f=c/a.a[e],g=eg(a,e),j=hg(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 oe(e,a,b)}function hg(a,b){return a.e===k?a.c[b]:a.e} -function ig(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.m-b.h,b.k-b.i),d=x(h)?h:new Wd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;fb?a[1]="?":b==m.length-1&&(a[1]=h));return a.join("")};function yg(a,b,c){return function(d,e,f){return xg(a,b,d,e,f,c)}}function zg(){};function Ag(a){Pe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Fa=x(a.Fa)?a.Fa:zg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Ag,Pe);function Bg(a,b,c,d,e){var f=k,d=a.Fa(b,d,e);x(d)&&(f=new Zf(b,c,d,a.d,a.ja()));return f};function Cg(a){P.call(this,a)}B(Cg,P);function Dg(a){P.call(this,a)}B(Dg,P);function Eg(a,b){lg.call(this,a,b)}B(Eg,lg);function Fg(a,b){lg.call(this,a,b);this.b=k;this.c=de()}B(Fg,Eg);Fg.prototype.I=function(){return this.b===k?k:$f(this.b,this)};Fg.prototype.J=n("c"); -Fg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.W(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(sc(b,"change",this.Ib,l,this),ag(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,j=this.c;he(j);le(j,a.size.width/2,a.size.height/2);ne(j,e);me(j,g/d,g/d);le(j,(f.h-c.x)/g,(c.y-f.k)/g);og(a.attributions,b.ja())}};function Gg(a,b){lg.call(this,a,b);this.e=this.c=this.d=k;this.f=de();this.b=k}B(Gg,Eg);Gg.prototype.I=n("d");Gg.prototype.J=n("f"); -Gg.prototype.ga=function(a){var b=a.u,c=b.projection,d=this.a.W(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=ig(c));var g=nf(f.a,b.resolution),j=hg(f,g),m=f.a[g],r=dg(f,a.extent,m),s=r.da(),q=r.$(),j=new Wd(j.width*s,j.height*q),v,u;this.d===k?(v=Qb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]={}; -var j=na(d.d,d,q,rg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.h;E<=r.m;++E)for(D=r.i;D<=r.k;++D)if(z=new oe(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)sc(t,"change",this.Pb,l,this),qg(a.Pa,d,z),v=gg(f,z),ue(a.Ub,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,j)}e=Aa(Ma(q),Number);Ia(e);v=d.G;var c=ae(cg(f,new oe(g,r.h,r.k))),U,Q,I,Y,V,sa;for(U=0;Uc;++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 Kg(a,b,c){lg.call(this,a,b);this.target=c}B(Kg,lg);Kg.prototype.r=function(){Ub(this.target);Kg.v.r.call(this)};function Lg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Kg.call(this,a,b,c);this.b=k;this.c=fe()}B(Lg,Kg); -Lg.prototype.ga=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.W(),j=a.B;!j[0]&&!j[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(sc(b,"change",this.Ib,l,this),ag(b)):2==g&&(f=b)));f!==k&&(g=f.H(),j=f.e,b=de(),he(b),le(b,a.size.width/2,a.size.height/2),ne(b,e),me(b,j/d,j/d),le(b,(g.h-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=$f(f,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=f),je(b,this.c)||(Jg(this.target,b),ge(this.c,b)),og(a.attributions, -f.ja()))};function Mg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Kg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Mg,Kg); -Mg.prototype.ga=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.W(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=ig(d));var j=nf(g.a,c.resolution),m=dg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,rg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=m.h;t<=m.m;++t)for(z=m.i;z<=m.k;++z)if(u=new oe(j,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)sc(q,"change",this.Pb,l,this),qg(a.Pa,e,u),v=gg(g,u),ue(a.Ub,q,f,v);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v)continue;g.b(u, -s)}s=Aa(Ma(r),Number);Ia(s);var d={},E;for(q=0;qu&&Tb(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=dg(f.d,a.extent,f.d.a[f.c.n]);u=[];z=t=h;for(z in f.b)t=f.b[z], -v.contains(t.U)||u.push(t);v=h;for(v=0;v=a.Z()){for(var a=this.a,d=0;d>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=Wg.prototype; -p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(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.L)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};p.M=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),dh(a,d)},b,u));Q?(this.b=q,this.t=v):(this.t=this.b=k,a.P=i)}pg(a.Oa,g,r,q);kg(g,r,a.extent, -m);ng(a,g);he(this.d);le(this.d,(d.center.x-v.h)/(v.m-v.h),(d.center.y-v.i)/(v.k-v.i));ne(this.d,d.rotation);me(this.d,a.size.width*d.resolution/(v.m-v.h),a.size.height*d.resolution/(v.k-v.i));le(this.d,-0.5,-0.5)};function eh(){this.o=0;this.c={};this.b=this.a=k}p=eh.prototype;p.clear=function(){this.o=0;this.c={};this.b=this.a=k};function ch(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.L,this),c=c.R};function fh(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.R,a.a.ha=k):(c.R.ha=c.ha,c.ha.R=c.R);c.R=k;c.ha=a.b;a.b.R=c;a.b=c;return c.Y}p.Z=n("o");p.V=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.L;return a}; -p.M=function(){var a=Array(this.o),b=0,c;for(c=this.b;c!==k;c=c.ha)a[b++]=c.Y;return a};function gh(a){var b=a.a;delete a.c[b.L];b.R!==k&&(b.R.ha=k);a.a=b.R;a.a===k&&(a.b=k);--a.o}function hh(a,b,c){c={L:b,R:k,ha:a.b,Y:c};a.b===k?a.a=c:a.b.R=c;a.b=c;a.c[b]=c;++a.o};var ih=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function jh(a,b){var c,d,e=ih.length;for(d=0;d>1)-1;0<=b;b--)we(a,b);for(a=this.qa;0b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=$d.apply(k,c)}this.d=f;this.J.mb(f);this.p=l;f!==k&&(f.P&&sf(this),Array.prototype.push.apply(this.xb, -f.wa));K(this,new Xe("postrender",this,f));w.setTimeout(this.Qc,0)}};p.Rd=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.Rd;S.prototype.Sc=function(a){this.q(tg,a)};S.prototype.setLayers=S.prototype.Sc;S.prototype.Qa=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Qa;S.prototype.Tc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Tc;function qf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.p&&(a=a.c,pd(a),a.Eb())}} -qh.Zc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Wc(b);return hd(a,"renderers")?id(a,"renderers").split(","):hd(a,"renderer")?[id(a,"renderer")]:sh};He(Vf);He(Yf);function th(a,b,c){var d=a.length,c=1a?Se(2*a):1-Se(2*(a-0.5))},$c:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Cb: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 We={Cb:function(a){var b=a.resolution,c=x(a.start)?a.start:pa(),d=x(a.duration)?a.duration:1E3,e=x(a.easing)?a.easing:Ve.Jc;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.Na-b.Na);return a.b>a.d}return l}Xe.prototype.pa=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return We.pa({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ze(a,b,c){ec.call(this,a);this.map=b;this.bb=l;this.b=x(c)?c:k}B(Ze,ec);Ze.prototype.C=function(){Ze.v.C.call(this);this.bb=i};function $e(a,b){Gb.call(this,a,b)}B($e,Gb);function af(a,b,c,d){Ze.call(this,a,b,d);this.a=c;this.f=this.e=k}B(af,Ze);af.prototype.d=function(){this.e===k&&(this.e=bf(this.map,cf(this)));return this.e};function cf(a){if(a.f===k){var b=Gc(a.a,a.map.b);a.f=new $e(b.x,b.y)}return a.f} +function df(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.o=this.h=this.f=k;a=this.a.b;this.h=H(a,["click","dblclick"],this.dc,l,this);this.o=H(a,"mousedown",this.xd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Id,l,this),H(a,["touchmove","MSPointerMove"],this.Hd,l,this),H(a,["touchend","MSPointerUp"],this.Gd,l,this)]}B(df,kd);p=df.prototype;p.dc=function(a){if(!this.b){var b=a.type;K(this,0==this.f||"dblclick"==b?new af(ef,this.a,a):new af(ff,this.a,a))}}; +p.zd=function(a){this.e&&(this.c=k,C(this.d,J),this.e=this.d=k,this.b&&K(this,new af(gf,this.a,a)))};p.xd=function(a){K(this,new af(hf,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.yd,l,this),H(document,"mouseup",this.zd,l,this)],a.C())};p.yd=function(a){var b;this.b||(this.b=i,b=new af(jf,this.a,this.c),K(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new af(kf,this.a,a);K(this,b)}; +p.Id=function(a){a.C();this.c=a;this.b=l;K(this,new af(lf,this.a,a))};p.Hd=function(a){this.b=i;K(this,new af(mf,this.a,a))};p.Gd=function(a){K(this,new af(nf,this.a,a));this.b||(a=pa(),this.f=!this.f||250=Math.abs(a+c)?0:a+c}};function Q(a){Te.call(this);var a=a||{},b={};b.center=x(a.center)?a.center:k;b.projection=Me(a.projection);if(x(a.resolution))b.resolution=a.resolution;else if(x(a.zoom)){var c=b.projection.H(),c=Math.max(c.l-c.i,c.k-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.nb(b);if(x(a.resolutions))var d=a.resolutions,a=function(a,b){if(x(a)){var c=pf(d,a),c=Eb(c+b,0,d.length-1);return d[c]}};else{x(a.maxResolution)&&x(a.numZoomLevels)&&x(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels, +a=a.zoomFactor):(a=Me(a.projection).H(),b=Math.max(a.l-a.i,a.k-a.j)/256,c=29,a=2);var e=a,f=b,g=c-1,a=function(a,b){if(x(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);x(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new qf(a)}B(Q,Te);Q.prototype.M=function(){return this.s("center")};Q.prototype.getCenter=Q.prototype.M;Q.prototype.H=function(a){var b=this.M(),c=this.P();return new $d(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};Q.prototype.wc=function(){return this.s("projection")}; +Q.prototype.getProjection=Q.prototype.wc;Q.prototype.P=function(){return this.s("resolution")};Q.prototype.getResolution=Q.prototype.P;Q.prototype.X=function(){return this.s("rotation")||0};Q.prototype.getRotation=Q.prototype.X;Q.prototype.Ha=function(){return this.M()!=k&&x(this.P())};Q.prototype.a=function(a){this.q("center",a)};Q.prototype.setCenter=Q.prototype.a;Q.prototype.f=function(a){this.q("projection",a)};Q.prototype.setProjection=Q.prototype.f; +Q.prototype.c=function(a){this.q("resolution",a)};Q.prototype.setResolution=Q.prototype.c;Q.prototype.d=function(a){this.q("rotation",a)};Q.prototype.setRotation=Q.prototype.d;Q.prototype.rotate=function(a,b,c,d){b=this.b.rotation(b,0);rf(this,a,b,c,d)}; +function rf(a,b,c,d,e){if(c!=k){var f=a.X(),g=a.M();x(f)&&(x(g)&&x(e))&&(sf(b),b.c(We.rotate({rotation:f,duration:e,easing:Re})),x(d)&&b.c(We.pa({source:g,duration:e,easing:Re})));if(d!=k){var e=a.M(),j=new L(e.x-d.x,e.y-d.y);j.rotate(c-a.X());j.x+=d.x;j.y+=d.y;tf(b,function(){this.a(j);this.d(c)},a)}else a.d(c)}}Q.prototype.zoom=function(a,b,c,d){b=this.b.resolution(b,0);uf(this,a,b,c,d)};function vf(a,b,c,d,e){var f=a.P(),c=a.b.resolution(f,c);uf(a,b,c,d,e)} +function uf(a,b,c,d,e){if(c!=k){var f=a.P(),g=a.M();x(f)&&(x(g)&&x(e))&&(sf(b),b.c(We.zoom({resolution:f,duration:e,easing:Re})),x(d)&&b.c(We.pa({source:g,duration:e,easing:Re})));if(d!=k){var e=a.M(),f=a.P(),j=new L(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);tf(b,function(){this.a(j);this.c(c)},a)}else a.c(c)}};function wf(a){Zb.call(this);this.element=x(a.element)?a.element:k;this.p=a.target;this.b=k;x(a.map)&&this.a(a.map)}B(wf,Zb);wf.prototype.r=function(){Ub(this.element);wf.v.r.call(this)};wf.prototype.a=function(a){this.b===k||Ub(this.element);this.b=a;this.b!==k&&(x(this.p)?this.p:a.w).appendChild(this.element)};function xf(a){this.g=Qb("UL");var b=Ob("DIV",{"class":"ol-attribution ol-unselectable"},this.g);wf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(xf,wf); +xf.prototype.h=function(a){var b=a.b;if(b===k)this.f&&(Jc(this.element,l),this.f=l);else{var c={},d={},a=this.b.t();x(a)&&a.forEach(function(a){a=a.Y();d[y(a).toString()]=a;a=a.ka();if(a!==k){var b,e;for(e=0;eb?(d="\u2032",a*=60):d="\u00b0":"imperial"==this.c?0.9144>b?(d="in",a/=0.0254):1609.344>b?(d="ft",a/=0.3048):(d="mi",a/=1609.344):"nautical"==this.c?(a/=1852,d="nm"):"metric"==this.c?1>b?(d="mm",a*=1E3):1E3>b?d="m":(d="km",a/=1E3):"us"==this.c&&(0.9144>b?(d="in",a*=39.37):1609.344>b?(d="ft",a/=0.30480061):(d="mi",a/=1609.3472));for(var b=3*Math.floor(Math.log(this.h*a)/Math.log(10)),e,f;;){e=Af[b%3]*Math.pow(10,Math.floor(b/3));f=Math.round(e/a);if(f>=this.h)break;++b}e=e+d;this.t!=e&& +(this.t=this.g.innerHTML=e);this.F!=f&&(this.g.style.width=f+"px",this.F=f);this.f||(Jc(this.o,i),this.f=i)}};zf.prototype.a=function(a){this.e!==k&&(C(this.e,J),this.e=k);zf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.w,l,this)])};function Bf(a){var b=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Ob("DIV","ol-zoom ol-unselectable",b,c);wf.call(this,{element:b,map:a.map,target:a.target});this.c=x(a.delta)?a.delta:1}B(Bf,wf);Bf.prototype.d=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,this.c,h,250)};Bf.prototype.e=function(a){a.C();a=this.b;sf(a);vf(a.a(),a,-this.c,h,250)};function Cf(){};function Df(a){this.a=a}B(Df,Cf);Df.prototype.oa=function(a){var b=a.a;if(a.type==ef&&(Ld||kc(a.a))){var c=a.map,d=a.d(),e=a.a.ma?-this.a:this.a;vf(c.a(),c,e,d,250);a.C();b.C()}};function Ef(a){return a.ca&&!a.qb&&a.ma}function Ff(a){return!a.ca&&!a.qb&&!a.ma}function Gf(a){return!a.ca&&!a.qb&&a.ma};function Hf(){this.e=l;this.p=this.na=this.h=this.g=0;this.Ma=this.f=k}B(Hf,Cf);p=Hf.prototype;p.Ib=ba;p.cb=ba;p.eb=md;p.oc=ba;p.oa=function(a){var b=a.map;if(b.Ha()){var b=b.a(),c=a.a;a.type==hf&&this.oc(a);this.e?a.type==kf?(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.Ib(a)):a.type==gf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.h,this.cb(a),this.e=l):a.type==jf&&(this.g=c.clientX,this.h=c.clientY,this.b=this.d=0,this.f=b.M(),this.Ma=a.d(),this.eb(a)&&(this.e=i,a.C()))}};function If(a,b){Hf.call(this);this.o=a;this.a=b;this.c=k}B(If,Hf);If.prototype.Ib=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Na:pa()});var a=a.map,b=a.a(),c=b.P(),d=b.X(),c=new L(-c*this.d,c*this.b);c.rotate(d);d=new L(this.f.x+c.x,this.f.y+c.y);sf(a);b.a(d)}; +If.prototype.cb=function(a){var b=a.map,a=b.a();Ue(a,-1);if(this.a&&Ye(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.M();this.c=this.a.pa(e);b.c(this.c);e=Jf(b,e);b=bf(b,new $e(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};If.prototype.eb=function(a){var b=a.a;if(this.o(b)){if(this.a){var c=this.a;c.a.length=0;c.c=0;c.b=0;this.a.a.push({x:b.clientX,y:b.clientY,Na:pa()})}a=a.map;sf(a);Ue(a.a(),1);return i}return l}; +If.prototype.oc=function(a){var b=a.map,c=b.a();this.c!==k&&Da(b.h,this.c)&&(sf(b),c.a(a.b.u.center),this.c=k)};function Kf(a){Hf.call(this);this.c=a}B(Kf,Hf);Kf.prototype.Ib=function(a){var b=a.map,c=b.f(),a=cf(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(x(this.a)){var a=c-this.a,d=b.a();sf(b);rf(d,b,d.X()-a)}this.a=c};Kf.prototype.cb=function(a){var a=a.map,b=a.a();b.rotate(a,b.X(),h,250);Ue(b,-1)};Kf.prototype.eb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,b=a.a(),sf(a),this.a=h,Ue(b,1),i):l};function Lf(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Ma;this.d=k;wf.call(this,{element:b,map:a.map})}B(Lf,wf);Lf.prototype.a=function(a){this.d!==k&&(J(this.d),this.d=k);a!==k&&(this.c=Jf(a,this.e),Cc(this.element,this.c),Kc(this.element,new Xd(0,0)),this.d=H(a,kf,this.f,l,this));Lf.v.a.call(this,a)};Lf.prototype.f=function(a){var b=this.b,a=a.d(),b=Jf(b,a);Cc(this.element,new $e(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Kc(this.element,new Xd(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Mf(a){Hf.call(this);this.c=a;this.a=k}B(Mf,Hf);Mf.prototype.cb=function(a){this.a.a(k);this.a=k;if(64<=this.d*this.d+this.b*this.b){var b=a.map,c=ae(this.Ma,a.d());tf(b,function(){var a=b.a(),e=b.f();a.a(new L((c.i+c.l)/2,(c.j+c.k)/2));e=Math.max((c.l-c.i)/e.width,(c.k-c.j)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Mf.prototype.eb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new Lf({map:a.map,Ma:this.Ma}),i):l};function Nf(a){this.a=a}B(Nf,Cf);Nf.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.wa;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.P()*this.a,c=40==c?new L(0,-e):37==c?new L(-e,0):39==c?new L(e,0):new L(0,e),e=d.M();d.a(new L(e.x+c.x,e.y+c.y));b.C();a.C()}}};function Of(){}B(Of,Cf);Of.prototype.oa=function(a){if("key"==a.type){var b=a.a,c=b.$a;if(43==c||45==c){var d=a.map,c=43==c?4:-4;sf(d);vf(d.a(),d,c,h,100);b.C();a.C()}}};function Pf(){this.a=0;this.c=k;this.d=this.b=h}B(Pf,Cf);Pf.prototype.oa=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a;this.c=a.d();this.a+=c.b/3;x(this.b)||(this.b=pa());var d=Math.max(80-(pa()-this.b),0);w.clearTimeout(this.d);this.d=w.setTimeout(na(this.e,this,b),d);a.C();c.C()}};Pf.prototype.e=function(a){var b=Eb(this.a,-1,1),c=a.a();sf(a);vf(c,a,-b,this.c,250);this.a=0;this.c=k;this.d=this.b=h};function Qf(){this.g=l;this.h={};this.targetTouches=[]}B(Qf,Cf);function Rf(a){for(var b=a.length,c=0,d=0,e=0;ethis.o&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Hc(a.b),e=Rf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=bf(a,e);this.a&&rf(c,a,c.X()+b,d)}; +Tf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();this.a&&b.rotate(a,b.X(),h,250);Ue(b,-1);return l}return i};Tf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,Ue(a,1),i):l};function Uf(){Qf.call(this)}B(Uf,Qf);Uf.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);x(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Hc(a.b);d=Rf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=bf(a,d);uf(e,a,e.P()*b,c)};Uf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a();b.zoom(a,b.P(),h,250);Ue(b,-1);return l}return i}; +Uf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,Ue(a,1),i):l};function Vf(a){O.call(this,a,"m",Wf)}B(Vf,O);var Xf=6378137*Math.PI,Wf=new $d(-Xf,-Xf,Xf,Xf),Yf=Aa(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Vf(a)});Vf.prototype.b=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Zf(a,b){O.call(this,a,"degrees",$f,b)}B(Zf,O);var $f=new $d(-180,-90,180,90),ag=[new Zf("CRS:84"),new Zf("EPSG:4326","neu"),new Zf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Zf("urn:ogc:def:crs:OGC:1.3:CRS84")];Zf.prototype.b=aa();function bg(a,b,c,d,e){this.f=e;this.g=a;this.h=c;this.e=b;this.b=new Image;d!==k&&(this.b.crossOrigin=d);this.d={};this.c=k;this.a=0}B(bg,kd);bg.prototype.ka=m("f");bg.prototype.H=m("g");function cg(a,b){if(x(b)){var c,d=y(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.b:a.b.cloneNode(l);return a.d[d]=c}return a.b}bg.prototype.o=function(){this.a=3;C(this.c,J);this.c=k;K(this,"change")};bg.prototype.p=function(){this.a=2;C(this.c,J);this.c=k;K(this,"change")}; +function dg(a){0==a.a&&(a.a=1,a.c=[sc(a.b,"error",a.o,l,a),sc(a.b,"load",a.p,l,a)],a.b.src=a.h)};function eg(a){this.a=a.resolutions;this.g=this.a.length;this.d=x(a.origin)?a.origin:k;this.f=k;x(a.origins)&&(this.f=a.origins);this.c=k;x(a.tileSizes)&&(this.c=a.tileSizes);this.e=x(a.tileSize)?a.tileSize:this.c===k?new Xd(256,256):k}eg.prototype.b=function(a,b,c){for(var d=fg(this,a),a=a.m-1;0<=a&&!b.call(c,a,gg(this,d,this.a[a]));)--a};function hg(a,b){return a.d===k?a.f[b]:a.d}eg.prototype.Fb=m("a"); +function gg(a,b,c){var d=ig(a,new L(b.i,b.j),c),a=ig(a,new L(b.l,b.k),c,i);return new re(d.x,d.y,a.x,a.y)}function jg(a,b){var c=hg(a,b.m),d=a.a[b.m],e=kg(a,b.m);return new L(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function fg(a,b){var c=hg(a,b.m),d=a.a[b.m],e=kg(a,b.m),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new $d(f,c,f+e.width*d,c+e.height*d)} +function ig(a,b,c,d){var e=pf(a.a,c),f=c/a.a[e],g=hg(a,e),j=kg(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 pe(e,a,b)}function kg(a,b){return a.e===k?a.c[b]:a.e} +function lg(a){var b=a.f;if(b===k){for(var b=a.H(),c=Math.max(b.l-b.i,b.k-b.j),d=x(h)?h:new Xd(256,256),e=Array((x(h)?NaN:42)+1),c=c/d.width,f=0,g=e.length;fc?a[1]="?":c==f.length-1&&(a[1]=h));return a.join("")};function Cg(a,b){return function(c,d,e){return Bg(a,b,c,d,e)}}function Dg(){};function Eg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ga=x(a.Ga)?a.Ga:Dg;this.d=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=x(a.resolutions)?a.resolutions:k}B(Eg,Qe);function Fg(a,b,c,d,e){var f=k,d=a.Ga(b,d,e);x(d)&&(f=new bg(b,c,d,a.d,a.ka()));return f};function Gg(a){P.call(this,a)}B(Gg,P);function Hg(a){P.call(this,a)}B(Hg,P);function Ig(a,b){og.call(this,a,b)}B(Ig,og);function Jg(a,b){og.call(this,a,b);this.b=k;this.c=ee()}B(Jg,Ig);Jg.prototype.I=function(){return this.b===k?k:cg(this.b,this)};Jg.prototype.ra=m("c"); +Jg.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.a.Y(),g=a.B;!g[0]&&!g[1]&&(b=f.I(a.extent,d,b.projection),b!==k&&(f=b.a,0==f?(sc(b,"change",this.Jb,l,this),dg(b)):2==f&&(this.b=b)));if(this.b!==k){var b=this.b,f=b.H(),g=b.e,j=this.c;ie(j);me(j,a.size.width/2,a.size.height/2);oe(j,e);ne(j,g/d,g/d);me(j,(f.i-c.x)/g,(c.y-f.k)/g);sg(a.attributions,b.ka())}};function Kg(a,b){og.call(this,a,b);this.e=this.c=this.d=k;this.f=ee();this.b=k}B(Kg,Ig);Kg.prototype.I=m("d");Kg.prototype.ra=m("f"); +Kg.prototype.ha=function(a){var b=a.u,c=b.projection,d=this.a.Y(),e=y(d).toString(),f=d.tileGrid;f===k&&(f=lg(c));var g=pf(f.a,b.resolution),j=kg(f,g),n=f.a[g],r=gg(f,a.extent,n),s=r.ea(),q=r.aa(),j=new Xd(j.width*s,j.height*q),v,u;this.d===k?(v=Qb("CANVAS"),v.width=j.width,v.height=j.height,u=v.getContext("2d"),this.d=v,this.c=j,this.e=u,this.b=Array(s*q)):(v=this.d,u=this.e,this.c.width==j.width&&this.c.height==j.height||(v.width=j.width,v.height=j.height,this.c=j,this.b=Array(s*q)));q={};q[g]= +{};var j=na(d.d,d,q,vg(function(a){return a!==k&&2==a.a},d,f,c)),t,z,E,D;for(E=r.i;E<=r.l;++E)for(D=r.j;D<=r.k;++D)if(z=new pe(g,E,D),t=d.b(z,f,c),t!==k){v=t.a;if(0==v)qg(this,t),ug(a.Qa,d,z),v=jg(f,z),ve(a.Ub,t,e,v);else if(2==v){q[g][z.toString()]=t;continue}else if(3==v)continue;f.b(z,j)}e=Aa(Ma(q),Number);Ia(e);v=d.G;var c=be(fg(f,new pe(g,r.i,r.k))),U,R,I,Y,V,sa;for(U=0;Uc;++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 Og(a,b,c){og.call(this,a,b);this.target=c}B(Og,og);Og.prototype.r=function(){Ub(this.target);Og.v.r.call(this)};function Pg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Og.call(this,a,b,c);this.b=k;this.c=ge()}B(Pg,Og); +Pg.prototype.ha=function(a){var b=a.u,c=b.center,d=b.resolution,e=b.rotation,f=this.b,g=this.a.Y(),j=a.B;!j[0]&&!j[1]&&(b=g.I(a.extent,d,b.projection),b!==k&&(g=b.a,0==g?(sc(b,"change",this.Jb,l,this),dg(b)):2==g&&(f=b)));f!==k&&(g=f.H(),j=f.e,b=ee(),ie(b),me(b,a.size.width/2,a.size.height/2),oe(b,e),ne(b,j/d,j/d),me(b,(g.i-c.x)/j,(c.y-g.k)/j),f!=this.b&&(c=cg(f,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=f),ke(b,this.c)||(Ng(this.target,b),he(this.c,b)),sg(a.attributions, +f.ka()))};function Qg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Og.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Qg,Og); +Qg.prototype.ha=function(a,b){if(b.visible){var c=a.u,d=c.projection,e=this.a.Y(),f=y(e).toString(),g=e.tileGrid;g===k&&(g=lg(d));var j=pf(g.a,c.resolution),n=gg(g,a.extent,g.a[j]),r={};r[j]={};var s=na(e.d,e,r,vg(function(a){return a!==k&&2==a.a},e,g,d)),q,v,u,t,z;for(t=n.i;t<=n.l;++t)for(z=n.j;z<=n.k;++z)if(u=new pe(j,t,z),q=e.b(u,g,d),q!==k){v=q.a;if(0==v)qg(this,q),ug(a.Qa,e,u),v=jg(g,u),ve(a.Ub,q,f,v);else if(2==v){r[j][u.toString()]=q;continue}else if(3==v)continue;g.b(u,s)}s=Aa(Ma(r),Number); +Ia(s);var d={},E;for(q=0;qu&&Tb(this.target,f.target)}else{if(!a.B[0]&&!a.B[1]){v=gg(f.d,a.extent,f.d.a[f.c.m]);u=[];z=t=h;for(z in f.b)t=f.b[z],v.contains(t.V)||u.push(t); +v=h;for(v=0;v=a.$()){for(var a=this.a,d=0;d>1,a[d].L>c.L)a[b]=a[d],b=d;else break;a[b]=c}p=$g.prototype; +p.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ca(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.L)break;b[a]=b[f];a=f}b[a]=e}return c.Z}};p.N=function(){for(var a=this.a,b=[],c=a.length,d=0;dc;++c)d=b.remove(),hh(a,d)},b,u));R?(this.b=q,this.w=v):(this.w=this.b=k,a.R=i)}tg(a.Pa,g,r,q);ng(g,r,a.extent,n);rg(a,g);ie(this.d); +me(this.d,(d.center.x-v.i)/(v.l-v.i),(d.center.y-v.j)/(v.k-v.j));oe(this.d,d.rotation);ne(this.d,a.size.width*d.resolution/(v.l-v.i),a.size.height*d.resolution/(v.k-v.j));me(this.d,-0.5,-0.5)};function ih(){this.n=0;this.c={};this.b=this.a=k}p=ih.prototype;p.clear=function(){this.n=0;this.c={};this.b=this.a=k};function gh(a,b){return a.c.hasOwnProperty(b)}p.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Z,c.L,this),c=c.U};function jh(a,b){var c=a.c[b];if(c===a.b)return c.Z;c===a.a?(a.a=a.a.U,a.a.ia=k):(c.U.ia=c.ia,c.ia.U=c.U);c.U=k;c.ia=a.b;a.b.U=c;a.b=c;return c.Z}p.$=m("n");p.W=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.L;return a}; +p.N=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.ia)a[b++]=c.Z;return a};function kh(a){var b=a.a;delete a.c[b.L];b.U!==k&&(b.U.ia=k);a.a=b.U;a.a===k&&(a.b=k);--a.n}function lh(a,b,c){c={L:b,U:k,ia:a.b,Z:c};a.b===k?a.a=c:a.b.U=c;a.b=c;a.c[b]=c;++a.n};var mh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function nh(a,b){var c,d,e=mh.length;for(d=0;d>1)-1;0<=b;b--)xe(a,b);for(a=this.ra;0b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ae.apply(k,c)}this.e=f;this.J.ob(f);this.p=l;f!==k&&(f.R&&sf(this),Array.prototype.push.apply(this.yb, +f.xa));K(this,new Ze("postrender",this,f));w.setTimeout(this.Pc,0)}};p.Qd=function(a){this.q("backgroundColor",a)};S.prototype.setBackgroundColor=S.prototype.Qd;S.prototype.Rc=function(a){this.q(xg,a)};S.prototype.setLayers=S.prototype.Rc;S.prototype.Ra=function(a){this.q("size",a)};S.prototype.setSize=S.prototype.Ra;S.prototype.Sc=function(a){this.q("view",a)};S.prototype.setView=S.prototype.Sc;function tf(a,b,c){++a.g;try{b.call(c)}finally{0===--a.g&&a.p&&(a=a.d,qd(a),a.Gb())}} +uh.Yc=function(a){var b=w.location.search.substring(1),a=x(a)?a:new Xc(b);return id(a,"renderers")?jd(a,"renderers").split(","):id(a,"renderer")?[jd(a,"renderer")]:wh};Ie(Yf);Ie(ag);function xh(a,b,c){var d=a.length,c=1this.d&&!(b=this.a.Y,c=b.U.n.toString(),c in a&&a[c].contains(b.U));)gh(this)};function mi(a){jg.call(this,{attributions:a.attributions,extent:a.extent,X:a.X,projection:a.projection,tileGrid:a.tileGrid});this.ca=x(a.ca)?a.ca:ii;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new li}B(mi,jg);mi.prototype.f=function(){return this.a.Z()>this.a.d};mi.prototype.Ba=function(a){this.a.Ba(a)};mi.prototype.b=function(a,b,c){var d=a.toString();if(ch(this.a,d))return fh(this.a,d);b=this.ca(a,b,c);x(b)?(a=new ki(a,b,this.F),hh(this.a,d,a)):a=k;return a}; -mi.prototype.p=function(a){a=a.toString();ch(this.a,a)&&fh(this.a,a)};function ni(a){var b=Array(a.maxZoom+1),c,d=2*Uf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);bg.call(this,{origin:new L(-Uf,Uf),resolutions:b,tileSize:new Wd(256,256)})}B(ni,bg);ni.prototype.b=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 qe(d,e,d,e);if(b.call(c,a,f))break}};function oi(a){mi.call(this,{X:i,projection:Me("EPSG:3857")});this.$c=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Rc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new ci(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(di++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.Q();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&ed(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ei(d,i);c.apply(h,arguments)},ed(e,b.a,"_callbacks_."+ -d));f=Xh(e.toString(),{timeout:b.tb,cc:i});f.a.push([k,function(){ei(d,l)},h]);f.ia&&Th(f)}B(oi,mi); -oi.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ni({maxZoom:d,tileSize:new Wd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ca=ji(function(a){if(a.ne||b<=e?k:new oe(a.n,Fb(a.x,b),e)},gi(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.$c);return function(a){return a===k?h:c.replace("{quadkey}",pe(a))}})));var f=Ce(Me("EPSG:4326"),this.j);this.e= -Aa(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 Zd(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=dg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new re(b,c)});this.g=i;K(this,"load")};oi.prototype.c=n("g");function pi(a,b){se.call(this,a);this.a=2;this.e=a;this.d=hg(b,a.n);this.b={}}B(pi,se);pi.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.b)return this.b[a];var b=this.d,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.e.toString(),b.width/2,b.height/2);return this.b[a]=c}; -function qi(a){jg.call(this,{extent:a.extent,X:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new li}B(qi,jg);qi.prototype.f=function(){return this.a.Z()>this.a.d};qi.prototype.Ba=function(a){this.a.Ba(a)};qi.prototype.b=function(a){var b=a.toString();if(ch(this.a,b))return fh(this.a,b);a=new pi(a,this.tileGrid);hh(this.a,b,a);return a};function ri(a){var b=a.projection||Me("EPSG:3857"),c=ii;x(a.ca)?c=a.ca:x(a.urls)?c=gi(Aa(a.urls,fi)):x(a.url)&&(c=fi(a.url));var d=new ni({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ji(function(b){if(a.maxZoomj||c<=j)return k;c=Fb(b.x,c);return!Yd(cg(d,new oe(b.n,c,b.y)),e)?k:new oe(b.n,c,j)},c):ji(function(b){if(a.maxZoomd||c<=d?k:new oe(b.n,Fb(b.x,c),d)},c);mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, -extent:a.extent,projection:b,tileGrid:d,ca:c})}B(ri,mi);function si(){ri.call(this,{attributions:[new re('Tiles Courtesy of MapQuest '),new re('Data © OpenStreetMap contributors, CC BY-SA')],X:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(si,ri); -function ti(){ri.call(this,{attributions:[new re('Tiles Courtesy of MapQuest '),new re("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,X:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(ti,ri);function ui(){ri.call(this,{attributions:[new re('© OpenStreetMap contributors, CC BY-SA')],X:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ui,ri);function vi(a){Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Fa:x(a.url)?yg(a.url,a.params,a.version):zg});this.b=k;this.f=1.5}B(vi,Ag); -vi.prototype.I=function(a,b,c){this.a===k||(b=this.a[nf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.h<=a.h&&a.m<=e.m&&e.i<=a.i&&a.k<=e.k;if(e)return d;var d=a=new Zd(a.h,a.i,a.m,a.k),f=this.f;e=d.da()/2*(f-1);f=d.$()/2*(f-1);d.h-=e;d.i-=f;d.m+=e;d.k+=f;return this.b=Bg(this,a,b,new Wd(a.da()/b,a.$()/b),c)};var wi={ve:"background",we:"labels",xe:"lines",ze:"2010",Ae:"2011",Be:"2011-labels",Ce:"2011-lines",De:"2011-lite",Ee:"background",Fe:"hybrid",Ge:"labels",He:"lines",Ie:"lite"},xi={ue:"terrain",ye:"toner",Qe:"watercolor"},yi={terrain:{type:"jpg",sc:4,maxZoom:18},toner:{type:"png",sc:0,maxZoom:20},watercolor:{type:"jpg",sc:3,maxZoom:16}}; -function zi(a){var b=new re('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.provider;x(a.flavor)&&(c+="-"+a.flavor);a=yi[a.provider];ri.call(this,{attributions:[b],maxZoom:a.maxZoom,X:l,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(zi,ri);function Ai(a){var b=a.imageExtent,c=a.imageSize,d=b.$()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Ag.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Fa:function(){return f},resolutions:[d]});this.b=Bg(this,b,d,c,e)}B(Ai,Ag);Ai.prototype.I=function(a){return Yd(a,this.b.H())?this.b:k};var Bi=[];A("grid",function(a){Bi.push(a)});function Ci(a){mi.call(this,{projection:Me("EPSG:3857")});this.g=l;a=this.t=Xh(a.uri,{cc:i});a.a.push([this.A,k,this]);a.ia&&Th(a)}B(Ci,mi); -Ci.prototype.A=function(){var a=Bi.pop(),b=Me("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new Zd(c[0],c[1],c[2],c[3]),this.l=d=c.transform(Ce(b,this.j))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ni({maxZoom:f});this.tileGrid=g;this.ca=ji(function(a){if(a.nc||b<=c)return k;b=Fb(a.x,b);return d!==k&&!Yd(cg(g,new oe(a.n,b,a.y)),d)?k:new oe(a.n,b,c)},gi(Aa(a.tiles,fi)));if(x(a.attribution)){b=d===k?b.H():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(), -c[m]=[dg(g,b,g.a[j])];this.e=[new re(a.attribution,c)]}this.g=i;K(this,"load")};Ci.prototype.c=n("g");function Di(a){var b=a.version,c;a.urls?(c=Aa(a.urls,function(c){return hi(c,a.params,b)}),c=gi(c)):c=a.url?hi(a.url,a.params,b):ii;mi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,tileGrid:a.tileGrid,X:!(x(a.transparent)?a.transparent:1),projection:a.projection,ca:ji(function(b,c,f){if(c.Db().length<=b.n)return k;var g=b.x,j=cg(c,b),m=f.H(),f=x(a.extent)?a.extent:m;f.h===m.h&&f.m===m.m&&(j=Math.ceil((f.m-f.h)/(j.m-j.h)),g=Fb(g,j),j=cg(c,new oe(b.n,g,b.y)));return!Yd(j, -f)?k:new oe(b.n,g,b.y)},c)})}B(Di,mi);A("goog.require",ba);function Ei(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Ei,T);A("ol.AnchoredElement",Ei);A("ol.AnchoredElementPositioning",vh);vh.BOTTOM_LEFT="bottom-left";vh.BOTTOM_RIGHT="bottom-right";vh.TOP_LEFT="top-left";vh.TOP_RIGHT="top-right";A("ol.Attribution",re);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getArray=N.prototype.dd;N.prototype.getAt=N.prototype.ed; -N.prototype.getLength=N.prototype.Ya;N.prototype.insertAt=N.prototype.cb;N.prototype.pop=N.prototype.vc;N.prototype.push=N.prototype.push;N.prototype.removeAt=N.prototype.Bc;N.prototype.setAt=N.prototype.Qd;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Oc(a.y,"NS")+" "+Oc(a.x,"EW"):""};A("ol.Extent",Zd);Zd.prototype.getHeight=Zd.prototype.$;Zd.prototype.getWidth=Zd.prototype.da;A("ol.Geolocation",X); -function Fi(a){S.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,mouseWheelZoomDelta:a.mouseWheelZoomDelta,renderer:a.renderer,renderers:a.renderers,scaleLineControl:a.scaleLineControl,scaleLineUnits:a.scaleLineUnits,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotate:a.touchRotate,touchZoom:a.touchZoom, -view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}B(Fi,S);A("ol.Map",Fi);S.prototype.addPreRenderFunction=S.prototype.j;S.prototype.addPreRenderFunctions=S.prototype.Lc;S.prototype.getInteractions=S.prototype.Nc;S.prototype.getRenderer=S.prototype.Pc;Ze.prototype.getCoordinate=Ze.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Vc;M.prototype.changed=M.prototype.Yc;M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.uc;M.prototype.set=M.prototype.q; -M.prototype.setOptions=M.prototype.Ec;M.prototype.setValues=M.prototype.lb;M.prototype.unbind=M.prototype.Vb;M.prototype.unbindAll=M.prototype.$d;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.l;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.j;A("ol.ProjectionUnits",Ae);Ae.DEGREES="degrees";Ae.METERS="m";A("ol.RendererHint",rh);rh.CANVAS="canvas";rh.DOM="dom";rh.WEBGL="webgl"; -A("ol.RendererHints",qh);qh.createFromQueryData=qh.Zc;function Gi(a){R.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Gi,R);A("ol.View2D",Gi);A("ol.animation",Ue);Ue.bounce=Ue.Ab;Ue.pan=Ue.Ja;Ue.rotate=Ue.rotate;Ue.zoom=Ue.zoom;function Hi(a){uf.call(this,{map:a.map,target:a.target})}B(Hi,uf);A("ol.control.Attribution",Hi); -uf.prototype.setMap=uf.prototype.a;function Ii(a){yh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Ii,yh);A("ol.control.MousePosition",Ii);yh.prototype.setMap=yh.prototype.a;function Ji(a){wf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Ji,wf);A("ol.control.ScaleLine",Ji);wf.prototype.setMap=wf.prototype.a;A("ol.control.ScaleLineUnits",vf);vf.DEGREES="degrees";vf.IMPERIAL="imperial"; -vf.METRIC="metric";vf.NAUTICAL="nautical";vf.US="us";function Ki(a){yf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ki,yf);A("ol.control.Zoom",Ki);yf.prototype.setMap=yf.prototype.a;A("ol.easing",Te);Te.bounce=Te.Ab;Te.elastic=Te.ad;Te.linear=Te.pc;Te.upAndDown=Te.Jc;A("ol.interaction.Keyboard",Ah);Ah.prototype.addCallback=Ah.prototype.b; -function Li(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Li,Cg);A("ol.layer.ImageLayer",Li);function Mi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Mi,Dg);A("ol.layer.TileLayer",Mi);A("ol.parser.ogc.WMSCapabilities",Mh);Mh.prototype.read=Mh.prototype.ra;A("ol.parser.ogc.WMTSCapabilities",Qh); -Qh.prototype.read=Qh.prototype.ra;A("ol.projection.addProjection",Ie);A("ol.projection.getFromCode",Me);A("ol.projection.getTransform",Ce);A("ol.projection.getTransformFromCodes",Oe);A("ol.projection.transform",function(a,b,c){b=Ce(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Oe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Hg.prototype.getCanvas=Hg.prototype.Wa;A("ol.source.BingMaps",oi); -function Ni(a){qi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ni,qi);A("ol.source.DebugTileSource",Ni);A("ol.source.MapQuestOSM",si);A("ol.source.MapQuestOpenAerial",ti);A("ol.source.OpenStreetMap",ui);A("ol.source.SingleImageWMS",vi);A("ol.source.Stamen",zi);A("ol.source.StamenFlavor",wi);wi.TERRAIN_BACKGROUND="background";wi.TERRAIN_LABELS="labels";wi.TERRAIN_LINES="lines";wi.TONER_2010="2010";wi.TONER_2011="2011";wi.TONER_2011_LABELS="2011-labels"; -wi.TONER_2011_LINES="2011-lines";wi.TONER_2011_LITE="2011-lite";wi.TONER_BACKGROUND="background";wi.TONER_HYBRID="hybrid";wi.TONER_LABELS="labels";wi.TONER_LINES="lines";wi.TONER_LITE="lite";A("ol.source.StamenProvider",xi);xi.TERRAIN="terrain";xi.TONER="toner";xi.WATERCOLOR="watercolor";A("ol.source.StaticImage",Ai);A("ol.source.TileJSON",Ci);A("ol.source.TiledWMS",Di); -function Oi(a){bg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Oi,bg);A("ol.tilegrid.TileGrid",Oi);function Pi(a){ni.call(this,{maxZoom:a.maxZoom})}B(Pi,ni);A("ol.tilegrid.XYZ",Pi);Ue.ce={};Ue.se={};Ue.te={};Ue.Se={};})(); +function Vh(a,b){this.a=[];this.f=a;this.e=b||k}p=Vh.prototype;p.ja=l;p.Ea=l;p.Ka=0;p.Fc=l;p.Wc=l;p.Vc=0;p.ec=function(a,b){Wh(this,a,b);this.Ka--;0==this.Ka&&this.ja&&Xh(this)};function Wh(a,b,c){a.ja=i;a.b=c;a.Ea=!b;Xh(a)}function Yh(a){if(a.ja){if(!a.Fc)throw new Zh(a);a.Fc=l}}function $h(a){return Ba(a.a,function(a){return ha(a[1])})} +function Xh(a){a.c&&(a.ja&&$h(a))&&(w.clearTimeout(a.c),delete a.c);a.d&&(a.d.Vc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.Ka;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Ea?g:f)try{var j=f.call(e||a.e,b);x(j)&&(a.Ea=a.Ea&&(j==b||j instanceof Error),a.b=b=j);b instanceof Vh&&(d=i,a.Ka++)}catch(n){b=n,a.Ea=i,$h(a)||(c=i)}}a.b=b;d&&a.Ka&&(d=b,j=na(a.ec,a,i),f=na(a.ec,a,l),d.a.push([j,f,h]),d.ja&&Xh(d),b.Wc=i);c&&(a.c=w.setTimeout(function(){throw b;},0))} +function Zh(a){qa.call(this);this.a=a}B(Zh,qa);Zh.prototype.message="Deferred has already fired";Zh.prototype.name="AlreadyCalledError";function ai(a,b){var c=b||{},d=c.document||document,e=Qb("SCRIPT"),f={Cc:e,vb:h},g=new Vh(bi,f),j=k,n=c.timeout!=k?c.timeout:5E3;0this.d&&!(b=this.a.Z,c=b.V.m.toString(),c in a&&a[c].contains(b.V));)kh(this)};function qi(a){mg.call(this,{attributions:a.attributions,extent:a.extent,opaque:a.opaque,projection:a.projection,tileGrid:a.tileGrid});this.da=x(a.da)?a.da:mi;this.F=x(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new pi}B(qi,mg);qi.prototype.f=function(){return this.a.$()>this.a.d};qi.prototype.Ca=function(a){this.a.Ca(a)};qi.prototype.b=function(a,b,c){var d=a.toString();if(gh(this.a,d))return jh(this.a,d);b=this.da(a,b,c);x(b)?(a=new oi(a,b,this.F),lh(this.a,d,a)):a=k;return a}; +qi.prototype.p=function(a){a=a.toString();gh(this.a,a)&&jh(this.a,a)};function ri(a){var b=Array(a.maxZoom+1),c,d=2*Xf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);eg.call(this,{origin:new L(-Xf,Xf),resolutions:b,tileSize:new Xd(256,256)})}B(ri,eg);ri.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 re(d,e,d,e);if(b.call(c,a,f))break}};function si(a){qi.call(this,{opaque:i,projection:Ne("EPSG:3857")});this.Zc=x(a.culture)?a.culture:"en-us";this.g=l;var b=new Sc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new gi(b),a={include:"ImageryProviders",key:a.key},c=na(this.t,this),a=a||k,d="_"+(hi++).toString(36)+pa().toString(36);w._callbacks_||(w._callbacks_={});var e=b.b.S();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&fd(e,f,a[f]);c&&(w._callbacks_[d]=function(a){ii(d,i);c.apply(h,arguments)},fd(e, +b.a,"_callbacks_."+d));f=ai(e.toString(),{timeout:b.vb,cc:i});f.a.push([k,function(){ii(d,l)},h]);f.ja&&Xh(f)}B(si,qi); +si.prototype.t=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new ri({maxZoom:d,tileSize:new Xd(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.da=ni(function(a){if(a.me||b<=e?k:new pe(a.m,Fb(a.x,b),e)},ki(Aa(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Zc);return function(a){return a===k?h:c.replace("{quadkey}",qe(a))}})));var f=De(Ne("EPSG:4326"),this.o);this.e= +Aa(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 $d(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=gg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new se(b,c)});this.g=i;K(this,"load")};si.prototype.c=m("g");function ti(a,b){te.call(this,a);this.a=2;this.f=a;this.d=kg(b,a.m);this.c={}}B(ti,te);ti.prototype.I=function(a){a=x(a)?y(a):-1;if(a in this.c)return this.c[a];var b=this.d,c=Qb("CANVAS");c.width=b.width;c.height=b.height;var d=c.getContext("2d");d.strokeStyle="black";d.strokeRect(0.5,0.5,b.width+0.5,b.height+0.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(this.f.toString(),b.width/2,b.height/2);return this.c[a]=c}; +function ui(a){mg.call(this,{extent:a.extent,opaque:l,projection:a.projection,tileGrid:a.tileGrid});this.a=new pi}B(ui,mg);ui.prototype.f=function(){return this.a.$()>this.a.d};ui.prototype.Ca=function(a){this.a.Ca(a)};ui.prototype.b=function(a){var b=a.toString();if(gh(this.a,b))return jh(this.a,b);a=new ti(a,this.tileGrid);lh(this.a,b,a);return a};function vi(a){var b=a.projection||Ne("EPSG:3857"),c=mi;x(a.da)?c=a.da:x(a.urls)?c=ki(Aa(a.urls,ji)):x(a.url)&&(c=ji(a.url));var d=new ri({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?ni(function(b){if(a.maxZoomj||c<=j)return k;c=Fb(b.x,c);return!Zd(fg(d,new pe(b.m,c,b.y)),e)?k:new pe(b.m,c,j)},c):ni(function(b){if(a.maxZoomd||c<=d?k:new pe(b.m,Fb(b.x,c),d)},c);qi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin, +extent:a.extent,projection:b,tileGrid:d,da:c})}B(vi,qi);function wi(){vi.call(this,{attributions:[new se('Tiles Courtesy of MapQuest '),new se('Data © OpenStreetMap contributors, CC BY-SA')],opaque:i,maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(wi,vi); +function xi(){vi.call(this,{attributions:[new se('Tiles Courtesy of MapQuest '),new se("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,opaque:i,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(xi,vi);function yi(){vi.call(this,{attributions:[new se('© OpenStreetMap contributors, CC BY-SA')],opaque:i,maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(yi,vi);function zi(a){Eg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,resolutions:a.resolutions,Ga:x(a.url)?Cg(a.url,a.params):Dg});this.b=k;this.f=1.5}B(zi,Eg); +zi.prototype.I=function(a,b,c){this.a===k||(b=this.a[pf(this.a,b)]);var d=this.b,e;if(e=d!==k)if(e=d.e==b)e=d.H(),e=e.i<=a.i&&a.l<=e.l&&e.j<=a.j&&a.k<=e.k;if(e)return d;var d=a=new $d(a.i,a.j,a.l,a.k),f=this.f;e=d.ea()/2*(f-1);f=d.aa()/2*(f-1);d.i-=e;d.j-=f;d.l+=e;d.k+=f;return this.b=Fg(this,a,b,new Xd(a.ea()/b,a.aa()/b),c)};var Ai={terrain:{T:"jpg",opaque:i},"terrain-background":{T:"jpg",opaque:i},"terrain-labels":{T:"png",opaque:l},"terrain-lines":{T:"png",opaque:l},"toner-background":{T:"png",opaque:i},toner:{T:"png",opaque:i},"toner-hybrid":{T:"png",opaque:l},"toner-labels":{T:"png",opaque:l},"toner-lines":{T:"png",opaque:l},"toner-lite":{T:"png",opaque:i},watercolor:{T:"jpg",opaque:i}},Bi={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}}; +function Ci(a){var b=new se('Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.'),c=a.layer.indexOf("-"),c=-1==c?a.layer:a.layer.slice(0,c),d=Ai[a.layer];vi.call(this,{attributions:[b],maxZoom:Bi[c].maxZoom,opaque:d.opaque,url:x(a.url)?a.url:"http://{a-d}.tile.stamen.com/"+a.layer+ +"/{z}/{x}/{y}."+d.T})}B(Ci,vi);function Di(a){var b=a.imageExtent,c=a.imageSize,d=b.aa()/c.height,e=x(a.projection)?a.projection:k,f=a.url;Eg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return f},resolutions:[d]});this.b=Fg(this,b,d,c,e)}B(Di,Eg);Di.prototype.I=function(a){return Zd(a,this.b.H())?this.b:k};var Ei=[];A("grid",function(a){Ei.push(a)});function Fi(a){qi.call(this,{projection:Ne("EPSG:3857")});this.g=l;a=this.t=ai(a.uri,{cc:i});a.a.push([this.w,k,this]);a.ja&&Xh(a)}B(Fi,qi); +Fi.prototype.w=function(){var a=Ei.pop(),b=Ne("EPSG:4326"),c,d;x(a.bounds)?(c=a.bounds,c=new $d(c[0],c[1],c[2],c[3]),this.h=d=c.transform(De(b,this.o))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new ri({maxZoom:f});this.tileGrid=g;this.da=ni(function(a){if(a.mc||b<=c)return k;b=Fb(a.x,b);return d!==k&&!Zd(fg(g,new pe(a.m,b,a.y)),d)?k:new pe(a.m,b,c)},ki(Aa(a.tiles,ji)));if(x(a.attribution)){b=d===k?b.H():d;c={};var j,n;for(j=e;j<=f;++j)n=j.toString(), +c[n]=[gg(g,b,g.a[j])];this.e=[new se(a.attribution,c)]}this.g=i;K(this,"load")};Fi.prototype.c=m("g");function Gi(a){var b;a.urls?(b=Aa(a.urls,function(b){return li(b,a.params)}),b=ki(b)):b=a.url?li(a.url,a.params):mi;var c=a.extent;qi.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,tileGrid:a.tileGrid,opaque:!(x(a.params.TRANSPARENT)?a.params.TRANSPARENT:1),projection:a.projection,da:ni(function(a,b,f){if(b.Fb().length<=a.m)return k;var g=a.x,j=fg(b,a),f=f.H();c=x(c)?c:f;c.i===f.i&&c.l===f.l&&(j=Math.ceil((c.l-c.i)/(j.l-j.i)),g=Fb(g,j),j=fg(b,new pe(a.m,g,a.y)));return!Zd(j, +c)?k:new pe(a.m,g,a.y)},b)})}B(Gi,qi);A("goog.require",ba);function Hi(a){T.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Hi,T);A("ol.AnchoredElement",Hi);A("ol.AnchoredElementPositioning",zh);zh.BOTTOM_LEFT="bottom-left";zh.BOTTOM_RIGHT="bottom-right";zh.TOP_LEFT="top-left";zh.TOP_RIGHT="top-right";A("ol.Attribution",se);A("ol.Collection",N);N.prototype.clear=N.prototype.clear;N.prototype.forEach=N.prototype.forEach;N.prototype.getArray=N.prototype.bd;N.prototype.getAt=N.prototype.cd; +N.prototype.getLength=N.prototype.Za;N.prototype.insertAt=N.prototype.fb;N.prototype.pop=N.prototype.vc;N.prototype.push=N.prototype.push;N.prototype.removeAt=N.prototype.Bc;N.prototype.setAt=N.prototype.Pd;A("ol.Coordinate",L);L.toStringHDMS=function(a){return x(a)?Pc(a.y,"NS")+" "+Pc(a.x,"EW"):""};A("ol.Extent",$d);$d.prototype.getHeight=$d.prototype.aa;$d.prototype.getWidth=$d.prototype.ea;A("ol.Geolocation",X); +function Ii(a){S.call(this,{attributionControl:a.attributionControl,doubleClickZoom:a.doubleClickZoom,dragPan:a.dragPan,interactions:a.interactions,keyboard:a.keyboard,keyboardPanOffset:a.keyboardPanOffset,layers:a.layers,mouseWheelZoom:a.mouseWheelZoom,renderer:a.renderer,renderers:a.renderers,scaleLineControl:a.scaleLineControl,scaleLineUnits:a.scaleLineUnits,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotate:a.touchRotate,touchZoom:a.touchZoom,view:a.view,zoomControl:a.zoomControl, +zoomDelta:a.zoomDelta})}B(Ii,S);A("ol.Map",Ii);S.prototype.addPreRenderFunction=S.prototype.c;S.prototype.addPreRenderFunctions=S.prototype.Ab;S.prototype.getInteractions=S.prototype.Mc;S.prototype.getRenderer=S.prototype.Oc;af.prototype.getCoordinate=af.prototype.d;A("ol.Object",M);M.prototype.bindTo=M.prototype.Uc;M.prototype.changed=M.prototype.Xc;M.prototype.get=M.prototype.s;M.prototype.notify=M.prototype.uc;M.prototype.set=M.prototype.q;M.prototype.setOptions=M.prototype.Ec; +M.prototype.setValues=M.prototype.nb;M.prototype.unbind=M.prototype.Vb;M.prototype.unbindAll=M.prototype.Zd;A("ol.Projection",O);O.prototype.getAxisOrientation=O.prototype.g;O.prototype.getCode=O.prototype.h;O.prototype.getExtent=O.prototype.H;O.prototype.getPointResolution=O.prototype.b;O.prototype.getUnits=O.prototype.o;A("ol.ProjectionUnits",Be);Be.DEGREES="degrees";Be.METERS="m";A("ol.RendererHint",vh);vh.CANVAS="canvas";vh.DOM="dom";vh.WEBGL="webgl";A("ol.RendererHints",uh); +uh.createFromQueryData=uh.Yc;function Ji(a){Q.call(this,{center:a.center,maxResolution:a.maxResolution,numZoomLevels:a.numZoomLevels,projection:a.projection,resolution:a.resolution,resolutions:a.resolutions,rotation:a.rotation,zoom:a.zoom,zoomFactor:a.zoomFactor})}B(Ji,Q);A("ol.View2D",Ji);A("ol.animation",We);We.bounce=We.Cb;We.pan=We.pa;We.rotate=We.rotate;We.zoom=We.zoom;function Ki(a){xf.call(this,{map:a.map,target:a.target})}B(Ki,xf);A("ol.control.Attribution",Ki);xf.prototype.setMap=xf.prototype.a; +function Li(a){Ch.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Li,Ch);A("ol.control.MousePosition",Li);Ch.prototype.setMap=Ch.prototype.a;function Mi(a){zf.call(this,{map:a.map,minWidth:a.minWidth,target:a.target,units:a.units})}B(Mi,zf);A("ol.control.ScaleLine",Mi);zf.prototype.setMap=zf.prototype.a;A("ol.control.ScaleLineUnits",yf);yf.DEGREES="degrees";yf.IMPERIAL="imperial";yf.METRIC="metric";yf.NAUTICAL="nautical"; +yf.US="us";function Ni(a){Bf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ni,Bf);A("ol.control.Zoom",Ni);Bf.prototype.setMap=Bf.prototype.a;A("ol.easing",Ve);Ve.bounce=Ve.Cb;Ve.elastic=Ve.$c;Ve.linear=Ve.qc;Ve.upAndDown=Ve.Jc;A("ol.interaction.Keyboard",Eh);Eh.prototype.addCallback=Eh.prototype.b;function Oi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Oi,Gg); +A("ol.layer.ImageLayer",Oi);function Pi(a){P.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Pi,Hg);A("ol.layer.TileLayer",Pi);A("ol.parser.ogc.WMSCapabilities",Qh);Qh.prototype.read=Qh.prototype.sa;A("ol.parser.ogc.WMTSCapabilities",Uh);Uh.prototype.read=Uh.prototype.sa;A("ol.projection.addProjection",Je);A("ol.projection.getFromCode",Ne);A("ol.projection.getTransform",De); +A("ol.projection.getTransformFromCodes",Pe);A("ol.projection.transform",function(a,b,c){b=De(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Pe(b,c);a=[a.x,a.y];a=b(a,a,2);return new L(a[0],a[1])});Lg.prototype.getCanvas=Lg.prototype.Xa;A("ol.source.BingMaps",si);function Qi(a){ui.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Qi,ui);A("ol.source.DebugTileSource",Qi);A("ol.source.MapQuestOSM",wi); +A("ol.source.MapQuestOpenAerial",xi);A("ol.source.OpenStreetMap",yi);A("ol.source.SingleImageWMS",zi);A("ol.source.Stamen",Ci);A("ol.source.StaticImage",Di);A("ol.source.TileJSON",Fi);A("ol.source.TiledWMS",Gi);function Ri(a){eg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Ri,eg);A("ol.tilegrid.TileGrid",Ri);function Si(a){ri.call(this,{maxZoom:a.maxZoom})}B(Si,ri);A("ol.tilegrid.XYZ",Si);We.be={};We.se={};We.te={};We.Ce={};})(); diff --git a/master/examples/epsg-4326.js b/master/examples/epsg-4326.js index c6d48eb4ed..303da4c23e 100644 --- a/master/examples/epsg-4326.js +++ b/master/examples/epsg-4326.js @@ -9,19 +9,16 @@ goog.require('ol.projection'); goog.require('ol.source.TiledWMS'); -var epsg4326 = ol.projection.getFromCode('EPSG:4326'); - var layers = new ol.Collection([ new ol.layer.TileLayer({ source: new ol.source.TiledWMS({ url: 'http://vmap0.tiles.osgeo.org/wms/vmap0', crossOrigin: null, - version: '1.1.1', params: { + 'VERSION': '1.1.1', 'LAYERS': 'basic', 'FORMAT': 'image/jpeg' - }, - projection: epsg4326 + } }) }) ]); @@ -34,7 +31,7 @@ var map = new ol.Map({ scaleLineUnits: ol.control.ScaleLineUnits.DEGREES, target: 'map', view: new ol.View2D({ - projection: epsg4326, + projection: ol.projection.getFromCode('EPSG:4326'), center: new ol.Coordinate(0, 0), zoom: 2 }) diff --git a/master/examples/example-list.js b/master/examples/example-list.js index e68f8a5a9d..c0a14c1819 100644 --- a/master/examples/example-list.js +++ b/master/examples/example-list.js @@ -1 +1 @@ -var info={"index": {"origin": {"1": 2}, "and": {"4": 1, "5": 1, "7": 1}, "layer": {"8": 1, "5": 1}, "projection": {"7": 3}, "capabilities": {"6": 1}, "ed": {"4": 1, "5": 1}, "national": {"7": 1}, "4326": {"2": 2}, "sync": {"4": 2, "5": 1}, "21781": {"7": 1}, "an": {"1": 1}, "openaerial": {"0": 1, "3": 1}, "tilelayer": {"8": 1, "3": 1, "7": 1}, "popup": {"0": 1}, "osm": {"1": 1}, "are": {"1": 2}, "mapquest": {"0": 1, "3": 1}, "1": {"7": 2}, "getcapabilities": {"6": 3}, "tilejson": {"5": 1}, "tiled": {"8": 2, "7": 2}, "webgl": {"4": 2, "5": 1}, "layers": {"1": 1, "5": 2, "7": 1}, "fullscreen": {"3": 1}, "canvas": {"1": 3, "4": 1, "5": 1}, "overlay": {"0": 1}, "wms": {"8": 3, "6": 3, "7": 3}, "demonstrates": {"0": 1}, "top": {"1": 1}, "custom": {"7": 1}, "two": {"5": 2, "7": 1}, "coordinates": {"1": 3}, "response": {"6": 1}, "note": {"1": 1}, "maps": {"4": 1, "5": 1}, "pixelmap": {"7": 1}, "black": {"1": 1}, "tile": {"8": 1, "1": 3, "3": 1, "7": 1}, "parks": {"7": 1}, "stamen": {"1": 1}, "map": {"2": 1, "3": 1}, "tiles": {"1": 2}, "elements": {"0": 3}, "that": {"1": 1}, "screen": {"3": 2}, "object": {"4": 1}, "generated": {"1": 1}, "ol3": {"1": 1}, "grid": {"1": 1}, "html5": {"1": 1}, "not": {"1": 1}, "using": {"7": 1}, "epsg4326": {"2": 1}, "on": {"1": 1}, "with": {"1": 1, "5": 1, "7": 1}, "by": {"4": 3}, "bingmaps": {"5": 1}, "a": {"8": 1, "2": 1, "3": 1, "6": 1}, "anchored": {"0": 3}, "full": {"3": 2}, "dom": {"4": 2, "5": 1}, "of": {"8": 1, "2": 1, "3": 1, "6": 1, "7": 1}, "bing": {"5": 1}, "bottom": {"1": 1}, "000": {"7": 2}, "side": {"4": 6}, "parsing": {"6": 2}, "client": {"1": 1}, "epsg": {"2": 2, "7": 1}, "the": {"1": 3, "7": 1}, "left": {"1": 2}, "example": {"0": 1, "1": 1, "2": 2, "3": 2, "4": 1, "5": 1, "6": 2, "7": 2, "8": 2}, "normalized": {"1": 1}}, "examples": [{"author": "Tom Payne", "tags": "anchored elements, overlay, popup, mapquest, openaerial", "modified": "2013-01-22T14:37:13+0100", "classes": [], "link": "anchored-elements.html", "shortdesc": "Demonstrates anchored elements.", "title": "Anchored elements example", "example": "anchored-elements.html"}, {"author": "Tom Payne", "tags": "layers, stamen, canvas", "modified": "2013-02-06T18:06:16+0100", "classes": [], "link": "canvas-tiles.html", "shortdesc": "The black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).", "title": "Canvas tiles example", "example": "canvas-tiles.html"}, {"author": "Tom Payne", "tags": "epsg4326", "modified": "2013-02-21T20:22:46+0100", "classes": [], "link": "epsg-4326.html", "shortdesc": "Example of a epsg-4326 map.", "title": "EPSG:4326 example", "example": "epsg-4326.html"}, {"author": "Frederic Junod", "tags": "fullscreen, mapquest, openaerial, tile, tilelayer", "modified": "2013-02-04T10:52:29+0100", "classes": [], "link": "full-screen.html", "shortdesc": "Example of a full-screen map.", "title": "Full-screen example", "example": "full-screen.html"}, {"author": "Tom Payne", "tags": "side-by-side, webgl, dom, sync, object", "modified": "2013-01-18T14:04:33+0100", "classes": [], "link": "side-by-side.html", "shortdesc": "Side-by-side DOM, WebGL and Canvas sync'ed maps.", "title": "Side-by-side example", "example": "side-by-side.html"}, {"author": "Frederic Junod", "tags": "layers, tilejson, bing, bingmaps", "modified": "2013-01-21T16:13:19+0100", "classes": [], "link": "two-layers.html", "shortdesc": "Sync'ed DOM, WebGL and Canvas maps with two layers.", "title": "Two-layer example", "example": "two-layers.html"}, {"author": "Bruno Binet", "tags": "wms, capabilities, getcapabilities", "modified": "2013-03-03T17:37:15+0100", "classes": [], "link": "wms-capabilities.html", "shortdesc": "Example of parsing a WMS GetCapabilities response.", "title": "WMS GetCapabilities parsing example", "example": "wms-capabilities.html"}, {"author": "ahocevar", "tags": "wms, tile, tilelayer, projection", "modified": "2012-10-29T09:33:00+0100", "classes": [], "link": "wms-custom-proj.html", "shortdesc": "Example of two tiled WMS layers (Pixelmap 1:1'000'000 and national parks) using the projection EPSG:21781.", "title": "Tiled WMS with custom projection example", "example": "wms-custom-proj.html"}, {"author": "ahocevar", "tags": "wms, tile, tilelayer", "modified": "2012-10-26T21:36:30+0200", "classes": [], "link": "wms.html", "shortdesc": "Example of a tiled WMS layer.", "title": "Tiled WMS example", "example": "wms.html"}]}; \ No newline at end of file +var info={"index": {"origin": {"1": 2}, "and": {"8": 1, "4": 1, "6": 1}, "layer": {"9": 1, "6": 1}, "projection": {"8": 3}, "capabilities": {"7": 1}, "ed": {"4": 1, "6": 1}, "national": {"8": 1}, "4326": {"2": 2}, "sync": {"4": 2, "6": 1}, "21781": {"8": 1}, "an": {"1": 1}, "openaerial": {"0": 1, "3": 1}, "tilelayer": {"8": 1, "9": 1, "3": 1, "5": 1}, "popup": {"0": 1}, "osm": {"1": 1}, "are": {"1": 2}, "mapquest": {"0": 1, "3": 1}, "1": {"8": 2}, "getcapabilities": {"7": 3}, "tilejson": {"6": 1}, "tiled": {"8": 2, "9": 2}, "webgl": {"4": 2, "6": 1}, "layers": {"8": 1, "1": 1, "6": 2}, "fullscreen": {"3": 1, "5": 1}, "canvas": {"1": 3, "4": 1, "6": 1}, "overlay": {"0": 1}, "wms": {"8": 3, "9": 3, "7": 3}, "demonstrates": {"0": 1}, "top": {"1": 1}, "custom": {"8": 1}, "two": {"8": 1, "6": 2}, "coordinates": {"1": 3}, "response": {"7": 1}, "note": {"1": 1}, "maps": {"4": 1, "6": 1}, "pixelmap": {"8": 1}, "black": {"1": 1}, "tile": {"8": 1, "1": 3, "3": 1, "5": 1, "9": 1}, "parks": {"8": 1}, "stamen": {"1": 1, "5": 3}, "map": {"2": 1, "3": 1}, "tiles": {"1": 2}, "elements": {"0": 3}, "that": {"1": 1}, "screen": {"3": 2}, "object": {"4": 1}, "generated": {"1": 1}, "ol3": {"1": 1}, "grid": {"1": 1}, "html5": {"1": 1}, "not": {"1": 1}, "using": {"8": 1}, "epsg4326": {"2": 1}, "on": {"1": 1}, "with": {"8": 1, "1": 1, "6": 1}, "by": {"4": 3}, "bingmaps": {"6": 1}, "a": {"9": 1, "2": 1, "3": 1, "5": 1, "7": 1}, "anchored": {"0": 3}, "full": {"3": 2}, "dom": {"4": 2, "6": 1}, "of": {"2": 1, "3": 1, "5": 1, "7": 1, "8": 1, "9": 1}, "bing": {"6": 1}, "bottom": {"1": 1}, "000": {"8": 2}, "side": {"4": 6}, "parsing": {"7": 2}, "client": {"1": 1}, "source": {"5": 1}, "epsg": {"8": 1, "2": 2}, "the": {"8": 1, "1": 3}, "left": {"1": 2}, "example": {"0": 1, "1": 1, "2": 2, "3": 2, "4": 1, "5": 2, "6": 1, "7": 2, "8": 2, "9": 2}, "normalized": {"1": 1}}, "examples": [{"author": "Tom Payne", "tags": "anchored elements, overlay, popup, mapquest, openaerial", "modified": "2013-01-22T14:37:13+0100", "classes": [], "link": "anchored-elements.html", "shortdesc": "Demonstrates anchored elements.", "title": "Anchored elements example", "example": "anchored-elements.html"}, {"author": "Tom Payne", "tags": "layers, stamen, canvas", "modified": "2013-02-06T18:06:16+0100", "classes": [], "link": "canvas-tiles.html", "shortdesc": "The black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).", "title": "Canvas tiles example", "example": "canvas-tiles.html"}, {"author": "Tom Payne", "tags": "epsg4326", "modified": "2013-02-21T20:22:46+0100", "classes": [], "link": "epsg-4326.html", "shortdesc": "Example of a epsg-4326 map.", "title": "EPSG:4326 example", "example": "epsg-4326.html"}, {"author": "Frederic Junod", "tags": "fullscreen, mapquest, openaerial, tile, tilelayer", "modified": "2013-02-04T10:52:29+0100", "classes": [], "link": "full-screen.html", "shortdesc": "Example of a full-screen map.", "title": "Full-screen example", "example": "full-screen.html"}, {"author": "Tom Payne", "tags": "side-by-side, webgl, dom, sync, object", "modified": "2013-01-18T14:04:33+0100", "classes": [], "link": "side-by-side.html", "shortdesc": "Side-by-side DOM, WebGL and Canvas sync'ed maps.", "title": "Side-by-side example", "example": "side-by-side.html"}, {"author": "Tom Payne", "tags": "fullscreen, stamen, tilelayer", "modified": "2013-03-05T00:41:46+0100", "classes": [], "link": "stamen.html", "shortdesc": "Example of a Stamen tile source.", "title": "Stamen example", "example": "stamen.html"}, {"author": "Frederic Junod", "tags": "layers, tilejson, bing, bingmaps", "modified": "2013-01-21T16:13:19+0100", "classes": [], "link": "two-layers.html", "shortdesc": "Sync'ed DOM, WebGL and Canvas maps with two layers.", "title": "Two-layer example", "example": "two-layers.html"}, {"author": "Bruno Binet", "tags": "wms, capabilities, getcapabilities", "modified": "2013-03-03T17:37:15+0100", "classes": [], "link": "wms-capabilities.html", "shortdesc": "Example of parsing a WMS GetCapabilities response.", "title": "WMS GetCapabilities parsing example", "example": "wms-capabilities.html"}, {"author": "ahocevar", "tags": "wms, tile, tilelayer, projection", "modified": "2012-10-29T09:33:00+0100", "classes": [], "link": "wms-custom-proj.html", "shortdesc": "Example of two tiled WMS layers (Pixelmap 1:1'000'000 and national parks) using the projection EPSG:21781.", "title": "Tiled WMS with custom projection example", "example": "wms-custom-proj.html"}, {"author": "ahocevar", "tags": "wms, tile, tilelayer", "modified": "2012-10-26T21:36:30+0200", "classes": [], "link": "wms.html", "shortdesc": "Example of a tiled WMS layer.", "title": "Tiled WMS example", "example": "wms.html"}]}; \ No newline at end of file diff --git a/master/examples/example-list.xml b/master/examples/example-list.xml index 91d1f71d19..7bc2593d84 100644 --- a/master/examples/example-list.xml +++ b/master/examples/example-list.xml @@ -1 +1 @@ -OpenLayers Exampleshttp://openlayers.github.com/ol3/master/examples/example-list.xml#2013-03-05T10:08:57Z2013-03-05T10:08:57ZWMS GetCapabilities parsing examplewms, capabilities, getcapabilitiesExample of parsing a WMS GetCapabilities response.2013-03-03T17:37:15+0100Bruno Binethttp://openlayers.github.com/ol3/master/examples/wms-capabilities.html#2013-03-03T17:37:15+0100EPSG:4326 exampleepsg4326Example of a epsg-4326 map.2013-02-21T20:22:46+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/epsg-4326.html#2013-02-21T20:22:46+0100Canvas tiles examplelayers, stamen, canvasThe black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).2013-02-06T18:06:16+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/canvas-tiles.html#2013-02-06T18:06:16+0100Full-screen examplefullscreen, mapquest, openaerial, tile, tilelayerExample of a full-screen map.2013-02-04T10:52:29+0100Frederic Junodhttp://openlayers.github.com/ol3/master/examples/full-screen.html#2013-02-04T10:52:29+0100Anchored elements exampleanchored elements, overlay, popup, mapquest, openaerialDemonstrates anchored elements.2013-01-22T14:37:13+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/anchored-elements.html#2013-01-22T14:37:13+0100Two-layer examplelayers, tilejson, bing, bingmapsSync'ed DOM, WebGL and Canvas maps with two layers.2013-01-21T16:13:19+0100Frederic Junodhttp://openlayers.github.com/ol3/master/examples/two-layers.html#2013-01-21T16:13:19+0100Side-by-side exampleside-by-side, webgl, dom, sync, objectSide-by-side DOM, WebGL and Canvas sync'ed maps.2013-01-18T14:04:33+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/side-by-side.html#2013-01-18T14:04:33+0100Tiled WMS with custom projection examplewms, tile, tilelayer, projectionExample of two tiled WMS layers (Pixelmap 1:1'000'000 and national parks) using the projection EPSG:21781.2012-10-29T09:33:00+0100ahocevarhttp://openlayers.github.com/ol3/master/examples/wms-custom-proj.html#2012-10-29T09:33:00+0100Tiled WMS examplewms, tile, tilelayerExample of a tiled WMS layer.2012-10-26T21:36:30+0200ahocevarhttp://openlayers.github.com/ol3/master/examples/wms.html#2012-10-26T21:36:30+0200 \ No newline at end of file +OpenLayers Exampleshttp://openlayers.github.com/ol3/master/examples/example-list.xml#2013-03-05T05:10:35Z2013-03-05T05:10:35ZStamen examplefullscreen, stamen, tilelayerExample of a Stamen tile source.2013-03-05T00:41:46+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/stamen.html#2013-03-05T00:41:46+0100WMS GetCapabilities parsing examplewms, capabilities, getcapabilitiesExample of parsing a WMS GetCapabilities response.2013-03-03T17:37:15+0100Bruno Binethttp://openlayers.github.com/ol3/master/examples/wms-capabilities.html#2013-03-03T17:37:15+0100EPSG:4326 exampleepsg4326Example of a epsg-4326 map.2013-02-21T20:22:46+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/epsg-4326.html#2013-02-21T20:22:46+0100Canvas tiles examplelayers, stamen, canvasThe black grid tiles are generated on the client with an HTML5 canvas. Note that the tile coordinates are ol3 normalized tile coordinates (origin bottom left), not OSM tile coordinates (origin top left).2013-02-06T18:06:16+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/canvas-tiles.html#2013-02-06T18:06:16+0100Full-screen examplefullscreen, mapquest, openaerial, tile, tilelayerExample of a full-screen map.2013-02-04T10:52:29+0100Frederic Junodhttp://openlayers.github.com/ol3/master/examples/full-screen.html#2013-02-04T10:52:29+0100Anchored elements exampleanchored elements, overlay, popup, mapquest, openaerialDemonstrates anchored elements.2013-01-22T14:37:13+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/anchored-elements.html#2013-01-22T14:37:13+0100Two-layer examplelayers, tilejson, bing, bingmapsSync'ed DOM, WebGL and Canvas maps with two layers.2013-01-21T16:13:19+0100Frederic Junodhttp://openlayers.github.com/ol3/master/examples/two-layers.html#2013-01-21T16:13:19+0100Side-by-side exampleside-by-side, webgl, dom, sync, objectSide-by-side DOM, WebGL and Canvas sync'ed maps.2013-01-18T14:04:33+0100Tom Paynehttp://openlayers.github.com/ol3/master/examples/side-by-side.html#2013-01-18T14:04:33+0100Tiled WMS with custom projection examplewms, tile, tilelayer, projectionExample of two tiled WMS layers (Pixelmap 1:1'000'000 and national parks) using the projection EPSG:21781.2012-10-29T09:33:00+0100ahocevarhttp://openlayers.github.com/ol3/master/examples/wms-custom-proj.html#2012-10-29T09:33:00+0100Tiled WMS examplewms, tile, tilelayerExample of a tiled WMS layer.2012-10-26T21:36:30+0200ahocevarhttp://openlayers.github.com/ol3/master/examples/wms.html#2012-10-26T21:36:30+0200 \ No newline at end of file diff --git a/master/examples/stamen.html b/master/examples/stamen.html new file mode 100644 index 0000000000..0b0f9ef71d --- /dev/null +++ b/master/examples/stamen.html @@ -0,0 +1,42 @@ + + + + + + + + + Stamen example + + +
    +
    +

    Stamen example

    +
    Example of a Stamen tile source.
    +
    +

    See the + stamen.js source + to see how this is done.

    +
    +
    +
    +
    fullscreen, stamen, tilelayer
    + + + diff --git a/master/examples/stamen.js b/master/examples/stamen.js new file mode 100644 index 0000000000..3c947baf84 --- /dev/null +++ b/master/examples/stamen.js @@ -0,0 +1,31 @@ +goog.require('ol.Collection'); +goog.require('ol.Coordinate'); +goog.require('ol.Map'); +goog.require('ol.RendererHints'); +goog.require('ol.View2D'); +goog.require('ol.layer.TileLayer'); +goog.require('ol.source.Stamen'); + + +var layers = new ol.Collection([ + new ol.layer.TileLayer({ + source: new ol.source.Stamen({ + layer: 'watercolor' + }) + }), + new ol.layer.TileLayer({ + source: new ol.source.Stamen({ + layer: 'terrain-labels' + }) + }) +]); +var map = new ol.Map({ + layers: layers, + renderers: ol.RendererHints.createFromQueryData(), + scaleLineControl: true, + target: 'map', + view: new ol.View2D({ + center: new ol.Coordinate(0, 0), + zoom: 3 + }) +}); diff --git a/master/examples/wms-custom-proj.js b/master/examples/wms-custom-proj.js index 19d03ca493..6aae577534 100644 --- a/master/examples/wms-custom-proj.js +++ b/master/examples/wms-custom-proj.js @@ -19,19 +19,6 @@ var epsg21781 = new ol.Projection('EPSG:21781', ol.ProjectionUnits.METERS, new ol.Extent(485869.5728, 76443.1884, 837076.5648, 299941.7864)); ol.projection.addProjection(epsg21781); -// We could give the single image source a set of resolutions. This prevents the -// source from requesting images of arbitrary resolutions. To try it, uncomment -// the block below and the resolutions option in the SingleImageWMS config. -/* -var projectionExtent = epsg21781.getExtent(); -var maxResolution = Math.max(projectionExtent.getWidth(), - projectionExtent.getHeight()) / 256; -var resolutions = new Array(10); -for (var i = 0; i < 10; ++i) { - resolutions[i] = maxResolution / Math.pow(2.0, i); -} -*/ - var extent = new ol.Extent(420000, 30000, 900000, 350000); var layers = new ol.Collection([ new ol.layer.TileLayer({ @@ -50,7 +37,6 @@ var layers = new ol.Collection([ }), new ol.layer.ImageLayer({ source: new ol.source.SingleImageWMS({ - //resolutions: resolutions, url: 'http://wms.geo.admin.ch/', attributions: [new ol.Attribution( '© ' +