Updated
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -536,17 +536,17 @@ goog.addDependency("/third_party/closure/goog/silverlight/supporteduseragent.js"
|
||||
goog.addDependency("build/src/internal/src/requireall.js",[],["ol","ol.AnchoredElement","ol.AnchoredElementPositioning","ol.AnchoredElementProperty","ol.Attribution","ol.BingMapsStyle","ol.BrowserFeature","ol.Collection","ol.CollectionEvent","ol.CollectionEventType","ol.Color","ol.Constraints","ol.Coordinate","ol.CoordinateFormatType","ol.Ellipsoid","ol.Extent","ol.FrameState","ol.Geolocation","ol.GeolocationProperty","ol.IView","ol.IView2D","ol.IView3D","ol.Image","ol.ImageState","ol.ImageTile",
|
||||
"ol.ImageUrlFunction","ol.ImageUrlFunctionType","ol.Kinetic","ol.Map","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.MapBrowserEventHandler","ol.MapEvent","ol.MapEventType","ol.MapProperty","ol.Object","ol.ObjectEventType","ol.Pixel","ol.PixelBounds","ol.PostRenderFunction","ol.PreRenderFunction","ol.Projection","ol.ProjectionUnits","ol.Rectangle","ol.RendererHint","ol.RendererHints","ol.ResolutionConstraint","ol.ResolutionConstraintType","ol.RotationConstraint","ol.RotationConstraintType",
|
||||
"ol.Size","ol.Sphere","ol.Tile","ol.TileCache","ol.TileCoord","ol.TilePriorityFunction","ol.TileQueue","ol.TileRange","ol.TileState","ol.TileUrlFunction","ol.TileUrlFunctionType","ol.TransformFunction","ol.View","ol.View2D","ol.View2DProperty","ol.View2DState","ol.ViewHint","ol.animation","ol.array","ol.canvas","ol.control.Attribution","ol.control.Control","ol.control.ControlOptions","ol.control.DragBox","ol.control.MousePosition","ol.control.Zoom","ol.dom","ol.dom.BrowserFeature","ol.easing","ol.ellipsoid.WGS84",
|
||||
"ol.interaction.ConditionType","ol.interaction.DblClickZoom","ol.interaction.Drag","ol.interaction.DragPan","ol.interaction.DragRotate","ol.interaction.DragRotateAndZoom","ol.interaction.DragZoom","ol.interaction.Interaction","ol.interaction.Keyboard","ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.Touch","ol.interaction.TouchPan","ol.interaction.TouchRotateAndZoom","ol.interaction.condition","ol.layer.ImageLayer","ol.layer.Layer","ol.layer.LayerProperty",
|
||||
"ol.layer.LayerState","ol.layer.TileLayer","ol.parser.XML","ol.parser.ogc.ExceptionReport","ol.parser.ogc.OWSCommon_v1","ol.parser.ogc.OWSCommon_v1_1_0","ol.parser.ogc.Versioned","ol.parser.ogc.WMSCapabilities","ol.parser.ogc.WMSCapabilities_v1","ol.parser.ogc.WMSCapabilities_v1_1","ol.parser.ogc.WMSCapabilities_v1_1_0","ol.parser.ogc.WMSCapabilities_v1_1_1","ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC","ol.parser.ogc.WMSCapabilities_v1_3_0","ol.parser.ogc.WMTSCapabilities","ol.parser.ogc.WMTSCapabilities_v1_0_0",
|
||||
"ol.renderer.Layer","ol.renderer.Map","ol.renderer.canvas.ImageLayer","ol.renderer.canvas.Layer","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.canvas.TileLayer","ol.renderer.dom.ImageLayer","ol.renderer.dom.Layer","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.dom.TileLayer","ol.renderer.webgl.FragmentShader","ol.renderer.webgl.ImageLayer","ol.renderer.webgl.Layer","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED","ol.renderer.webgl.TileLayer","ol.renderer.webgl.VertexShader",
|
||||
"ol.renderer.webgl.map.shader","ol.renderer.webgl.tilelayerrenderer","ol.renderer.webgl.tilelayerrenderer.shader.Fragment","ol.renderer.webgl.tilelayerrenderer.shader.Vertex","ol.source.BingMaps","ol.source.DebugTileSource","ol.source.ImageSource","ol.source.ImageTileSource","ol.source.ImageTileSourceOptions","ol.source.MapQuestOSM","ol.source.MapQuestOpenAerial","ol.source.OpenStreetMap","ol.source.SingleImageWMS","ol.source.Source","ol.source.Stamen","ol.source.StamenFlavor","ol.source.StamenProvider",
|
||||
"ol.source.StaticImage","ol.source.TileJSON","ol.source.TileSource","ol.source.TileSourceOptions","ol.source.TiledWMS","ol.source.XYZ","ol.source.XYZOptions","ol.structs.LRUCache","ol.tilegrid.TileGrid","ol.tilegrid.XYZ","ol.tilejson","ol.vec.Mat4","ol.webgl","ol.webgl.WebGLContextEventType"]);
|
||||
"ol.interaction.ConditionType","ol.interaction.DblClickZoom","ol.interaction.Drag","ol.interaction.DragPan","ol.interaction.DragRotate","ol.interaction.DragRotateAndZoom","ol.interaction.DragZoom","ol.interaction.Interaction","ol.interaction.Keyboard","ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.Touch","ol.interaction.TouchPan","ol.interaction.TouchRotate","ol.interaction.TouchZoom","ol.interaction.condition","ol.layer.ImageLayer","ol.layer.Layer",
|
||||
"ol.layer.LayerProperty","ol.layer.LayerState","ol.layer.TileLayer","ol.math","ol.parser.XML","ol.parser.ogc.ExceptionReport","ol.parser.ogc.OWSCommon_v1","ol.parser.ogc.OWSCommon_v1_1_0","ol.parser.ogc.Versioned","ol.parser.ogc.WMSCapabilities","ol.parser.ogc.WMSCapabilities_v1","ol.parser.ogc.WMSCapabilities_v1_1","ol.parser.ogc.WMSCapabilities_v1_1_0","ol.parser.ogc.WMSCapabilities_v1_1_1","ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC","ol.parser.ogc.WMSCapabilities_v1_3_0","ol.parser.ogc.WMTSCapabilities",
|
||||
"ol.parser.ogc.WMTSCapabilities_v1_0_0","ol.projection","ol.projection.EPSG3857","ol.projection.EPSG4326","ol.projection.addCommonProjections","ol.renderer.Layer","ol.renderer.Map","ol.renderer.canvas.ImageLayer","ol.renderer.canvas.Layer","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.canvas.TileLayer","ol.renderer.dom.ImageLayer","ol.renderer.dom.Layer","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.dom.TileLayer","ol.renderer.webgl.FragmentShader","ol.renderer.webgl.ImageLayer",
|
||||
"ol.renderer.webgl.Layer","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED","ol.renderer.webgl.TileLayer","ol.renderer.webgl.VertexShader","ol.renderer.webgl.map.shader","ol.renderer.webgl.tilelayerrenderer","ol.renderer.webgl.tilelayerrenderer.shader.Fragment","ol.renderer.webgl.tilelayerrenderer.shader.Vertex","ol.source.BingMaps","ol.source.DebugTileSource","ol.source.ImageSource","ol.source.ImageTileSource","ol.source.ImageTileSourceOptions","ol.source.MapQuestOSM","ol.source.MapQuestOpenAerial",
|
||||
"ol.source.OpenStreetMap","ol.source.SingleImageWMS","ol.source.Source","ol.source.Stamen","ol.source.StamenFlavor","ol.source.StamenProvider","ol.source.StaticImage","ol.source.TileJSON","ol.source.TileSource","ol.source.TileSourceOptions","ol.source.TiledWMS","ol.source.XYZ","ol.source.XYZOptions","ol.sphere.NORMAL","ol.sphere.WGS84","ol.structs.LRUCache","ol.tilegrid.TileGrid","ol.tilegrid.XYZ","ol.tilejson","ol.vec.Mat4","ol.webgl","ol.webgl.WebGLContextEventType"]);
|
||||
goog.addDependency("build/src/internal/src/types.js",["ol.AnchoredElementOptionsType","ol.MapOptionsType","ol.View2DOptionsType","ol.animation.BounceOptionsType","ol.animation.PanOptionsType","ol.animation.RotateOptionsType","ol.animation.ZoomOptionsType","ol.control.AttributionOptionsType","ol.control.MousePositionOptionsType","ol.control.ZoomOptionsType","ol.layer.LayerOptionsType","ol.source.BingMapsOptionsType","ol.source.DebugTileSourceOptionsType","ol.source.SingleImageWMSOptionsType","ol.source.StamenOptionsType",
|
||||
"ol.source.StaticImageOptionsType","ol.source.TiledWMSOptionsType","ol.tilegrid.TileGridOptionsType","ol.tilegrid.XYZOptionsType"],[]);goog.addDependency("src/ol/anchoredelement.js",["ol.AnchoredElement","ol.AnchoredElementPositioning","ol.AnchoredElementProperty"],["goog.dom","goog.events","goog.style","ol.Coordinate","ol.Map","ol.MapEventType","ol.Object"]);goog.addDependency("src/ol/animation.js",["ol.animation"],["goog.fx.easing","ol.PreRenderFunction","ol.ViewHint","ol.easing"]);
|
||||
goog.addDependency("src/ol/array.js",["ol.array"],["goog.array"]);goog.addDependency("src/ol/attribution.js",["ol.Attribution"],["ol.TileRange"]);goog.addDependency("src/ol/browserfeature.js",["ol.BrowserFeature"],[]);goog.addDependency("src/ol/canvas/canvas.js",["ol.canvas"],["goog.dom","goog.dom.TagName"]);goog.addDependency("src/ol/collection.js",["ol.Collection","ol.CollectionEvent","ol.CollectionEventType"],["goog.array","goog.events.Event","ol.Object"]);
|
||||
goog.addDependency("src/ol/color.js",["ol.Color"],["goog.color","goog.math"]);goog.addDependency("src/ol/constraints.js",["ol.Constraints"],["ol.ResolutionConstraintType","ol.RotationConstraintType"]);goog.addDependency("src/ol/control/attributioncontrol.js",["ol.control.Attribution"],["goog.array","goog.dom","goog.dom.TagName","goog.events","goog.object","goog.style","ol.Attribution","ol.FrameState","ol.MapEvent","ol.MapEventType","ol.TileRange","ol.control.Control","ol.source.Source"]);
|
||||
goog.addDependency("src/ol/control/control.js",["ol.control.Control","ol.control.ControlOptions"],["goog.Disposable"]);goog.addDependency("src/ol/control/dragboxcontrol.js",["ol.control.DragBox"],["goog.asserts","goog.dom","goog.dom.TagName","goog.events","goog.style","ol.Coordinate","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.Pixel","ol.Size","ol.control.Control"]);
|
||||
goog.addDependency("src/ol/control/mousepositioncontrol.js",["ol.control.MousePosition"],["goog.array","goog.dom","goog.events","goog.events.EventType","goog.style","ol.CoordinateFormatType","ol.MapEvent","ol.MapEventType","ol.Pixel","ol.Projection","ol.TransformFunction","ol.control.Control","ol.projection"]);goog.addDependency("src/ol/control/zoomcontrol.js",["ol.control.Zoom"],["goog.dom","goog.dom.TagName","goog.events","goog.events.EventType","ol.BrowserFeature","ol.control.Control"]);
|
||||
goog.addDependency("src/ol/control/mousepositioncontrol.js",["ol.control.MousePosition"],["goog.array","goog.dom","goog.events","goog.events.EventType","goog.style","ol.Coordinate","ol.CoordinateFormatType","ol.MapEvent","ol.MapEventType","ol.Pixel","ol.Projection","ol.TransformFunction","ol.control.Control","ol.projection"]);goog.addDependency("src/ol/control/zoomcontrol.js",["ol.control.Zoom"],["goog.dom","goog.dom.TagName","goog.events","goog.events.EventType","ol.control.Control"]);
|
||||
goog.addDependency("src/ol/coordinate.js",["ol.Coordinate","ol.CoordinateFormatType"],["goog.math","goog.math.Vec2"]);goog.addDependency("src/ol/dom/dom.js",["ol.dom","ol.dom.BrowserFeature"],["goog.vec.Mat4"]);goog.addDependency("src/ol/easing.js",["ol.easing"],[]);goog.addDependency("src/ol/ellipsoid.js",["ol.Ellipsoid"],["goog.math","ol.Coordinate"]);goog.addDependency("src/ol/ellipsoid/wgs84.js",["ol.ellipsoid.WGS84"],["ol.Ellipsoid"]);
|
||||
goog.addDependency("src/ol/extent.js",["ol.Extent"],["ol.Coordinate","ol.Rectangle","ol.TransformFunction"]);goog.addDependency("src/ol/framestate.js",["ol.FrameState","ol.PostRenderFunction","ol.PreRenderFunction"],["goog.vec.Mat4","ol.Attribution","ol.Color","ol.Extent","ol.Size","ol.TileQueue","ol.TileRange","ol.View2DState","ol.layer.Layer","ol.layer.LayerState"]);
|
||||
goog.addDependency("src/ol/geolocation.js",["ol.Geolocation","ol.GeolocationProperty"],["goog.functions","goog.math","ol.Coordinate","ol.Object","ol.Projection","ol.projection"]);goog.addDependency("src/ol/image.js",["ol.Image","ol.ImageState"],["goog.array","goog.events","goog.events.EventTarget","goog.events.EventType","ol.Attribution","ol.Extent"]);goog.addDependency("src/ol/imagetile.js",["ol.ImageTile"],["goog.array","goog.events","goog.events.EventType","ol.Tile","ol.TileCoord","ol.TileState"]);
|
||||
@@ -556,12 +556,12 @@ goog.addDependency("src/ol/interaction/dragrotateandzoominteraction.js",["ol.int
|
||||
goog.addDependency("src/ol/interaction/dragzoominteraction.js",["ol.interaction.DragZoom"],["ol.Extent","ol.Size","ol.View2D","ol.control.DragBox","ol.interaction.ConditionType","ol.interaction.Drag"]);goog.addDependency("src/ol/interaction/interaction.js",["ol.interaction.Interaction"],["ol.MapBrowserEvent"]);goog.addDependency("src/ol/interaction/keyboardinteraction.js",["ol.interaction.Keyboard"],["ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/keyboardpaninteraction.js",["ol.interaction.KeyboardPan"],["goog.events.KeyCodes","goog.events.KeyHandler.EventType","ol.Coordinate","ol.View2D","ol.interaction.Interaction"]);goog.addDependency("src/ol/interaction/keyboardzoominteraction.js",["ol.interaction.KeyboardZoom"],["goog.events.KeyHandler.EventType","ol.View2D","ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/mousewheelzoominteraction.js",["ol.interaction.MouseWheelZoom"],["goog.events.MouseWheelEvent","goog.events.MouseWheelHandler.EventType","ol.View2D","ol.interaction.Interaction"]);goog.addDependency("src/ol/interaction/touchinteraction.js",["ol.interaction.Touch"],["goog.functions","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.Pixel","ol.interaction.Interaction"]);
|
||||
goog.addDependency("src/ol/interaction/touchpaninteraction.js",["ol.interaction.TouchPan"],["goog.asserts","ol.Coordinate","ol.Kinetic","ol.Pixel","ol.PreRenderFunction","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/interaction/touchrotateandzoominteraction.js",["ol.interaction.TouchRotateAndZoom"],["goog.asserts","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/iview.js",["ol.IView"],["ol.IView2D","ol.IView3D"]);
|
||||
goog.addDependency("src/ol/iview2d.js",["ol.IView2D","ol.View2DState"],["ol.Coordinate","ol.Projection"]);goog.addDependency("src/ol/iview3d.js",["ol.IView3D"],[]);goog.addDependency("src/ol/kinetic.js",["ol.Kinetic"],["ol.Coordinate","ol.PreRenderFunction","ol.animation"]);goog.addDependency("src/ol/layer/imagelayer.js",["ol.layer.ImageLayer"],["ol.layer.Layer","ol.source.ImageSource"]);
|
||||
goog.addDependency("src/ol/layer/layer.js",["ol.layer.Layer","ol.layer.LayerProperty","ol.layer.LayerState"],["goog.events","goog.events.EventType","goog.math","ol.Object","ol.source.Source"]);goog.addDependency("src/ol/layer/tilelayer.js",["ol.layer.TileLayer"],["ol.layer.Layer","ol.source.TileSource"]);
|
||||
goog.addDependency("src/ol/interaction/touchpaninteraction.js",["ol.interaction.TouchPan"],["goog.asserts","ol.Coordinate","ol.Kinetic","ol.Pixel","ol.PreRenderFunction","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/interaction/touchrotateinteraction.js",["ol.interaction.TouchRotate"],["goog.asserts","ol.View","ol.ViewHint","ol.interaction.Touch"]);
|
||||
goog.addDependency("src/ol/interaction/touchzoominteraction.js",["ol.interaction.TouchZoom"],["goog.asserts","ol.View","ol.ViewHint","ol.interaction.Touch"]);goog.addDependency("src/ol/iview.js",["ol.IView"],["ol.IView2D","ol.IView3D"]);goog.addDependency("src/ol/iview2d.js",["ol.IView2D","ol.View2DState"],["ol.Coordinate","ol.Projection"]);goog.addDependency("src/ol/iview3d.js",["ol.IView3D"],[]);goog.addDependency("src/ol/kinetic.js",["ol.Kinetic"],["ol.Coordinate","ol.PreRenderFunction","ol.animation"]);
|
||||
goog.addDependency("src/ol/layer/imagelayer.js",["ol.layer.ImageLayer"],["ol.layer.Layer","ol.source.ImageSource"]);goog.addDependency("src/ol/layer/layer.js",["ol.layer.Layer","ol.layer.LayerProperty","ol.layer.LayerState"],["goog.events","goog.events.EventType","goog.math","ol.Object","ol.source.Source"]);goog.addDependency("src/ol/layer/tilelayer.js",["ol.layer.TileLayer"],["ol.layer.Layer","ol.source.TileSource"]);
|
||||
goog.addDependency("src/ol/map.js",["ol.Map","ol.MapProperty","ol.RendererHint","ol.RendererHints"],["goog.Uri.QueryData","goog.async.AnimationDelay","goog.debug.Logger","goog.dom","goog.dom.ViewportSizeMonitor","goog.events","goog.events.BrowserEvent","goog.events.Event","goog.events.EventType","goog.events.KeyHandler","goog.events.KeyHandler.EventType","goog.events.MouseWheelHandler","goog.events.MouseWheelHandler.EventType","ol.BrowserFeature","ol.Collection","ol.Color","ol.Coordinate","ol.Extent",
|
||||
"ol.FrameState","ol.IView","ol.Kinetic","ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.MapBrowserEventHandler","ol.MapEvent","ol.MapEventType","ol.Object","ol.ObjectEventType","ol.Pixel","ol.PostRenderFunction","ol.PreRenderFunction","ol.Size","ol.Tile","ol.TileQueue","ol.View","ol.View2D","ol.control.Attribution","ol.control.Control","ol.control.Zoom","ol.interaction.DblClickZoom","ol.interaction.DragPan","ol.interaction.DragRotate","ol.interaction.DragZoom","ol.interaction.Interaction",
|
||||
"ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.TouchPan","ol.interaction.TouchRotateAndZoom","ol.interaction.condition","ol.layer.Layer","ol.projection","ol.projection.addCommonProjections","ol.renderer.Map","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED"]);
|
||||
"ol.interaction.KeyboardPan","ol.interaction.KeyboardZoom","ol.interaction.MouseWheelZoom","ol.interaction.TouchPan","ol.interaction.TouchRotate","ol.interaction.TouchZoom","ol.interaction.condition","ol.layer.Layer","ol.projection","ol.projection.addCommonProjections","ol.renderer.Map","ol.renderer.canvas.Map","ol.renderer.canvas.SUPPORTED","ol.renderer.dom.Map","ol.renderer.dom.SUPPORTED","ol.renderer.webgl.Map","ol.renderer.webgl.SUPPORTED"]);
|
||||
goog.addDependency("src/ol/mapbrowserevent.js",["ol.MapBrowserEvent","ol.MapBrowserEvent.EventType","ol.MapBrowserEventHandler"],["goog.array","goog.events.BrowserEvent","goog.events.EventTarget","goog.events.EventType","goog.style","ol.BrowserFeature","ol.Coordinate","ol.FrameState","ol.MapEvent","ol.Pixel"]);goog.addDependency("src/ol/mapevent.js",["ol.MapEvent","ol.MapEventType"],["goog.events.Event","ol.FrameState"]);goog.addDependency("src/ol/math.js",["ol.math"],[]);
|
||||
goog.addDependency("src/ol/object.js",["ol.Object","ol.ObjectEventType"],["goog.array","goog.events","goog.events.EventTarget","goog.object"]);goog.addDependency("src/ol/ol.js",["ol"],["goog.debug.Logger"]);goog.addDependency("src/ol/parser/ogc/exceptionreport.js",["ol.parser.ogc.ExceptionReport"],["goog.dom.xml","ol.parser.XML"]);goog.addDependency("src/ol/parser/ogc/owscommon_v1.js",["ol.parser.ogc.OWSCommon_v1"],["ol.Extent","ol.parser.XML"]);
|
||||
goog.addDependency("src/ol/parser/ogc/owscommon_v1_1_0.js",["ol.parser.ogc.OWSCommon_v1_1_0"],["goog.object","ol.parser.ogc.OWSCommon_v1"]);goog.addDependency("src/ol/parser/ogc/versioned.js",["ol.parser.ogc.Versioned"],["goog.dom.xml","ol.parser.ogc.ExceptionReport"]);
|
||||
@@ -569,8 +569,8 @@ goog.addDependency("src/ol/parser/ogc/wmscapabilities.js",["ol.parser.ogc.WMSCap
|
||||
goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1.js",["ol.parser.ogc.WMSCapabilities_v1_1"],["ol.parser.ogc.WMSCapabilities_v1"]);goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1_0.js",["ol.parser.ogc.WMSCapabilities_v1_1_0"],["ol.parser.ogc.WMSCapabilities_v1_1"]);goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1_1.js",["ol.parser.ogc.WMSCapabilities_v1_1_1"],["ol.parser.ogc.WMSCapabilities_v1_1"]);
|
||||
goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_1_1_WMSC.js",["ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC"],["ol.parser.ogc.WMSCapabilities_v1_1_1"]);goog.addDependency("src/ol/parser/ogc/wmscapabilities_v1_3_0.js",["ol.parser.ogc.WMSCapabilities_v1_3_0"],["ol.parser.ogc.WMSCapabilities_v1"]);goog.addDependency("src/ol/parser/ogc/wmtscapabilities.js",["ol.parser.ogc.WMTSCapabilities"],["ol.parser.ogc.Versioned","ol.parser.ogc.WMTSCapabilities_v1_0_0"]);
|
||||
goog.addDependency("src/ol/parser/ogc/wmtscapabilities_v1_0_0.js",["ol.parser.ogc.WMTSCapabilities_v1_0_0"],["goog.dom.xml","ol.Coordinate","ol.parser.XML","ol.parser.ogc.OWSCommon_v1_1_0","ol.projection"]);goog.addDependency("src/ol/parser/xml.js",["ol.parser.XML"],[]);goog.addDependency("src/ol/pixel.js",["ol.Pixel"],["goog.math.Coordinate"]);goog.addDependency("src/ol/pixelbounds.js",["ol.PixelBounds"],["ol.Rectangle"]);
|
||||
goog.addDependency("src/ol/projection.js",["ol.Projection","ol.ProjectionUnits","ol.projection"],["goog.array","goog.asserts","goog.object","ol.Coordinate","ol.Extent","ol.TransformFunction"]);goog.addDependency("src/ol/projection/common.js",["ol.projection.addCommonProjections"],["ol.projection","ol.projection.EPSG3857","ol.projection.EPSG4326"]);
|
||||
goog.addDependency("src/ol/projection/epsg3857.js",["ol.projection.EPSG3857"],["goog.array","ol.Coordinate","ol.Extent","ol.Projection","ol.ProjectionUnits","ol.projection"]);goog.addDependency("src/ol/projection/epsg4326.js",["ol.projection.EPSG4326"],["ol.Extent","ol.Projection","ol.ProjectionUnits","ol.projection"]);goog.addDependency("src/ol/rectangle.js",["ol.Rectangle"],["goog.asserts","ol.Coordinate","ol.Size"]);
|
||||
goog.addDependency("src/ol/projection.js",["ol.Projection","ol.ProjectionUnits","ol.projection"],["goog.array","goog.asserts","goog.object","ol.Coordinate","ol.Extent","ol.TransformFunction","ol.sphere.NORMAL"]);goog.addDependency("src/ol/projection/common.js",["ol.projection.addCommonProjections"],["ol.projection","ol.projection.EPSG3857","ol.projection.EPSG4326"]);
|
||||
goog.addDependency("src/ol/projection/epsg3857.js",["ol.projection.EPSG3857"],["goog.array","ol.Extent","ol.Projection","ol.ProjectionUnits","ol.math","ol.projection"]);goog.addDependency("src/ol/projection/epsg4326.js",["ol.projection.EPSG4326"],["ol.Extent","ol.Projection","ol.ProjectionUnits","ol.projection"]);goog.addDependency("src/ol/rectangle.js",["ol.Rectangle"],["goog.asserts","ol.Coordinate","ol.Size"]);
|
||||
goog.addDependency("src/ol/renderer/canvas/canvasimagelayerrenderer.js",["ol.renderer.canvas.ImageLayer"],["goog.vec.Mat4","ol.Image","ol.ImageState","ol.ViewHint","ol.layer.ImageLayer","ol.renderer.Map","ol.renderer.canvas.Layer"]);goog.addDependency("src/ol/renderer/canvas/canvaslayerrenderer.js",["ol.renderer.canvas.Layer"],["ol.layer.Layer","ol.renderer.Layer"]);
|
||||
goog.addDependency("src/ol/renderer/canvas/canvasmaprenderer.js",["ol.renderer.canvas.Map"],["goog.array","goog.dom","goog.style","goog.vec.Mat4","ol.Size","ol.layer.ImageLayer","ol.layer.TileLayer","ol.renderer.Map","ol.renderer.canvas.ImageLayer","ol.renderer.canvas.TileLayer"]);goog.addDependency("src/ol/renderer/canvas/canvasrenderer.js",["ol.renderer.canvas.SUPPORTED"],["ol.canvas"]);
|
||||
goog.addDependency("src/ol/renderer/canvas/canvastilelayerrenderer.js",["ol.renderer.canvas.TileLayer"],["goog.array","goog.dom","goog.vec.Mat4","ol.Size","ol.Tile","ol.TileCoord","ol.TileState","ol.layer.TileLayer","ol.renderer.Map","ol.renderer.canvas.Layer"]);goog.addDependency("src/ol/renderer/dom/domimagelayerrenderer.js",["ol.renderer.dom.ImageLayer"],["goog.dom","goog.vec.Mat4","ol.Image","ol.ImageState","ol.ViewHint","ol.dom","ol.layer.ImageLayer","ol.renderer.dom.Layer"]);
|
||||
@@ -589,12 +589,12 @@ goog.addDependency("src/ol/source/imagetilesource.js",["ol.source.ImageTileSourc
|
||||
goog.addDependency("src/ol/source/openstreetmapsource.js",["ol.source.OpenStreetMap"],["ol.Attribution","ol.source.XYZ"]);goog.addDependency("src/ol/source/singleimagewmssource.js",["ol.source.SingleImageWMS"],["goog.uri.utils","ol.Extent","ol.Image","ol.ImageUrlFunction","ol.Size","ol.projection","ol.source.ImageSource"]);goog.addDependency("src/ol/source/source.js",["ol.source.Source"],["goog.events.EventTarget","goog.events.EventType","goog.functions","ol.Attribution","ol.Extent","ol.Projection"]);
|
||||
goog.addDependency("src/ol/source/stamensource.js",["ol.source.Stamen","ol.source.StamenFlavor","ol.source.StamenProvider"],["ol.Attribution","ol.source.XYZ"]);goog.addDependency("src/ol/source/staticimagesource.js",["ol.source.StaticImage"],["ol.Image","ol.ImageUrlFunctionType","ol.source.ImageSource"]);goog.addDependency("src/ol/source/tiledwmssource.js",["ol.source.TiledWMS"],["goog.array","goog.object","goog.uri.utils","ol.Extent","ol.TileCoord","ol.TileUrlFunction","ol.projection","ol.source.ImageTileSource"]);
|
||||
goog.addDependency("src/ol/source/tilejsonsource.js",["ol.source.TileJSON","ol.tilejson"],["goog.asserts","goog.net.jsloader","ol.Attribution","ol.Extent","ol.TileCoord","ol.TileRange","ol.TileUrlFunction","ol.projection","ol.source.ImageTileSource","ol.tilegrid.XYZ"]);goog.addDependency("src/ol/source/tilesource.js",["ol.source.TileSource","ol.source.TileSourceOptions"],["goog.functions","ol.Attribution","ol.Extent","ol.Projection","ol.Tile","ol.TileCoord","ol.TileRange","ol.source.Source","ol.tilegrid.TileGrid"]);
|
||||
goog.addDependency("src/ol/source/xyzsource.js",["ol.source.XYZ","ol.source.XYZOptions"],["goog.math","ol.Attribution","ol.Extent","ol.Projection","ol.TileCoord","ol.TileUrlFunction","ol.TileUrlFunctionType","ol.projection","ol.source.ImageTileSource","ol.tilegrid.XYZ"]);goog.addDependency("src/ol/sphere.js",["ol.Sphere"],["goog.math","ol.Coordinate"]);goog.addDependency("src/ol/structs/lrucache.js",["ol.structs.LRUCache"],["goog.asserts","goog.object"]);
|
||||
goog.addDependency("src/ol/tile.js",["ol.Tile","ol.TileState"],["goog.events","goog.events.EventTarget","goog.events.EventType","ol.TileCoord"]);goog.addDependency("src/ol/tilecache.js",["ol.TileCache"],["ol.Tile","ol.TileRange","ol.structs.LRUCache"]);goog.addDependency("src/ol/tilecoord.js",["ol.TileCoord"],["goog.array","ol.Coordinate"]);
|
||||
goog.addDependency("src/ol/source/xyzsource.js",["ol.source.XYZ","ol.source.XYZOptions"],["goog.math","ol.Attribution","ol.Extent","ol.Projection","ol.TileCoord","ol.TileUrlFunction","ol.TileUrlFunctionType","ol.projection","ol.source.ImageTileSource","ol.tilegrid.XYZ"]);goog.addDependency("src/ol/sphere.js",["ol.Sphere"],["goog.math","ol.Coordinate"]);goog.addDependency("src/ol/sphere/normal.js",["ol.sphere.NORMAL"],["ol.Sphere"]);goog.addDependency("src/ol/sphere/wgs84.js",["ol.sphere.WGS84"],["ol.Sphere"]);
|
||||
goog.addDependency("src/ol/structs/lrucache.js",["ol.structs.LRUCache"],["goog.asserts","goog.object"]);goog.addDependency("src/ol/tile.js",["ol.Tile","ol.TileState"],["goog.events","goog.events.EventTarget","goog.events.EventType","ol.TileCoord"]);goog.addDependency("src/ol/tilecache.js",["ol.TileCache"],["ol.Tile","ol.TileRange","ol.structs.LRUCache"]);goog.addDependency("src/ol/tilecoord.js",["ol.TileCoord"],["goog.array","ol.Coordinate"]);
|
||||
goog.addDependency("src/ol/tilegrid/tilegrid.js",["ol.tilegrid.TileGrid"],["goog.array","goog.asserts","ol.Coordinate","ol.Extent","ol.PixelBounds","ol.Projection","ol.Size","ol.TileCoord","ol.TileRange","ol.array"]);goog.addDependency("src/ol/tilegrid/xyztilegrid.js",["ol.tilegrid.XYZ"],["ol.Coordinate","ol.Size","ol.TileRange","ol.projection","ol.projection.EPSG3857","ol.tilegrid.TileGrid"]);
|
||||
goog.addDependency("src/ol/tilequeue.js",["ol.TilePriorityFunction","ol.TileQueue"],["goog.events","goog.events.EventType","ol.Coordinate","ol.Tile","ol.TileState"]);goog.addDependency("src/ol/tilerange.js",["ol.TileRange"],["goog.asserts","ol.Rectangle","ol.TileCoord"]);goog.addDependency("src/ol/tileurlfunction.js",["ol.TileUrlFunction","ol.TileUrlFunctionType"],["goog.array","goog.math","goog.uri.utils","ol.TileCoord","ol.tilegrid.TileGrid"]);
|
||||
goog.addDependency("src/ol/transformfunction.js",["ol.TransformFunction"],["ol.Coordinate"]);goog.addDependency("src/ol/vec/mat4.js",["ol.vec.Mat4"],["goog.vec.Mat4"]);goog.addDependency("src/ol/view.js",["ol.View","ol.ViewHint"],["goog.array","ol.IView","ol.Object"]);
|
||||
goog.addDependency("src/ol/view2d.js",["ol.View2D","ol.View2DProperty"],["ol.Constraints","ol.Coordinate","ol.Extent","ol.IView2D","ol.IView3D","ol.Projection","ol.ResolutionConstraint","ol.RotationConstraint","ol.Size","ol.View","ol.animation","ol.projection"]);goog.addDependency("src/ol/webgl/webgl.js",["ol.webgl","ol.webgl.WebGLContextEventType"],[]);goog.provide("goog.debug.Error");goog.debug.Error=function(opt_msg){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else this.stack=(new Error).stack||"";if(opt_msg)this.message=String(opt_msg)};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.provide("goog.string");goog.provide("goog.string.Unicode");goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(str,prefix){return str.lastIndexOf(prefix,0)==0};goog.string.endsWith=function(str,suffix){var l=str.length-suffix.length;return l>=0&&str.indexOf(suffix,l)==l};goog.string.caseInsensitiveStartsWith=function(str,prefix){return goog.string.caseInsensitiveCompare(prefix,str.substr(0,prefix.length))==0};
|
||||
goog.addDependency("src/ol/transformfunction.js",["ol.TransformFunction"],[]);goog.addDependency("src/ol/vec/mat4.js",["ol.vec.Mat4"],["goog.vec.Mat4"]);goog.addDependency("src/ol/view.js",["ol.View","ol.ViewHint"],["goog.array","ol.IView","ol.Object"]);goog.addDependency("src/ol/view2d.js",["ol.View2D","ol.View2DProperty"],["ol.Constraints","ol.Coordinate","ol.Extent","ol.IView2D","ol.IView3D","ol.Projection","ol.ResolutionConstraint","ol.RotationConstraint","ol.Size","ol.View","ol.animation","ol.projection"]);
|
||||
goog.addDependency("src/ol/webgl/webgl.js",["ol.webgl","ol.webgl.WebGLContextEventType"],[]);goog.provide("goog.debug.Error");goog.debug.Error=function(opt_msg){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else this.stack=(new Error).stack||"";if(opt_msg)this.message=String(opt_msg)};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.provide("goog.string");goog.provide("goog.string.Unicode");goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(str,prefix){return str.lastIndexOf(prefix,0)==0};goog.string.endsWith=function(str,suffix){var l=str.length-suffix.length;return l>=0&&str.indexOf(suffix,l)==l};goog.string.caseInsensitiveStartsWith=function(str,prefix){return goog.string.caseInsensitiveCompare(prefix,str.substr(0,prefix.length))==0};
|
||||
goog.string.caseInsensitiveEndsWith=function(str,suffix){return goog.string.caseInsensitiveCompare(suffix,str.substr(str.length-suffix.length,suffix.length))==0};goog.string.subs=function(str,var_args){for(var i=1;i<arguments.length;i++){var replacement=String(arguments[i]).replace(/\$/g,"$$$$");str=str.replace(/\%s/,replacement)}return str};goog.string.collapseWhitespace=function(str){return str.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(str){return/^[\s\xa0]*$/.test(str)};
|
||||
goog.string.isEmptySafe=function(str){return goog.string.isEmpty(goog.string.makeSafe(str))};goog.string.isBreakingWhitespace=function(str){return!/[^\t\n\r ]/.test(str)};goog.string.isAlpha=function(str){return!/[^a-zA-Z]/.test(str)};goog.string.isNumeric=function(str){return!/[^0-9]/.test(str)};goog.string.isAlphaNumeric=function(str){return!/[^a-zA-Z0-9]/.test(str)};goog.string.isSpace=function(ch){return ch==" "};
|
||||
goog.string.isUnicodeChar=function(ch){return ch.length==1&&ch>=" "&&ch<="~"||ch>="\u0080"&&ch<="\ufffd"};goog.string.stripNewlines=function(str){return str.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(str){return str.replace(/(\r\n|\r|\n)/g,"\n")};goog.string.normalizeWhitespace=function(str){return str.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(str){return str.replace(/\xa0|[ \t]+/g," ")};
|
||||
@@ -1132,10 +1132,10 @@ goog.color.yiqBrightnessDiff_=function(rgb1,rgb2){return Math.abs(goog.color.yiq
|
||||
ol.Color.equals=function(color1,color2){return color1.r==color2.r&&color1.g==color2.g&&color1.b==color2.b&&color1.a==color2.a};goog.provide("ol.Size");goog.require("goog.math.Size");ol.Size=function(width,height){goog.base(this,width,height)};goog.inherits(ol.Size,goog.math.Size);ol.Size.prototype.equals=function(size){return this.width==size.width&&this.height==size.height};goog.provide("ol.Rectangle");goog.require("goog.asserts");goog.require("ol.Coordinate");goog.require("ol.Size");ol.Rectangle=function(minX,minY,maxX,maxY){goog.asserts.assert(minX<=maxX);goog.asserts.assert(minY<=maxY);this.minX=minX;this.minY=minY;this.maxX=maxX;this.maxY=maxY};ol.Rectangle.prototype.equals=function(rectangle){return this.minX==rectangle.minX&&this.minY==rectangle.minY&&this.maxX==rectangle.maxX&&this.maxY==rectangle.maxY};
|
||||
ol.Rectangle.prototype.extend=function(rectangle){this.minX=Math.min(this.minX,rectangle.minX);this.minY=Math.min(this.minY,rectangle.minY);this.maxX=Math.max(this.maxX,rectangle.maxX);this.maxY=Math.max(this.maxY,rectangle.maxY)};ol.Rectangle.prototype.getCenter=function(){return new ol.Coordinate((this.minX+this.maxX)/2,(this.minY+this.maxY)/2)};ol.Rectangle.prototype.getHeight=function(){return this.maxY-this.minY};ol.Rectangle.prototype.getSize=function(){return new ol.Size(this.getWidth(),this.getHeight())};
|
||||
ol.Rectangle.prototype.getWidth=function(){return this.maxX-this.minX};ol.Rectangle.prototype.intersects=function(rectangle){return this.minX<=rectangle.maxX&&this.maxX>=rectangle.minX&&this.minY<=rectangle.maxY&&this.maxY>=rectangle.minY};ol.Rectangle.prototype.normalize=function(coordinate){return new ol.Coordinate((coordinate.x-this.minX)/this.getWidth(),(coordinate.y-this.minY)/this.getHeight())};
|
||||
ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"};ol.Rectangle.prototype.scaleFromCenter=function(value){var deltaX=this.getWidth()/2*(value-1);var deltaY=this.getHeight()/2*(value-1);this.minX-=deltaX;this.minY-=deltaY;this.maxX+=deltaX;this.maxY+=deltaY};goog.provide("ol.TransformFunction");goog.require("ol.Coordinate");ol.TransformFunction;goog.provide("ol.Extent");goog.require("ol.Coordinate");goog.require("ol.Rectangle");goog.require("ol.TransformFunction");ol.Extent=function(minX,minY,maxX,maxY){goog.base(this,minX,minY,maxX,maxY)};goog.inherits(ol.Extent,ol.Rectangle);
|
||||
ol.Rectangle.prototype.toString=function(){return"("+[this.minX,this.minY,this.maxX,this.maxY].join(", ")+")"};ol.Rectangle.prototype.scaleFromCenter=function(value){var deltaX=this.getWidth()/2*(value-1);var deltaY=this.getHeight()/2*(value-1);this.minX-=deltaX;this.minY-=deltaY;this.maxX+=deltaX;this.maxY+=deltaY};goog.provide("ol.TransformFunction");ol.TransformFunction;goog.provide("ol.Extent");goog.require("ol.Coordinate");goog.require("ol.Rectangle");goog.require("ol.TransformFunction");ol.Extent=function(minX,minY,maxX,maxY){goog.base(this,minX,minY,maxX,maxY)};goog.inherits(ol.Extent,ol.Rectangle);
|
||||
ol.Extent.boundingExtent=function(var_args){var coordinate0=arguments[0];var extent=new ol.Extent(coordinate0.x,coordinate0.y,coordinate0.x,coordinate0.y);var i;for(i=1;i<arguments.length;++i){var coordinate=arguments[i];extent.minX=Math.min(extent.minX,coordinate.x);extent.minY=Math.min(extent.minY,coordinate.y);extent.maxX=Math.max(extent.maxX,coordinate.x);extent.maxY=Math.max(extent.maxY,coordinate.y)}return extent};
|
||||
ol.Extent.prototype.containsCoordinate=function(coordinate){return this.minX<=coordinate.x&&coordinate.x<=this.maxX&&this.minY<=coordinate.y&&coordinate.y<=this.maxY};ol.Extent.prototype.containsExtent=function(extent){return this.minX<=extent.minX&&extent.maxX<=this.maxX&&this.minY<=extent.minY&&extent.maxY<=this.maxY};ol.Extent.prototype.getBottomLeft=function(){return new ol.Coordinate(this.minX,this.minY)};ol.Extent.prototype.getBottomRight=function(){return new ol.Coordinate(this.maxX,this.minY)};
|
||||
ol.Extent.prototype.getTopLeft=function(){return new ol.Coordinate(this.minX,this.maxY)};ol.Extent.prototype.getTopRight=function(){return new ol.Coordinate(this.maxX,this.maxY)};ol.Extent.prototype.transform=function(transformFn){var a=transformFn(new ol.Coordinate(this.minX,this.minY));var b=transformFn(new ol.Coordinate(this.maxX,this.maxY));return new ol.Extent(Math.min(a.x,b.x),Math.min(a.y,b.y),Math.max(a.x,b.x),Math.max(a.y,b.y))};goog.provide("goog.vec.Float32Array");goog.vec.Float32Array=function(p0){this.length=p0.length||p0;for(var i=0;i<this.length;i++)this[i]=p0[i]||0};goog.vec.Float32Array.BYTES_PER_ELEMENT=4;goog.vec.Float32Array.prototype.BYTES_PER_ELEMENT=4;goog.vec.Float32Array.prototype.set=function(values,opt_offset){opt_offset=opt_offset||0;for(var i=0;i<values.length&&opt_offset+i<this.length;i++)this[opt_offset+i]=values[i]};goog.vec.Float32Array.prototype.toString=Array.prototype.join;
|
||||
ol.Extent.prototype.getTopLeft=function(){return new ol.Coordinate(this.minX,this.maxY)};ol.Extent.prototype.getTopRight=function(){return new ol.Coordinate(this.maxX,this.maxY)};ol.Extent.prototype.transform=function(transformFn){var input=[this.minX,this.minY,this.maxX,this.maxY];input=transformFn(input,input,2);return new ol.Extent(Math.min(input[0],input[2]),Math.min(input[1],input[3]),Math.max(input[0],input[2]),Math.max(input[1],input[3]))};goog.provide("goog.vec.Float32Array");goog.vec.Float32Array=function(p0){this.length=p0.length||p0;for(var i=0;i<this.length;i++)this[i]=p0[i]||0};goog.vec.Float32Array.BYTES_PER_ELEMENT=4;goog.vec.Float32Array.prototype.BYTES_PER_ELEMENT=4;goog.vec.Float32Array.prototype.set=function(values,opt_offset){opt_offset=opt_offset||0;for(var i=0;i<values.length&&opt_offset+i<this.length;i++)this[opt_offset+i]=values[i]};goog.vec.Float32Array.prototype.toString=Array.prototype.join;
|
||||
if(typeof Float32Array=="undefined"){goog.exportProperty(goog.vec.Float32Array,"BYTES_PER_ELEMENT",goog.vec.Float32Array.BYTES_PER_ELEMENT);goog.exportProperty(goog.vec.Float32Array.prototype,"BYTES_PER_ELEMENT",goog.vec.Float32Array.prototype.BYTES_PER_ELEMENT);goog.exportProperty(goog.vec.Float32Array.prototype,"set",goog.vec.Float32Array.prototype.set);goog.exportProperty(goog.vec.Float32Array.prototype,"toString",goog.vec.Float32Array.prototype.toString);goog.exportSymbol("Float32Array",goog.vec.Float32Array)};goog.provide("goog.vec.Float64Array");goog.vec.Float64Array=function(p0){this.length=p0.length||p0;for(var i=0;i<this.length;i++)this[i]=p0[i]||0};goog.vec.Float64Array.BYTES_PER_ELEMENT=8;goog.vec.Float64Array.prototype.BYTES_PER_ELEMENT=8;goog.vec.Float64Array.prototype.set=function(values,opt_offset){opt_offset=opt_offset||0;for(var i=0;i<values.length&&opt_offset+i<this.length;i++)this[opt_offset+i]=values[i]};goog.vec.Float64Array.prototype.toString=Array.prototype.join;
|
||||
if(typeof Float64Array=="undefined"){goog.exportProperty(goog.vec.Float64Array,"BYTES_PER_ELEMENT",goog.vec.Float64Array.BYTES_PER_ELEMENT);goog.exportProperty(goog.vec.Float64Array.prototype,"BYTES_PER_ELEMENT",goog.vec.Float64Array.prototype.BYTES_PER_ELEMENT);goog.exportProperty(goog.vec.Float64Array.prototype,"set",goog.vec.Float64Array.prototype.set);goog.exportProperty(goog.vec.Float64Array.prototype,"toString",goog.vec.Float64Array.prototype.toString);goog.exportSymbol("Float64Array",goog.vec.Float64Array)};goog.provide("goog.vec");goog.require("goog.vec.Float32Array");goog.require("goog.vec.Float64Array");goog.vec.Float32;goog.vec.Float64;goog.vec.Number;goog.vec.AnyType;goog.vec.ArrayType;goog.vec.EPSILON=1E-6;goog.provide("goog.vec.Vec3");goog.require("goog.vec");goog.vec.Vec3.Float32;goog.vec.Vec3.Float64;goog.vec.Vec3.Number;goog.vec.Vec3.AnyType;goog.vec.Vec3.Type;goog.vec.Vec3.Vec3Like;goog.vec.Vec3.createFloat32=function(){return new Float32Array(3)};goog.vec.Vec3.createFloat64=function(){return new Float64Array(3)};goog.vec.Vec3.createNumber=function(){var a=new Array(3);goog.vec.Vec3.setFromValues(a,0,0,0);return a};goog.vec.Vec3.create=function(){return new Float32Array(3)};
|
||||
goog.vec.Vec3.createFloat32FromArray=function(vec){var newVec=goog.vec.Vec3.createFloat32();goog.vec.Vec3.setFromArray(newVec,vec);return newVec};goog.vec.Vec3.createFloat32FromValues=function(v0,v1,v2){var a=goog.vec.Vec3.createFloat32();goog.vec.Vec3.setFromValues(a,v0,v1,v2);return a};goog.vec.Vec3.cloneFloat32=goog.vec.Vec3.createFloat32FromArray;goog.vec.Vec3.createFloat64FromArray=function(vec){var newVec=goog.vec.Vec3.createFloat64();goog.vec.Vec3.setFromArray(newVec,vec);return newVec};
|
||||
@@ -1216,9 +1216,23 @@ ol.TileQueue.prototype.getLeftChildIndex_=function(index){return index*2+1};ol.T
|
||||
ol.TileQueue.prototype.loadMoreTiles=function(){var tile;while(this.heap_.length>0&&this.tilesLoading_<this.maxTilesLoading_){tile=this.dequeue_();goog.events.listenOnce(tile,goog.events.EventType.CHANGE,this.handleTileChange,false,this);tile.load();++this.tilesLoading_}};
|
||||
ol.TileQueue.prototype.siftUp_=function(index){var heap=this.heap_;var count=heap.length;var node=heap[index];var startIndex=index;while(index<count>>1){var lIndex=this.getLeftChildIndex_(index);var rIndex=this.getRightChildIndex_(index);var smallerChildIndex=rIndex<count&&heap[rIndex][0]<heap[lIndex][0]?rIndex:lIndex;heap[index]=heap[smallerChildIndex];index=smallerChildIndex}heap[index]=node;this.siftDown_(startIndex,index)};
|
||||
ol.TileQueue.prototype.siftDown_=function(startIndex,index){var heap=this.heap_;var node=heap[index];while(index>startIndex){var parentIndex=this.getParentIndex_(index);if(heap[parentIndex][0]>node[0]){heap[index]=heap[parentIndex];index=parentIndex}else break}heap[index]=node};
|
||||
ol.TileQueue.prototype.reprioritize=function(){var heap=this.heap_;var i,n=0,node,priority,tile,tileCenter,tileKey,tileSourceKey;for(i=0;i<heap.length;++i){node=heap[i];tile=node[1];tileSourceKey=node[2];tileCenter=node[3];priority=this.tilePriorityFunction_(tile,tileSourceKey,tileCenter);if(priority==ol.TileQueue.DROP){tileKey=tile.getKey();delete this.queuedTileKeys_[tileKey]}else{node[0]=priority;heap[n++]=node}}heap.length=n;this.heapify_()};goog.provide("ol.Projection");goog.provide("ol.ProjectionUnits");goog.provide("ol.projection");goog.require("goog.array");goog.require("goog.asserts");goog.require("goog.object");goog.require("ol.Coordinate");goog.require("ol.Extent");goog.require("ol.TransformFunction");ol.ENABLE_PROJ4JS=true;ol.HAVE_PROJ4JS=ol.ENABLE_PROJ4JS&&typeof Proj4js=="object";ol.ProjectionUnits={DEGREES:"degrees",METERS:"m"};
|
||||
ol.Projection=function(code,units,extent,opt_axisOrientation){this.code_=code;this.units_=units;this.extent_=extent;this.axisOrientation_=goog.isDef(opt_axisOrientation)?opt_axisOrientation:"enu"};ol.Projection.prototype.getCode=function(){return this.code_};ol.Projection.prototype.getExtent=function(){return this.extent_};ol.Projection.prototype.getUnits=function(){return this.units_};ol.Projection.prototype.getAxisOrientation=function(){return this.axisOrientation_};
|
||||
ol.Proj4jsProjection_=function(code,proj4jsProj){var units=proj4jsProj.units;goog.base(this,code,units,null,proj4jsProj.axis);this.proj4jsProj_=proj4jsProj};goog.inherits(ol.Proj4jsProjection_,ol.Projection);ol.Proj4jsProjection_.prototype.getProj4jsProj=function(){return this.proj4jsProj_};ol.projection.proj4jsProjections_={};ol.projection.projections_={};ol.projection.transforms_={};
|
||||
ol.TileQueue.prototype.reprioritize=function(){var heap=this.heap_;var i,n=0,node,priority,tile,tileCenter,tileKey,tileSourceKey;for(i=0;i<heap.length;++i){node=heap[i];tile=node[1];tileSourceKey=node[2];tileCenter=node[3];priority=this.tilePriorityFunction_(tile,tileSourceKey,tileCenter);if(priority==ol.TileQueue.DROP){tileKey=tile.getKey();delete this.queuedTileKeys_[tileKey]}else{node[0]=priority;heap[n++]=node}}heap.length=n;this.heapify_()};/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
Licenced under CC-BY-3.0.
|
||||
*/
|
||||
goog.provide("ol.Sphere");goog.require("goog.math");goog.require("ol.Coordinate");ol.Sphere=function(radius){this.radius=radius};ol.Sphere.prototype.cosineDistance=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLon=goog.math.toRadians(c2.x-c1.x);return this.radius*Math.acos(Math.sin(lat1)*Math.sin(lat2)+Math.cos(lat1)*Math.cos(lat2)*Math.cos(deltaLon))};
|
||||
ol.Sphere.prototype.crossTrackDistance=function(c1,c2,c3){var d12=this.cosineDistance(c1,c2);var d13=this.cosineDistance(c1,c2);var theta12=goog.math.toRadians(this.initialBearing(c1,c2));var theta13=goog.math.toRadians(this.initialBearing(c1,c3));return this.radius*Math.asin(Math.sin(d13/this.radius)*Math.sin(theta13-theta12))};
|
||||
ol.Sphere.prototype.equirectangularDistance=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLon=goog.math.toRadians(c2.x-c1.x);var x=deltaLon*Math.cos((lat1+lat2)/2);var y=lat2-lat1;return this.radius*Math.sqrt(x*x+y*y)};ol.Sphere.prototype.finalBearing=function(c1,c2){return(this.initialBearing(c2,c1)+180)%360};
|
||||
ol.Sphere.prototype.haversineDistance=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLatBy2=(lat2-lat1)/2;var deltaLonBy2=goog.math.toRadians(c2.x-c1.x)/2;var a=Math.sin(deltaLatBy2)*Math.sin(deltaLatBy2)+Math.sin(deltaLonBy2)*Math.sin(deltaLonBy2)*Math.cos(lat1)*Math.cos(lat2);return 2*this.radius*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))};
|
||||
ol.Sphere.prototype.initialBearing=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLon=goog.math.toRadians(c2.x-c1.x);var y=Math.sin(deltaLon)*Math.cos(lat2);var x=Math.cos(lat1)*Math.sin(lat2)-Math.sin(lat1)*Math.cos(lat2)*Math.cos(deltaLon);return goog.math.toDegrees(Math.atan2(y,x))};ol.Sphere.prototype.maximumLatitude=function(bearing,latitude){return Math.cos(Math.abs(Math.sin(goog.math.toRadians(bearing))*Math.cos(goog.math.toRadians(latitude))))};
|
||||
ol.Sphere.prototype.midpoint=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var lon1=goog.math.toRadians(c1.x);var deltaLon=goog.math.toRadians(c2.x-c1.x);var Bx=Math.cos(lat2)*Math.cos(deltaLon);var By=Math.cos(lat2)*Math.sin(deltaLon);var cosLat1PlusBx=Math.cos(lat1)+Bx;var lat=Math.atan2(Math.sin(lat1)+Math.sin(lat2),Math.sqrt(cosLat1PlusBx*cosLat1PlusBx+By*By));var lon=lon1+Math.atan2(By,cosLat1PlusBx);return new ol.Coordinate(goog.math.toDegrees(lon),goog.math.toDegrees(lat))};
|
||||
ol.Sphere.prototype.offset=function(c1,distance,bearing){var lat1=goog.math.toRadians(c1.y);var lon1=goog.math.toRadians(c1.x);var dByR=distance/this.radius;var lat=Math.asin(Math.sin(lat1)*Math.cos(dByR)+Math.cos(lat1)*Math.sin(dByR)*Math.cos(bearing));var lon=lon1+Math.atan2(Math.sin(bearing)*Math.sin(dByR)*Math.cos(lat1),Math.cos(dByR)-Math.sin(lat1)*Math.sin(lat));return new ol.Coordinate(goog.math.toDegrees(lon),goog.math.toDegrees(lat))};goog.provide("ol.sphere.NORMAL");goog.require("ol.Sphere");ol.sphere.NORMAL=new ol.Sphere(6370997);goog.provide("ol.Projection");goog.provide("ol.ProjectionUnits");goog.provide("ol.projection");goog.require("goog.array");goog.require("goog.asserts");goog.require("goog.object");goog.require("ol.Coordinate");goog.require("ol.Extent");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.Projection=function(code,units,extent,opt_axisOrientation){this.code_=code;this.units_=units;this.extent_=extent;this.axisOrientation_=goog.isDef(opt_axisOrientation)?opt_axisOrientation:"enu"};ol.Projection.prototype.getCode=function(){return this.code_};ol.Projection.prototype.getExtent=function(){return this.extent_};ol.Projection.prototype.getPointResolution=goog.abstractMethod;ol.Projection.prototype.getUnits=function(){return this.units_};ol.Projection.prototype.getAxisOrientation=function(){return this.axisOrientation_};
|
||||
ol.Proj4jsProjection_=function(code,proj4jsProj){var units=proj4jsProj.units;goog.base(this,code,units,null,proj4jsProj.axis);this.proj4jsProj_=proj4jsProj;this.toEPSG4326_=null};goog.inherits(ol.Proj4jsProjection_,ol.Projection);
|
||||
ol.Proj4jsProjection_.prototype.getPointResolution=function(resolution,point){if(this.getUnits()==ol.ProjectionUnits.DEGREES)return resolution;else{if(goog.isNull(this.toEPSG4326_))this.toEPSG4326_=ol.projection.getTransform(this,ol.projection.getProj4jsProjectionFromCode_("EPSG:4326"));var vertices=[point.x-resolution/2,point.y,point.x+resolution/2,point.y,point.x,point.y-resolution/2,point.x,point.y+resolution/2];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}};ol.Proj4jsProjection_.prototype.getProj4jsProj=function(){return this.proj4jsProj_};ol.projection.proj4jsProjections_={};ol.projection.projections_={};ol.projection.transforms_={};
|
||||
ol.projection.addEquivalentProjections=function(projections){ol.projection.addProjections(projections);goog.array.forEach(projections,function(source){goog.array.forEach(projections,function(destination){if(source!==destination)ol.projection.addTransform(source,destination,ol.projection.cloneTransform)})})};
|
||||
ol.projection.addEquivalentTransforms=function(projections1,projections2,forwardTransform,inverseTransform){goog.array.forEach(projections1,function(projection1){goog.array.forEach(projections2,function(projection2){ol.projection.addTransform(projection1,projection2,forwardTransform);ol.projection.addTransform(projection2,projection1,inverseTransform)})})};
|
||||
ol.projection.addProj4jsProjection_=function(proj4jsProjection){var proj4jsProjections=ol.projection.proj4jsProjections_;var code=proj4jsProjection.getCode();goog.asserts.assert(!goog.object.containsKey(proj4jsProjections,code));proj4jsProjections[code]=proj4jsProjection};
|
||||
@@ -1230,9 +1244,11 @@ ol.projection.getFromCode=function(code){var projection=ol.projection.projection
|
||||
ol.projection.getProj4jsProjectionFromCode_=function(code){var proj4jsProjections=ol.projection.proj4jsProjections_;var proj4jsProjection=proj4jsProjections[code];if(!goog.isDef(proj4jsProjection)){var proj4jsProj=new Proj4js.Proj(code);proj4jsProjection=new ol.Proj4jsProjection_(code,proj4jsProj);proj4jsProjections[code]=proj4jsProjection}return proj4jsProjection};
|
||||
ol.projection.equivalent=function(projection1,projection2){if(projection1===projection2)return true;else if(projection1.getUnits()!=projection2.getUnits())return false;else{var transformFn=ol.projection.getTransform(projection1,projection2);return transformFn===ol.projection.cloneTransform}};
|
||||
ol.projection.getTransform=function(source,destination){var transforms=ol.projection.transforms_;var sourceCode=source.getCode();var destinationCode=destination.getCode();var transform;if(goog.object.containsKey(transforms,sourceCode)&&goog.object.containsKey(transforms[sourceCode],destinationCode))transform=transforms[sourceCode][destinationCode];if(ol.HAVE_PROJ4JS&&!goog.isDef(transform)){var proj4jsSource;if(source instanceof ol.Proj4jsProjection_)proj4jsSource=source;else proj4jsSource=ol.projection.getProj4jsProjectionFromCode_(source.getCode());
|
||||
var sourceProj4jsProj=proj4jsSource.getProj4jsProj();var proj4jsDestination;if(destination instanceof ol.Proj4jsProjection_)proj4jsDestination=destination;else proj4jsDestination=ol.projection.getProj4jsProjectionFromCode_(destination.getCode());var destinationProj4jsProj=proj4jsDestination.getProj4jsProj();transform=function(coordinate){var proj4jsPoint=new Proj4js.Point(coordinate.x,coordinate.y);proj4jsPoint=Proj4js.transform(sourceProj4jsProj,destinationProj4jsProj,proj4jsPoint);return new ol.Coordinate(proj4jsPoint.x,
|
||||
proj4jsPoint.y)};ol.projection.addTransform(source,destination,transform)}if(!goog.isDef(transform)){goog.asserts.assert(goog.isDef(transform));transform=ol.projection.identityTransform}return transform};ol.projection.getTransformFromCodes=function(sourceCode,destinationCode){var source=ol.projection.getFromCode(sourceCode);var destination=ol.projection.getFromCode(destinationCode);return ol.projection.getTransform(source,destination)};ol.projection.identityTransform=function(point){return point};
|
||||
ol.projection.cloneTransform=function(point){return new ol.Coordinate(point.x,point.y)};ol.projection.transform=function(point,source,destination){var transformFn=ol.projection.getTransform(source,destination);return transformFn(point)};ol.projection.transformWithCodes=function(point,sourceCode,destinationCode){var transformFn=ol.projection.getTransformFromCodes(sourceCode,destinationCode);return transformFn(point)};goog.provide("ol.IView2D");goog.provide("ol.View2DState");goog.require("ol.Coordinate");goog.require("ol.Projection");ol.View2DState;ol.IView2D=function(){};ol.IView2D.prototype.getCenter=function(){};ol.IView2D.prototype.getProjection=function(){};ol.IView2D.prototype.getResolution=function(){};ol.IView2D.prototype.getRotation=function(){};ol.IView2D.prototype.getView2DState=function(){};goog.provide("ol.source.Source");goog.require("goog.events.EventTarget");goog.require("goog.events.EventType");goog.require("goog.functions");goog.require("ol.Attribution");goog.require("ol.Extent");goog.require("ol.Projection");ol.source.SourceOptions;
|
||||
var sourceProj4jsProj=proj4jsSource.getProj4jsProj();var proj4jsDestination;if(destination instanceof ol.Proj4jsProjection_)proj4jsDestination=destination;else proj4jsDestination=ol.projection.getProj4jsProjectionFromCode_(destination.getCode());var destinationProj4jsProj=proj4jsDestination.getProj4jsProj();transform=function(input,opt_output,opt_dimension){var length=input.length,dimension=opt_dimension>1?opt_dimension:2,output=opt_output;if(!goog.isDef(output))if(dimension>2)output=input.slice();
|
||||
else output=new Array(length);goog.asserts.assert(output.length%dimension===0);var proj4jsPoint;for(var i=0;i<length;i+=dimension){proj4jsPoint=new Proj4js.Point(input[i],input[i+1]);proj4jsPoint=Proj4js.transform(sourceProj4jsProj,destinationProj4jsProj,proj4jsPoint);output[i]=proj4jsPoint.x;output[i+1]=proj4jsPoint.y}return output};ol.projection.addTransform(source,destination,transform)}if(!goog.isDef(transform)){goog.asserts.assert(goog.isDef(transform));transform=ol.projection.identityTransform}return transform};
|
||||
ol.projection.getTransformFromCodes=function(sourceCode,destinationCode){var source=ol.projection.getFromCode(sourceCode);var destination=ol.projection.getFromCode(destinationCode);return ol.projection.getTransform(source,destination)};ol.projection.identityTransform=function(input,opt_output,opt_dimension){if(goog.isDef(opt_output)&&input!==opt_output){goog.asserts.assert(false,"This should not be used internally.");for(var i=0,ii=input.length;i<ii;++i)opt_output[i]=input[i];input=opt_output}return input};
|
||||
ol.projection.cloneTransform=function(input,opt_output,opt_dimension){var output;if(goog.isDef(opt_output)){for(var i=0,ii=input.length;i<ii;++i)opt_output[i]=input[i];output=opt_output}else output=input.slice();return output};ol.projection.transform=function(point,source,destination){var transformFn=ol.projection.getTransform(source,destination);var vertex=[point.x,point.y];vertex=transformFn(vertex,vertex,2);return new ol.Coordinate(vertex[0],vertex[1])};
|
||||
ol.projection.transformWithCodes=function(point,sourceCode,destinationCode){var transformFn=ol.projection.getTransformFromCodes(sourceCode,destinationCode);var vertex=[point.x,point.y];vertex=transformFn(vertex,vertex,2);return new ol.Coordinate(vertex[0],vertex[1])};goog.provide("ol.IView2D");goog.provide("ol.View2DState");goog.require("ol.Coordinate");goog.require("ol.Projection");ol.View2DState;ol.IView2D=function(){};ol.IView2D.prototype.getCenter=function(){};ol.IView2D.prototype.getProjection=function(){};ol.IView2D.prototype.getResolution=function(){};ol.IView2D.prototype.getRotation=function(){};ol.IView2D.prototype.getView2DState=function(){};goog.provide("ol.source.Source");goog.require("goog.events.EventTarget");goog.require("goog.events.EventType");goog.require("goog.functions");goog.require("ol.Attribution");goog.require("ol.Extent");goog.require("ol.Projection");ol.source.SourceOptions;
|
||||
ol.source.Source=function(sourceOptions){goog.base(this);this.projection_=goog.isDef(sourceOptions.projection)?sourceOptions.projection:null;this.extent_=goog.isDef(sourceOptions.extent)?sourceOptions.extent:sourceOptions.projection.getExtent();this.attributions_=goog.isDef(sourceOptions.attributions)?sourceOptions.attributions:null};goog.inherits(ol.source.Source,goog.events.EventTarget);ol.source.Source.prototype.dispatchLoadEvent=function(){this.dispatchEvent(goog.events.EventType.LOAD)};
|
||||
ol.source.Source.prototype.getAttributions=function(){return this.attributions_};ol.source.Source.prototype.getExtent=function(){return this.extent_};ol.source.Source.prototype.getProjection=function(){return this.projection_};ol.source.Source.prototype.getResolutions=goog.abstractMethod;ol.source.Source.prototype.isReady=goog.functions.TRUE;ol.source.Source.prototype.setAttributions=function(attributions){this.attributions_=attributions};
|
||||
ol.source.Source.prototype.setExtent=function(extent){this.extent_=extent};ol.source.Source.prototype.setProjection=function(projection){this.projection_=projection};goog.provide("ol.layer.Layer");goog.provide("ol.layer.LayerProperty");goog.provide("ol.layer.LayerState");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("goog.math");goog.require("ol.Object");goog.require("ol.source.Source");ol.layer.LayerProperty={BRIGHTNESS:"brightness",CONTRAST:"contrast",HUE:"hue",OPACITY:"opacity",SATURATION:"saturation",VISIBLE:"visible"};ol.layer.LayerState;
|
||||
@@ -1245,7 +1261,7 @@ ol.layer.Layer.prototype.getVisible=function(){return this.get(ol.layer.LayerPro
|
||||
ol.layer.Layer.prototype.setBrightness=function(brightness){brightness=goog.math.clamp(brightness,-1,1);if(brightness!=this.getBrightness())this.set(ol.layer.LayerProperty.BRIGHTNESS,brightness)};goog.exportProperty(ol.layer.Layer.prototype,"setBrightness",ol.layer.Layer.prototype.setBrightness);ol.layer.Layer.prototype.setContrast=function(contrast){contrast=Math.max(0,contrast);if(contrast!=this.getContrast())this.set(ol.layer.LayerProperty.CONTRAST,contrast)};
|
||||
goog.exportProperty(ol.layer.Layer.prototype,"setContrast",ol.layer.Layer.prototype.setContrast);ol.layer.Layer.prototype.setHue=function(hue){if(hue!=this.getHue())this.set(ol.layer.LayerProperty.HUE,hue)};goog.exportProperty(ol.layer.Layer.prototype,"setHue",ol.layer.Layer.prototype.setHue);ol.layer.Layer.prototype.setOpacity=function(opacity){opacity=goog.math.clamp(opacity,0,1);if(opacity!=this.getOpacity())this.set(ol.layer.LayerProperty.OPACITY,opacity)};
|
||||
goog.exportProperty(ol.layer.Layer.prototype,"setOpacity",ol.layer.Layer.prototype.setOpacity);ol.layer.Layer.prototype.setSaturation=function(saturation){saturation=Math.max(0,saturation);if(saturation!=this.getSaturation())this.set(ol.layer.LayerProperty.SATURATION,saturation)};goog.exportProperty(ol.layer.Layer.prototype,"setSaturation",ol.layer.Layer.prototype.setSaturation);
|
||||
ol.layer.Layer.prototype.setVisible=function(visible){visible=!!visible;if(visible!=this.getVisible())this.set(ol.layer.LayerProperty.VISIBLE,visible)};goog.exportProperty(ol.layer.Layer.prototype,"setVisible",ol.layer.Layer.prototype.setVisible);goog.provide("ol.FrameState");goog.provide("ol.PostRenderFunction");goog.provide("ol.PreRenderFunction");goog.require("goog.vec.Mat4");goog.require("ol.Attribution");goog.require("ol.Color");goog.require("ol.Extent");goog.require("ol.Size");goog.require("ol.TileQueue");goog.require("ol.TileRange");goog.require("ol.View2DState");goog.require("ol.layer.Layer");goog.require("ol.layer.LayerState");ol.FrameState;ol.PostRenderFunction;ol.PreRenderFunction;goog.provide("ol.IView3D");ol.IView3D=function(){};goog.provide("ol.IView");goog.require("ol.IView2D");goog.require("ol.IView3D");ol.IView=function(){};ol.IView.prototype.getView2D=function(){};ol.IView.prototype.getView3D=function(){};goog.provide("goog.fx.easing");goog.fx.easing.easeIn=function(t){return t*t*t};goog.fx.easing.easeOut=function(t){return 1-Math.pow(1-t,3)};goog.fx.easing.inAndOut=function(t){return 3*t*t-2*t*t*t};goog.provide("ol.View");goog.provide("ol.ViewHint");goog.require("goog.array");goog.require("ol.IView");goog.require("ol.Object");ol.ViewHint={ANIMATING:0,PANNING:1};ol.View=function(){goog.base(this);this.hints_=[0,0]};goog.inherits(ol.View,ol.Object);ol.View.prototype.getHints=function(){return goog.array.clone(this.hints_)};ol.View.prototype.getView2D=goog.abstractMethod;ol.View.prototype.getView3D=goog.abstractMethod;
|
||||
ol.layer.Layer.prototype.setVisible=function(visible){visible=!!visible;if(visible!=this.getVisible())this.set(ol.layer.LayerProperty.VISIBLE,visible)};goog.exportProperty(ol.layer.Layer.prototype,"setVisible",ol.layer.Layer.prototype.setVisible);goog.provide("ol.FrameState");goog.provide("ol.PostRenderFunction");goog.provide("ol.PreRenderFunction");goog.require("goog.vec.Mat4");goog.require("ol.Attribution");goog.require("ol.Color");goog.require("ol.Extent");goog.require("ol.Size");goog.require("ol.TileQueue");goog.require("ol.TileRange");goog.require("ol.View2DState");goog.require("ol.layer.Layer");goog.require("ol.layer.LayerState");ol.FrameState;ol.PostRenderFunction;ol.PreRenderFunction;goog.provide("ol.IView3D");ol.IView3D=function(){};goog.provide("ol.IView");goog.require("ol.IView2D");goog.require("ol.IView3D");ol.IView=function(){};ol.IView.prototype.getView2D=function(){};ol.IView.prototype.getView3D=function(){};goog.provide("goog.fx.easing");goog.fx.easing.easeIn=function(t){return t*t*t};goog.fx.easing.easeOut=function(t){return 1-Math.pow(1-t,3)};goog.fx.easing.inAndOut=function(t){return 3*t*t-2*t*t*t};goog.provide("ol.View");goog.provide("ol.ViewHint");goog.require("goog.array");goog.require("ol.IView");goog.require("ol.Object");ol.ViewHint={ANIMATING:0,INTERACTING:1};ol.View=function(){goog.base(this);this.hints_=[0,0]};goog.inherits(ol.View,ol.Object);ol.View.prototype.getHints=function(){return goog.array.clone(this.hints_)};ol.View.prototype.getView2D=goog.abstractMethod;ol.View.prototype.getView3D=goog.abstractMethod;
|
||||
ol.View.prototype.setHint=function(hint,delta){goog.asserts.assert(0<=hint&&hint<this.hints_.length);this.hints_[hint]+=delta;goog.asserts.assert(this.hints_[hint]>=0)};goog.provide("ol.easing");ol.easing.linear=function(t){return t};ol.easing.upAndDown=function(t){if(t<0.5)return goog.fx.easing.inAndOut(2*t);else return 1-goog.fx.easing.inAndOut(2*(t-0.5))};ol.easing.elastic=function(t){return Math.pow(2,-10*t)*Math.sin((t-0.075)*2*Math.PI/0.3)+1};ol.easing.bounce=function(t){var s=7.5625,p=2.75,l;if(t<1/p)l=s*t*t;else if(t<2/p){t-=1.5/p;l=s*t*t+0.75}else if(t<2.5/p){t-=2.25/p;l=s*t*t+0.9375}else{t-=2.625/p;l=s*t*t+0.984375}return l};goog.provide("ol.animation");goog.require("goog.fx.easing");goog.require("ol.PreRenderFunction");goog.require("ol.ViewHint");goog.require("ol.easing");
|
||||
ol.animation.bounce=function(options){var resolution=options.resolution;var start=goog.isDef(options.start)?options.start:goog.now();var duration=goog.isDef(options.duration)?options.duration:1E3;var easing=goog.isDef(options.easing)?options.easing:ol.easing.upAndDown;return function(map,frameState){if(frameState.time<start){frameState.animate=true;frameState.viewHints[ol.ViewHint.ANIMATING]+=1;return true}else if(frameState.time<start+duration){var delta=easing((frameState.time-start)/duration);
|
||||
var deltaResolution=resolution-frameState.view2DState.resolution;frameState.animate=true;frameState.view2DState.resolution+=delta*deltaResolution;frameState.viewHints[ol.ViewHint.ANIMATING]+=1;return true}else return false}};
|
||||
@@ -1262,7 +1278,7 @@ ol.MapBrowserEvent=function(type,map,browserEvent,opt_frameState){goog.base(this
|
||||
ol.MapBrowserEvent.prototype.getPixel=function(){if(goog.isNull(this.pixel_)){var eventPosition=goog.style.getRelativePosition(this.browserEvent,this.map.getViewport());this.pixel_=new ol.Pixel(eventPosition.x,eventPosition.y)}return this.pixel_};ol.MapBrowserEvent.prototype.isMouseActionButton=function(){return ol.BrowserFeature.HAS_TOUCH||this.browserEvent.isMouseActionButton()};
|
||||
ol.MapBrowserEventHandler=function(map){this.map_=map;this.previous_=null;this.dragged_=false;this.timestamp_=null;this.clickListenerKey_=null;this.downListenerKey_=null;this.dragListenerKeys_=null;this.touchListenerKeys_=null;this.down_=null;var element=this.map_.getViewport();this.clickListenerKey_=goog.events.listen(element,[goog.events.EventType.CLICK,goog.events.EventType.DBLCLICK],this.click_,false,this);this.downListenerKey_=goog.events.listen(element,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_,
|
||||
false,this);this.touchListenerKeys_=[goog.events.listen(element,[goog.events.EventType.TOUCHSTART,ol.MapBrowserEvent.IEEventType.MSPOINTERDOWN],this.handleTouchStart_,false,this),goog.events.listen(element,[goog.events.EventType.TOUCHMOVE,ol.MapBrowserEvent.IEEventType.MSPOINTERMOVE],this.handleTouchMove_,false,this),goog.events.listen(element,[goog.events.EventType.TOUCHEND,ol.MapBrowserEvent.IEEventType.MSPOINTERUP],this.handleTouchEnd_,false,this)]};goog.inherits(ol.MapBrowserEventHandler,goog.events.EventTarget);
|
||||
ol.MapBrowserEventHandler.prototype.click_=function(browserEvent){if(!this.dragged_){var newEvent;var type=browserEvent.type;if(this.timestamp_==0||type==goog.events.EventType.DBLCLICK){newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DBLCLICK,this.map_,browserEvent);this.dispatchEvent(newEvent)}else if(type==goog.events.EventType.CLICK){newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.CLICK,this.map_,browserEvent);this.dispatchEvent(newEvent)}}};
|
||||
ol.MapBrowserEventHandler.prototype.click_=function(browserEvent){if(!this.dragged_){var newEvent;var type=browserEvent.type;if(this.timestamp_==0||type==goog.events.EventType.DBLCLICK){newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DBLCLICK,this.map_,browserEvent);this.dispatchEvent(newEvent)}else{newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.CLICK,this.map_,browserEvent);this.dispatchEvent(newEvent)}}};
|
||||
ol.MapBrowserEventHandler.prototype.handleMouseUp_=function(browserEvent){if(this.previous_){this.down_=null;goog.array.forEach(this.dragListenerKeys_,goog.events.unlistenByKey);this.dragListenerKeys_=null;this.previous_=null;if(this.dragged_){var newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGEND,this.map_,browserEvent);this.dispatchEvent(newEvent)}}};
|
||||
ol.MapBrowserEventHandler.prototype.handleMouseDown_=function(browserEvent){var newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DOWN,this.map_,browserEvent);this.dispatchEvent(newEvent);if(!this.previous_){this.down_=browserEvent;this.previous_={clientX:browserEvent.clientX,clientY:browserEvent.clientY};this.dragged_=false;this.dragListenerKeys_=[goog.events.listen(document,goog.events.EventType.MOUSEMOVE,this.handleMouseMove_,false,this),goog.events.listen(document,goog.events.EventType.MOUSEUP,
|
||||
this.handleMouseUp_,false,this)];browserEvent.preventDefault()}};ol.MapBrowserEventHandler.prototype.handleMouseMove_=function(browserEvent){var newEvent;if(!this.dragged_){this.dragged_=true;newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAGSTART,this.map_,this.down_);this.dispatchEvent(newEvent)}this.previous_={clientX:browserEvent.clientX,clientY:browserEvent.clientY};newEvent=new ol.MapBrowserEvent(ol.MapBrowserEvent.EventType.DRAG,this.map_,browserEvent);this.dispatchEvent(newEvent)};
|
||||
@@ -1297,8 +1313,8 @@ ol.control.Attribution.prototype.updateElement_=function(frameState){if(goog.isN
|
||||
i;for(i=0;i<attributions.length;++i){attribution=attributions[i];attributionKey=goog.getUid(attribution).toString();attributionsToRemove[attributionKey]=true}}});var attributions=goog.object.clone(frameState.attributions);var tileSourceAttributions=this.getTileSourceAttributions(frameState.usedTiles,sources);goog.object.extend(attributions,tileSourceAttributions);var attributionKeys=goog.array.map(goog.object.getKeys(attributions),Number);goog.array.sort(attributionKeys);var i,attributionElement,
|
||||
attributionKey;for(i=0;i<attributionKeys.length;++i){attributionKey=attributionKeys[i].toString();if(attributionKey in this.attributionElements_){if(!this.attributionElementRenderedVisible_[attributionKey]){goog.style.showElement(this.attributionElements_[attributionKey],true);this.attributionElementRenderedVisible_[attributionKey]=true}}else{attributionElement=goog.dom.createElement(goog.dom.TagName.LI);attributionElement.innerHTML=attributions[attributionKey].getHTML();goog.dom.appendChild(this.ulElement_,
|
||||
attributionElement);this.attributionElements_[attributionKey]=attributionElement;this.attributionElementRenderedVisible_[attributionKey]=true}delete attributionsToRemove[attributionKey]}for(attributionKey in attributionsToRemove){goog.dom.removeNode(this.attributionElements_[attributionKey]);delete this.attributionElements_[attributionKey];delete this.attributionElementRenderedVisible_[attributionKey]}var renderVisible=!goog.array.isEmpty(attributionKeys);if(this.renderedVisible_!=renderVisible){goog.style.showElement(this.element,
|
||||
renderVisible);this.renderedVisible_=renderVisible}};goog.provide("ol.control.Zoom");goog.require("goog.dom");goog.require("goog.dom.TagName");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("ol.BrowserFeature");goog.require("ol.control.Control");ol.control.ZOOM_DURATION=250;
|
||||
ol.control.Zoom=function(zoomOptions){var eventType=ol.BrowserFeature.HAS_TOUCH?goog.events.EventType.TOUCHEND:goog.events.EventType.CLICK;var inElement=goog.dom.createDom(goog.dom.TagName.A,{"href":"#zoomIn","class":"ol-zoom-in"});goog.events.listen(inElement,eventType,this.handleIn_,false,this);var outElement=goog.dom.createDom(goog.dom.TagName.A,{"href":"#zoomOut","class":"ol-zoom-out"});goog.events.listen(outElement,eventType,this.handleOut_,false,this);var element=goog.dom.createDom(goog.dom.TagName.DIV,
|
||||
renderVisible);this.renderedVisible_=renderVisible}};goog.provide("ol.control.Zoom");goog.require("goog.dom");goog.require("goog.dom.TagName");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("ol.control.Control");ol.control.ZOOM_DURATION=250;
|
||||
ol.control.Zoom=function(zoomOptions){var inElement=goog.dom.createDom(goog.dom.TagName.A,{"href":"#zoomIn","class":"ol-zoom-in"});goog.events.listen(inElement,[goog.events.EventType.TOUCHEND,goog.events.EventType.CLICK],this.handleIn_,false,this);var outElement=goog.dom.createDom(goog.dom.TagName.A,{"href":"#zoomOut","class":"ol-zoom-out"});goog.events.listen(outElement,[goog.events.EventType.TOUCHEND,goog.events.EventType.CLICK],this.handleOut_,false,this);var element=goog.dom.createDom(goog.dom.TagName.DIV,
|
||||
"ol-zoom ol-unselectable",inElement,outElement);goog.base(this,{element:element,map:zoomOptions.map,target:zoomOptions.target});this.delta_=goog.isDef(zoomOptions.delta)?zoomOptions.delta:1};goog.inherits(ol.control.Zoom,ol.control.Control);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)};
|
||||
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)};goog.provide("ol.interaction.Interaction");goog.require("ol.MapBrowserEvent");ol.interaction.Interaction=function(){};ol.interaction.Interaction.prototype.handleMapBrowserEvent=goog.abstractMethod;goog.provide("ol.interaction.DblClickZoom");goog.require("ol.MapBrowserEvent");goog.require("ol.MapBrowserEvent.EventType");goog.require("ol.View2D");goog.require("ol.interaction.Interaction");ol.interaction.DblClickZoom=function(delta){this.delta_=delta;goog.base(this)};goog.inherits(ol.interaction.DblClickZoom,ol.interaction.Interaction);
|
||||
ol.interaction.DblClickZoom.prototype.handleMapBrowserEvent=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;if(mapBrowserEvent.type==ol.MapBrowserEvent.EventType.DBLCLICK&&mapBrowserEvent.isMouseActionButton()){var map=mapBrowserEvent.map;var anchor=mapBrowserEvent.getCoordinate();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);mapBrowserEvent.preventDefault();
|
||||
@@ -1311,8 +1327,8 @@ goog.events.BrowserEvent);this.startX=browserEvent.clientX;this.startY=browserEv
|
||||
goog.inherits(ol.interaction.DragPan,ol.interaction.Drag);
|
||||
ol.interaction.DragPan.prototype.handleDrag=function(mapBrowserEvent){if(this.kinetic_)this.kinetic_.update(mapBrowserEvent.browserEvent.clientX,mapBrowserEvent.browserEvent.clientY);var map=mapBrowserEvent.map;var view=map.getView();goog.asserts.assert(view instanceof ol.View2D);var resolution=view.getResolution();var rotation=view.getRotation();var delta=new ol.Coordinate(-resolution*this.deltaX,resolution*this.deltaY);delta.rotate(rotation);var newCenter=new ol.Coordinate(this.startCenter.x+delta.x,
|
||||
this.startCenter.y+delta.y);map.requestRenderFrame();view.setCenter(newCenter)};
|
||||
ol.interaction.DragPan.prototype.handleDragEnd=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();view.setHint(ol.ViewHint.PANNING,-1);if(this.kinetic_&&this.kinetic_.end()){var distance=this.kinetic_.getDistance();var angle=this.kinetic_.getAngle();var center=view.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(center);map.addPreRenderFunction(this.kineticPreRenderFn_);var centerpx=map.getPixelFromCoordinate(center);var destpx=new ol.Pixel(centerpx.x-distance*Math.cos(angle),
|
||||
centerpx.y-distance*Math.sin(angle));var dest=map.getCoordinateFromPixel(destpx);view.setCenter(dest)}};ol.interaction.DragPan.prototype.handleDragStart=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;if(this.condition_(browserEvent)){if(this.kinetic_){this.kinetic_.begin();this.kinetic_.update(browserEvent.clientX,browserEvent.clientY)}var map=mapBrowserEvent.map;map.requestRenderFrame();map.getView().setHint(ol.ViewHint.PANNING,1);return true}else return false};
|
||||
ol.interaction.DragPan.prototype.handleDragEnd=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();view.setHint(ol.ViewHint.INTERACTING,-1);if(this.kinetic_&&this.kinetic_.end()){var distance=this.kinetic_.getDistance();var angle=this.kinetic_.getAngle();var center=view.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(center);map.addPreRenderFunction(this.kineticPreRenderFn_);var centerpx=map.getPixelFromCoordinate(center);var destpx=new ol.Pixel(centerpx.x-distance*
|
||||
Math.cos(angle),centerpx.y-distance*Math.sin(angle));var dest=map.getCoordinateFromPixel(destpx);view.setCenter(dest)}};ol.interaction.DragPan.prototype.handleDragStart=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;if(this.condition_(browserEvent)){if(this.kinetic_){this.kinetic_.begin();this.kinetic_.update(browserEvent.clientX,browserEvent.clientY)}var map=mapBrowserEvent.map;map.requestRenderFrame();map.getView().setHint(ol.ViewHint.INTERACTING,1);return true}else return false};
|
||||
ol.interaction.DragPan.prototype.handleDown=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();goog.asserts.assert(view instanceof ol.View2D);goog.asserts.assert(!goog.isNull(mapBrowserEvent.frameState));if(!goog.isNull(this.kineticPreRenderFn_)&&map.removePreRenderFunction(this.kineticPreRenderFn_)){map.requestRenderFrame();view.setCenter(mapBrowserEvent.frameState.view2DState.center);this.kineticPreRenderFn_=null}};goog.provide("ol.interaction.DragRotate");goog.require("ol.View2D");goog.require("ol.interaction.ConditionType");goog.require("ol.interaction.Drag");ol.interaction.DragRotate=function(condition){goog.base(this);this.condition_=condition;this.lastAngle_};goog.inherits(ol.interaction.DragRotate,ol.interaction.Drag);
|
||||
ol.interaction.DragRotate.prototype.handleDrag=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;var map=mapBrowserEvent.map;var size=map.getSize();var offset=mapBrowserEvent.getPixel();var theta=Math.atan2(size.height/2-offset.y,offset.x-size.width/2);if(goog.isDef(this.lastAngle_)){var delta=theta-this.lastAngle_;var view=map.getView();goog.asserts.assert(view instanceof ol.View2D);map.requestRenderFrame();view.rotate(map,view.getRotation()-delta)}this.lastAngle_=theta};
|
||||
ol.interaction.DragRotate.prototype.handleDragStart=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;if(browserEvent.isMouseActionButton()&&this.condition_(browserEvent)){var map=mapBrowserEvent.map;var view=map.getView();goog.asserts.assert(view instanceof ol.View2D);map.requestRenderFrame();this.lastAngle_=undefined;return true}else return false};goog.provide("ol.control.DragBox");goog.require("goog.asserts");goog.require("goog.dom");goog.require("goog.dom.TagName");goog.require("goog.events");goog.require("goog.style");goog.require("ol.Coordinate");goog.require("ol.MapBrowserEvent");goog.require("ol.MapBrowserEvent.EventType");goog.require("ol.Pixel");goog.require("ol.Size");goog.require("ol.control.Control");ol.control.DragBoxOptions;
|
||||
@@ -1334,38 +1350,43 @@ ol.interaction.Touch.centroid=function(touches){var length=touches.length;var cl
|
||||
ol.interaction.Touch.prototype.updateTrackedTouches_=function(mapBrowserEvent){var event=mapBrowserEvent.browserEvent.getBrowserEvent();if(goog.isDef(event.targetTouches))this.targetTouches=event.targetTouches;else{if(mapBrowserEvent.type==ol.MapBrowserEvent.EventType.TOUCHEND)delete this.trackedTouches_[event.pointerId];else this.trackedTouches_[event.pointerId]=event;this.targetTouches=goog.object.getValues(this.trackedTouches_)}};ol.interaction.Touch.prototype.handleTouchMove=goog.nullFunction;
|
||||
ol.interaction.Touch.prototype.handleTouchEnd=goog.functions.FALSE;ol.interaction.Touch.prototype.handleTouchStart=goog.functions.FALSE;
|
||||
ol.interaction.Touch.prototype.handleMapBrowserEvent=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent.getBrowserEvent();this.updateTrackedTouches_(mapBrowserEvent);if(this.handled_)if(mapBrowserEvent.type==ol.MapBrowserEvent.EventType.TOUCHMOVE)this.handleTouchMove(mapBrowserEvent);else if(mapBrowserEvent.type==ol.MapBrowserEvent.EventType.TOUCHEND)this.handled_=this.handleTouchEnd(mapBrowserEvent);if(mapBrowserEvent.type==ol.MapBrowserEvent.EventType.TOUCHSTART)this.handled_=
|
||||
this.handleTouchStart(mapBrowserEvent)};goog.provide("ol.interaction.TouchPan");goog.require("goog.asserts");goog.require("ol.Coordinate");goog.require("ol.Kinetic");goog.require("ol.Pixel");goog.require("ol.PreRenderFunction");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchPan=function(){goog.base(this);this.kinetic_=new ol.Kinetic(-0.005,0.05,100);this.kineticPreRenderFn_=null;this.lastCentroid=null};goog.inherits(ol.interaction.TouchPan,ol.interaction.Touch);
|
||||
ol.interaction.TouchPan.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=1);var centroid=ol.interaction.Touch.centroid(this.targetTouches);if(!goog.isNull(this.lastCentroid)){this.kinetic_.update(centroid.x,centroid.y);var deltaX=this.lastCentroid.x-centroid.x;var deltaY=centroid.y-this.lastCentroid.y;var view=mapBrowserEvent.map.getView();var center=(new ol.Coordinate(deltaX,deltaY)).scale(view.getResolution()).rotate(view.getRotation()).add(view.getCenter());
|
||||
this.handleTouchStart(mapBrowserEvent)};goog.provide("ol.interaction.TouchPan");goog.require("goog.asserts");goog.require("ol.Coordinate");goog.require("ol.Kinetic");goog.require("ol.Pixel");goog.require("ol.PreRenderFunction");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchPan=function(opt_kinetic){goog.base(this);this.kinetic_=opt_kinetic;this.kineticPreRenderFn_=null;this.lastCentroid=null};goog.inherits(ol.interaction.TouchPan,ol.interaction.Touch);
|
||||
ol.interaction.TouchPan.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=1);var centroid=ol.interaction.Touch.centroid(this.targetTouches);if(!goog.isNull(this.lastCentroid)){if(this.kinetic_)this.kinetic_.update(centroid.x,centroid.y);var deltaX=this.lastCentroid.x-centroid.x;var deltaY=centroid.y-this.lastCentroid.y;var view=mapBrowserEvent.map.getView();var center=(new ol.Coordinate(deltaX,deltaY)).scale(view.getResolution()).rotate(view.getRotation()).add(view.getCenter());
|
||||
view.setCenter(center)}this.lastCentroid=centroid};
|
||||
ol.interaction.TouchPan.prototype.handleTouchEnd=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();if(this.targetTouches.length==0){view.setHint(ol.ViewHint.PANNING,-1);if(this.kinetic_.end()){var distance=this.kinetic_.getDistance();var angle=this.kinetic_.getAngle();var center=view.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(center);map.addPreRenderFunction(this.kineticPreRenderFn_);var centerpx=map.getPixelFromCoordinate(center);var destpx=new ol.Pixel(centerpx.x-
|
||||
distance*Math.cos(angle),centerpx.y-distance*Math.sin(angle));var dest=map.getCoordinateFromPixel(destpx);view.setCenter(dest)}return false}else return true};
|
||||
ol.interaction.TouchPan.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=1){var map=mapBrowserEvent.map;var view=map.getView();this.lastCentroid=null;if(!goog.isNull(this.kineticPreRenderFn_)&&map.removePreRenderFunction(this.kineticPreRenderFn_)){map.requestRenderFrame();view.setCenter(mapBrowserEvent.frameState.view2DState.center);this.kineticPreRenderFn_=null}this.kinetic_.begin();view.setHint(ol.ViewHint.PANNING,1);return true}else return false};goog.provide("ol.interaction.TouchRotateAndZoom");goog.require("goog.asserts");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchRotateAndZoom=function(){goog.base(this);this.lastAngle_;this.lastDistance_;this.rotating_=false;this.rotationDelta_=0;this.rotationThreshold_=0.3};goog.inherits(ol.interaction.TouchRotateAndZoom,ol.interaction.Touch);
|
||||
ol.interaction.TouchRotateAndZoom.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=2);var scaleDelta=1;var rotationDelta=0;var centroid=ol.interaction.Touch.centroid(this.targetTouches);var touch0=this.targetTouches[0];var touch1=this.targetTouches[1];var dx=touch0.clientX-touch1.clientX;var dy=touch0.clientY-touch1.clientY;var angle=Math.atan2(touch1.clientY-touch0.clientY,touch1.clientX-touch0.clientX);var distance=Math.sqrt(dx*dx+dy*dy);if(goog.isDef(this.lastDistance_))scaleDelta=
|
||||
this.lastDistance_/distance;this.lastDistance_=distance;if(goog.isDef(this.lastAngle_)){var delta=angle-this.lastAngle_;this.rotationDelta_+=delta;if(!this.rotating_&&Math.abs(this.rotationDelta_)>this.rotationThreshold_)this.rotating_=true;rotationDelta=delta}this.lastAngle_=angle;var map=mapBrowserEvent.map;var view=map.getView();var viewportPosition=goog.style.getClientPosition(map.getViewport());centroid.x-=viewportPosition.x;centroid.y-=viewportPosition.y;var anchor=map.getCoordinateFromPixel(centroid);
|
||||
view.zoom_(map,view.getResolution()*scaleDelta,anchor);if(this.rotating_)view.rotate(map,view.getRotation()+rotationDelta,anchor)};ol.interaction.TouchRotateAndZoom.prototype.handleTouchEnd=function(mapBrowserEvent){if(this.targetTouches.length<2){var map=mapBrowserEvent.map;var view=map.getView();view.zoomToResolution(map,view.getResolution());view.setHint(ol.ViewHint.PANNING,-1);return false}else return true};
|
||||
ol.interaction.TouchRotateAndZoom.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=2){var view=mapBrowserEvent.map.getView();this.lastDistance_=undefined;this.lastAngle_=undefined;this.rotating_=false;this.rotationDelta_=0;view.setHint(ol.ViewHint.PANNING,1);return true}else return false};goog.provide("ol.projection.EPSG3857");goog.require("goog.array");goog.require("ol.Coordinate");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.projection");ol.projection.EPSG3857=function(code){goog.base(this,code,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS;
|
||||
ol.interaction.TouchPan.prototype.handleTouchEnd=function(mapBrowserEvent){var map=mapBrowserEvent.map;var view=map.getView();if(this.targetTouches.length==0){view.setHint(ol.ViewHint.INTERACTING,-1);if(this.kinetic_&&this.kinetic_.end()){var distance=this.kinetic_.getDistance();var angle=this.kinetic_.getAngle();var center=view.getCenter();this.kineticPreRenderFn_=this.kinetic_.pan(center);map.addPreRenderFunction(this.kineticPreRenderFn_);var centerpx=map.getPixelFromCoordinate(center);var destpx=
|
||||
new ol.Pixel(centerpx.x-distance*Math.cos(angle),centerpx.y-distance*Math.sin(angle));var dest=map.getCoordinateFromPixel(destpx);view.setCenter(dest)}return false}else{this.lastCentroid=null;return true}};
|
||||
ol.interaction.TouchPan.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=1){var map=mapBrowserEvent.map;var view=map.getView();this.lastCentroid=null;if(!goog.isNull(this.kineticPreRenderFn_)&&map.removePreRenderFunction(this.kineticPreRenderFn_)){map.requestRenderFrame();view.setCenter(mapBrowserEvent.frameState.view2DState.center);this.kineticPreRenderFn_=null}if(this.kinetic_)this.kinetic_.begin();view.setHint(ol.ViewHint.INTERACTING,1);return true}else return false};goog.provide("ol.interaction.TouchRotate");goog.require("goog.asserts");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchRotate=function(opt_threshold){goog.base(this);this.lastAngle_;this.rotating_=false;this.rotationDelta_=0;this.threshold_=goog.isDef(opt_threshold)?opt_threshold:0.3};goog.inherits(ol.interaction.TouchRotate,ol.interaction.Touch);
|
||||
ol.interaction.TouchRotate.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=2);var rotationDelta=0;var touch0=this.targetTouches[0];var touch1=this.targetTouches[1];var dx=touch0.clientX-touch1.clientX;var dy=touch0.clientY-touch1.clientY;var angle=Math.atan2(touch1.clientY-touch0.clientY,touch1.clientX-touch0.clientX);if(goog.isDef(this.lastAngle_)){var delta=angle-this.lastAngle_;this.rotationDelta_+=delta;if(!this.rotating_&&Math.abs(this.rotationDelta_)>
|
||||
this.threshold_)this.rotating_=true;rotationDelta=delta}this.lastAngle_=angle;var map=mapBrowserEvent.map;var view=map.getView();var viewportPosition=goog.style.getClientPosition(map.getViewport());var centroid=ol.interaction.Touch.centroid(this.targetTouches);centroid.x-=viewportPosition.x;centroid.y-=viewportPosition.y;var anchor=map.getCoordinateFromPixel(centroid);if(this.rotating_)view.rotate(map,view.getRotation()+rotationDelta,anchor)};
|
||||
ol.interaction.TouchRotate.prototype.handleTouchEnd=function(mapBrowserEvent){if(this.targetTouches.length<2){var map=mapBrowserEvent.map;var view=map.getView();view.setHint(ol.ViewHint.INTERACTING,-1);return false}else return true};ol.interaction.TouchRotate.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=2){var view=mapBrowserEvent.map.getView();this.lastAngle_=undefined;this.rotating_=false;this.rotationDelta_=0;view.setHint(ol.ViewHint.INTERACTING,1);return true}else return false};goog.provide("ol.interaction.TouchZoom");goog.require("goog.asserts");goog.require("ol.View");goog.require("ol.ViewHint");goog.require("ol.interaction.Touch");ol.interaction.TouchZoom=function(){goog.base(this);this.lastDistance_};goog.inherits(ol.interaction.TouchZoom,ol.interaction.Touch);
|
||||
ol.interaction.TouchZoom.prototype.handleTouchMove=function(mapBrowserEvent){goog.asserts.assert(this.targetTouches.length>=2);var scaleDelta=1;var touch0=this.targetTouches[0];var touch1=this.targetTouches[1];var dx=touch0.clientX-touch1.clientX;var dy=touch0.clientY-touch1.clientY;var distance=Math.sqrt(dx*dx+dy*dy);if(goog.isDef(this.lastDistance_))scaleDelta=this.lastDistance_/distance;this.lastDistance_=distance;var map=mapBrowserEvent.map;var view=map.getView();var viewportPosition=goog.style.getClientPosition(map.getViewport());
|
||||
var centroid=ol.interaction.Touch.centroid(this.targetTouches);centroid.x-=viewportPosition.x;centroid.y-=viewportPosition.y;var anchor=map.getCoordinateFromPixel(centroid);view.zoom_(map,view.getResolution()*scaleDelta,anchor)};ol.interaction.TouchZoom.prototype.handleTouchEnd=function(mapBrowserEvent){if(this.targetTouches.length<2){var map=mapBrowserEvent.map;var view=map.getView();view.zoomToResolution(map,view.getResolution());view.setHint(ol.ViewHint.INTERACTING,-1);return false}else return true};
|
||||
ol.interaction.TouchZoom.prototype.handleTouchStart=function(mapBrowserEvent){if(this.targetTouches.length>=2){var view=mapBrowserEvent.map.getView();this.lastDistance_=undefined;view.setHint(ol.ViewHint.INTERACTING,1);return true}else return false};goog.provide("ol.math");ol.math.cosh=function(x){return(Math.exp(x)+Math.exp(-x))/2};ol.math.coth=function(x){var expMinusTwoX=Math.exp(-2*x);return(1+expMinusTwoX)/(1-expMinusTwoX)};ol.math.csch=function(x){return 2/(Math.exp(x)-Math.exp(-x))};ol.math.sech=function(x){return 2/(Math.exp(x)+Math.exp(-x))};ol.math.sinh=function(x){return(Math.exp(x)-Math.exp(-x))/2};ol.math.tanh=function(x){var expMinusTwoX=Math.exp(-2*x);return(1-expMinusTwoX)/(1+expMinusTwoX)};goog.provide("ol.projection.EPSG3857");goog.require("goog.array");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.math");goog.require("ol.projection");ol.projection.EPSG3857=function(code){goog.base(this,code,ol.ProjectionUnits.METERS,ol.projection.EPSG3857.EXTENT)};goog.inherits(ol.projection.EPSG3857,ol.Projection);ol.projection.EPSG3857.RADIUS=6378137;ol.projection.EPSG3857.HALF_SIZE=Math.PI*ol.projection.EPSG3857.RADIUS;
|
||||
ol.projection.EPSG3857.EXTENT=new ol.Extent(-ol.projection.EPSG3857.HALF_SIZE,-ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE,ol.projection.EPSG3857.HALF_SIZE);ol.projection.EPSG3857.CODES=["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"];ol.projection.EPSG3857.PROJECTIONS=goog.array.map(ol.projection.EPSG3857.CODES,function(code){return new ol.projection.EPSG3857(code)});
|
||||
ol.projection.EPSG3857.fromEPSG4326=function(point){var x=ol.projection.EPSG3857.RADIUS*Math.PI*point.x/180;var y=ol.projection.EPSG3857.RADIUS*Math.log(Math.tan(Math.PI*(point.y+90)/360));return new ol.Coordinate(x,y)};ol.projection.EPSG3857.toEPSG4326=function(point){var x=180*point.x/(ol.projection.EPSG3857.RADIUS*Math.PI);var y=360*Math.atan(Math.exp(point.y/ol.projection.EPSG3857.RADIUS))/Math.PI-90;return new ol.Coordinate(x,y)};goog.provide("ol.projection.EPSG4326");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.projection");ol.projection.EPSG4326=function(code,opt_axisOrientation){goog.base(this,code,ol.ProjectionUnits.DEGREES,ol.projection.EPSG4326.EXTENT,opt_axisOrientation)};goog.inherits(ol.projection.EPSG4326,ol.Projection);ol.projection.EPSG4326.EXTENT=new ol.Extent(-180,-90,180,90);
|
||||
ol.projection.EPSG4326.PROJECTIONS=[new ol.projection.EPSG4326("CRS:84"),new ol.projection.EPSG4326("EPSG:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:OGC:1.3:CRS84")];goog.provide("ol.projection.addCommonProjections");goog.require("ol.projection");goog.require("ol.projection.EPSG3857");goog.require("ol.projection.EPSG4326");ol.projection.addCommonProjections=function(){ol.projection.addEquivalentProjections(ol.projection.EPSG3857.PROJECTIONS);ol.projection.addEquivalentProjections(ol.projection.EPSG4326.PROJECTIONS);ol.projection.addEquivalentTransforms(ol.projection.EPSG4326.PROJECTIONS,ol.projection.EPSG3857.PROJECTIONS,ol.projection.EPSG3857.fromEPSG4326,ol.projection.EPSG3857.toEPSG4326)};goog.provide("ol.Image");goog.provide("ol.ImageState");goog.require("goog.array");goog.require("goog.events");goog.require("goog.events.EventTarget");goog.require("goog.events.EventType");goog.require("ol.Attribution");goog.require("ol.Extent");ol.ImageState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};
|
||||
ol.projection.EPSG3857.fromEPSG4326=function(input,opt_output,opt_dimension){var length=input.length,dimension=opt_dimension>1?opt_dimension:2,output=opt_output;if(!goog.isDef(output))if(dimension>2)output=input.slice();else output=new Array(length);goog.asserts.assert(output.length%dimension===0);for(var i=0;i<length;i+=dimension){output[i]=ol.projection.EPSG3857.RADIUS*Math.PI*input[i]/180;output[i+1]=ol.projection.EPSG3857.RADIUS*Math.log(Math.tan(Math.PI*(input[i+1]+90)/360))}return output};
|
||||
ol.projection.EPSG3857.toEPSG4326=function(input,opt_output,opt_dimension){var length=input.length,dimension=opt_dimension>1?opt_dimension:2,output=opt_output;if(!goog.isDef(output))if(dimension>2)output=input.slice();else output=new Array(length);goog.asserts.assert(output.length%dimension===0);for(var i=0;i<length;i+=dimension){output[i]=180*input[i]/(ol.projection.EPSG3857.RADIUS*Math.PI);output[i+1]=360*Math.atan(Math.exp(input[i+1]/ol.projection.EPSG3857.RADIUS))/Math.PI-90}return output};
|
||||
ol.projection.EPSG3857.prototype.getPointResolution=function(resolution,point){return resolution/ol.math.cosh(point.y/ol.projection.EPSG3857.RADIUS)};goog.provide("ol.projection.EPSG4326");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.projection");ol.projection.EPSG4326=function(code,opt_axisOrientation){goog.base(this,code,ol.ProjectionUnits.DEGREES,ol.projection.EPSG4326.EXTENT,opt_axisOrientation)};goog.inherits(ol.projection.EPSG4326,ol.Projection);ol.projection.EPSG4326.EXTENT=new ol.Extent(-180,-90,180,90);
|
||||
ol.projection.EPSG4326.PROJECTIONS=[new ol.projection.EPSG4326("CRS:84"),new ol.projection.EPSG4326("EPSG:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ol.projection.EPSG4326("urn:ogc:def:crs:OGC:1.3:CRS84")];ol.projection.EPSG4326.prototype.getPointResolution=function(resolution,point){return resolution};goog.provide("ol.projection.addCommonProjections");goog.require("ol.projection");goog.require("ol.projection.EPSG3857");goog.require("ol.projection.EPSG4326");ol.projection.addCommonProjections=function(){ol.projection.addEquivalentProjections(ol.projection.EPSG3857.PROJECTIONS);ol.projection.addEquivalentProjections(ol.projection.EPSG4326.PROJECTIONS);ol.projection.addEquivalentTransforms(ol.projection.EPSG4326.PROJECTIONS,ol.projection.EPSG3857.PROJECTIONS,ol.projection.EPSG3857.fromEPSG4326,ol.projection.EPSG3857.toEPSG4326)};goog.provide("ol.Image");goog.provide("ol.ImageState");goog.require("goog.array");goog.require("goog.events");goog.require("goog.events.EventTarget");goog.require("goog.events.EventType");goog.require("ol.Attribution");goog.require("ol.Extent");ol.ImageState={IDLE:0,LOADING:1,LOADED:2,ERROR:3};
|
||||
ol.Image=function(extent,resolution,src,crossOrigin,attributions){this.attributions_=attributions;this.extent_=extent;this.src_=src;this.resolution_=resolution;this.image_=new Image;if(!goog.isNull(crossOrigin))this.image_.crossOrigin=crossOrigin;this.imageByContext_={};this.imageListenerKeys_=null;this.state=ol.ImageState.IDLE};goog.inherits(ol.Image,goog.events.EventTarget);ol.Image.prototype.dispatchChangeEvent=function(){this.dispatchEvent(goog.events.EventType.CHANGE)};
|
||||
ol.Image.prototype.getAttributions=function(){return this.attributions_};ol.Image.prototype.getExtent=function(){return this.extent_};ol.Image.prototype.getImageElement=function(opt_context){if(goog.isDef(opt_context)){var image;var key=goog.getUid(opt_context);if(key in this.imageByContext_)return this.imageByContext_[key];else if(goog.object.isEmpty(this.imageByContext_))image=this.image_;else image=this.image_.cloneNode(false);this.imageByContext_[key]=image;return image}else return this.image_};
|
||||
ol.Image.prototype.getResolution=function(){return this.resolution_};ol.Image.prototype.getState=function(){return this.state};ol.Image.prototype.handleImageError_=function(){this.state=ol.ImageState.ERROR;this.unlistenImage_();this.dispatchChangeEvent()};ol.Image.prototype.handleImageLoad_=function(){this.state=ol.ImageState.LOADED;this.unlistenImage_();this.dispatchChangeEvent()};
|
||||
ol.Image.prototype.load=function(){if(this.state==ol.ImageState.IDLE){this.state=ol.ImageState.LOADING;goog.asserts.assert(goog.isNull(this.imageListenerKeys_));this.imageListenerKeys_=[goog.events.listenOnce(this.image_,goog.events.EventType.ERROR,this.handleImageError_,false,this),goog.events.listenOnce(this.image_,goog.events.EventType.LOAD,this.handleImageLoad_,false,this)];this.image_.src=this.src_}};
|
||||
ol.Image.prototype.unlistenImage_=function(){goog.asserts.assert(!goog.isNull(this.imageListenerKeys_));goog.array.forEach(this.imageListenerKeys_,goog.events.unlistenByKey);this.imageListenerKeys_=null};goog.provide("ol.PixelBounds");goog.require("ol.Rectangle");ol.PixelBounds=function(minX,minY,maxX,maxY){goog.base(this,minX,minY,maxX,maxY)};goog.inherits(ol.PixelBounds,ol.Rectangle);goog.provide("ol.tilegrid.TileGrid");goog.require("goog.array");goog.require("goog.asserts");goog.require("ol.Coordinate");goog.require("ol.Extent");goog.require("ol.PixelBounds");goog.require("ol.Projection");goog.require("ol.Size");goog.require("ol.TileCoord");goog.require("ol.TileRange");goog.require("ol.array");ol.DEFAULT_TILE_SIZE=256;
|
||||
ol.tilegrid.TileGrid=function(tileGridOptions){this.resolutions_=tileGridOptions.resolutions;goog.asserts.assert(goog.array.isSorted(this.resolutions_,function(a,b){return b-a},true));this.numResolutions_=this.resolutions_.length;this.origin_=goog.isDef(tileGridOptions.origin)?tileGridOptions.origin:null;this.origins_=null;if(goog.isDef(tileGridOptions.origins)){this.origins_=tileGridOptions.origins;goog.asserts.assert(this.origins_.length==this.resolutions_.length)}this.tileSize_=goog.isDef(tileGridOptions.tileSize)?
|
||||
tileGridOptions.tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE)};ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange=function(tileCoord,callback,opt_obj){var tileCoordExtent=this.getTileCoordExtent(tileCoord);var z=tileCoord.z-1;while(z>=0){if(callback.call(opt_obj,z,this.getTileRangeForExtentAndZ(tileCoordExtent,z)))return;--z}};
|
||||
ol.tilegrid.TileGrid=function(tileGridOptions){this.resolutions_=tileGridOptions.resolutions;goog.asserts.assert(goog.array.isSorted(this.resolutions_,function(a,b){return b-a},true));this.numResolutions_=this.resolutions_.length;this.origin_=goog.isDef(tileGridOptions.origin)?tileGridOptions.origin:null;this.origins_=null;if(goog.isDef(tileGridOptions.origins)){this.origins_=tileGridOptions.origins;goog.asserts.assert(this.origins_.length==this.resolutions_.length)}goog.asserts.assert(goog.isNull(this.origin_)&&
|
||||
!goog.isNull(this.origins_)||!goog.isNull(this.origin_)&&goog.isNull(this.origins_));this.tileSizes_=null;if(goog.isDef(tileGridOptions.tileSizes)){this.tileSizes_=tileGridOptions.tileSizes;goog.asserts.assert(this.tileSizes_.length==this.resolutions_.length)}this.tileSize_=goog.isDef(tileGridOptions.tileSize)?tileGridOptions.tileSize:goog.isNull(this.tileSizes_)?new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE):null;goog.asserts.assert(goog.isNull(this.tileSize_)&&!goog.isNull(this.tileSizes_)||
|
||||
!goog.isNull(this.tileSize_)&&goog.isNull(this.tileSizes_))};ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange=function(tileCoord,callback,opt_obj){var tileCoordExtent=this.getTileCoordExtent(tileCoord);var z=tileCoord.z-1;while(z>=0){if(callback.call(opt_obj,z,this.getTileRangeForExtentAndZ(tileCoordExtent,z)))return;--z}};
|
||||
ol.tilegrid.TileGrid.prototype.getOrigin=function(z){if(!goog.isNull(this.origin_))return this.origin_;else{goog.asserts.assert(!goog.isNull(this.origins_));goog.asserts.assert(0<=z&&z<this.origins_.length);return this.origins_[z]}};
|
||||
ol.tilegrid.TileGrid.prototype.getPixelBoundsForTileCoordAndResolution=function(tileCoord,resolution){var scale=resolution/this.getResolution(tileCoord.z);var tileSize=this.getTileSize();tileSize=new ol.Size(tileSize.width/scale,tileSize.height/scale);var minX,maxX,minY,maxY;minX=Math.round(tileCoord.x*tileSize.width);maxX=Math.round((tileCoord.x+1)*tileSize.width);minY=Math.round(tileCoord.y*tileSize.height);maxY=Math.round((tileCoord.y+1)*tileSize.height);return new ol.PixelBounds(minX,minY,maxX,
|
||||
maxY)};ol.tilegrid.TileGrid.prototype.getResolution=function(z){goog.asserts.assert(0<=z&&z<this.numResolutions_);return this.resolutions_[z]};ol.tilegrid.TileGrid.prototype.getResolutions=function(){return this.resolutions_};
|
||||
ol.tilegrid.TileGrid.prototype.getTileRangeExtent=function(z,tileRange){var origin=this.getOrigin(z);var resolution=this.getResolution(z);var tileSize=this.tileSize_;var minX=origin.x+tileRange.minX*tileSize.width*resolution;var minY=origin.y+tileRange.minY*tileSize.height*resolution;var maxX=origin.x+(tileRange.maxX+1)*tileSize.width*resolution;var maxY=origin.y+(tileRange.maxY+1)*tileSize.height*resolution;return new ol.Extent(minX,minY,maxX,maxY)};
|
||||
ol.tilegrid.TileGrid.prototype.getPixelBoundsForTileCoordAndResolution=function(tileCoord,resolution){var scale=resolution/this.getResolution(tileCoord.z);var tileSize=this.getTileSize(tileCoord.z);tileSize=new ol.Size(tileSize.width/scale,tileSize.height/scale);var minX,maxX,minY,maxY;minX=Math.round(tileCoord.x*tileSize.width);maxX=Math.round((tileCoord.x+1)*tileSize.width);minY=Math.round(tileCoord.y*tileSize.height);maxY=Math.round((tileCoord.y+1)*tileSize.height);return new ol.PixelBounds(minX,
|
||||
minY,maxX,maxY)};ol.tilegrid.TileGrid.prototype.getResolution=function(z){goog.asserts.assert(0<=z&&z<this.numResolutions_);return this.resolutions_[z]};ol.tilegrid.TileGrid.prototype.getResolutions=function(){return this.resolutions_};
|
||||
ol.tilegrid.TileGrid.prototype.getTileRangeExtent=function(z,tileRange){var origin=this.getOrigin(z);var resolution=this.getResolution(z);var tileSize=this.getTileSize(z);var minX=origin.x+tileRange.minX*tileSize.width*resolution;var minY=origin.y+tileRange.minY*tileSize.height*resolution;var maxX=origin.x+(tileRange.maxX+1)*tileSize.width*resolution;var maxY=origin.y+(tileRange.maxY+1)*tileSize.height*resolution;return new ol.Extent(minX,minY,maxX,maxY)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileRangeForExtentAndResolution=function(extent,resolution){var min=this.getTileCoordForCoordAndResolution_(new ol.Coordinate(extent.minX,extent.minY),resolution);var max=this.getTileCoordForCoordAndResolution_(new ol.Coordinate(extent.maxX,extent.maxY),resolution,true);return new ol.TileRange(min.x,min.y,max.x,max.y)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileRangeForExtentAndZ=function(extent,z){var resolution=this.getResolution(z);return this.getTileRangeForExtentAndResolution(extent,resolution)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordCenter=function(tileCoord){var origin=this.getOrigin(tileCoord.z);var resolution=this.getResolution(tileCoord.z);var tileSize=this.tileSize_;var x=origin.x+(tileCoord.x+0.5)*tileSize.width*resolution;var y=origin.y+(tileCoord.y+0.5)*tileSize.height*resolution;return new ol.Coordinate(x,y)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordExtent=function(tileCoord){var origin=this.getOrigin(tileCoord.z);var resolution=this.getResolution(tileCoord.z);var tileSize=this.tileSize_;var minX=origin.x+tileCoord.x*tileSize.width*resolution;var minY=origin.y+tileCoord.y*tileSize.height*resolution;var maxX=minX+tileSize.width*resolution;var maxY=minY+tileSize.height*resolution;return new ol.Extent(minX,minY,maxX,maxY)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordCenter=function(tileCoord){var origin=this.getOrigin(tileCoord.z);var resolution=this.getResolution(tileCoord.z);var tileSize=this.getTileSize(tileCoord.z);var x=origin.x+(tileCoord.x+0.5)*tileSize.width*resolution;var y=origin.y+(tileCoord.y+0.5)*tileSize.height*resolution;return new ol.Coordinate(x,y)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordExtent=function(tileCoord){var origin=this.getOrigin(tileCoord.z);var resolution=this.getResolution(tileCoord.z);var tileSize=this.getTileSize(tileCoord.z);var minX=origin.x+tileCoord.x*tileSize.width*resolution;var minY=origin.y+tileCoord.y*tileSize.height*resolution;var maxX=minX+tileSize.width*resolution;var maxY=minY+tileSize.height*resolution;return new ol.Extent(minX,minY,maxX,maxY)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndResolution=function(coordinate,resolution){return this.getTileCoordForCoordAndResolution_(coordinate,resolution)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndResolution_=function(coordinate,resolution,opt_reverseIntersectionPolicy){var z=this.getZForResolution(resolution);var scale=resolution/this.getResolution(z);var origin=this.getOrigin(z);var tileSize=this.getTileSize();var x=scale*(coordinate.x-origin.x)/(resolution*tileSize.width);var y=scale*(coordinate.y-origin.y)/(resolution*tileSize.height);if(!opt_reverseIntersectionPolicy){x=Math.floor(x);y=Math.floor(y)}else{x=Math.ceil(x)-1;y=Math.ceil(y)-
|
||||
1}return new ol.TileCoord(z,x,y)};ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndZ=function(coordinate,z){var resolution=this.getResolution(z);return this.getTileCoordForCoordAndResolution_(coordinate,resolution)};ol.tilegrid.TileGrid.prototype.getTileCoordResolution=function(tileCoord){goog.asserts.assert(0<=tileCoord.z&&tileCoord.z<this.numResolutions_);return this.resolutions_[tileCoord.z]};ol.tilegrid.TileGrid.prototype.getTileSize=function(){return this.tileSize_};
|
||||
ol.tilegrid.TileGrid.prototype.getZForResolution=function(resolution){return ol.array.linearFindNearest(this.resolutions_,resolution)};
|
||||
ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndResolution_=function(coordinate,resolution,opt_reverseIntersectionPolicy){var z=this.getZForResolution(resolution);var scale=resolution/this.getResolution(z);var origin=this.getOrigin(z);var tileSize=this.getTileSize(z);var x=scale*(coordinate.x-origin.x)/(resolution*tileSize.width);var y=scale*(coordinate.y-origin.y)/(resolution*tileSize.height);if(!opt_reverseIntersectionPolicy){x=Math.floor(x);y=Math.floor(y)}else{x=Math.ceil(x)-1;y=Math.ceil(y)-
|
||||
1}return new ol.TileCoord(z,x,y)};ol.tilegrid.TileGrid.prototype.getTileCoordForCoordAndZ=function(coordinate,z){var resolution=this.getResolution(z);return this.getTileCoordForCoordAndResolution_(coordinate,resolution)};ol.tilegrid.TileGrid.prototype.getTileCoordResolution=function(tileCoord){goog.asserts.assert(0<=tileCoord.z&&tileCoord.z<this.numResolutions_);return this.resolutions_[tileCoord.z]};
|
||||
ol.tilegrid.TileGrid.prototype.getTileSize=function(z){if(!goog.isNull(this.tileSize_))return this.tileSize_;else{goog.asserts.assert(!goog.isNull(this.tileSizes_));goog.asserts.assert(0<=z&&z<this.tileSizes_.length);return this.tileSizes_[z]}};ol.tilegrid.TileGrid.prototype.getZForResolution=function(resolution){return ol.array.linearFindNearest(this.resolutions_,resolution)};
|
||||
ol.tilegrid.createForProjection=function(projection,opt_maxZoom,opt_tileSize){var projectionExtent=projection.getExtent();var size=Math.max(projectionExtent.maxX-projectionExtent.minX,projectionExtent.maxY-projectionExtent.minY);var maxZoom=goog.isDef(opt_maxZoom)?opt_maxZoom:18;var tileSize=goog.isDef(opt_tileSize)?opt_tileSize:new ol.Size(ol.DEFAULT_TILE_SIZE,ol.DEFAULT_TILE_SIZE);var resolutions=new Array(maxZoom+1);goog.asserts.assert(tileSize.width==tileSize.height);size=size/tileSize.width;
|
||||
for(var z=0,zz=resolutions.length;z<zz;++z)resolutions[z]=size/Math.pow(2,z);return new ol.tilegrid.TileGrid({origin:projectionExtent.getTopLeft(),resolutions:resolutions,tileSize:tileSize})};goog.provide("ol.source.TileSource");goog.provide("ol.source.TileSourceOptions");goog.require("goog.functions");goog.require("ol.Attribution");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.Tile");goog.require("ol.TileCoord");goog.require("ol.TileRange");goog.require("ol.source.Source");goog.require("ol.tilegrid.TileGrid");ol.source.TileSourceOptions;
|
||||
ol.source.TileSource=function(tileSourceOptions){goog.base(this,{attributions:tileSourceOptions.attributions,extent:tileSourceOptions.extent,projection:tileSourceOptions.projection});this.tileGrid=goog.isDef(tileSourceOptions.tileGrid)?tileSourceOptions.tileGrid:null};goog.inherits(ol.source.TileSource,ol.source.Source);ol.source.TileSource.prototype.canExpireCache=goog.functions.FALSE;ol.source.TileSource.prototype.expireCache=goog.abstractMethod;
|
||||
@@ -1384,7 +1405,7 @@ ol.renderer.Layer.prototype.updateWantedTiles=function(wantedTiles,tileSource,ti
|
||||
ol.renderer.Map=function(container,map){goog.base(this);this.container_=container;this.map=map;this.layerRenderers={};this.mapLayersChangedListenerKey_=goog.events.listen(map,ol.Object.getChangedEventType(ol.MapProperty.LAYERS),this.handleLayersChanged,false,this);this.layersListenerKeys_=null;this.layerRendererChangeListenKeys_={}};goog.inherits(ol.renderer.Map,goog.Disposable);
|
||||
ol.renderer.Map.prototype.addLayer=function(layer){var layerRenderer=this.createLayerRenderer(layer);this.setLayerRenderer(layer,layerRenderer)};
|
||||
ol.renderer.Map.prototype.calculateMatrices2D=function(frameState){var view2DState=frameState.view2DState;var coordinateToPixelMatrix=frameState.coordinateToPixelMatrix;goog.vec.Mat4.makeIdentity(coordinateToPixelMatrix);goog.vec.Mat4.translate(coordinateToPixelMatrix,frameState.size.width/2,frameState.size.height/2,0);goog.vec.Mat4.scale(coordinateToPixelMatrix,1/view2DState.resolution,-1/view2DState.resolution,1);goog.vec.Mat4.rotateZ(coordinateToPixelMatrix,-view2DState.rotation);goog.vec.Mat4.translate(coordinateToPixelMatrix,
|
||||
-view2DState.center.x,-view2DState.center.y,0);var inverted=goog.vec.Mat4.invert(coordinateToPixelMatrix,frameState.pixelToCoordinateMatrix);goog.asserts.assert(inverted)};ol.renderer.Map.prototype.createLayerRenderer=goog.functions.NULL;
|
||||
-view2DState.center.x,-view2DState.center.y,0);var inverted=goog.vec.Mat4.invert(coordinateToPixelMatrix,frameState.pixelToCoordinateMatrix);goog.asserts.assert(inverted)};ol.renderer.Map.prototype.createLayerRenderer=function(layer){return new ol.renderer.Layer(this,layer)};
|
||||
ol.renderer.Map.prototype.disposeInternal=function(){goog.object.forEach(this.layerRenderers,function(layerRenderer){goog.dispose(layerRenderer)});goog.events.unlistenByKey(this.mapLayersChangedListenerKey_);if(!goog.isNull(this.layersListenerKeys_))goog.array.forEach(this.layersListenerKeys_,goog.events.unlistenByKey);goog.base(this,"disposeInternal")};ol.renderer.Map.prototype.getCanvas=goog.functions.NULL;
|
||||
ol.renderer.Map.prototype.getLayerRenderer=function(layer){var layerKey=goog.getUid(layer);var layerRenderer=this.layerRenderers[layerKey];goog.asserts.assert(goog.isDef(layerRenderer));return layerRenderer};ol.renderer.Map.prototype.getMap=function(){return this.map};ol.renderer.Map.prototype.handleLayerRendererChange=function(event){this.getMap().render()};ol.renderer.Map.prototype.handleLayersAdd=function(collectionEvent){var layer=collectionEvent.elem;this.addLayer(layer)};
|
||||
ol.renderer.Map.prototype.handleLayersChanged=function(){goog.disposeAll(goog.object.getValues(this.layerRenderers));this.layerRenderers={};if(!goog.isNull(this.layersListenerKeys_)){goog.array.forEach(this.layersListenerKeys_,goog.events.unlistenByKey);this.layersListenerKeys_=null}var layers=this.map.getLayers();if(goog.isDefAndNotNull(layers)){layers.forEach(this.addLayer,this);this.layersListenerKeys_=[goog.events.listen(layers,ol.CollectionEventType.ADD,this.handleLayersAdd,false,this),goog.events.listen(layers,
|
||||
@@ -1396,18 +1417,18 @@ ol.source.ImageSource=function(options){goog.base(this,{attributions:options.att
|
||||
function(a,b){return b-a},true))};goog.inherits(ol.source.ImageSource,ol.source.Source);ol.source.ImageSource.prototype.createImage=function(extent,resolution,size){var image=null;var imageUrl=this.imageUrlFunction(extent,size);if(goog.isDef(imageUrl))image=new ol.Image(extent,resolution,imageUrl,this.crossOrigin_,this.getAttributions());return image};
|
||||
ol.source.ImageSource.prototype.findNearestResolution=function(resolution){if(!goog.isNull(this.resolutions_)){var idx=ol.array.linearFindNearest(this.resolutions_,resolution);resolution=this.resolutions_[idx]}return resolution};ol.source.ImageSource.prototype.getImage=goog.abstractMethod;goog.provide("ol.layer.ImageLayer");goog.require("ol.layer.Layer");goog.require("ol.source.ImageSource");ol.layer.ImageLayer=function(layerOptions){goog.base(this,layerOptions)};goog.inherits(ol.layer.ImageLayer,ol.layer.Layer);ol.layer.ImageLayer.prototype.getImageSource=function(){return this.getSource()};goog.provide("ol.layer.TileLayer");goog.require("ol.layer.Layer");goog.require("ol.source.TileSource");ol.layer.TileLayer=function(layerOptions){goog.base(this,layerOptions)};goog.inherits(ol.layer.TileLayer,ol.layer.Layer);ol.layer.TileLayer.prototype.getTileSource=function(){return this.getSource()};goog.provide("ol.renderer.canvas.Layer");goog.require("ol.layer.Layer");goog.require("ol.renderer.Layer");ol.renderer.canvas.Layer=function(mapRenderer,layer){goog.base(this,mapRenderer,layer)};goog.inherits(ol.renderer.canvas.Layer,ol.renderer.Layer);ol.renderer.canvas.Layer.prototype.getImage=goog.abstractMethod;ol.renderer.canvas.Layer.prototype.getTransform=goog.abstractMethod;goog.provide("ol.renderer.canvas.ImageLayer");goog.require("goog.vec.Mat4");goog.require("ol.Image");goog.require("ol.ImageState");goog.require("ol.ViewHint");goog.require("ol.layer.ImageLayer");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.Layer");ol.renderer.canvas.ImageLayer=function(mapRenderer,imageLayer){goog.base(this,mapRenderer,imageLayer);this.image_=null;this.transform_=goog.vec.Mat4.createNumber()};goog.inherits(ol.renderer.canvas.ImageLayer,ol.renderer.canvas.Layer);
|
||||
ol.renderer.canvas.ImageLayer.prototype.getImage=function(){return goog.isNull(this.image_)?null:this.image_.getImageElement(this)};ol.renderer.canvas.ImageLayer.prototype.getImageLayer=function(){return this.getLayer()};ol.renderer.canvas.ImageLayer.prototype.getTransform=function(){return this.transform_};
|
||||
ol.renderer.canvas.ImageLayer.prototype.renderFrame=function(frameState,layerState){var view2DState=frameState.view2DState;var viewCenter=view2DState.center;var viewResolution=view2DState.resolution;var viewRotation=view2DState.rotation;var image;var imageLayer=this.getImageLayer();var imageSource=imageLayer.getImageSource();var hints=frameState.viewHints;if(!hints[ol.ViewHint.ANIMATING]&&!hints[ol.ViewHint.PANNING]){image=imageSource.getImage(frameState.extent,viewResolution);if(!goog.isNull(image)){var imageState=
|
||||
ol.renderer.canvas.ImageLayer.prototype.renderFrame=function(frameState,layerState){var view2DState=frameState.view2DState;var viewCenter=view2DState.center;var viewResolution=view2DState.resolution;var viewRotation=view2DState.rotation;var image;var imageLayer=this.getImageLayer();var imageSource=imageLayer.getImageSource();var hints=frameState.viewHints;if(!hints[ol.ViewHint.ANIMATING]&&!hints[ol.ViewHint.INTERACTING]){image=imageSource.getImage(frameState.extent,viewResolution);if(!goog.isNull(image)){var imageState=
|
||||
image.getState();if(imageState==ol.ImageState.IDLE){goog.events.listenOnce(image,goog.events.EventType.CHANGE,this.handleImageChange,false,this);image.load()}else if(imageState==ol.ImageState.LOADED)this.image_=image}}if(!goog.isNull(this.image_)){image=this.image_;var imageExtent=image.getExtent();var imageResolution=image.getResolution();var transform=this.transform_;goog.vec.Mat4.makeIdentity(transform);goog.vec.Mat4.translate(transform,frameState.size.width/2,frameState.size.height/2,0);goog.vec.Mat4.rotateZ(transform,
|
||||
viewRotation);goog.vec.Mat4.scale(transform,imageResolution/viewResolution,imageResolution/viewResolution,1);goog.vec.Mat4.translate(transform,(imageExtent.minX-viewCenter.x)/imageResolution,(viewCenter.y-imageExtent.maxY)/imageResolution,0);this.updateAttributions(frameState.attributions,image.getAttributions())}};goog.provide("ol.renderer.canvas.TileLayer");goog.require("goog.array");goog.require("goog.dom");goog.require("goog.vec.Mat4");goog.require("ol.Size");goog.require("ol.Tile");goog.require("ol.TileCoord");goog.require("ol.TileState");goog.require("ol.layer.TileLayer");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.Layer");
|
||||
ol.renderer.canvas.TileLayer=function(mapRenderer,tileLayer){goog.base(this,mapRenderer,tileLayer);this.canvas_=null;this.canvasSize_=null;this.context_=null;this.transform_=goog.vec.Mat4.createNumber()};goog.inherits(ol.renderer.canvas.TileLayer,ol.renderer.canvas.Layer);ol.renderer.canvas.TileLayer.prototype.getImage=function(){return this.canvas_};ol.renderer.canvas.TileLayer.prototype.getTileLayer=function(){return this.getLayer()};ol.renderer.canvas.TileLayer.prototype.getTransform=function(){return this.transform_};
|
||||
ol.renderer.canvas.TileLayer.prototype.renderFrame=function(frameState,layerState){var view2DState=frameState.view2DState;var tileLayer=this.getTileLayer();var tileSource=tileLayer.getTileSource();var tileSourceKey=goog.getUid(tileSource).toString();var tileGrid=tileSource.getTileGrid();var tileSize=tileGrid.getTileSize();var z=tileGrid.getZForResolution(view2DState.resolution);var tileResolution=tileGrid.getResolution(z);var tileRange=tileGrid.getTileRangeForExtentAndResolution(frameState.extent,
|
||||
ol.renderer.canvas.TileLayer.prototype.renderFrame=function(frameState,layerState){var view2DState=frameState.view2DState;var tileLayer=this.getTileLayer();var tileSource=tileLayer.getTileSource();var tileSourceKey=goog.getUid(tileSource).toString();var tileGrid=tileSource.getTileGrid();var z=tileGrid.getZForResolution(view2DState.resolution);var tileSize=tileGrid.getTileSize(z);var tileResolution=tileGrid.getResolution(z);var tileRange=tileGrid.getTileRangeForExtentAndResolution(frameState.extent,
|
||||
tileResolution);var canvasSize=new ol.Size(tileSize.width*tileRange.getWidth(),tileSize.height*tileRange.getHeight());var canvas,context;if(goog.isNull(this.canvas_)){canvas=goog.dom.createElement(goog.dom.TagName.CANVAS);canvas.width=canvasSize.width;canvas.height=canvasSize.height;context=canvas.getContext("2d");this.canvas_=canvas;this.canvasSize_=canvasSize;this.context_=context}else{canvas=this.canvas_;context=this.context_;if(!this.canvasSize_.equals(canvasSize)){canvas.width=canvasSize.width;
|
||||
canvas.height=canvasSize.height;this.canvasSize_=canvasSize}}context.clearRect(0,0,canvasSize.width,canvasSize.height);var tilesToDrawByZ={};tilesToDrawByZ[z]={};var isLoaded=function(tile){return!goog.isNull(tile)&&tile.getState()==ol.TileState.LOADED};var findLoadedTiles=goog.bind(tileSource.findLoadedTiles,tileSource,tilesToDrawByZ,isLoaded);var allTilesLoaded=true;var tile,tileCenter,tileCoord,tileState,x,y;for(x=tileRange.minX;x<=tileRange.maxX;++x)for(y=tileRange.minY;y<=tileRange.maxY;++y){tileCoord=
|
||||
new ol.TileCoord(z,x,y);tile=tileSource.getTile(tileCoord);if(goog.isNull(tile))continue;tileState=tile.getState();if(tileState==ol.TileState.IDLE){goog.events.listenOnce(tile,goog.events.EventType.CHANGE,this.handleTileChange,false,this);this.updateWantedTiles(frameState.wantedTiles,tileSource,tileCoord);tileCenter=tileGrid.getTileCoordCenter(tileCoord);frameState.tileQueue.enqueue(tile,tileSourceKey,tileCenter)}else if(tileState==ol.TileState.LOADED){tilesToDrawByZ[z][tileCoord.toString()]=tile;
|
||||
continue}else if(tileState==ol.TileState.ERROR)continue;allTilesLoaded=false;tileGrid.forEachTileCoordParentTileRange(tileCoord,findLoadedTiles)}var zs=goog.array.map(goog.object.getKeys(tilesToDrawByZ),Number);goog.array.sort(zs);var origin=tileGrid.getTileCoordExtent(new ol.TileCoord(z,tileRange.minX,tileRange.maxY)).getTopLeft();var currentZ,i,scale,tileCoordKey,tileExtent,tilesToDraw;for(i=0;i<zs.length;++i){currentZ=zs[i];tilesToDraw=tilesToDrawByZ[currentZ];if(currentZ==z)for(tileCoordKey in tilesToDraw){tile=
|
||||
tilesToDraw[tileCoordKey];context.drawImage(tile.getImage(),tileSize.width*(tile.tileCoord.x-tileRange.minX),tileSize.height*(tileRange.maxY-tile.tileCoord.y))}else{scale=tileGrid.getResolution(currentZ)/tileResolution;for(tileCoordKey in tilesToDraw){tile=tilesToDraw[tileCoordKey];tileExtent=tileGrid.getTileCoordExtent(tile.tileCoord);context.drawImage(tile.getImage(),(tileExtent.minX-origin.x)/tileResolution,(origin.y-tileExtent.maxY)/tileResolution,scale*tileSize.width,scale*tileSize.height)}}}this.updateUsedTiles(frameState.usedTiles,
|
||||
tileSource,z,tileRange);tileSource.useLowResolutionTiles(z,frameState.extent);this.scheduleExpireCache(frameState,tileSource);var transform=this.transform_;goog.vec.Mat4.makeIdentity(transform);goog.vec.Mat4.translate(transform,frameState.size.width/2,frameState.size.height/2,0);goog.vec.Mat4.rotateZ(transform,view2DState.rotation);goog.vec.Mat4.scale(transform,tileResolution/view2DState.resolution,tileResolution/view2DState.resolution,1);goog.vec.Mat4.translate(transform,(origin.x-view2DState.center.x)/
|
||||
tileResolution,(view2DState.center.y-origin.y)/tileResolution,0)};goog.provide("ol.renderer.canvas.Map");goog.require("goog.array");goog.require("goog.dom");goog.require("goog.style");goog.require("goog.vec.Mat4");goog.require("ol.Size");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.TileLayer");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.ImageLayer");goog.require("ol.renderer.canvas.TileLayer");
|
||||
continue}else if(tileState==ol.TileState.ERROR)continue;allTilesLoaded=false;tileGrid.forEachTileCoordParentTileRange(tileCoord,findLoadedTiles)}var zs=goog.array.map(goog.object.getKeys(tilesToDrawByZ),Number);goog.array.sort(zs);var origin=tileGrid.getTileCoordExtent(new ol.TileCoord(z,tileRange.minX,tileRange.maxY)).getTopLeft();var currentZ,i,scale,tileCoordKey,tileExtent,tilesToDraw;for(i=0;i<zs.length;++i){currentZ=zs[i];tileSize=tileGrid.getTileSize(currentZ);tilesToDraw=tilesToDrawByZ[currentZ];
|
||||
if(currentZ==z)for(tileCoordKey in tilesToDraw){tile=tilesToDraw[tileCoordKey];context.drawImage(tile.getImage(),tileSize.width*(tile.tileCoord.x-tileRange.minX),tileSize.height*(tileRange.maxY-tile.tileCoord.y))}else{scale=tileGrid.getResolution(currentZ)/tileResolution;for(tileCoordKey in tilesToDraw){tile=tilesToDraw[tileCoordKey];tileExtent=tileGrid.getTileCoordExtent(tile.tileCoord);context.drawImage(tile.getImage(),(tileExtent.minX-origin.x)/tileResolution,(origin.y-tileExtent.maxY)/tileResolution,
|
||||
scale*tileSize.width,scale*tileSize.height)}}}this.updateUsedTiles(frameState.usedTiles,tileSource,z,tileRange);tileSource.useLowResolutionTiles(z,frameState.extent);this.scheduleExpireCache(frameState,tileSource);var transform=this.transform_;goog.vec.Mat4.makeIdentity(transform);goog.vec.Mat4.translate(transform,frameState.size.width/2,frameState.size.height/2,0);goog.vec.Mat4.rotateZ(transform,view2DState.rotation);goog.vec.Mat4.scale(transform,tileResolution/view2DState.resolution,tileResolution/
|
||||
view2DState.resolution,1);goog.vec.Mat4.translate(transform,(origin.x-view2DState.center.x)/tileResolution,(view2DState.center.y-origin.y)/tileResolution,0)};goog.provide("ol.renderer.canvas.Map");goog.require("goog.array");goog.require("goog.dom");goog.require("goog.style");goog.require("goog.vec.Mat4");goog.require("ol.Size");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.TileLayer");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.ImageLayer");goog.require("ol.renderer.canvas.TileLayer");
|
||||
ol.renderer.canvas.Map=function(container,map){goog.base(this,container,map);this.canvasSize_=new ol.Size(container.clientHeight,container.clientWidth);this.canvas_=goog.dom.createElement(goog.dom.TagName.CANVAS);this.canvas_.height=this.canvasSize_.height;this.canvas_.width=this.canvasSize_.width;this.canvas_.className="ol-unselectable";goog.dom.insertChildAt(container,this.canvas_,0);this.renderedVisible_=true;this.context_=this.canvas_.getContext("2d")};goog.inherits(ol.renderer.canvas.Map,ol.renderer.Map);
|
||||
ol.renderer.canvas.Map.prototype.createLayerRenderer=function(layer){if(layer instanceof ol.layer.ImageLayer)return new ol.renderer.canvas.ImageLayer(this,layer);else if(layer instanceof ol.layer.TileLayer)return new ol.renderer.canvas.TileLayer(this,layer);else{goog.asserts.assert(false);return null}};ol.renderer.canvas.Map.prototype.getCanvas=function(){return this.canvas_};
|
||||
ol.renderer.canvas.Map.prototype.renderFrame=function(frameState){if(goog.isNull(frameState)){if(this.renderedVisible_){goog.style.showElement(this.canvas_,false);this.renderedVisible_=false}return}var size=frameState.size;if(!this.canvasSize_.equals(size)){this.canvas_.width=size.width;this.canvas_.height=size.height;this.canvasSize_=size}var context=this.context_;context.setTransform(1,0,0,1,0,0);var backgroundColor=frameState.backgroundColor;context.fillStyle="rgb("+backgroundColor.r.toFixed(0)+
|
||||
@@ -1417,7 +1438,7 @@ ol.dom.transformElement2D=function(element,transform,opt_precision){var i;if(ol.
|
||||
1,0),goog.vec.Mat4.getElement(transform,0,1),goog.vec.Mat4.getElement(transform,1,1),goog.vec.Mat4.getElement(transform,0,3),goog.vec.Mat4.getElement(transform,1,3)];var value2D;if(goog.isDef(opt_precision)){var strings2D=new Array(6);for(i=0;i<6;++i)strings2D[i]=transform2D[i].toFixed(opt_precision);value2D=strings2D.join(",")}else value2D=transform2D.join(",");ol.dom.setTransform(element,"matrix("+value2D+")")}else if(ol.dom.BrowserFeature.CAN_USE_MATRIX_FILTER)goog.asserts.assert(false);else{var style=
|
||||
element.style;style.left=Math.round(goog.vec.Mat4.getElement(transform,0,3))+"px";style.top=Math.round(goog.vec.Mat4.getElement(transform,1,3))+"px"}};goog.provide("ol.renderer.dom.Layer");goog.require("ol.layer.Layer");goog.require("ol.renderer.Layer");ol.renderer.dom.Layer=function(mapRenderer,layer,target){goog.base(this,mapRenderer,layer);this.target=target};goog.inherits(ol.renderer.dom.Layer,ol.renderer.Layer);ol.renderer.dom.Layer.prototype.disposeInternal=function(){goog.dom.removeNode(this.target);goog.base(this,"disposeInternal")};ol.renderer.dom.Layer.prototype.getTarget=function(){return this.target};goog.provide("ol.renderer.dom.ImageLayer");goog.require("goog.dom");goog.require("goog.vec.Mat4");goog.require("ol.Image");goog.require("ol.ImageState");goog.require("ol.ViewHint");goog.require("ol.dom");goog.require("ol.layer.ImageLayer");goog.require("ol.renderer.dom.Layer");
|
||||
ol.renderer.dom.ImageLayer=function(mapRenderer,imageLayer){var target=goog.dom.createElement(goog.dom.TagName.DIV);target.className="ol-layer-image";target.style.position="absolute";goog.base(this,mapRenderer,imageLayer,target);this.image_=null;this.transform_=goog.vec.Mat4.createNumberIdentity()};goog.inherits(ol.renderer.dom.ImageLayer,ol.renderer.dom.Layer);ol.renderer.dom.ImageLayer.prototype.getImageLayer=function(){return this.getLayer()};
|
||||
ol.renderer.dom.ImageLayer.prototype.renderFrame=function(frameState,layerState){var view2DState=frameState.view2DState;var viewCenter=view2DState.center;var viewResolution=view2DState.resolution;var viewRotation=view2DState.rotation;var image=this.image_;var imageLayer=this.getImageLayer();var imageSource=imageLayer.getImageSource();var hints=frameState.viewHints;if(!hints[ol.ViewHint.ANIMATING]&&!hints[ol.ViewHint.PANNING]){var image_=imageSource.getImage(frameState.extent,viewResolution);if(!goog.isNull(image_)){var imageState=
|
||||
ol.renderer.dom.ImageLayer.prototype.renderFrame=function(frameState,layerState){var view2DState=frameState.view2DState;var viewCenter=view2DState.center;var viewResolution=view2DState.resolution;var viewRotation=view2DState.rotation;var image=this.image_;var imageLayer=this.getImageLayer();var imageSource=imageLayer.getImageSource();var hints=frameState.viewHints;if(!hints[ol.ViewHint.ANIMATING]&&!hints[ol.ViewHint.INTERACTING]){var image_=imageSource.getImage(frameState.extent,viewResolution);if(!goog.isNull(image_)){var imageState=
|
||||
image_.getState();if(imageState==ol.ImageState.IDLE){goog.events.listenOnce(image_,goog.events.EventType.CHANGE,this.handleImageChange,false,this);image_.load()}else if(imageState==ol.ImageState.LOADED)image=image_}}if(!goog.isNull(image)){var imageExtent=image.getExtent();var imageResolution=image.getResolution();var transform=goog.vec.Mat4.createNumber();goog.vec.Mat4.makeIdentity(transform);goog.vec.Mat4.translate(transform,frameState.size.width/2,frameState.size.height/2,0);goog.vec.Mat4.rotateZ(transform,
|
||||
viewRotation);goog.vec.Mat4.scale(transform,imageResolution/viewResolution,imageResolution/viewResolution,1);goog.vec.Mat4.translate(transform,(imageExtent.minX-viewCenter.x)/imageResolution,(viewCenter.y-imageExtent.maxY)/imageResolution,0);if(image!=this.image_){var imageElement=image.getImageElement(this);imageElement.style.position="absolute";goog.dom.removeChildren(this.target);goog.dom.appendChild(this.target,imageElement);this.image_=image}this.setTransform(transform);this.updateAttributions(frameState.attributions,
|
||||
image.getAttributions())}};ol.renderer.dom.ImageLayer.prototype.setTransform=function(transform){if(!goog.vec.Mat4.equals(transform,this.transform_)){ol.dom.transformElement2D(this.target,transform,6);goog.vec.Mat4.setFromArray(this.transform_,transform)}};goog.provide("ol.renderer.dom.TileLayer");goog.require("goog.asserts");goog.require("goog.dom");goog.require("goog.style");goog.require("goog.vec.Mat4");goog.require("ol.Coordinate");goog.require("ol.Extent");goog.require("ol.Tile");goog.require("ol.TileCoord");goog.require("ol.TileState");goog.require("ol.ViewHint");goog.require("ol.dom");goog.require("ol.layer.TileLayer");goog.require("ol.renderer.dom.Layer");goog.require("ol.tilegrid.TileGrid");
|
||||
@@ -1425,13 +1446,13 @@ ol.renderer.dom.TileLayer=function(mapRenderer,tileLayer){var target=goog.dom.cr
|
||||
ol.renderer.dom.TileLayer.prototype.renderFrame=function(frameState,layerState){if(!layerState.visible){if(this.renderedVisible_){goog.style.showElement(this.target,false);this.renderedVisible_=false}return}var view2DState=frameState.view2DState;var tileLayer=this.getTileLayer();var tileSource=tileLayer.getTileSource();var tileSourceKey=goog.getUid(tileSource).toString();var tileGrid=tileSource.getTileGrid();var z=tileGrid.getZForResolution(view2DState.resolution);var tileResolution=tileGrid.getResolution(z);
|
||||
var tileRange=tileGrid.getTileRangeForExtentAndResolution(frameState.extent,tileResolution);var tilesToDrawByZ={};tilesToDrawByZ[z]={};var isLoaded=function(tile){return!goog.isNull(tile)&&tile.getState()==ol.TileState.LOADED};var findLoadedTiles=goog.bind(tileSource.findLoadedTiles,tileSource,tilesToDrawByZ,isLoaded);var allTilesLoaded=true;var tile,tileCenter,tileCoord,tileState,x,y;for(x=tileRange.minX;x<=tileRange.maxX;++x)for(y=tileRange.minY;y<=tileRange.maxY;++y){tileCoord=new ol.TileCoord(z,
|
||||
x,y);tile=tileSource.getTile(tileCoord);if(goog.isNull(tile))continue;tileState=tile.getState();if(tileState==ol.TileState.IDLE){goog.events.listenOnce(tile,goog.events.EventType.CHANGE,this.handleTileChange,false,this);this.updateWantedTiles(frameState.wantedTiles,tileSource,tileCoord);tileCenter=tileGrid.getTileCoordCenter(tileCoord);frameState.tileQueue.enqueue(tile,tileSourceKey,tileCenter)}else if(tileState==ol.TileState.LOADED){tilesToDrawByZ[z][tileCoord.toString()]=tile;continue}else if(tileState==
|
||||
ol.TileState.ERROR)continue;allTilesLoaded=false;tileGrid.forEachTileCoordParentTileRange(tileCoord,findLoadedTiles)}var zs=goog.array.map(goog.object.getKeys(tilesToDrawByZ),Number);goog.array.sort(zs);var newTileLayerZKeys={};var tileSize=tileGrid.getTileSize();var iz,tileCoordKey,tileCoordOrigin,tileLayerZ,tileLayerZKey,tilesToDraw;for(iz=0;iz<zs.length;++iz){tileLayerZKey=zs[iz];if(tileLayerZKey in this.tileLayerZs_)tileLayerZ=this.tileLayerZs_[tileLayerZKey];else{tileCoordOrigin=tileGrid.getTileCoordForCoordAndZ(view2DState.center,
|
||||
ol.TileState.ERROR)continue;allTilesLoaded=false;tileGrid.forEachTileCoordParentTileRange(tileCoord,findLoadedTiles)}var zs=goog.array.map(goog.object.getKeys(tilesToDrawByZ),Number);goog.array.sort(zs);var newTileLayerZKeys={};var iz,tileCoordKey,tileCoordOrigin,tileLayerZ,tileLayerZKey,tilesToDraw;for(iz=0;iz<zs.length;++iz){tileLayerZKey=zs[iz];if(tileLayerZKey in this.tileLayerZs_)tileLayerZ=this.tileLayerZs_[tileLayerZKey];else{tileCoordOrigin=tileGrid.getTileCoordForCoordAndZ(view2DState.center,
|
||||
tileLayerZKey);tileLayerZ=new ol.renderer.dom.TileLayerZ_(tileGrid,tileCoordOrigin);newTileLayerZKeys[tileLayerZKey]=true;this.tileLayerZs_[tileLayerZKey]=tileLayerZ}tilesToDraw=tilesToDrawByZ[tileLayerZKey];for(tileCoordKey in tilesToDraw)tileLayerZ.addTile(tilesToDraw[tileCoordKey]);tileLayerZ.finalizeAddTiles()}var tileLayerZKeys=goog.array.map(goog.object.getKeys(this.tileLayerZs_),Number);goog.array.sort(tileLayerZKeys);var i,j,origin,resolution;var transform=goog.vec.Mat4.createNumber();for(i=
|
||||
0;i<tileLayerZKeys.length;++i){tileLayerZKey=tileLayerZKeys[i];tileLayerZ=this.tileLayerZs_[tileLayerZKey];if(!(tileLayerZKey in tilesToDrawByZ)){goog.dom.removeNode(tileLayerZ.target);delete this.tileLayerZs_[tileLayerZKey];continue}resolution=tileLayerZ.getResolution();origin=tileLayerZ.getOrigin();goog.vec.Mat4.makeIdentity(transform);goog.vec.Mat4.translate(transform,frameState.size.width/2,frameState.size.height/2,0);goog.vec.Mat4.rotateZ(transform,view2DState.rotation);goog.vec.Mat4.scale(transform,
|
||||
resolution/view2DState.resolution,resolution/view2DState.resolution,1);goog.vec.Mat4.translate(transform,(origin.x-view2DState.center.x)/resolution,(view2DState.center.y-origin.y)/resolution,0);tileLayerZ.setTransform(transform);if(tileLayerZKey in newTileLayerZKeys){for(j=tileLayerZKey-1;j>=0;--j)if(j in this.tileLayerZs_){goog.dom.insertSiblingAfter(tileLayerZ.target,this.tileLayerZs_[j].target);break}if(j<0)goog.dom.insertChildAt(this.target,tileLayerZ.target,0)}else if(!frameState.viewHints[ol.ViewHint.ANIMATING]&&
|
||||
!frameState.viewHints[ol.ViewHint.PANNING])tileLayerZ.removeTilesOutsideExtent(frameState.extent)}if(layerState.opacity!=this.renderedOpacity_){goog.style.setOpacity(this.target,layerState.opacity);this.renderedOpacity_=layerState.opacity}if(layerState.visible&&!this.renderedVisible_){goog.style.showElement(this.target,true);this.renderedVisible_=true}this.updateUsedTiles(frameState.usedTiles,tileSource,z,tileRange);tileSource.useLowResolutionTiles(z,frameState.extent);this.scheduleExpireCache(frameState,
|
||||
!frameState.viewHints[ol.ViewHint.INTERACTING])tileLayerZ.removeTilesOutsideExtent(frameState.extent)}if(layerState.opacity!=this.renderedOpacity_){goog.style.setOpacity(this.target,layerState.opacity);this.renderedOpacity_=layerState.opacity}if(layerState.visible&&!this.renderedVisible_){goog.style.showElement(this.target,true);this.renderedVisible_=true}this.updateUsedTiles(frameState.usedTiles,tileSource,z,tileRange);tileSource.useLowResolutionTiles(z,frameState.extent);this.scheduleExpireCache(frameState,
|
||||
tileSource)};ol.renderer.dom.TileLayerZ_=function(tileGrid,tileCoordOrigin){this.target=goog.dom.createElement(goog.dom.TagName.DIV);this.target.style.position="absolute";this.tileGrid_=tileGrid;this.tileCoordOrigin_=tileCoordOrigin;this.origin_=tileGrid.getTileCoordExtent(tileCoordOrigin).getTopLeft();this.resolution_=tileGrid.getResolution(tileCoordOrigin.z);this.tiles_={};this.documentFragment_=null;this.transform_=goog.vec.Mat4.createNumberIdentity()};
|
||||
ol.renderer.dom.TileLayerZ_.prototype.addTile=function(tile){var tileCoord=tile.tileCoord;goog.asserts.assert(tileCoord.z==this.tileCoordOrigin_.z);var tileCoordKey=tileCoord.toString();if(tileCoordKey in this.tiles_)return;var tileSize=this.tileGrid_.getTileSize();var image=tile.getImage(this);var style=image.style;style.position="absolute";style.left=(tileCoord.x-this.tileCoordOrigin_.x)*tileSize.width+"px";style.top=(this.tileCoordOrigin_.y-tileCoord.y)*tileSize.height+"px";if(goog.isNull(this.documentFragment_))this.documentFragment_=
|
||||
ol.renderer.dom.TileLayerZ_.prototype.addTile=function(tile){var tileCoord=tile.tileCoord;goog.asserts.assert(tileCoord.z==this.tileCoordOrigin_.z);var tileCoordKey=tileCoord.toString();if(tileCoordKey in this.tiles_)return;var tileSize=this.tileGrid_.getTileSize(tileCoord.z);var image=tile.getImage(this);var style=image.style;style.position="absolute";style.left=(tileCoord.x-this.tileCoordOrigin_.x)*tileSize.width+"px";style.top=(this.tileCoordOrigin_.y-tileCoord.y)*tileSize.height+"px";if(goog.isNull(this.documentFragment_))this.documentFragment_=
|
||||
document.createDocumentFragment();goog.dom.appendChild(this.documentFragment_,image);this.tiles_[tileCoordKey]=tile};ol.renderer.dom.TileLayerZ_.prototype.finalizeAddTiles=function(){if(!goog.isNull(this.documentFragment_)){goog.dom.appendChild(this.target,this.documentFragment_);this.documentFragment_=null}};ol.renderer.dom.TileLayerZ_.prototype.getOrigin=function(){return this.origin_};ol.renderer.dom.TileLayerZ_.prototype.getResolution=function(){return this.resolution_};
|
||||
ol.renderer.dom.TileLayerZ_.prototype.removeTilesOutsideExtent=function(extent){var tileRange=this.tileGrid_.getTileRangeForExtentAndZ(extent,this.tileCoordOrigin_.z);var tilesToRemove=[];var tile,tileCoordKey;for(tileCoordKey in this.tiles_){tile=this.tiles_[tileCoordKey];if(!tileRange.contains(tile.tileCoord))tilesToRemove.push(tile)}var i;for(i=0;i<tilesToRemove.length;++i){tile=tilesToRemove[i];tileCoordKey=tile.tileCoord.toString();goog.dom.removeNode(tile.getImage(this));delete this.tiles_[tileCoordKey]}};
|
||||
ol.renderer.dom.TileLayerZ_.prototype.setTransform=function(transform){if(!goog.vec.Mat4.equals(transform,this.transform_)){ol.dom.transformElement2D(this.target,transform,6);goog.vec.Mat4.setFromArray(this.transform_,transform)}};goog.provide("ol.renderer.dom.Map");goog.require("goog.array");goog.require("goog.asserts");goog.require("goog.dom");goog.require("goog.dom.TagName");goog.require("goog.style");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.TileLayer");goog.require("ol.renderer.Map");goog.require("ol.renderer.dom.ImageLayer");goog.require("ol.renderer.dom.TileLayer");
|
||||
@@ -1473,7 +1494,7 @@ ol.renderer.webgl.ImageLayer=function(mapRenderer,imageLayer){goog.base(this,map
|
||||
ol.renderer.webgl.ImageLayer.prototype.createTexture_=function(image){var imageElement=image.getImageElement(this);var gl=this.getMapRenderer().getGL();var texture=gl.createTexture();gl.bindTexture(goog.webgl.TEXTURE_2D,texture);gl.texImage2D(goog.webgl.TEXTURE_2D,0,goog.webgl.RGBA,goog.webgl.RGBA,goog.webgl.UNSIGNED_BYTE,imageElement);gl.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_WRAP_S,goog.webgl.CLAMP_TO_EDGE);gl.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_WRAP_T,goog.webgl.CLAMP_TO_EDGE);
|
||||
gl.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MIN_FILTER,goog.webgl.LINEAR);gl.texParameteri(goog.webgl.TEXTURE_2D,goog.webgl.TEXTURE_MAG_FILTER,goog.webgl.LINEAR);return texture};ol.renderer.webgl.ImageLayer.prototype.disposeInternal=function(){var mapRenderer=this.getMapRenderer();var gl=mapRenderer.getGL();if(!gl.isContextLost())gl.deleteTexture(this.texture_);goog.base(this,"disposeInternal")};ol.renderer.webgl.ImageLayer.prototype.getTexCoordMatrix=function(){return this.texCoordMatrix_};
|
||||
ol.renderer.webgl.ImageLayer.prototype.getTexture=function(){return this.texture_};ol.renderer.webgl.ImageLayer.prototype.getVertexCoordMatrix=function(){return this.vertexCoordMatrix_};ol.renderer.webgl.ImageLayer.prototype.getImageLayer=function(){return this.getLayer()};ol.renderer.webgl.ImageLayer.prototype.handleWebGLContextLost=function(){this.texture_=null};
|
||||
ol.renderer.webgl.ImageLayer.prototype.renderFrame=function(frameState,layerState){var gl=this.getMapRenderer().getGL();var view2DState=frameState.view2DState;var viewCenter=view2DState.center;var viewResolution=view2DState.resolution;var viewRotation=view2DState.rotation;var image=this.image_;var texture=this.texture_;var imageLayer=this.getImageLayer();var imageSource=imageLayer.getImageSource();var hints=frameState.viewHints;if(!hints[ol.ViewHint.ANIMATING]&&!hints[ol.ViewHint.PANNING]){var image_=
|
||||
ol.renderer.webgl.ImageLayer.prototype.renderFrame=function(frameState,layerState){var gl=this.getMapRenderer().getGL();var view2DState=frameState.view2DState;var viewCenter=view2DState.center;var viewResolution=view2DState.resolution;var viewRotation=view2DState.rotation;var image=this.image_;var texture=this.texture_;var imageLayer=this.getImageLayer();var imageSource=imageLayer.getImageSource();var hints=frameState.viewHints;if(!hints[ol.ViewHint.ANIMATING]&&!hints[ol.ViewHint.INTERACTING]){var image_=
|
||||
imageSource.getImage(frameState.extent,viewResolution);if(!goog.isNull(image_)){var imageState=image_.getState();if(imageState==ol.ImageState.IDLE){goog.events.listenOnce(image_,goog.events.EventType.CHANGE,this.handleImageChange,false,this);image_.load()}else if(imageState==ol.ImageState.LOADED){image=image_;texture=this.createTexture_(image_);if(!goog.isNull(this.texture_))frameState.postRenderFunctions.push(goog.partial(function(gl,texture){if(!gl.isContextLost())gl.deleteTexture(texture)},gl,
|
||||
this.texture_))}}}if(!goog.isNull(image)){goog.asserts.assert(!goog.isNull(texture));var canvas=this.getMapRenderer().getCanvas();this.updateVertexCoordMatrix_(canvas.width,canvas.height,viewCenter,viewResolution,viewRotation,image.getExtent());var texCoordMatrix=this.texCoordMatrix_;goog.vec.Mat4.makeIdentity(texCoordMatrix);goog.vec.Mat4.scale(texCoordMatrix,1,-1,1);goog.vec.Mat4.translate(texCoordMatrix,0,-1,0);this.image_=image;this.texture_=texture;this.updateAttributions(frameState.attributions,
|
||||
image.getAttributions())}};
|
||||
@@ -1497,7 +1518,7 @@ goog.webgl.COLOR_ATTACHMENT0,goog.webgl.TEXTURE_2D,texture,0);this.texture_=text
|
||||
ol.renderer.webgl.TileLayer.prototype.disposeInternal=function(){var mapRenderer=this.getMapRenderer();var gl=mapRenderer.getGL();if(!gl.isContextLost()){gl.deleteBuffer(this.arrayBuffer_);gl.deleteFramebuffer(this.framebuffer_);gl.deleteTexture(this.texture_)}goog.base(this,"disposeInternal")};ol.renderer.webgl.TileLayer.prototype.getTexCoordMatrix=function(){return this.texCoordMatrix_};ol.renderer.webgl.TileLayer.prototype.getTexture=function(){return this.texture_};
|
||||
ol.renderer.webgl.TileLayer.prototype.getVertexCoordMatrix=function(){return this.vertexCoordMatrix_};ol.renderer.webgl.TileLayer.prototype.getTileLayer=function(){return this.getLayer()};ol.renderer.webgl.TileLayer.prototype.handleWebGLContextLost=function(){this.locations_=null;this.arrayBuffer_=null;this.texture_=null;this.framebuffer_=null;this.framebufferDimension_=undefined};
|
||||
ol.renderer.webgl.TileLayer.prototype.renderFrame=function(frameState,layerState){var mapRenderer=this.getMapRenderer();var gl=mapRenderer.getGL();var view2DState=frameState.view2DState;var center=view2DState.center;var tileLayer=this.getTileLayer();var tileSource=tileLayer.getTileSource();var tileSourceKey=goog.getUid(tileSource).toString();var tileGrid=tileSource.getTileGrid();var z=tileGrid.getZForResolution(view2DState.resolution);var tileResolution=tileGrid.getResolution(z);var tileRange=tileGrid.getTileRangeForExtentAndResolution(frameState.extent,
|
||||
tileResolution);var framebufferExtent;if(!goog.isNull(this.renderedTileRange_)&&this.renderedTileRange_.equals(tileRange))framebufferExtent=this.renderedFramebufferExtent_;else{var tileRangeSize=tileRange.getSize();var tileSize=tileGrid.getTileSize();var maxDimension=Math.max(tileRangeSize.width*tileSize.width,tileRangeSize.height*tileSize.height);var framebufferDimension=Math.pow(2,Math.ceil(Math.log(maxDimension)/Math.log(2)));var framebufferExtentSize=new ol.Size(tileResolution*framebufferDimension,
|
||||
tileResolution);var framebufferExtent;if(!goog.isNull(this.renderedTileRange_)&&this.renderedTileRange_.equals(tileRange))framebufferExtent=this.renderedFramebufferExtent_;else{var tileRangeSize=tileRange.getSize();var tileSize=tileGrid.getTileSize(z);var maxDimension=Math.max(tileRangeSize.width*tileSize.width,tileRangeSize.height*tileSize.height);var framebufferDimension=Math.pow(2,Math.ceil(Math.log(maxDimension)/Math.log(2)));var framebufferExtentSize=new ol.Size(tileResolution*framebufferDimension,
|
||||
tileResolution*framebufferDimension);var origin=tileGrid.getOrigin(z);var minX=origin.x+tileRange.minX*tileSize.width*tileResolution;var minY=origin.y+tileRange.minY*tileSize.height*tileResolution;framebufferExtent=new ol.Extent(minX,minY,minX+framebufferExtentSize.width,minY+framebufferExtentSize.height);this.bindFramebuffer_(frameState,framebufferDimension);gl.viewport(0,0,framebufferDimension,framebufferDimension);gl.clearColor(0,0,0,0);gl.clear(goog.webgl.COLOR_BUFFER_BIT);gl.disable(goog.webgl.BLEND);
|
||||
var program=mapRenderer.getProgram(this.fragmentShader_,this.vertexShader_);gl.useProgram(program);if(goog.isNull(this.locations_))this.locations_={aPosition:gl.getAttribLocation(program,"aPosition"),aTexCoord:gl.getAttribLocation(program,"aTexCoord"),uTileOffset:gl.getUniformLocation(program,"uTileOffset"),uTexture:gl.getUniformLocation(program,"uTexture")};if(goog.isNull(this.arrayBuffer_)){var arrayBuffer=gl.createBuffer();gl.bindBuffer(goog.webgl.ARRAY_BUFFER,arrayBuffer);gl.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_=arrayBuffer}else gl.bindBuffer(goog.webgl.ARRAY_BUFFER,this.arrayBuffer_);gl.enableVertexAttribArray(this.locations_.aPosition);gl.vertexAttribPointer(this.locations_.aPosition,2,goog.webgl.FLOAT,false,16,0);gl.enableVertexAttribArray(this.locations_.aTexCoord);gl.vertexAttribPointer(this.locations_.aTexCoord,2,goog.webgl.FLOAT,false,16,8);gl.uniform1i(this.locations_.uTexture,0);var tilesToDrawByZ={};tilesToDrawByZ[z]=
|
||||
@@ -1546,8 +1567,9 @@ false,layerRenderer.getColorMatrix());gl.uniform1f(this.locations_.uOpacity,laye
|
||||
this))};goog.provide("ol.renderer.webgl.SUPPORTED");goog.require("ol.webgl");ol.renderer.webgl.SUPPORTED=ol.webgl.SUPPORTED;goog.provide("ol.Map");goog.provide("ol.MapProperty");goog.provide("ol.RendererHint");goog.provide("ol.RendererHints");goog.require("goog.Uri.QueryData");goog.require("goog.async.AnimationDelay");goog.require("goog.debug.Logger");goog.require("goog.dom");goog.require("goog.dom.ViewportSizeMonitor");goog.require("goog.events");goog.require("goog.events.BrowserEvent");goog.require("goog.events.Event");goog.require("goog.events.EventType");goog.require("goog.events.KeyHandler");goog.require("goog.events.KeyHandler.EventType");
|
||||
goog.require("goog.events.MouseWheelHandler");goog.require("goog.events.MouseWheelHandler.EventType");goog.require("ol.BrowserFeature");goog.require("ol.Collection");goog.require("ol.Color");goog.require("ol.Coordinate");goog.require("ol.Extent");goog.require("ol.FrameState");goog.require("ol.IView");goog.require("ol.Kinetic");goog.require("ol.MapBrowserEvent");goog.require("ol.MapBrowserEvent.EventType");goog.require("ol.MapBrowserEventHandler");goog.require("ol.MapEvent");goog.require("ol.MapEventType");
|
||||
goog.require("ol.Object");goog.require("ol.ObjectEventType");goog.require("ol.Pixel");goog.require("ol.PostRenderFunction");goog.require("ol.PreRenderFunction");goog.require("ol.Size");goog.require("ol.Tile");goog.require("ol.TileQueue");goog.require("ol.View");goog.require("ol.View2D");goog.require("ol.control.Attribution");goog.require("ol.control.Control");goog.require("ol.control.Zoom");goog.require("ol.interaction.DblClickZoom");goog.require("ol.interaction.DragPan");goog.require("ol.interaction.DragRotate");
|
||||
goog.require("ol.interaction.DragZoom");goog.require("ol.interaction.Interaction");goog.require("ol.interaction.KeyboardPan");goog.require("ol.interaction.KeyboardZoom");goog.require("ol.interaction.MouseWheelZoom");goog.require("ol.interaction.TouchPan");goog.require("ol.interaction.TouchRotateAndZoom");goog.require("ol.interaction.condition");goog.require("ol.layer.Layer");goog.require("ol.projection");goog.require("ol.projection.addCommonProjections");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.Map");
|
||||
goog.require("ol.renderer.canvas.SUPPORTED");goog.require("ol.renderer.dom.Map");goog.require("ol.renderer.dom.SUPPORTED");goog.require("ol.renderer.webgl.Map");goog.require("ol.renderer.webgl.SUPPORTED");ol.ENABLE_CANVAS=true;ol.ENABLE_DOM=true;ol.ENABLE_WEBGL=true;ol.RendererHint={CANVAS:"canvas",DOM:"dom",WEBGL:"webgl"};ol.DEFAULT_RENDERER_HINTS=[ol.RendererHint.WEBGL,ol.RendererHint.CANVAS,ol.RendererHint.DOM];ol.MapProperty={BACKGROUND_COLOR:"backgroundColor",LAYERS:"layers",SIZE:"size",VIEW:"view"};
|
||||
goog.require("ol.interaction.DragZoom");goog.require("ol.interaction.Interaction");goog.require("ol.interaction.KeyboardPan");goog.require("ol.interaction.KeyboardZoom");goog.require("ol.interaction.MouseWheelZoom");goog.require("ol.interaction.TouchPan");goog.require("ol.interaction.TouchRotate");goog.require("ol.interaction.TouchZoom");goog.require("ol.interaction.condition");goog.require("ol.layer.Layer");goog.require("ol.projection");goog.require("ol.projection.addCommonProjections");goog.require("ol.renderer.Map");
|
||||
goog.require("ol.renderer.canvas.Map");goog.require("ol.renderer.canvas.SUPPORTED");goog.require("ol.renderer.dom.Map");goog.require("ol.renderer.dom.SUPPORTED");goog.require("ol.renderer.webgl.Map");goog.require("ol.renderer.webgl.SUPPORTED");ol.ENABLE_CANVAS=true;ol.ENABLE_DOM=true;ol.ENABLE_WEBGL=true;ol.RendererHint={CANVAS:"canvas",DOM:"dom",WEBGL:"webgl"};ol.DEFAULT_RENDERER_HINTS=[ol.RendererHint.WEBGL,ol.RendererHint.CANVAS,ol.RendererHint.DOM];
|
||||
ol.MapProperty={BACKGROUND_COLOR:"backgroundColor",LAYERS:"layers",SIZE:"size",VIEW:"view"};
|
||||
ol.Map=function(mapOptions){goog.base(this);if(goog.DEBUG)this.logger=goog.debug.Logger.getLogger("ol.map."+goog.getUid(this));var mapOptionsInternal=ol.Map.createOptionsInternal(mapOptions);this.animationDelay_=new goog.async.AnimationDelay(this.renderFrame_,undefined,this);this.registerDisposable(this.animationDelay_);this.coordinateToPixelMatrix_=goog.vec.Mat4.createNumber();this.pixelToCoordinateMatrix_=goog.vec.Mat4.createNumber();this.frameState_=null;this.freezeRenderingCount_=0;this.dirty_=
|
||||
false;this.target_=mapOptionsInternal.target;this.viewPropertyListenerKey_=null;this.viewport_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-viewport");this.viewport_.style.position="relative";this.viewport_.style.overflow="hidden";this.viewport_.style.width="100%";this.viewport_.style.height="100%";this.viewport_.style.msTouchAction="none";goog.dom.appendChild(this.target_,this.viewport_);this.overlayContainer_=goog.dom.createDom(goog.dom.TagName.DIV,"ol-overlaycontainer");goog.events.listen(this.overlayContainer_,
|
||||
[goog.events.EventType.CLICK,ol.BrowserFeature.HAS_TOUCH?goog.events.EventType.TOUCHSTART:goog.events.EventType.MOUSEDOWN],goog.events.Event.stopPropagation);goog.dom.appendChild(this.viewport_,this.overlayContainer_);var mapBrowserEventHandler=new ol.MapBrowserEventHandler(this);goog.events.listen(mapBrowserEventHandler,goog.object.getValues(ol.MapBrowserEvent.EventType),this.handleMapBrowserEvent,false,this);this.registerDisposable(mapBrowserEventHandler);var keyHandler=new goog.events.KeyHandler(document);
|
||||
@@ -1577,9 +1599,9 @@ rendererHint;for(i=0;i<rendererHints.length;++i){rendererHint=rendererHints[i];i
|
||||
ol.Map.createControls_(mapOptions);var interactions;if(goog.isDef(mapOptions.interactions))interactions=mapOptions.interactions;else interactions=ol.Map.createInteractions_(mapOptions);var target=goog.dom.getElement(mapOptions.target);return{controls:controls,interactions:interactions,rendererConstructor:rendererConstructor,target:target,values:values}};
|
||||
ol.Map.createControls_=function(mapOptions){var controls=[];var attributionControl=goog.isDef(mapOptions.attributionControl)?mapOptions.attributionControl:true;if(attributionControl)controls.push(new ol.control.Attribution({}));var zoomControl=goog.isDef(mapOptions.zoomControl)?mapOptions.zoomControl:true;if(zoomControl){var zoomDelta=goog.isDef(mapOptions.zoomDelta)?mapOptions.zoomDelta:4;controls.push(new ol.control.Zoom({delta:zoomDelta}))}return controls};
|
||||
ol.Map.createInteractions_=function(mapOptions){var interactions=new ol.Collection;var rotate=goog.isDef(mapOptions.rotate)?mapOptions.rotate:true;if(rotate)interactions.push(new ol.interaction.DragRotate(ol.interaction.condition.altShiftKeysOnly));var doubleClickZoom=goog.isDef(mapOptions.doubleClickZoom)?mapOptions.doubleClickZoom:true;if(doubleClickZoom){var zoomDelta=goog.isDef(mapOptions.zoomDelta)?mapOptions.zoomDelta:4;interactions.push(new ol.interaction.DblClickZoom(zoomDelta))}var touchPan=
|
||||
goog.isDef(mapOptions.touchPan)?mapOptions.touchPan:true;if(touchPan)interactions.push(new ol.interaction.TouchPan);var touchRotateZoom=goog.isDef(mapOptions.touchRotateZoom)?mapOptions.touchRotateZoom:true;if(touchRotateZoom)interactions.push(new ol.interaction.TouchRotateAndZoom);var dragPan=goog.isDef(mapOptions.dragPan)?mapOptions.dragPan:true;if(dragPan)interactions.push(new ol.interaction.DragPan(ol.interaction.condition.noModifierKeys,new ol.Kinetic(-0.005,0.05,100)));var keyboard=goog.isDef(mapOptions.keyboard)?
|
||||
mapOptions.keyboard:true;var keyboardPanOffset=goog.isDef(mapOptions.keyboardPanOffset)?mapOptions.keyboardPanOffset:80;if(keyboard){interactions.push(new ol.interaction.KeyboardPan(keyboardPanOffset));interactions.push(new ol.interaction.KeyboardZoom)}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))}var shiftDragZoom=
|
||||
goog.isDef(mapOptions.shiftDragZoom)?mapOptions.shiftDragZoom:true;if(shiftDragZoom)interactions.push(new ol.interaction.DragZoom(ol.interaction.condition.shiftKeyOnly));return interactions};
|
||||
goog.isDef(mapOptions.touchPan)?mapOptions.touchPan:true;if(touchPan)interactions.push(new ol.interaction.TouchPan(new ol.Kinetic(-0.005,0.05,100)));var touchRotate=goog.isDef(mapOptions.touchRotate)?mapOptions.touchRotate:true;if(touchRotate)interactions.push(new ol.interaction.TouchRotate);var touchZoom=goog.isDef(mapOptions.touchZoom)?mapOptions.touchZoom:true;if(touchZoom)interactions.push(new ol.interaction.TouchZoom);var dragPan=goog.isDef(mapOptions.dragPan)?mapOptions.dragPan:true;if(dragPan)interactions.push(new ol.interaction.DragPan(ol.interaction.condition.noModifierKeys,
|
||||
new ol.Kinetic(-0.005,0.05,100)));var keyboard=goog.isDef(mapOptions.keyboard)?mapOptions.keyboard:true;var keyboardPanOffset=goog.isDef(mapOptions.keyboardPanOffset)?mapOptions.keyboardPanOffset:80;if(keyboard){interactions.push(new ol.interaction.KeyboardPan(keyboardPanOffset));interactions.push(new ol.interaction.KeyboardZoom)}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))}var shiftDragZoom=goog.isDef(mapOptions.shiftDragZoom)?mapOptions.shiftDragZoom:true;if(shiftDragZoom)interactions.push(new ol.interaction.DragZoom(ol.interaction.condition.shiftKeyOnly));return interactions};
|
||||
ol.RendererHints.createFromQueryData=function(opt_queryData){var query=goog.global.location.search.substring(1),queryData=goog.isDef(opt_queryData)?opt_queryData:new goog.Uri.QueryData(query);if(queryData.containsKey("renderers"))return queryData.get("renderers").split(",");else if(queryData.containsKey("renderer"))return[queryData.get("renderer")];else return ol.DEFAULT_RENDERER_HINTS};ol.projection.addCommonProjections();goog.provide("ol.AnchoredElement");goog.provide("ol.AnchoredElementPositioning");goog.provide("ol.AnchoredElementProperty");goog.require("goog.dom");goog.require("goog.events");goog.require("goog.style");goog.require("ol.Coordinate");goog.require("ol.Map");goog.require("ol.MapEventType");goog.require("ol.Object");ol.AnchoredElementProperty={ELEMENT:"element",MAP:"map",POSITION:"position",POSITIONING:"positioning"};
|
||||
ol.AnchoredElementPositioning={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"};
|
||||
ol.AnchoredElement=function(anchoredElementOptions){goog.base(this);this.element_=goog.dom.createElement(goog.dom.TagName.DIV);this.element_.style.position="absolute";this.rendered_={bottom_:"",left_:"",right_:"",top_:"",visible:true};goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.ELEMENT),this.handleElementChanged,false,this);goog.events.listen(this,ol.Object.getChangedEventType(ol.AnchoredElementProperty.MAP),this.handleMapChanged,false,this);goog.events.listen(this,
|
||||
@@ -1627,8 +1649,8 @@ goog.net.Jsonp.newErrorHandler_=function(id,payload,opt_errorCallback){return fu
|
||||
goog.net.Jsonp.cleanup_=function(id,deleteReplyHandler){if(goog.global[goog.net.Jsonp.CALLBACKS][id])if(deleteReplyHandler)delete goog.global[goog.net.Jsonp.CALLBACKS][id];else goog.global[goog.net.Jsonp.CALLBACKS][id]=goog.nullFunction};goog.net.Jsonp.addPayloadToUri_=function(payload,uri){for(var name in payload)if(!payload.hasOwnProperty||payload.hasOwnProperty(name))uri.setParameterValues(name,payload[name]);return uri};goog.provide("ol.TileUrlFunction");goog.provide("ol.TileUrlFunctionType");goog.require("goog.array");goog.require("goog.math");goog.require("goog.uri.utils");goog.require("ol.TileCoord");goog.require("ol.tilegrid.TileGrid");ol.TileUrlFunctionType;
|
||||
ol.TileUrlFunction.createFromTemplate=function(template){var match=/\{(\d)-(\d)\}/.exec(template)||/\{([a-z])-([a-z])\}/.exec(template);if(match){var templates=[];var startCharCode=match[1].charCodeAt(0);var stopCharCode=match[2].charCodeAt(0);var charCode;for(charCode=startCharCode;charCode<=stopCharCode;++charCode)templates.push(template.replace(match[0],String.fromCharCode(charCode)));return ol.TileUrlFunction.createFromTemplates(templates)}else return function(tileCoord){if(goog.isNull(tileCoord))return undefined;
|
||||
else return template.replace("{z}",tileCoord.z).replace("{x}",tileCoord.x).replace("{y}",tileCoord.y)}};ol.TileUrlFunction.createFromTemplates=function(templates){return ol.TileUrlFunction.createFromTileUrlFunctions(goog.array.map(templates,ol.TileUrlFunction.createFromTemplate))};ol.TileUrlFunction.createFromTileUrlFunctions=function(tileUrlFunctions){return function(tileCoord){if(goog.isNull(tileCoord))return undefined;else{var index=goog.math.modulo(tileCoord.hash(),tileUrlFunctions.length);return tileUrlFunctions[index](tileCoord)}}};
|
||||
ol.TileUrlFunction.createBboxParam=function(baseUrl,tileGrid,axisOrientation){return function(tileCoord){if(goog.isNull(tileCoord))return undefined;else{var tileExtent=tileGrid.getTileCoordExtent(tileCoord);var bboxValues=axisOrientation.substr(0,2)=="ne"?[tileExtent.minY,tileExtent.minX,tileExtent.maxY,tileExtent.maxX]:[tileExtent.minX,tileExtent.minY,tileExtent.maxX,tileExtent.maxY];return goog.uri.utils.appendParam(baseUrl,"BBOX",bboxValues.join(","))}}};
|
||||
ol.TileUrlFunction.nullTileUrlFunction=function(tileCoord){return undefined};ol.TileUrlFunction.withTileCoordTransform=function(transformFn,tileUrlFunction){return function(tileCoord){if(goog.isNull(tileCoord))return undefined;else return tileUrlFunction(transformFn(tileCoord))}};goog.provide("ol.ImageTile");goog.require("goog.array");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("ol.Tile");goog.require("ol.TileCoord");goog.require("ol.TileState");ol.ImageTile=function(tileCoord,src,crossOrigin){goog.base(this,tileCoord);this.src_=src;this.image_=new Image;if(!goog.isNull(crossOrigin))this.image_.crossOrigin=crossOrigin;this.imageByContext_={};this.imageListenerKeys_=null};goog.inherits(ol.ImageTile,ol.Tile);
|
||||
ol.TileUrlFunction.createBboxParam=function(baseUrl,tileGrid,axisOrientation){return function(tileCoord){if(goog.isNull(tileCoord))return undefined;else{var tileExtent=tileGrid.getTileCoordExtent(tileCoord);var bboxValues=axisOrientation.substr(0,2)=="ne"?[tileExtent.minY,tileExtent.minX,tileExtent.maxY,tileExtent.maxX]:[tileExtent.minX,tileExtent.minY,tileExtent.maxX,tileExtent.maxY];var tileSize=tileGrid.getTileSize(tileCoord.z);return goog.uri.utils.appendParams(baseUrl,"BBOX",bboxValues.join(","),
|
||||
"HEIGHT",tileSize.height,"WIDTH",tileSize.width)}}};ol.TileUrlFunction.nullTileUrlFunction=function(tileCoord){return undefined};ol.TileUrlFunction.withTileCoordTransform=function(transformFn,tileUrlFunction){return function(tileCoord){if(goog.isNull(tileCoord))return undefined;else return tileUrlFunction(transformFn(tileCoord))}};goog.provide("ol.ImageTile");goog.require("goog.array");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("ol.Tile");goog.require("ol.TileCoord");goog.require("ol.TileState");ol.ImageTile=function(tileCoord,src,crossOrigin){goog.base(this,tileCoord);this.src_=src;this.image_=new Image;if(!goog.isNull(crossOrigin))this.image_.crossOrigin=crossOrigin;this.imageByContext_={};this.imageListenerKeys_=null};goog.inherits(ol.ImageTile,ol.Tile);
|
||||
ol.ImageTile.prototype.getImage=function(opt_context){if(goog.isDef(opt_context)){var image;var key=goog.getUid(opt_context);if(key in this.imageByContext_)return this.imageByContext_[key];else if(goog.object.isEmpty(this.imageByContext_))image=this.image_;else image=this.image_.cloneNode(false);this.imageByContext_[key]=image;return image}else return this.image_};ol.ImageTile.prototype.getKey=function(){return this.src_};
|
||||
ol.ImageTile.prototype.handleImageError_=function(){this.state=ol.TileState.ERROR;this.unlistenImage_();this.dispatchChangeEvent()};ol.ImageTile.prototype.handleImageLoad_=function(){this.state=ol.TileState.LOADED;this.unlistenImage_();this.dispatchChangeEvent()};
|
||||
ol.ImageTile.prototype.load=function(){if(this.state==ol.TileState.IDLE){this.state=ol.TileState.LOADING;goog.asserts.assert(goog.isNull(this.imageListenerKeys_));this.imageListenerKeys_=[goog.events.listenOnce(this.image_,goog.events.EventType.ERROR,this.handleImageError_,false,this),goog.events.listenOnce(this.image_,goog.events.EventType.LOAD,this.handleImageLoad_,false,this)];this.image_.src=this.src_}};
|
||||
@@ -1655,32 +1677,20 @@ this.b*this.b;var uSquared=cosSquaredAlpha*(aSquared-bSquared)/bSquared;var A=1+
|
||||
sinLambda,cosU1*sinU2*cosLambda-sinU1*cosU2);return{distance:this.b*A*(sigma-deltaSigma),initialBearing:goog.math.toDegrees(alpha1),finalBearing:goog.math.toDegrees(alpha2)}};ol.Ellipsoid.prototype.vincentyDistance=function(c1,c2,opt_minDeltaLambda,opt_maxIterations){var vincenty=this.vincenty(c1,c2,opt_minDeltaLambda,opt_maxIterations);return vincenty.distance};
|
||||
ol.Ellipsoid.prototype.vincentyFinalBearing=function(c1,c2,opt_minDeltaLambda,opt_maxIterations){var vincenty=this.vincenty(c1,c2,opt_minDeltaLambda,opt_maxIterations);return vincenty.finalBearing};ol.Ellipsoid.prototype.vincentyInitialBearing=function(c1,c2,opt_minDeltaLambda,opt_maxIterations){var vincenty=this.vincenty(c1,c2,opt_minDeltaLambda,opt_maxIterations);return vincenty.initialBearing};goog.provide("ol.Geolocation");goog.provide("ol.GeolocationProperty");goog.require("goog.functions");goog.require("goog.math");goog.require("ol.Coordinate");goog.require("ol.Object");goog.require("ol.Projection");goog.require("ol.projection");ol.GeolocationProperty={ACCURACY:"accuracy",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed"};
|
||||
ol.Geolocation=function(opt_positionOptions){goog.base(this);this.position_=null;if(ol.Geolocation.SUPPORTED){goog.events.listen(this,ol.Object.getChangedEventType(ol.GeolocationProperty.PROJECTION),this.handleProjectionChanged_,false,this);this.watchId_=navigator.geolocation.watchPosition(goog.bind(this.positionChange_,this),goog.bind(this.positionError_,this),opt_positionOptions)}};goog.inherits(ol.Geolocation,ol.Object);
|
||||
ol.Geolocation.prototype.disposeInternal=function(){navigator.geolocation.clearWatch(this.watchId_);goog.base(this,"disposeInternal")};ol.Geolocation.prototype.handleProjectionChanged_=function(){var projection=this.getProjection();if(goog.isDefAndNotNull(projection)){this.transformCoords_=ol.projection.getTransform(ol.projection.getFromCode("EPSG:4326"),projection);if(!goog.isNull(this.position_))this.set(ol.GeolocationProperty.POSITION,this.transformCoords_(this.position_))}};
|
||||
ol.Geolocation.SUPPORTED="geolocation"in navigator;
|
||||
ol.Geolocation.prototype.disposeInternal=function(){navigator.geolocation.clearWatch(this.watchId_);goog.base(this,"disposeInternal")};
|
||||
ol.Geolocation.prototype.handleProjectionChanged_=function(){var projection=this.getProjection();if(goog.isDefAndNotNull(projection)){this.transformFn_=ol.projection.getTransform(ol.projection.getFromCode("EPSG:4326"),projection);if(!goog.isNull(this.position_)){var vertex=[this.position_.x,this.position_.y];vertex=this.transformFn_(vertex,vertex,2);this.set(ol.GeolocationProperty.POSITION,new ol.Coordinate(vertex[0],vertex[1]))}}};ol.Geolocation.SUPPORTED="geolocation"in navigator;
|
||||
ol.Geolocation.prototype.positionChange_=function(position){var coords=position.coords;this.set(ol.GeolocationProperty.ACCURACY,coords.accuracy);this.set(ol.GeolocationProperty.ALTITUDE,goog.isNull(coords.altitude)?undefined:coords.altitude);this.set(ol.GeolocationProperty.ALTITUDE_ACCURACY,goog.isNull(coords.altitudeAccuracy)?undefined:coords.altitudeAccuracy);this.set(ol.GeolocationProperty.HEADING,goog.isNull(coords.heading)?undefined:goog.math.toRadians(coords.heading));this.position_=new ol.Coordinate(coords.longitude,
|
||||
coords.latitude);this.set(ol.GeolocationProperty.POSITION,this.transformCoords_(this.position_));this.set(ol.GeolocationProperty.SPEED,goog.isNull(coords.speed)?undefined:coords.speed)};ol.Geolocation.prototype.positionError_=function(error){};ol.Geolocation.prototype.getAccuracy=function(){return this.get(ol.GeolocationProperty.ACCURACY)};goog.exportProperty(ol.Geolocation.prototype,"getAccuracy",ol.Geolocation.prototype.getAccuracy);ol.Geolocation.prototype.getAltitude=function(){return this.get(ol.GeolocationProperty.ALTITUDE)};
|
||||
goog.exportProperty(ol.Geolocation.prototype,"getAltitude",ol.Geolocation.prototype.getAltitude);ol.Geolocation.prototype.getAltitudeAccuracy=function(){return this.get(ol.GeolocationProperty.ALTITUDE_ACCURACY)};goog.exportProperty(ol.Geolocation.prototype,"getAltitudeAccuracy",ol.Geolocation.prototype.getAltitudeAccuracy);ol.Geolocation.prototype.getHeading=function(){return this.get(ol.GeolocationProperty.HEADING)};goog.exportProperty(ol.Geolocation.prototype,"getHeading",ol.Geolocation.prototype.getHeading);
|
||||
ol.Geolocation.prototype.getPosition=function(){return this.get(ol.GeolocationProperty.POSITION)};goog.exportProperty(ol.Geolocation.prototype,"getPosition",ol.Geolocation.prototype.getPosition);ol.Geolocation.prototype.getProjection=function(){return this.get(ol.GeolocationProperty.PROJECTION)};goog.exportProperty(ol.Geolocation.prototype,"getProjection",ol.Geolocation.prototype.getProjection);ol.Geolocation.prototype.getSpeed=function(){return this.get(ol.GeolocationProperty.SPEED)};
|
||||
goog.exportProperty(ol.Geolocation.prototype,"getSpeed",ol.Geolocation.prototype.getSpeed);ol.Geolocation.prototype.setProjection=function(projection){this.set(ol.GeolocationProperty.PROJECTION,projection)};goog.exportProperty(ol.Geolocation.prototype,"setProjection",ol.Geolocation.prototype.setProjection);ol.Geolocation.prototype.transformCoords_=goog.functions.identity;/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
Licenced under CC-BY-3.0.
|
||||
*/
|
||||
goog.provide("ol.Sphere");goog.require("goog.math");goog.require("ol.Coordinate");ol.Sphere=function(radius){this.radius=radius};ol.Sphere.prototype.cosineDistance=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLon=goog.math.toRadians(c2.x-c1.x);return this.radius*Math.acos(Math.sin(lat1)*Math.sin(lat2)+Math.cos(lat1)*Math.cos(lat2)*Math.cos(deltaLon))};
|
||||
ol.Sphere.prototype.crossTrackDistance=function(c1,c2,c3){var d12=this.cosineDistance(c1,c2);var d13=this.cosineDistance(c1,c2);var theta12=goog.math.toRadians(this.initialBearing(c1,c2));var theta13=goog.math.toRadians(this.initialBearing(c1,c3));return this.radius*Math.asin(Math.sin(d13/this.radius)*Math.sin(theta13-theta12))};
|
||||
ol.Sphere.prototype.equirectangularDistance=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLon=goog.math.toRadians(c2.x-c1.x);var x=deltaLon*Math.cos((lat1+lat2)/2);var y=lat2-lat1;return this.radius*Math.sqrt(x*x+y*y)};ol.Sphere.prototype.finalBearing=function(c1,c2){return(this.initialBearing(c2,c1)+180)%360};
|
||||
ol.Sphere.prototype.haversineDistance=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLatBy2=(lat2-lat1)/2;var deltaLonBy2=goog.math.toRadians(c2.x-c1.x)/2;var a=Math.sin(deltaLatBy2)*Math.sin(deltaLatBy2)+Math.sin(deltaLonBy2)*Math.sin(deltaLonBy2)*Math.cos(lat1)*Math.cos(lat2);return 2*this.radius*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))};
|
||||
ol.Sphere.prototype.initialBearing=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var deltaLon=goog.math.toRadians(c2.x-c1.x);var y=Math.sin(deltaLon)*Math.cos(lat2);var x=Math.cos(lat1)*Math.sin(lat2)-Math.sin(lat1)*Math.cos(lat2)*Math.cos(deltaLon);return goog.math.toDegrees(Math.atan2(y,x))};ol.Sphere.prototype.maximumLatitude=function(bearing,latitude){return Math.cos(Math.abs(Math.sin(goog.math.toRadians(bearing))*Math.cos(goog.math.toRadians(latitude))))};
|
||||
ol.Sphere.prototype.midpoint=function(c1,c2){var lat1=goog.math.toRadians(c1.y);var lat2=goog.math.toRadians(c2.y);var lon1=goog.math.toRadians(c1.x);var deltaLon=goog.math.toRadians(c2.x-c1.x);var Bx=Math.cos(lat2)*Math.cos(deltaLon);var By=Math.cos(lat2)*Math.sin(deltaLon);var cosLat1PlusBx=Math.cos(lat1)+Bx;var lat=Math.atan2(Math.sin(lat1)+Math.sin(lat2),Math.sqrt(cosLat1PlusBx*cosLat1PlusBx+By*By));var lon=lon1+Math.atan2(By,cosLat1PlusBx);return new ol.Coordinate(goog.math.toDegrees(lon),goog.math.toDegrees(lat))};
|
||||
ol.Sphere.prototype.offset=function(c1,distance,bearing){var lat1=goog.math.toRadians(c1.y);var lon1=goog.math.toRadians(c1.x);var dByR=distance/this.radius;var lat=Math.asin(Math.sin(lat1)*Math.cos(dByR)+Math.cos(lat1)*Math.sin(dByR)*Math.cos(bearing));var lon=lon1+Math.atan2(Math.sin(bearing)*Math.sin(dByR)*Math.cos(lat1),Math.cos(dByR)-Math.sin(lat1)*Math.sin(lat));return new ol.Coordinate(goog.math.toDegrees(lon),goog.math.toDegrees(lat))};goog.provide("ol.control.MousePosition");goog.require("goog.array");goog.require("goog.dom");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("goog.style");goog.require("ol.CoordinateFormatType");goog.require("ol.MapEvent");goog.require("ol.MapEventType");goog.require("ol.Pixel");goog.require("ol.Projection");goog.require("ol.TransformFunction");goog.require("ol.control.Control");goog.require("ol.projection");
|
||||
coords.latitude);var vertex=[coords.longitude,coords.latitude];vertex=this.transformFn_(vertex,vertex,2);this.set(ol.GeolocationProperty.POSITION,new ol.Coordinate(vertex[0],vertex[1]));this.set(ol.GeolocationProperty.SPEED,goog.isNull(coords.speed)?undefined:coords.speed)};ol.Geolocation.prototype.positionError_=function(error){};ol.Geolocation.prototype.getAccuracy=function(){return this.get(ol.GeolocationProperty.ACCURACY)};goog.exportProperty(ol.Geolocation.prototype,"getAccuracy",ol.Geolocation.prototype.getAccuracy);
|
||||
ol.Geolocation.prototype.getAltitude=function(){return this.get(ol.GeolocationProperty.ALTITUDE)};goog.exportProperty(ol.Geolocation.prototype,"getAltitude",ol.Geolocation.prototype.getAltitude);ol.Geolocation.prototype.getAltitudeAccuracy=function(){return this.get(ol.GeolocationProperty.ALTITUDE_ACCURACY)};goog.exportProperty(ol.Geolocation.prototype,"getAltitudeAccuracy",ol.Geolocation.prototype.getAltitudeAccuracy);ol.Geolocation.prototype.getHeading=function(){return this.get(ol.GeolocationProperty.HEADING)};
|
||||
goog.exportProperty(ol.Geolocation.prototype,"getHeading",ol.Geolocation.prototype.getHeading);ol.Geolocation.prototype.getPosition=function(){return this.get(ol.GeolocationProperty.POSITION)};goog.exportProperty(ol.Geolocation.prototype,"getPosition",ol.Geolocation.prototype.getPosition);ol.Geolocation.prototype.getProjection=function(){return this.get(ol.GeolocationProperty.PROJECTION)};goog.exportProperty(ol.Geolocation.prototype,"getProjection",ol.Geolocation.prototype.getProjection);
|
||||
ol.Geolocation.prototype.getSpeed=function(){return this.get(ol.GeolocationProperty.SPEED)};goog.exportProperty(ol.Geolocation.prototype,"getSpeed",ol.Geolocation.prototype.getSpeed);ol.Geolocation.prototype.setProjection=function(projection){this.set(ol.GeolocationProperty.PROJECTION,projection)};goog.exportProperty(ol.Geolocation.prototype,"setProjection",ol.Geolocation.prototype.setProjection);ol.Geolocation.prototype.transformFn_=goog.functions.identity;goog.provide("ol.control.MousePosition");goog.require("goog.array");goog.require("goog.dom");goog.require("goog.events");goog.require("goog.events.EventType");goog.require("goog.style");goog.require("ol.Coordinate");goog.require("ol.CoordinateFormatType");goog.require("ol.MapEvent");goog.require("ol.MapEventType");goog.require("ol.Pixel");goog.require("ol.Projection");goog.require("ol.TransformFunction");goog.require("ol.control.Control");goog.require("ol.projection");
|
||||
ol.control.MousePosition=function(mousePositionOptions){var element=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ol-mouse-position"});goog.base(this,{element:element,map:mousePositionOptions.map,target:mousePositionOptions.target});this.projection_=mousePositionOptions.projection;this.coordinateFormat_=mousePositionOptions.coordinateFormat;this.undefinedHTML_=goog.isDef(mousePositionOptions.undefinedHTML)?mousePositionOptions.undefinedHTML:"";this.renderedHTML_=element.innerHTML;this.mapProjection_=
|
||||
null;this.transform_=ol.projection.identityTransform;this.renderedProjection_=null;this.lastMouseMovePixel_=null;this.listenerKeys_=null};goog.inherits(ol.control.MousePosition,ol.control.Control);ol.control.MousePosition.prototype.handleMapPostrender=function(mapEvent){var frameState=mapEvent.frameState;if(goog.isNull(frameState))this.mapProjection_=null;else this.mapProjection_=frameState.view2DState.projection;this.updateHTML_(this.lastMouseMovePixel_)};
|
||||
ol.control.MousePosition.prototype.handleMouseMove=function(browserEvent){var map=this.getMap();var eventPosition=goog.style.getRelativePosition(browserEvent,map.getViewport());var pixel=new ol.Pixel(eventPosition.x,eventPosition.y);this.updateHTML_(pixel);this.lastMouseMovePixel_=pixel};ol.control.MousePosition.prototype.handleMouseOut=function(browserEvent){this.updateHTML_(null);this.lastMouseMovePixel_=null};
|
||||
ol.control.MousePosition.prototype.setMap=function(map){if(!goog.isNull(this.listenerKeys_)){goog.array.forEach(this.listenerKeys_,goog.events.unlistenByKey);this.listenerKeys_=null}goog.base(this,"setMap",map);if(!goog.isNull(map)){var viewport=map.getViewport();this.listenerKeys_=[goog.events.listen(viewport,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,false,this),goog.events.listen(viewport,goog.events.EventType.MOUSEOUT,this.handleMouseOut,false,this),goog.events.listen(map,ol.MapEventType.POSTRENDER,
|
||||
this.handleMapPostrender,false,this)]}};
|
||||
ol.control.MousePosition.prototype.updateHTML_=function(pixel){var html=this.undefinedHTML_;if(!goog.isNull(pixel)){if(this.renderedProjection_!=this.mapProjection_){if(goog.isDef(this.projection_))this.transform_=ol.projection.getTransform(this.mapProjection_,this.projection_);else this.transform_=ol.projection.identityTransform;this.renderedProjection_=this.mapProjection_}var map=this.getMap();var coordinate=map.getCoordinateFromPixel(pixel);if(!goog.isNull(coordinate)){coordinate=this.transform_(coordinate);
|
||||
if(goog.isDef(this.coordinateFormat_))html=this.coordinateFormat_(coordinate);else html=coordinate.toString()}}if(!goog.isDef(this.renderedHTML_)||html!=this.renderedHTML_){this.element.innerHTML=html;this.renderedHTML_=html}};goog.provide("ol.ellipsoid.WGS84");goog.require("ol.Ellipsoid");ol.ellipsoid.WGS84=new ol.Ellipsoid(6378137,1/298.257223563);goog.provide("ol.interaction.DragRotateAndZoom");goog.require("goog.math.Vec2");goog.require("ol.View2D");goog.require("ol.interaction.ConditionType");goog.require("ol.interaction.Drag");ol.interaction.DragRotateAndZoom=function(condition){goog.base(this);this.condition_=condition;this.lastAngle_;this.lastMagnitude_};goog.inherits(ol.interaction.DragRotateAndZoom,ol.interaction.Drag);
|
||||
ol.control.MousePosition.prototype.updateHTML_=function(pixel){var html=this.undefinedHTML_;if(!goog.isNull(pixel)){if(this.renderedProjection_!=this.mapProjection_){if(goog.isDef(this.projection_))this.transform_=ol.projection.getTransform(this.mapProjection_,this.projection_);else this.transform_=ol.projection.identityTransform;this.renderedProjection_=this.mapProjection_}var map=this.getMap();var coordinate=map.getCoordinateFromPixel(pixel);if(!goog.isNull(coordinate)){var vertex=[coordinate.x,
|
||||
coordinate.y];vertex=this.transform_(vertex,vertex);coordinate=new ol.Coordinate(vertex[0],vertex[1]);if(goog.isDef(this.coordinateFormat_))html=this.coordinateFormat_(coordinate);else html=coordinate.toString()}}if(!goog.isDef(this.renderedHTML_)||html!=this.renderedHTML_){this.element.innerHTML=html;this.renderedHTML_=html}};goog.provide("ol.ellipsoid.WGS84");goog.require("ol.Ellipsoid");ol.ellipsoid.WGS84=new ol.Ellipsoid(6378137,1/298.257223563);goog.provide("ol.interaction.DragRotateAndZoom");goog.require("goog.math.Vec2");goog.require("ol.View2D");goog.require("ol.interaction.ConditionType");goog.require("ol.interaction.Drag");ol.interaction.DragRotateAndZoom=function(condition){goog.base(this);this.condition_=condition;this.lastAngle_;this.lastMagnitude_};goog.inherits(ol.interaction.DragRotateAndZoom,ol.interaction.Drag);
|
||||
ol.interaction.DragRotateAndZoom.prototype.handleDrag=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;var map=mapBrowserEvent.map;var size=map.getSize();var delta=new goog.math.Vec2(browserEvent.offsetX-size.width/2,size.height/2-browserEvent.offsetY);var theta=Math.atan2(delta.y,delta.x);var magnitude=delta.magnitude();var view=map.getView();goog.asserts.assert(view instanceof ol.View2D);map.requestRenderFrame();if(goog.isDef(this.lastAngle_)){var angleDelta=theta-this.lastAngle_;
|
||||
view.rotate(map,view.getRotation()-angleDelta)}this.lastAngle_=theta;if(goog.isDef(this.lastMagnitude_)){var resolution=this.lastMagnitude_*(view.getResolution()/magnitude);view.zoomToResolution(map,resolution)}this.lastMagnitude_=magnitude};ol.interaction.DragRotateAndZoom.prototype.handleDragStart=function(mapBrowserEvent){var browserEvent=mapBrowserEvent.browserEvent;if(this.condition_(browserEvent)){this.lastAngle_=undefined;this.lastMagnitude_=undefined;return true}else return false};goog.provide("ol.interaction.Keyboard");goog.require("ol.interaction.Interaction");ol.interaction.Keyboard=function(){goog.base(this);this.charCodeCallbacks_={}};goog.inherits(ol.interaction.Keyboard,ol.interaction.Interaction);ol.interaction.Keyboard.prototype.addCallback=function(s,callback){var i;for(i=0;i<s.length;++i)this.charCodeCallbacks_[s.charCodeAt(i)]=callback};
|
||||
ol.interaction.Keyboard.prototype.handleMapBrowserEvent=function(mapBrowserEvent){if(mapBrowserEvent.type==goog.events.KeyHandler.EventType.KEY){var keyEvent=mapBrowserEvent.browserEvent;var callback=this.charCodeCallbacks_[keyEvent.charCode];if(callback){callback();mapBrowserEvent.preventDefault()}}};goog.provide("ol.parser.XML");ol.parser.XML=function(){this.regExes={trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g}};ol.parser.XML.prototype.readNode=function(node,obj){if(!obj)obj={};var group=this.readers[node.namespaceURI]||this.readers[this.defaultNamespaceURI];if(group){var local=node.localName||node.nodeName.split(":").pop();var reader=group[local]||group["*"];if(reader)reader.apply(this,[node,obj])}return obj};
|
||||
@@ -1753,7 +1763,7 @@ ol.projection.getFromCode(obj["supportedCRS"]).getAxisOrientation();obj["topLeft
|
||||
parseInt(this.getChildValue(node),10)},"ResourceURL":function(node,obj){obj["resourceUrl"]=obj["resourceUrl"]||{};var resourceType=node.getAttribute("resourceType");if(!obj["resourceUrls"])obj["resourceUrls"]=[];var resourceUrl=obj["resourceUrl"][resourceType]={"format":node.getAttribute("format"),"template":node.getAttribute("template"),"resourceType":resourceType};obj["resourceUrls"].push(resourceUrl)},"WSDL":function(node,obj){obj["wsdl"]={};obj["wsdl"]["href"]=this.getAttributeNS(node,"http://www.w3.org/1999/xlink",
|
||||
"href")},"ServiceMetadataURL":function(node,obj){obj["serviceMetadataUrl"]={};obj["serviceMetadataUrl"]["href"]=this.getAttributeNS(node,"http://www.w3.org/1999/xlink","href")},"LegendURL":function(node,obj){obj["legend"]={};obj["legend"]["href"]=this.getAttributeNS(node,"http://www.w3.org/1999/xlink","href");obj["legend"]["format"]=node.getAttribute("format")},"Dimension":function(node,obj){var dimension={"values":[]};this.readChildNodes(node,dimension);obj["dimensions"].push(dimension)},"Default":function(node,
|
||||
obj){obj["default"]=this.getChildValue(node)},"Value":function(node,obj){obj["values"].push(this.getChildValue(node))}}};var ows=new ol.parser.ogc.OWSCommon_v1_1_0;this.readers["http://www.opengis.net/ows/1.1"]=ows.readers["http://www.opengis.net/ows/1.1"];goog.base(this)};goog.inherits(ol.parser.ogc.WMTSCapabilities_v1_0_0,ol.parser.XML);
|
||||
ol.parser.ogc.WMTSCapabilities_v1_0_0.prototype.read=function(data){if(typeof data=="string")data=goog.dom.xml.loadXml(data);if(data&&data.nodeType==9)data=data.documentElement;var obj={};this.readNode(data,obj);return obj};goog.provide("ol.parser.ogc.WMTSCapabilities");goog.require("ol.parser.ogc.Versioned");goog.require("ol.parser.ogc.WMTSCapabilities_v1_0_0");ol.parser.ogc.WMTSCapabilities=function(opt_options){opt_options=opt_options||{};opt_options["defaultVersion"]="1.0.0";this.parsers={};this.parsers["v1_0_0"]=ol.parser.ogc.WMTSCapabilities_v1_0_0;goog.base(this,opt_options)};goog.inherits(ol.parser.ogc.WMTSCapabilities,ol.parser.ogc.Versioned);goog.provide("ol.source.DebugTileSource");goog.require("ol.Size");goog.require("ol.Tile");goog.require("ol.TileCache");goog.require("ol.TileCoord");goog.require("ol.TileState");goog.require("ol.source.TileSource");goog.require("ol.tilegrid.TileGrid");ol.DebugTile_=function(tileCoord,tileGrid){goog.base(this,tileCoord);this.state=ol.TileState.LOADED;this.tileCoord_=tileCoord;this.tileSize_=tileGrid.getTileSize();this.canvasByContext_={}};goog.inherits(ol.DebugTile_,ol.Tile);
|
||||
ol.parser.ogc.WMTSCapabilities_v1_0_0.prototype.read=function(data){if(typeof data=="string")data=goog.dom.xml.loadXml(data);if(data&&data.nodeType==9)data=data.documentElement;var obj={};this.readNode(data,obj);return obj};goog.provide("ol.parser.ogc.WMTSCapabilities");goog.require("ol.parser.ogc.Versioned");goog.require("ol.parser.ogc.WMTSCapabilities_v1_0_0");ol.parser.ogc.WMTSCapabilities=function(opt_options){opt_options=opt_options||{};opt_options["defaultVersion"]="1.0.0";this.parsers={};this.parsers["v1_0_0"]=ol.parser.ogc.WMTSCapabilities_v1_0_0;goog.base(this,opt_options)};goog.inherits(ol.parser.ogc.WMTSCapabilities,ol.parser.ogc.Versioned);goog.provide("ol.source.DebugTileSource");goog.require("ol.Size");goog.require("ol.Tile");goog.require("ol.TileCache");goog.require("ol.TileCoord");goog.require("ol.TileState");goog.require("ol.source.TileSource");goog.require("ol.tilegrid.TileGrid");ol.DebugTile_=function(tileCoord,tileGrid){goog.base(this,tileCoord);this.state=ol.TileState.LOADED;this.tileCoord_=tileCoord;this.tileSize_=tileGrid.getTileSize(tileCoord.z);this.canvasByContext_={}};goog.inherits(ol.DebugTile_,ol.Tile);
|
||||
ol.DebugTile_.prototype.getImage=function(opt_context){var key=goog.isDef(opt_context)?goog.getUid(opt_context):-1;if(key in this.canvasByContext_)return this.canvasByContext_[key];else{var tileSize=this.tileSize_;var canvas=goog.dom.createElement(goog.dom.TagName.CANVAS);canvas.width=tileSize.width;canvas.height=tileSize.height;var context=canvas.getContext("2d");context.strokeStyle="black";context.strokeRect(0.5,0.5,tileSize.width+0.5,tileSize.height+0.5);context.fillStyle="black";context.textAlign=
|
||||
"center";context.textBaseline="middle";context.font="24px sans-serif";context.fillText(this.tileCoord_.toString(),tileSize.width/2,tileSize.height/2);this.canvasByContext_[key]=canvas;return canvas}};ol.source.DebugTileSource=function(options){goog.base(this,{extent:options.extent,projection:options.projection,tileGrid:options.tileGrid});this.tileCache_=new ol.TileCache};goog.inherits(ol.source.DebugTileSource,ol.source.TileSource);ol.source.DebugTileSource.prototype.canExpireCache=function(){return this.tileCache_.canExpireCache()};
|
||||
ol.source.DebugTileSource.prototype.expireCache=function(usedTiles){this.tileCache_.expireCache(usedTiles)};ol.source.DebugTileSource.prototype.getTile=function(tileCoord){var key=tileCoord.toString();if(this.tileCache_.containsKey(key))return this.tileCache_.get(key);else{var tile=new ol.DebugTile_(tileCoord,this.tileGrid);this.tileCache_.set(key,tile);return tile}};goog.provide("ol.source.XYZ");goog.provide("ol.source.XYZOptions");goog.require("goog.math");goog.require("ol.Attribution");goog.require("ol.Extent");goog.require("ol.Projection");goog.require("ol.TileCoord");goog.require("ol.TileUrlFunction");goog.require("ol.TileUrlFunctionType");goog.require("ol.projection");goog.require("ol.source.ImageTileSource");goog.require("ol.tilegrid.XYZ");ol.source.XYZOptions;
|
||||
@@ -1779,20 +1789,21 @@ ol.source.TileJSON.prototype.handleTileJSONResponse=function(){var tileJSON=ol.t
|
||||
tileGrid.getTileCoordExtent(new ol.TileCoord(tileCoord.z,x,tileCoord.y));if(!tileExtent.intersects(extent))return null}return new ol.TileCoord(tileCoord.z,x,y)},ol.TileUrlFunction.createFromTemplates(tileJSON.tiles));if(goog.isDef(tileJSON.attribution)){var attributionExtent=goog.isNull(extent)?epsg4326Projection.getExtent():extent;var tileRanges={};var z,zKey;for(z=minZoom;z<=maxZoom;++z){zKey=z.toString();tileRanges[zKey]=[tileGrid.getTileRangeForExtentAndZ(attributionExtent,z)]}this.setAttributions([new ol.Attribution(tileJSON.attribution,
|
||||
tileRanges)])}this.ready_=true;this.dispatchLoadEvent()};ol.source.TileJSON.prototype.isReady=function(){return this.ready_};goog.provide("ol.source.TiledWMS");goog.require("goog.array");goog.require("goog.object");goog.require("goog.uri.utils");goog.require("ol.Extent");goog.require("ol.TileCoord");goog.require("ol.TileUrlFunction");goog.require("ol.projection");goog.require("ol.source.ImageTileSource");
|
||||
ol.source.TiledWMS=function(tiledWMSOptions){var projection=ol.projection.createProjection(tiledWMSOptions.projection,"EPSG:3857");var projectionExtent=projection.getExtent();var extent=goog.isDef(tiledWMSOptions.extent)?tiledWMSOptions.extent:projectionExtent;var version=goog.isDef(tiledWMSOptions.version)?tiledWMSOptions.version:"1.3";var tileGrid;if(goog.isDef(tiledWMSOptions.tileGrid))tileGrid=tiledWMSOptions.tileGrid;else tileGrid=ol.tilegrid.createForProjection(projection,tiledWMSOptions.maxZoom);
|
||||
var baseParams={"SERVICE":"WMS","VERSION":version,"REQUEST":"GetMap","STYLES":"","FORMAT":"image/png","TRANSPARENT":true};var tileSize=tileGrid.getTileSize();baseParams["WIDTH"]=tileSize.width;baseParams["HEIGHT"]=tileSize.height;baseParams[version>="1.3"?"CRS":"SRS"]=projection.getCode();goog.object.extend(baseParams,tiledWMSOptions.params);var axisOrientation=projection.getAxisOrientation();var tileUrlFunction;if(tiledWMSOptions.urls){var tileUrlFunctions=goog.array.map(tiledWMSOptions.urls,function(url){url=
|
||||
goog.uri.utils.appendParamsFromMap(url,baseParams);return ol.TileUrlFunction.createBboxParam(url,tileGrid,axisOrientation)});tileUrlFunction=ol.TileUrlFunction.createFromTileUrlFunctions(tileUrlFunctions)}else if(tiledWMSOptions.url){var url=goog.uri.utils.appendParamsFromMap(tiledWMSOptions.url,baseParams);tileUrlFunction=ol.TileUrlFunction.createBboxParam(url,tileGrid,axisOrientation)}else tileUrlFunction=ol.TileUrlFunction.nullTileUrlFunction;var tileCoordTransform=function(tileCoord){if(tileGrid.getResolutions().length<=
|
||||
tileCoord.z)return null;var x=tileCoord.x;var tileExtent=tileGrid.getTileCoordExtent(tileCoord);if(extent.minX===projectionExtent.minX&&extent.maxX===projectionExtent.maxX){var numCols=Math.ceil((extent.maxX-extent.minX)/(tileExtent.maxX-tileExtent.minX));x=goog.math.modulo(x,numCols);tileExtent=tileGrid.getTileCoordExtent(new ol.TileCoord(tileCoord.z,x,tileCoord.y))}if(!tileExtent.intersects(extent))return null;return new ol.TileCoord(tileCoord.z,x,tileCoord.y)};goog.base(this,{attributions:tiledWMSOptions.attributions,
|
||||
crossOrigin:tiledWMSOptions.crossOrigin,extent:extent,tileGrid:tileGrid,projection:projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(tileCoordTransform,tileUrlFunction)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);goog.require("ol");goog.require("ol.AnchoredElement");goog.require("ol.AnchoredElementPositioning");goog.require("ol.AnchoredElementProperty");goog.require("ol.Attribution");goog.require("ol.BingMapsStyle");goog.require("ol.BrowserFeature");goog.require("ol.Collection");goog.require("ol.CollectionEvent");goog.require("ol.CollectionEventType");goog.require("ol.Color");goog.require("ol.Constraints");goog.require("ol.Coordinate");goog.require("ol.CoordinateFormatType");goog.require("ol.Ellipsoid");goog.require("ol.Extent");
|
||||
var baseParams={"SERVICE":"WMS","VERSION":version,"REQUEST":"GetMap","STYLES":"","FORMAT":"image/png","TRANSPARENT":true};baseParams[version>="1.3"?"CRS":"SRS"]=projection.getCode();goog.object.extend(baseParams,tiledWMSOptions.params);var axisOrientation=projection.getAxisOrientation();var tileUrlFunction;if(tiledWMSOptions.urls){var tileUrlFunctions=goog.array.map(tiledWMSOptions.urls,function(url){url=goog.uri.utils.appendParamsFromMap(url,baseParams);return ol.TileUrlFunction.createBboxParam(url,
|
||||
tileGrid,axisOrientation)});tileUrlFunction=ol.TileUrlFunction.createFromTileUrlFunctions(tileUrlFunctions)}else if(tiledWMSOptions.url){var url=goog.uri.utils.appendParamsFromMap(tiledWMSOptions.url,baseParams);tileUrlFunction=ol.TileUrlFunction.createBboxParam(url,tileGrid,axisOrientation)}else tileUrlFunction=ol.TileUrlFunction.nullTileUrlFunction;var tileCoordTransform=function(tileCoord){if(tileGrid.getResolutions().length<=tileCoord.z)return null;var x=tileCoord.x;var tileExtent=tileGrid.getTileCoordExtent(tileCoord);
|
||||
if(extent.minX===projectionExtent.minX&&extent.maxX===projectionExtent.maxX){var numCols=Math.ceil((extent.maxX-extent.minX)/(tileExtent.maxX-tileExtent.minX));x=goog.math.modulo(x,numCols);tileExtent=tileGrid.getTileCoordExtent(new ol.TileCoord(tileCoord.z,x,tileCoord.y))}if(!tileExtent.intersects(extent))return null;return new ol.TileCoord(tileCoord.z,x,tileCoord.y)};goog.base(this,{attributions:tiledWMSOptions.attributions,crossOrigin:tiledWMSOptions.crossOrigin,extent:extent,tileGrid:tileGrid,
|
||||
projection:projection,tileUrlFunction:ol.TileUrlFunction.withTileCoordTransform(tileCoordTransform,tileUrlFunction)})};goog.inherits(ol.source.TiledWMS,ol.source.ImageTileSource);goog.provide("ol.sphere.WGS84");goog.require("ol.Sphere");ol.sphere.WGS84=new ol.Sphere(6378137);goog.require("ol");goog.require("ol.AnchoredElement");goog.require("ol.AnchoredElementPositioning");goog.require("ol.AnchoredElementProperty");goog.require("ol.Attribution");goog.require("ol.BingMapsStyle");goog.require("ol.BrowserFeature");goog.require("ol.Collection");goog.require("ol.CollectionEvent");goog.require("ol.CollectionEventType");goog.require("ol.Color");goog.require("ol.Constraints");goog.require("ol.Coordinate");goog.require("ol.CoordinateFormatType");goog.require("ol.Ellipsoid");goog.require("ol.Extent");
|
||||
goog.require("ol.FrameState");goog.require("ol.Geolocation");goog.require("ol.GeolocationProperty");goog.require("ol.IView");goog.require("ol.IView2D");goog.require("ol.IView3D");goog.require("ol.Image");goog.require("ol.ImageState");goog.require("ol.ImageTile");goog.require("ol.ImageUrlFunction");goog.require("ol.ImageUrlFunctionType");goog.require("ol.Kinetic");goog.require("ol.Map");goog.require("ol.MapBrowserEvent");goog.require("ol.MapBrowserEvent.EventType");goog.require("ol.MapBrowserEventHandler");
|
||||
goog.require("ol.MapEvent");goog.require("ol.MapEventType");goog.require("ol.MapProperty");goog.require("ol.Object");goog.require("ol.ObjectEventType");goog.require("ol.Pixel");goog.require("ol.PixelBounds");goog.require("ol.PostRenderFunction");goog.require("ol.PreRenderFunction");goog.require("ol.Projection");goog.require("ol.ProjectionUnits");goog.require("ol.Rectangle");goog.require("ol.RendererHint");goog.require("ol.RendererHints");goog.require("ol.ResolutionConstraint");goog.require("ol.ResolutionConstraintType");
|
||||
goog.require("ol.RotationConstraint");goog.require("ol.RotationConstraintType");goog.require("ol.Size");goog.require("ol.Sphere");goog.require("ol.Tile");goog.require("ol.TileCache");goog.require("ol.TileCoord");goog.require("ol.TilePriorityFunction");goog.require("ol.TileQueue");goog.require("ol.TileRange");goog.require("ol.TileState");goog.require("ol.TileUrlFunction");goog.require("ol.TileUrlFunctionType");goog.require("ol.TransformFunction");goog.require("ol.View");goog.require("ol.View2D");goog.require("ol.View2DProperty");
|
||||
goog.require("ol.View2DState");goog.require("ol.ViewHint");goog.require("ol.animation");goog.require("ol.array");goog.require("ol.canvas");goog.require("ol.control.Attribution");goog.require("ol.control.Control");goog.require("ol.control.ControlOptions");goog.require("ol.control.DragBox");goog.require("ol.control.MousePosition");goog.require("ol.control.Zoom");goog.require("ol.dom");goog.require("ol.dom.BrowserFeature");goog.require("ol.easing");goog.require("ol.ellipsoid.WGS84");goog.require("ol.interaction.ConditionType");
|
||||
goog.require("ol.interaction.DblClickZoom");goog.require("ol.interaction.Drag");goog.require("ol.interaction.DragPan");goog.require("ol.interaction.DragRotate");goog.require("ol.interaction.DragRotateAndZoom");goog.require("ol.interaction.DragZoom");goog.require("ol.interaction.Interaction");goog.require("ol.interaction.Keyboard");goog.require("ol.interaction.KeyboardPan");goog.require("ol.interaction.KeyboardZoom");goog.require("ol.interaction.MouseWheelZoom");goog.require("ol.interaction.Touch");
|
||||
goog.require("ol.interaction.TouchPan");goog.require("ol.interaction.TouchRotateAndZoom");goog.require("ol.interaction.condition");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.Layer");goog.require("ol.layer.LayerProperty");goog.require("ol.layer.LayerState");goog.require("ol.layer.TileLayer");goog.require("ol.parser.XML");goog.require("ol.parser.ogc.ExceptionReport");goog.require("ol.parser.ogc.OWSCommon_v1");goog.require("ol.parser.ogc.OWSCommon_v1_1_0");goog.require("ol.parser.ogc.Versioned");
|
||||
goog.require("ol.parser.ogc.WMSCapabilities");goog.require("ol.parser.ogc.WMSCapabilities_v1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_0");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC");goog.require("ol.parser.ogc.WMSCapabilities_v1_3_0");goog.require("ol.parser.ogc.WMTSCapabilities");goog.require("ol.parser.ogc.WMTSCapabilities_v1_0_0");goog.require("ol.renderer.Layer");goog.require("ol.renderer.Map");
|
||||
goog.require("ol.renderer.canvas.ImageLayer");goog.require("ol.renderer.canvas.Layer");goog.require("ol.renderer.canvas.Map");goog.require("ol.renderer.canvas.SUPPORTED");goog.require("ol.renderer.canvas.TileLayer");goog.require("ol.renderer.dom.ImageLayer");goog.require("ol.renderer.dom.Layer");goog.require("ol.renderer.dom.Map");goog.require("ol.renderer.dom.SUPPORTED");goog.require("ol.renderer.dom.TileLayer");goog.require("ol.renderer.webgl.FragmentShader");goog.require("ol.renderer.webgl.ImageLayer");
|
||||
goog.require("ol.renderer.webgl.Layer");goog.require("ol.renderer.webgl.Map");goog.require("ol.renderer.webgl.SUPPORTED");goog.require("ol.renderer.webgl.TileLayer");goog.require("ol.renderer.webgl.VertexShader");goog.require("ol.renderer.webgl.map.shader");goog.require("ol.renderer.webgl.tilelayerrenderer");goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Fragment");goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Vertex");goog.require("ol.source.BingMaps");goog.require("ol.source.DebugTileSource");
|
||||
goog.require("ol.source.ImageSource");goog.require("ol.source.ImageTileSource");goog.require("ol.source.ImageTileSourceOptions");goog.require("ol.source.MapQuestOSM");goog.require("ol.source.MapQuestOpenAerial");goog.require("ol.source.OpenStreetMap");goog.require("ol.source.SingleImageWMS");goog.require("ol.source.Source");goog.require("ol.source.Stamen");goog.require("ol.source.StamenFlavor");goog.require("ol.source.StamenProvider");goog.require("ol.source.StaticImage");goog.require("ol.source.TileJSON");
|
||||
goog.require("ol.source.TileSource");goog.require("ol.source.TileSourceOptions");goog.require("ol.source.TiledWMS");goog.require("ol.source.XYZ");goog.require("ol.source.XYZOptions");goog.require("ol.structs.LRUCache");goog.require("ol.tilegrid.TileGrid");goog.require("ol.tilegrid.XYZ");goog.require("ol.tilejson");goog.require("ol.vec.Mat4");goog.require("ol.webgl");goog.require("ol.webgl.WebGLContextEventType");goog.provide("ol.AnchoredElementOptionsType");goog.provide("ol.MapOptionsType");goog.provide("ol.View2DOptionsType");goog.provide("ol.animation.BounceOptionsType");goog.provide("ol.animation.PanOptionsType");goog.provide("ol.animation.RotateOptionsType");goog.provide("ol.animation.ZoomOptionsType");goog.provide("ol.control.AttributionOptionsType");goog.provide("ol.control.MousePositionOptionsType");goog.provide("ol.control.ZoomOptionsType");goog.provide("ol.layer.LayerOptionsType");goog.provide("ol.source.BingMapsOptionsType");
|
||||
goog.require("ol.interaction.TouchPan");goog.require("ol.interaction.TouchRotate");goog.require("ol.interaction.TouchZoom");goog.require("ol.interaction.condition");goog.require("ol.layer.ImageLayer");goog.require("ol.layer.Layer");goog.require("ol.layer.LayerProperty");goog.require("ol.layer.LayerState");goog.require("ol.layer.TileLayer");goog.require("ol.math");goog.require("ol.parser.XML");goog.require("ol.parser.ogc.ExceptionReport");goog.require("ol.parser.ogc.OWSCommon_v1");goog.require("ol.parser.ogc.OWSCommon_v1_1_0");
|
||||
goog.require("ol.parser.ogc.Versioned");goog.require("ol.parser.ogc.WMSCapabilities");goog.require("ol.parser.ogc.WMSCapabilities_v1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_0");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1");goog.require("ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC");goog.require("ol.parser.ogc.WMSCapabilities_v1_3_0");goog.require("ol.parser.ogc.WMTSCapabilities");goog.require("ol.parser.ogc.WMTSCapabilities_v1_0_0");
|
||||
goog.require("ol.projection");goog.require("ol.projection.EPSG3857");goog.require("ol.projection.EPSG4326");goog.require("ol.projection.addCommonProjections");goog.require("ol.renderer.Layer");goog.require("ol.renderer.Map");goog.require("ol.renderer.canvas.ImageLayer");goog.require("ol.renderer.canvas.Layer");goog.require("ol.renderer.canvas.Map");goog.require("ol.renderer.canvas.SUPPORTED");goog.require("ol.renderer.canvas.TileLayer");goog.require("ol.renderer.dom.ImageLayer");goog.require("ol.renderer.dom.Layer");
|
||||
goog.require("ol.renderer.dom.Map");goog.require("ol.renderer.dom.SUPPORTED");goog.require("ol.renderer.dom.TileLayer");goog.require("ol.renderer.webgl.FragmentShader");goog.require("ol.renderer.webgl.ImageLayer");goog.require("ol.renderer.webgl.Layer");goog.require("ol.renderer.webgl.Map");goog.require("ol.renderer.webgl.SUPPORTED");goog.require("ol.renderer.webgl.TileLayer");goog.require("ol.renderer.webgl.VertexShader");goog.require("ol.renderer.webgl.map.shader");goog.require("ol.renderer.webgl.tilelayerrenderer");
|
||||
goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Fragment");goog.require("ol.renderer.webgl.tilelayerrenderer.shader.Vertex");goog.require("ol.source.BingMaps");goog.require("ol.source.DebugTileSource");goog.require("ol.source.ImageSource");goog.require("ol.source.ImageTileSource");goog.require("ol.source.ImageTileSourceOptions");goog.require("ol.source.MapQuestOSM");goog.require("ol.source.MapQuestOpenAerial");goog.require("ol.source.OpenStreetMap");goog.require("ol.source.SingleImageWMS");
|
||||
goog.require("ol.source.Source");goog.require("ol.source.Stamen");goog.require("ol.source.StamenFlavor");goog.require("ol.source.StamenProvider");goog.require("ol.source.StaticImage");goog.require("ol.source.TileJSON");goog.require("ol.source.TileSource");goog.require("ol.source.TileSourceOptions");goog.require("ol.source.TiledWMS");goog.require("ol.source.XYZ");goog.require("ol.source.XYZOptions");goog.require("ol.sphere.NORMAL");goog.require("ol.sphere.WGS84");goog.require("ol.structs.LRUCache");
|
||||
goog.require("ol.tilegrid.TileGrid");goog.require("ol.tilegrid.XYZ");goog.require("ol.tilejson");goog.require("ol.vec.Mat4");goog.require("ol.webgl");goog.require("ol.webgl.WebGLContextEventType");goog.provide("ol.AnchoredElementOptionsType");goog.provide("ol.MapOptionsType");goog.provide("ol.View2DOptionsType");goog.provide("ol.animation.BounceOptionsType");goog.provide("ol.animation.PanOptionsType");goog.provide("ol.animation.RotateOptionsType");goog.provide("ol.animation.ZoomOptionsType");goog.provide("ol.control.AttributionOptionsType");goog.provide("ol.control.MousePositionOptionsType");goog.provide("ol.control.ZoomOptionsType");goog.provide("ol.layer.LayerOptionsType");goog.provide("ol.source.BingMapsOptionsType");
|
||||
goog.provide("ol.source.DebugTileSourceOptionsType");goog.provide("ol.source.SingleImageWMSOptionsType");goog.provide("ol.source.StamenOptionsType");goog.provide("ol.source.StaticImageOptionsType");goog.provide("ol.source.TiledWMSOptionsType");goog.provide("ol.tilegrid.TileGridOptionsType");goog.provide("ol.tilegrid.XYZOptionsType");ol.AnchoredElementOptions;ol.MapOptions;ol.View2DOptions;ol.animation.BounceOptions;ol.animation.PanOptions;ol.animation.RotateOptions;ol.animation.ZoomOptions;ol.control.AttributionOptions;
|
||||
ol.control.MousePositionOptions;ol.control.ZoomOptions;ol.layer.LayerOptions;ol.source.BingMapsOptions;ol.source.DebugTileSourceOptions;ol.source.SingleImageWMSOptions;ol.source.StamenOptions;ol.source.StaticImageOptions;ol.source.TiledWMSOptions;ol.tilegrid.TileGridOptions;ol.tilegrid.XYZOptions;
|
||||
|
||||
@@ -1,224 +1,234 @@
|
||||
(function(){var h=void 0,i=!0,k=null,m=!1;function q(a){return function(){return this[a]}}var s,v=this;function x(){}function aa(a){a.Ya=function(){return a.lc?a.lc:a.lc=new a}}
|
||||
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
||||
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function y(a){return a!==h}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ea(a){return"string"==typeof a}function ga(a){return"function"==ba(a)}function ha(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(a){return a[ia]||(a[ia]=++ja)}var ia="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ja=0;
|
||||
function ka(a,b,c){return a.call.apply(a.bind,arguments)}function la(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function ma(a,b,c){ma=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return ma.apply(k,arguments)}
|
||||
function na(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var oa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=v;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&y(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c};function pa(a){Error.captureStackTrace?Error.captureStackTrace(this,pa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(pa,Error);pa.prototype.name="CustomError";function qa(a){if(!ra.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(sa,"&"));-1!=a.indexOf("<")&&(a=a.replace(ta,"<"));-1!=a.indexOf(">")&&(a=a.replace(ua,">"));-1!=a.indexOf('"')&&(a=a.replace(va,"""));return a}var sa=/&/g,ta=/</g,ua=/>/g,va=/\"/g,ra=/[&<>\"]/;var wa=Array.prototype,xa=wa.indexOf?function(a,b,c){return wa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ea(a))return!ea(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},D=wa.forEach?function(a,b,c){wa.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ea(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ya=wa.map?function(a,b,c){return wa.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
||||
ea(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},za=wa.some?function(a,b,c){return wa.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ea(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return m};function Aa(a){if(!ca(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ba(a,b){var c=xa(a,b),d;(d=0<=c)&&wa.splice.call(a,c,1);return d}function Ca(a){return wa.concat.apply(wa,arguments)}
|
||||
function Da(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ea(a,b,c,d){wa.splice.apply(a,Fa(arguments,1))}function Fa(a,b,c){return 2>=arguments.length?wa.slice.call(a,b):wa.slice.call(a,b,c)}function Ga(a){wa.sort.call(a,Ha)}function Ha(a,b){return a>b?1:a<b?-1:0};function Pa(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Qa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Ra(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Sa(a){for(var b in a)return m;return i}var Ta="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
||||
function Ua(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ta.length;f++)c=Ta[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Va(a){if("function"==typeof a.N)return a.N();if(ea(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Qa(a)};function Wa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Xa(this,arguments[d],arguments[d+1])}else if(a){a instanceof Wa?(c=a.V(),d=a.N()):(c=Ra(a),d=Qa(a));for(var e=0;e<c.length;e++)Xa(this,c[e],d[e])}}s=Wa.prototype;s.m=0;s.Yb=0;s.Z=q("m");s.N=function(){Ya(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};s.V=function(){Ya(this);return this.a.concat()};s.Ia=function(){return 0==this.m};
|
||||
s.clear=function(){this.b={};this.Yb=this.m=this.a.length=0};s.remove=function(a){return Za(this.b,a)?(delete this.b[a],this.m--,this.Yb++,this.a.length>2*this.m&&Ya(this),i):m};function Ya(a){if(a.m!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Za(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.m!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Za(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function $a(a,b){return Za(a.b,b)?a.b[b]:h}
|
||||
function Xa(a,b,c){Za(a.b,b)||(a.m++,a.a.push(b),a.Yb++);a.b[b]=c}s.R=function(){return new Wa(this)};function Za(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ab,bb,cb,db,eb,fb,gb;function hb(){return v.navigator?v.navigator.userAgent:k}function ib(){return v.navigator}db=cb=bb=ab=m;var jb;if(jb=hb()){var kb=ib();ab=0==jb.indexOf("Opera");bb=!ab&&-1!=jb.indexOf("MSIE");cb=!ab&&-1!=jb.indexOf("WebKit");db=!ab&&!cb&&"Gecko"==kb.product}var lb=ab,F=bb,mb=db,G=cb,nb,ob=ib();nb=ob&&ob.platform||"";eb=-1!=nb.indexOf("Mac");fb=-1!=nb.indexOf("Win");gb=-1!=nb.indexOf("Linux");var pb=!!ib()&&-1!=(ib().appVersion||"").indexOf("X11"),qb;
|
||||
a:{var rb="",sb;if(lb&&v.opera)var tb=v.opera.version,rb="function"==typeof tb?tb():tb;else if(mb?sb=/rv\:([^\);]+)(\)|;)/:F?sb=/MSIE\s+([^\);]+)(\)|;)/:G&&(sb=/WebKit\/(\S+)/),sb)var ub=sb.exec(hb()),rb=ub?ub[1]:"";if(F){var vb,wb=v.document;vb=wb?wb.documentMode:h;if(vb>parseFloat(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<e;f++){var g=c[f]||"",j=d[f]||"",l=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var n=l.exec(g)||["","",""],r=p.exec(j)||["","",""];if(0==n[0].length&&0==r[0].length)break;b=((0==n[1].length?0:parseInt(n[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==n[1].length?0:parseInt(n[1],
|
||||
10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==n[2].length)<(0==r[2].length)?-1:(0==n[2].length)>(0==r[2].length)?1:0)||(n[2]<r[2]?-1:n[2]>r[2]?1:0)}while(0==b)}b=xb[a]=0<=b}return b}var zb={};function Ab(a){return zb[a]||(zb[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Bb,Cb=!F||Ab(9);!mb&&!F||F&&Ab(9)||mb&&yb("1.9.1");F&&yb("9");function Db(a,b){var c;c=a.className;c=ea(c)&&c.match(/\S+/g)||[];for(var d=Fa(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=xa(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Eb(a,b,c){return Math.min(Math.max(a,b),c)}function Fb(a,b){var c=a%b;return 0>c*b?c+b:c};function Gb(a,b){this.x=y(a)?a:0;this.y=y(b)?b:0}Gb.prototype.R=function(){return new Gb(this.x,this.y)};function Hb(a,b){this.width=a;this.height=b}s=Hb.prototype;s.R=function(){return new Hb(this.width,this.height)};s.Ia=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ib(a){return a?new Jb(Kb(a)):Bb||(Bb=new Jb)}function Lb(a,b){Pa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Mb?a.setAttribute(Mb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Mb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
||||
function Nb(a){a=a.document.documentElement;return new Hb(a.clientWidth,a.clientHeight)}function Ob(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Cb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',qa(g.name),'"');if(g.type){f.push(' type="',qa(g.type),'"');var j={};Ua(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ea(g)?f.className=g:ca(g)?Db.apply(k,[f].concat(g)):Lb(f,g));2<d.length&&Pb(e,f,d,2);return f}
|
||||
function Pb(a,b,c,d){function e(c){c&&b.appendChild(ea(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(da(f)&&!(ha(f)&&0<f.nodeType)){var g=D,j;a:{if((j=f)&&"number"==typeof j.length){if(ha(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ga(j)){j="function"==typeof j.item;break a}}j=m}g(j?Da(f):f,e)}else e(f)}}function Qb(a){return document.createElement(a)}function Rb(a,b){Pb(Kb(a),a,arguments,1)}function Sb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
||||
function Tb(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Ub(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Kb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Jb(a){this.a=a||v.document||document}Jb.prototype.createElement=function(a){return this.a.createElement(a)};Jb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
||||
function Vb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Gb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Jb.prototype.appendChild=function(a,b){a.appendChild(b)};Jb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Wb=!F||Ab(9),Xb=!F||Ab(9),Yb=F&&!yb("9");!G||yb("528");mb&&yb("1.9b")||F&&yb("8")||lb&&yb("9.5")||G&&yb("528");mb&&!yb("8")||F&&yb("9");function Zb(){0!=$b&&(this.ne=Error().stack,ac[z(this)]=this)}var $b=0,ac={};Zb.prototype.xc=m;Zb.prototype.Cb=function(){if(!this.xc&&(this.xc=i,this.q(),0!=$b)){var a=z(this);delete ac[a]}};function bc(a,b){a.la||(a.la=[]);a.la.push(b)}Zb.prototype.q=function(){this.la&&cc.apply(k,this.la);if(this.Hc)for(;this.Hc.length;)this.Hc.shift()()};function dc(a){a&&"function"==typeof a.Cb&&a.Cb()}function cc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?cc.apply(k,d):dc(d)}};function ec(a,b){this.type=a;this.c=this.target=b}s=ec.prototype;s.Cb=function(){};s.oa=m;s.bb=m;s.sb=i;s.Fb=function(){this.oa=i};s.B=function(){this.bb=i;this.sb=m};function fc(a){a.Fb()};function gc(a){gc[" "](a);return a}gc[" "]=x;function hc(a,b){a&&ic(this,a,b)}B(hc,ec);var jc=[1,4,2];s=hc.prototype;s.target=k;s.hd=k;s.fd=0;s.gd=0;s.clientX=0;s.clientY=0;s.jd=0;s.kd=0;s.dd=0;s.ua=0;s.$a=0;s.ab=m;s.aa=m;s.ka=m;s.ed=m;s.pb=m;s.K=k;
|
||||
function ic(a,b,c){var d=a.type=b.type;ec.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(mb){var e;a:{try{gc(c.nodeName);e=i;break a}catch(f){}e=m}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.hd=c;a.fd=G||b.offsetX!==h?b.offsetX:b.layerX;a.gd=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.jd=b.screenX||0;a.kd=b.screenY||0;a.dd=b.button;a.ua=b.keyCode||0;a.$a=b.charCode||
|
||||
("keypress"==d?b.keyCode:0);a.ab=b.ctrlKey;a.aa=b.altKey;a.ka=b.shiftKey;a.ed=b.metaKey;a.pb=eb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.B();delete a.oa}function kc(a){return(Wb?0==a.K.button:"click"==a.type?i:!!(a.K.button&jc[0]))&&!(G&&eb&&a.ab)}s.Fb=function(){hc.v.Fb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=i};
|
||||
s.B=function(){hc.v.B.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=m,Yb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};s.bd=q("K");function lc(){}var mc=0;lc.prototype.key=0;lc.prototype.xa=m;lc.prototype.a=m;lc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Nb||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var nc={},oc={},pc={},qc={};
|
||||
function H(a,b,c,d,e){if(b){if(ca(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=oc;b in g||(g[b]={m:0,P:0});g=g[b];d in g||(g[d]={m:0,P:0},g.m++);var g=g[d],j=z(a),l;g.P++;if(g[j]){l=g[j];for(f=0;f<l.length;f++)if(g=l[f],g.Ja==c&&g.Nb==e){if(g.xa)break;return l[f].key}}else l=g[j]=[],g.m++;var p=rc,n=Xb?function(a){return p.call(n.src,n.key,a)}:function(a){a=p.call(n.src,n.key,a);if(!a)return a},f=n;f.src=a;var r=g=new lc;if(ga(c))r.b=i;else if(c&&c.handleEvent&&ga(c.handleEvent))r.b=
|
||||
m;else throw Error("Invalid listener argument");r.Ja=c;r.c=f;r.src=a;r.type=b;r.capture=!!d;r.Nb=e;r.a=m;r.key=++mc;r.xa=m;c=g.key;f.key=c;l.push(g);nc[c]=g;pc[j]||(pc[j]=[]);pc[j].push(g);a.addEventListener?(a==v||!a.dc)&&a.addEventListener(b,f,d):a.attachEvent(b in qc?qc[b]:qc[b]="on"+b,f);return c}throw Error("Invalid event type");}function sc(a,b,c,d,e){if(ca(b)){for(var f=0;f<b.length;f++)sc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);nc[a].a=i;return a}
|
||||
function tc(a,b,c,d,e){if(ca(b))for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);else{d=!!d;a:{f=oc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=z(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ja==c&&a[f].capture==d&&a[f].Nb==e){I(a[f].key);break}}}
|
||||
function I(a){if(!nc[a])return m;var b=nc[a];if(b.xa)return m;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==v||!c.dc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in qc?qc[d]:qc[d]="on"+d,e);c=z(c);pc[c]&&(e=pc[c],Ba(e,b),0==e.length&&delete pc[c]);b.xa=i;if(b=oc[d][f][c])b.qc=i,uc(d,f,c,b);delete nc[a];return i}
|
||||
function uc(a,b,c,d){if(!d.lb&&d.qc){for(var e=0,f=0;e<d.length;e++)d[e].xa?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.qc=m;0==f&&(delete oc[a][b][c],oc[a][b].m--,0==oc[a][b].m&&(delete oc[a][b],oc[a].m--),0==oc[a].m&&delete oc[a])}}function vc(a,b,c,d,e){var f=1,b=z(b);if(a[b]){a.P--;a=a[b];a.lb?a.lb++:a.lb=1;try{for(var g=a.length,j=0;j<g;j++){var l=a[j];l&&!l.xa&&(f&=wc(l,e)!==m)}}finally{a.lb--,uc(c,d,b,a)}}return Boolean(f)}function wc(a,b){a.a&&I(a.key);return a.handleEvent(b)}
|
||||
function J(a,b){var c=b.type||b,d=oc;if(!(c in d))return i;if(ea(b))b=new ec(b,a);else if(b instanceof ec)b.target=b.target||a;else{var e=b,b=new ec(c,a);Ua(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[i];g.P=g.m;for(var j=f.length-1;!b.oa&&0<=j&&g.P;j--)b.c=f[j],e&=vc(g,f[j],b.type,i,b)&&b.sb!=m}if(m in d)if(g=d[m],g.P=g.m,c)for(j=0;!b.oa&&j<f.length&&g.P;j++)b.c=f[j],e&=vc(g,f[j],b.type,m,b)&&b.sb!=m;else for(d=a;!b.oa&&d&&g.P;d=d.Qb)b.c=d,e&=vc(g,d,b.type,m,b)&&b.sb!=
|
||||
m;return Boolean(e)}
|
||||
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 l=v;f=j.shift();)if(l[f]!=k)l=l[f];else{j=k;break a}j=l}f=j;j=i in e;l=m in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var p=m;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(n){p=i}if(p||f.returnValue==h)f.returnValue=i}}p=new hc;ic(p,f,this);f=i;try{if(j){for(var r=[],u=p.c;u;u=u.parentNode)r.push(u);g=e[i];g.P=g.m;for(var t=r.length-
|
||||
1;!p.oa&&0<=t&&g.P;t--)p.c=r[t],f&=vc(g,r[t],d,i,p);if(l){g=e[m];g.P=g.m;for(t=0;!p.oa&&t<r.length&&g.P;t++)p.c=r[t],f&=vc(g,r[t],d,m,p)}}else f=wc(c,p)}finally{r&&(r.length=0)}return f}d=new hc(b,this);return f=wc(c,d)};function xc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}xc.prototype.R=function(){return new xc(this.top,this.right,this.bottom,this.left)};xc.prototype.contains=function(a){return!this||!a?m:a instanceof xc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yc(a,b){var c=Kb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zc(a,b){return a.currentStyle?a.currentStyle[b]:k}function Ac(a,b){return yc(a,b)||zc(a,b)||a.style&&a.style[b]}function Bc(a,b){var c,d,e=mb&&(eb||pb)&&yb("1.9");b instanceof Gb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Cc(c,e);a.style.top=Cc(d,e)}
|
||||
function Dc(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function Ec(a){if(F&&!Ab(8))return a.offsetParent;for(var b=Kb(a),c=Ac(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ac(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Fc(a,b){var c=Gc(a),d=Gc(b);return new Gb(c.x-d.x,c.y-d.y)}
|
||||
function Gc(a){var b=new Gb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Dc(a);b.x=c.left;b.y=c.top}else{c=Vb(Ib(a));var d,e=Kb(a),f=Ac(a,"position"),g=mb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Gb(0,0),l;d=e?Kb(e):document;if(l=F)if(l=!Ab(9))Ib(d),l=m;l=l?d.body:d.documentElement;if(a!=l)if(a.getBoundingClientRect)d=Dc(a),e=Vb(Ib(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
||||
e=e.getBoxObjectFor(l),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Ac(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(lb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Ec(g))&&g!=e.body&&g!=l;)if(j.x-=g.scrollLeft,!lb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(mb&&!yb(12)){var p;F?p="-ms-transform":G?p="-webkit-transform":
|
||||
lb?p="-o-transform":mb&&(p="-moz-transform");var n;p&&(n=Ac(a,p));n||(n=Ac(a,"transform"));n?(a=n.match(Hc),a=!a?new Gb(0,0):new Gb(parseFloat(a[1]),parseFloat(a[2]))):a=new Gb(0,0);b=new Gb(b.x+a.x,b.y+a.y)}}else p=ga(a.bd),n=a,a.targetTouches?n=a.targetTouches[0]:p&&a.K.targetTouches&&(n=a.K.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Cc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ic(a,b){a.style.display=b?"":"none"}
|
||||
function Jc(a,b){Ib(Kb(a));if(F&&!yb("8")){var c=a.style,d;if(F){d=Kc(a,zc(a,"paddingLeft"));var e=Kc(a,zc(a,"paddingRight")),f=Kc(a,zc(a,"paddingTop")),g=Kc(a,zc(a,"paddingBottom"));d=new xc(f,e,g,d)}else d=yc(a,"paddingLeft"),e=yc(a,"paddingRight"),f=yc(a,"paddingTop"),g=yc(a,"paddingBottom"),d=new xc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Lc(a,"borderLeft"),f=Lc(a,"borderRight"),g=Lc(a,"borderTop"),j=Lc(a,"borderBottom"),e=new xc(g,f,j,e);else e=yc(a,"borderLeftWidth"),
|
||||
f=yc(a,"borderRightWidth"),g=yc(a,"borderTopWidth"),j=yc(a,"borderBottomWidth"),e=new xc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,mb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
||||
function Kc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Mc={thin:2,medium:4,thick:6};function Lc(a,b){if("none"==zc(a,b+"Style"))return 0;var c=zc(a,b+"Width");return c in Mc?Mc[c]:Kc(a,c)}var Hc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Nc(a,b){this.x=a;this.y=b}B(Nc,Gb);Nc.prototype.R=function(){return new Nc(this.x,this.y)};Nc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Nc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Nc.call(this,a,b)}B(K,Nc);function Oc(a,b){var c=Fb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Qc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Rc(a,b,c){if(ca(b))for(var d=0;d<b.length;d++)Rc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
|
||||
function Sc(a,b,c){for(c=c||0;c<b.length;c+=2)Rc(b[c],b[c+1],a);return a}function Tc(a,b){for(var c in b)Rc(c,b[c],a);return a}function Uc(a,b){return Qc(2==arguments.length?Sc([a],arguments[1],0):Sc([a],arguments,1))};function Vc(a,b){var c;if(a instanceof Vc)this.ja=y(b)?b:a.ja,Wc(this,a.ya),c=a.xb,Xc(this),this.xb=c,c=a.Ba,Xc(this),this.Ba=c,Yc(this,a.qb),c=a.ob,Xc(this),this.ob=c,Zc(this,a.a.R()),c=a.Wa,Xc(this),this.Wa=c;else if(a&&(c=String(a).match(Pc))){this.ja=!!b;Wc(this,c[1]||"",i);var d=c[2]||"";Xc(this);this.xb=d?decodeURIComponent(d):"";d=c[3]||"";Xc(this);this.Ba=d?decodeURIComponent(d):"";Yc(this,c[4]);d=c[5]||"";Xc(this);this.ob=d?decodeURIComponent(d):"";Zc(this,c[6]||"",i);c=c[7]||"";Xc(this);
|
||||
this.Wa=c?decodeURIComponent(c):""}else this.ja=!!b,this.a=new $c(k,0,this.ja)}s=Vc.prototype;s.ya="";s.xb="";s.Ba="";s.qb=k;s.ob="";s.Wa="";s.Jd=m;s.ja=m;
|
||||
s.toString=function(){var a=[],b=this.ya;b&&a.push(ad(b,bd),":");if(b=this.Ba){a.push("//");var c=this.xb;c&&a.push(ad(c,bd),"@");a.push(encodeURIComponent(String(b)));b=this.qb;b!=k&&a.push(":",String(b))}if(b=this.ob)this.Ba&&"/"!=b.charAt(0)&&a.push("/"),a.push(ad(b,"/"==b.charAt(0)?cd:dd));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",ad(b,ed));return a.join("")};s.R=function(){return new Vc(this)};
|
||||
function Wc(a,b,c){Xc(a);a.ya=c?b?decodeURIComponent(b):"":b;a.ya&&(a.ya=a.ya.replace(/:$/,""))}function Yc(a,b){Xc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.qb=b}else a.qb=k}
|
||||
function Zc(a,b,c){Xc(a);if(b instanceof $c){a.a=b;b=a.a;if((a=a.ja)&&!b.b){fd(b);b.a=k;var d=b.C,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),gd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(da(d)||ea(d))D(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.N)if(da(d)||ea(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Ra(d);else e=h;d=Va(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=ad(b,hd)),a.a=
|
||||
new $c(b,0,a.ja)}function id(a,b,c){Xc(a);ca(c)||(c=[String(c)]);gd(a.a,b,c)}function Xc(a){if(a.Jd)throw Error("Tried to modify a read-only Uri");}function ad(a,b){return ea(a)?encodeURI(a).replace(b,jd):k}function jd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var bd=/[#\/\?@]/g,dd=/[\#\?:]/g,cd=/[\#\?]/g,hd=/[\#\?@]/g,ed=/#/g;function $c(a,b,c){this.a=a||k;this.b=!!c}
|
||||
function fd(a){if(!a.C&&(a.C=new Wa,a.m=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=kd(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}s=$c.prototype;s.C=k;s.m=k;s.Z=function(){fd(this);return this.m};s.add=function(a,b){fd(this);this.a=k;var a=kd(this,a),c=$a(this.C,a);c||Xa(this.C,a,c=[]);c.push(b);this.m++;return this};
|
||||
s.remove=function(a){fd(this);a=kd(this,a);return Za(this.C.b,a)?(this.a=k,this.m-=$a(this.C,a).length,this.C.remove(a)):m};s.clear=function(){this.C=this.a=k;this.m=0};s.Ia=function(){fd(this);return 0==this.m};function ld(a,b){fd(a);b=kd(a,b);return Za(a.C.b,b)}s.V=function(){fd(this);for(var a=this.C.N(),b=this.C.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
s.N=function(a){fd(this);var b=[];if(a)ld(this,a)&&(b=Ca(b,$a(this.C,kd(this,a))));else for(var a=this.C.N(),c=0;c<a.length;c++)b=Ca(b,a[c]);return b};function md(a,b){var c=b?a.N(b):[];return 0<c.length?String(c[0]):h}function gd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Xa(a.C,kd(a,b),Da(c)),a.m+=c.length)}
|
||||
s.toString=function(){if(this.a)return this.a;if(!this.C)return"";for(var a=[],b=this.C.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.N(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};s.R=function(){var a=new $c;a.a=this.a;this.C&&(a.C=this.C.R());return a};function kd(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function qd(){Zb.call(this)}B(qd,Zb);s=qd.prototype;s.dc=i;s.Qb=k;s.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){tc(this,a,b,c,d)};s.q=function(){qd.v.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Pa(pc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}});else{var d=z(this);if(pc[d])for(var d=pc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}}this.Qb=k};function rd(a){return function(){return a}}var sd=rd(m),td=rd(i),ud=rd(k);function vd(a,b,c){Zb.call(this);this.d=a;this.c=c;this.a=b||window;this.b=ma(this.Eb,this)}B(vd,Zb);s=vd.prototype;s.O=k;s.Xb=m;s.start=function(){wd(this);this.Xb=m;var a=xd(this),b=yd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.O=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Xb=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.O=a}};
|
||||
function wd(a){if(a.O!=k){var b=xd(a),c=yd(a);b&&!c&&a.a.mozRequestAnimationFrame?I(a.O):b&&c?c.call(a.a,a.O):a.a.clearTimeout(a.O)}a.O=k}s.Eb=function(){this.Xb&&this.O&&I(this.O);this.O=k;this.d.call(this.c,oa())};s.q=function(){wd(this);vd.v.q.call(this)};function xd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
||||
function yd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function zd(a){Zb.call(this);this.sa=a||window;this.kb=H(this.sa,"resize",this.Bd,m,this);this.ra=Nb(this.sa||window);if(G&&fb||lb&&this.sa.self!=this.sa.top)this.zb=window.setInterval(ma(this.Zb,this),Ad)}B(zd,qd);var Ad=500;s=zd.prototype;s.kb=k;s.sa=k;s.ra=k;s.zb=k;s.q=function(){zd.v.q.call(this);this.kb&&(I(this.kb),this.kb=k);this.zb&&(window.clearInterval(this.zb),this.zb=k);this.ra=this.sa=k};s.Bd=function(){this.Zb()};
|
||||
s.Zb=function(){var a=Nb(this.sa||window);if(!(a==this.ra||(!a||!this.ra?0:a.width==this.ra.width&&a.height==this.ra.height)))this.ra=a,J(this,"resize")};function Bd(a,b,c,d,e){if(!F&&(!G||!yb("525")))return i;if(eb&&e)return Cd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return m;switch(a){case 13:return!(F&&Ab(9));case 27:return!G}return Cd(a)}function Cd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return m}}
|
||||
function Dd(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Ed(a,b){Zb.call(this);a&&(this.gb&&Fd(this),this.Da=a,this.fb=H(this.Da,"keypress",this,b),this.Ob=H(this.Da,"keydown",this.a,b,this),this.gb=H(this.Da,"keyup",this.b,b,this))}B(Ed,qd);s=Ed.prototype;s.Da=k;s.fb=k;s.Ob=k;s.gb=k;s.da=-1;s.ca=-1;s.Ab=m;
|
||||
var Gd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Hd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Id=F||G&&yb("525"),Jd=eb&&mb;
|
||||
Ed.prototype.a=function(a){if(G&&(17==this.da&&!a.ab||18==this.da&&!a.aa))this.ca=this.da=-1;Id&&!Bd(a.ua,this.da,a.ka,a.ab,a.aa)?this.handleEvent(a):(this.ca=mb?Dd(a.ua):a.ua,Jd&&(this.Ab=a.aa))};Ed.prototype.b=function(a){this.ca=this.da=-1;this.Ab=a.aa};
|
||||
Ed.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ca,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ca,d=0<=b.charCode&&63232>b.charCode&&Cd(c)?b.charCode:0):lb?(c=this.ca,d=Cd(c)?b.keyCode:0):(c=b.keyCode||this.ca,d=b.charCode||0,Jd&&(e=this.Ab),eb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Gd?f=Gd[c]:25==c&&a.ka&&(f=9):g&&g in Hd&&(f=Hd[g]);a=f==this.da;this.da=f;b=new Kd(f,d,a,b);b.aa=e;J(this,b)};
|
||||
function Fd(a){a.fb&&(I(a.fb),I(a.Ob),I(a.gb),a.fb=k,a.Ob=k,a.gb=k);a.Da=k;a.da=-1;a.ca=-1}Ed.prototype.q=function(){Ed.v.q.call(this);Fd(this)};function Kd(a,b,c,d){d&&ic(this,d,h);this.type="key";this.ua=a;this.$a=b;this.b=c}B(Kd,hc);function Ld(a){Zb.call(this);this.a=a;a=ha(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Ac(a,"direction");this.b=H(this.a,mb?"DOMMouseScroll":"mousewheel",this)}B(Ld,qd);
|
||||
Ld.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(fb||yb("532.0")))c=40;d=Md(-a.wheelDelta,c);y(a.wheelDeltaX)?(b=Md(-a.wheelDeltaX,c),c=Md(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),y(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Eb(b,-this.c,this.c));"number"==typeof this.d&&(c=Eb(c,-this.d,this.d));this.e&&(b=-b);b=new Nd(d,a,b,c);J(this,b)};function Md(a,b){return G&&(eb||gb)&&0!=a%b?a:a/b}
|
||||
Ld.prototype.q=function(){Ld.v.q.call(this);I(this.b);delete this.b};function Nd(a,b,c,d){b&&ic(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Nd,hc);var Od=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){Zb.call(this);this.o={};y(a)&&this.mb(a)}B(L,qd);var Pd={},Qd={},Rd={};function Sd(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Td(a){return a.ol_accessors_||(a.ol_accessors_={})}function Ud(a){return Pd.hasOwnProperty(a)?Pd[a]:Pd[a]=a.toLowerCase()+"_changed"}function Vd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype;
|
||||
s.Rc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Ud(c);Vd(this)[a]=H(b,e,function(){Wd(this,a)},h,this);Td(this)[a]={target:b,key:c};d||Wd(this,a)};s.Uc=x;s.r=function(a){var b,c=Td(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Qd.hasOwnProperty(b)?Qd[b]:Qd[b]="get"+Sd(b),b=a[c]?a[c]():a.r(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b};
|
||||
s.V=function(){for(var a=Ra(Td(this)).concat(Ra(this.o)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ha(e)?"o"+z(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};s.rc=function(a){var b=Td(this);b.hasOwnProperty(a)?(a=b[a],a.target.rc(a.key)):Wd(this,a)};function Wd(a,b){var c=Ud(b);J(a,c);J(a,"changed")}
|
||||
s.p=function(a,b){var c=Td(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Rd.hasOwnProperty(d)?Rd[d]:Rd[d]="set"+Sd(d);if(c[e])c[e](b);else c.p(d,b)}else this.o[a]=b,Wd(this,a)};s.Bc=function(a){var b,c,d;for(b in a)if(c=a[b],d=Rd.hasOwnProperty(b)?Rd[b]:Rd[b]="set"+Sd(b),this[d])this[d](c);else this.p(b,c)};s.mb=L.prototype.Bc;s.Wb=function(a){var b=Vd(this),c=b[a];c&&(delete b[a],I(c),b=this.r(a),delete Td(this)[a],this.o[a]=b)};s.Wd=function(){for(var a in Vd(this))this.Wb(a)};function Xd(a,b,c,d,e){ec.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Xd,ec);function M(a){L.call(this);this.a=a||[];Yd(this)}B(M,L);s=M.prototype;s.clear=function(){for(;0<this.Za();)this.sc()};s.forEach=function(a,b){D(this.a,a,b)};s.$c=q("a");s.ad=function(a){return this.a[a]};s.Za=function(){return this.r("length")};s.eb=function(a,b){Ea(this.a,a,0,b);Yd(this);J(this,new Xd("add",b,h,h,this));J(this,new Xd("insert_at",b,a,h,this))};s.sc=function(){return this.yc(this.Za()-1)};
|
||||
s.push=function(a){var b=this.a.length;this.eb(b,a);return b};s.yc=function(a){var b=this.a[a];wa.splice.call(this.a,a,1);Yd(this);J(this,new Xd("remove",b,h,h,this));J(this,new Xd("remove_at",h,a,b,this));return b};s.Od=function(a,b){var c=this.Za();if(a<c)c=this.a[a],this.a[a]=b,J(this,new Xd("set_at",b,a,c,this)),J(this,new Xd("remove",c,h,h,this)),J(this,new Xd("add",b,h,h,this));else{for(;c<a;++c)this.eb(c,h);this.eb(a,b)}};function Yd(a){a.p("length",a.a.length)};function Zd(){this.c=Eb(255,0,255);this.b=Eb(255,0,255);this.a=Eb(255,0,255);this.d=Eb(1,0,1)};function $d(a,b){Hb.call(this,a,b)}B($d,Hb);function ae(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}ae.prototype.a=function(){return this.i-this.j};ae.prototype.b=function(){return this.k-this.h};function be(a,b){return a.h<=b.k&&a.k>=b.h&&a.j<=b.i&&a.i>=b.j}ae.prototype.toString=function(){return"("+[this.h,this.j,this.k,this.i].join(", ")+")"};function N(a,b,c,d){ae.call(this,a,b,c,d)}B(N,ae);function ce(a){var b=arguments[0],b=new N(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.j=Math.min(b.j,d.y);b.k=Math.max(b.k,d.x);b.i=Math.max(b.i,d.y)}return b}function de(a){return new K(a.h,a.i)}N.prototype.transform=function(a){var b=a(new K(this.h,this.j)),a=a(new K(this.k,this.i));return new N(Math.min(b.x,a.x),Math.min(b.y,a.y),Math.max(b.x,a.x),Math.max(b.y,a.y))};function ee(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ee.prototype.a=4;ee.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ee.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(ee.BYTES_PER_ELEMENT=4,ee.prototype.BYTES_PER_ELEMENT=ee.prototype.a,ee.prototype.set=ee.prototype.b,ee.prototype.toString=ee.prototype.toString,A("Float32Array",ee));function fe(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}fe.prototype.a=8;fe.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};fe.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(fe.BYTES_PER_ELEMENT=8,fe.prototype.BYTES_PER_ELEMENT=fe.prototype.a,fe.prototype.set=fe.prototype.b,fe.prototype.toString=fe.prototype.toString,A("Float64Array",fe));function ge(){var a=Array(16);he(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function ie(){var a=Array(16);he(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function he(a,b,c,d,e,f,g,j,l,p,n,r,u,t,w,E,C){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=l;a[8]=p;a[9]=n;a[10]=r;a[11]=u;a[12]=t;a[13]=w;a[14]=E;a[15]=C}
|
||||
function je(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function ke(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
||||
function le(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],l=a[5],p=a[6],n=a[7],r=a[8],u=a[9],t=a[10],w=a[11],E=a[12],C=a[13],S=a[14],a=a[15],V=b[0],O=b[1],X=b[2],fa=b[3],Ia=b[4],Ja=b[5],Ka=b[6],La=b[7],Ma=b[8],Na=b[9],Oa=b[10],T=b[11],nd=b[12],od=b[13],pd=b[14],b=b[15];c[0]=d*V+j*O+r*X+E*fa;c[1]=e*V+l*O+u*X+C*fa;c[2]=f*V+p*O+t*X+S*fa;c[3]=g*V+n*O+w*X+a*fa;c[4]=d*Ia+j*Ja+r*Ka+E*La;c[5]=e*Ia+l*Ja+u*Ka+C*La;c[6]=f*Ia+p*Ja+t*Ka+S*La;c[7]=g*Ia+n*Ja+w*Ka+a*La;c[8]=d*Ma+j*Na+r*Oa+E*T;c[9]=e*Ma+l*Na+u*Oa+
|
||||
C*T;c[10]=f*Ma+p*Na+t*Oa+S*T;c[11]=g*Ma+n*Na+w*Oa+a*T;c[12]=d*nd+j*od+r*pd+E*b;c[13]=e*nd+l*od+u*pd+C*b;c[14]=f*nd+p*od+t*pd+S*b;c[15]=g*nd+n*od+w*pd+a*b}function me(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
||||
function ne(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function oe(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function pe(a,b,c){he(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
||||
function qe(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],l=a[6],p=a[7],n=Math.cos(b),r=Math.sin(b);a[0]=c*n+g*r;a[1]=d*n+j*r;a[2]=e*n+l*r;a[3]=f*n+p*r;a[4]=c*-r+g*n;a[5]=d*-r+j*n;a[6]=e*-r+l*n;a[7]=f*-r+p*n}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function re(a,b,c){Nc.call(this,b,c);this.n=a}B(re,K);re.prototype.hash=function(){return(this.x<<this.n)+this.y};function se(a){var b=Array(a.n),c=1<<a.n-1,d,e;for(d=0;d<a.n;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}re.prototype.toString=function(){return[this.n,this.x,this.y].join("/")};function te(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}B(te,ae);te.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.k&&this.j<=a.y&&a.y<=this.i};te.prototype.a=function(){return this.i-this.j+1};te.prototype.b=function(){return this.k-this.h+1};function ue(a,b){this.b=a;this.a=b||k};function ve(a){Zb.call(this);this.X=a;this.b=0}B(ve,qd);ve.prototype.ma=function(){return z(this).toString()};ve.prototype.L=q("b");function we(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function xe(a,b,c,d){if(0==b.L()){var e=b.ma();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ye(a,0,a.a.length-1))}}}we.prototype.f=function(){--this.c};function ze(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;ye(a,f,b)}function ye(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};var Ae="object"==typeof Proj4js,Be={fe:"degrees",oe:"m"};function P(a,b,c,d){this.a=a;this.g=b;this.f=c;this.b=y(d)?d:"enu"}P.prototype.d=q("a");P.prototype.G=q("f");P.prototype.e=q("g");P.prototype.c=q("b");function Ce(a,b){P.call(this,a,b.units,k,b.axis);this.wc=b}B(Ce,P);var De={},Ee={},Fe={};function Ge(a){D(a,function(a){He(a)});D(a,function(b){D(a,function(a){b!==a&&Ie(b,a,Je)})})}function He(a){Ee[a.a]=a;Ie(a,a,Je)}function Ke(a){return a!=k?ea(a)?Le(a):a:Le("EPSG:3857")}
|
||||
function Ie(a,b,c){a=a.a;b=b.a;a in Fe||(Fe[a]={});Fe[a][b]=c}function Le(a){var b=Ee[a];Ae&&!y(b)&&(b=Me(a));y(b)||(b=k);return b}function Me(a){var b=De[a];y(b)||(b=new Proj4js.Proj(a),b=new Ce(a,b),De[a]=b);return b}
|
||||
function Ne(a,b){var c=a.a,d=b.a,e;c in Fe&&d in Fe[c]&&(e=Fe[c][d]);if(Ae&&!y(e)){var f;f=(a instanceof Ce?a:Me(a.a)).wc;var g;g=(b instanceof Ce?b:Me(b.a)).wc;e=function(a){a=new Proj4js.Point(a.x,a.y);a=Proj4js.transform(f,g,a);return new K(a.x,a.y)};Ie(a,b,e)}y(e)||(e=Oe);return e}function Pe(a,b){var c=Le(a),d=Le(b);return Ne(c,d)}function Oe(a){return a}function Je(a){return new K(a.x,a.y)};function Qe(a){Zb.call(this);this.l=y(a.projection)?a.projection:k;this.o=y(a.extent)?a.extent:a.projection.G();this.e=y(a.attributions)?a.attributions:k}B(Qe,qd);Qe.prototype.ha=q("e");Qe.prototype.G=q("o");Qe.prototype.c=td;function Q(a){L.call(this);this.g=a.source;this.l(y(a.brightness)?a.brightness:0);this.s(y(a.contrast)?a.contrast:1);this.u(y(a.hue)?a.hue:0);this.D(y(a.opacity)?a.opacity:1);this.F(y(a.saturation)?a.saturation:1);this.H(y(a.visible)?a.visible:i);this.g.c()||sc(this.g,"load",this.J,m,this)}B(Q,L);Q.prototype.b=function(){return this.r("brightness")};Q.prototype.getBrightness=Q.prototype.b;Q.prototype.c=function(){return this.r("contrast")};Q.prototype.getContrast=Q.prototype.c;Q.prototype.d=function(){return this.r("hue")};
|
||||
Q.prototype.getHue=Q.prototype.d;Q.prototype.e=function(){return this.r("opacity")};Q.prototype.getOpacity=Q.prototype.e;Q.prototype.f=function(){return this.r("saturation")};Q.prototype.getSaturation=Q.prototype.f;Q.prototype.W=q("g");Q.prototype.a=function(){return this.r("visible")};Q.prototype.getVisible=Q.prototype.a;Q.prototype.J=function(){J(this,"load")};Q.prototype.l=function(a){a=Eb(a,-1,1);a!=this.b()&&this.p("brightness",a)};Q.prototype.setBrightness=Q.prototype.l;
|
||||
Q.prototype.s=function(a){a=Math.max(0,a);a!=this.c()&&this.p("contrast",a)};Q.prototype.setContrast=Q.prototype.s;Q.prototype.u=function(a){a!=this.d()&&this.p("hue",a)};Q.prototype.setHue=Q.prototype.u;Q.prototype.D=function(a){a=Eb(a,0,1);a!=this.e()&&this.p("opacity",a)};Q.prototype.setOpacity=Q.prototype.D;Q.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.p("saturation",a)};Q.prototype.setSaturation=Q.prototype.F;Q.prototype.H=function(a){a=!!a;a!=this.a()&&this.p("visible",a)};
|
||||
Q.prototype.setVisible=Q.prototype.H;function Re(a){return 3*a*a-2*a*a*a};function Se(){L.call(this);this.e=[0,0]}B(Se,L);function Te(a,b){a.e[1]+=b};var Ue={mc:function(a){return a},Gc:function(a){return 0.5>a?Re(2*a):1-Re(2*(a-0.5))},Xc:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Bb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ve={Bb:function(a){var b=a.resolution,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Ue.Gc;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),l=b-g.t.resolution;g.Q=i;g.t.resolution+=j*l;g.A[0]+=1;return i}return m}},Ka:function(a){var b=a.source,c=y(a.start)?a.start:oa(),d=b.x,e=b.y,f=y(a.duration)?a.duration:1E3,g=y(a.easing)?a.easing:Re;return function(a,b){if(b.time<c)return b.Q=i,b.A[0]+=1,i;if(b.time<c+f){var p=
|
||||
1-g((b.time-c)/f),n=d-b.t.center.x,r=e-b.t.center.y;b.Q=i;b.t.center.x+=p*n;b.t.center.y+=p*r;b.A[0]+=1;return i}return m}},rotate:function(a){var b=a.rotation,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Re;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),l=b-g.t.rotation;g.Q=i;g.t.rotation+=j*l;g.A[0]+=1;return i}return m}},zoom:function(a){var b=a.resolution,c=y(a.start)?a.start:oa(),d=y(a.duration)?a.duration:1E3,
|
||||
e=y(a.easing)?a.easing:Ue.mc;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),l=b-g.t.resolution;g.Q=i;g.t.resolution+=j*l;g.A[0]+=1;return i}return m}}};function We(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function Xe(a){for(var b=oa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Oa>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Oa-b.Oa);return a.b>a.d}return m}We.prototype.Ka=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ve.Ka({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function Ye(a,b,c){ec.call(this,a);this.map=b;this.bb=m;this.d=y(c)?c:k}B(Ye,ec);Ye.prototype.B=function(){Ye.v.B.call(this);this.bb=i};function Ze(a,b){Gb.call(this,a,b)}B(Ze,Gb);function $e(a,b,c,d){Ye.call(this,a,b,d);this.a=c;this.f=this.e=k}B($e,Ye);$e.prototype.b=function(){this.e===k&&(this.e=af(this.map,bf(this)));return this.e};function bf(a){if(a.f===k){var b=Fc(a.a,a.map.b);a.f=new Ze(b.x,b.y)}return a.f}
|
||||
function cf(a){this.a=a;this.e=k;this.b=m;this.c=this.g=this.d=this.l=this.o=this.f=k;a=this.a.b;this.o=H(a,["click","dblclick"],this.ac,m,this);this.l=H(a,"mousedown",this.vd,m,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Fd,m,this),H(a,["touchmove","MSPointerMove"],this.Ed,m,this),H(a,["touchend","MSPointerUp"],this.Dd,m,this)]}B(cf,qd);s=cf.prototype;
|
||||
s.ac=function(a){if(!this.b){var b=a.type;0==this.f||"dblclick"==b?(a=new $e(df,this.a,a),J(this,a)):"click"==b&&(a=new $e(ef,this.a,a),J(this,a))}};s.xd=function(a){this.e&&(this.c=k,D(this.d,I),this.e=this.d=k,this.b&&J(this,new $e(ff,this.a,a)))};s.vd=function(a){J(this,new $e(gf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=m,this.d=[H(document,"mousemove",this.wd,m,this),H(document,"mouseup",this.xd,m,this)],a.B())};
|
||||
s.wd=function(a){var b;this.b||(this.b=i,b=new $e(hf,this.a,this.c),J(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new $e(jf,this.a,a);J(this,b)};s.Fd=function(a){a.B();this.c=a;this.b=m;J(this,new $e(kf,this.a,a))};s.Ed=function(a){this.b=i;J(this,new $e(lf,this.a,a))};s.Dd=function(a){J(this,new $e(mf,this.a,a));this.b||(a=oa(),this.f=!this.f||250<a-this.f?a:0,this.ac(this.c));this.c=k};
|
||||
s.q=function(){I(this.o);I(this.l);this.d!==k&&(D(this.d,I),this.d=k);this.g!==k&&(D(this.g,I),this.g=k);cf.v.q.call(this)};var ef="click",df="dblclick",gf="down",hf="dragstart",jf="drag",ff="dragend",kf="touchstart",lf="touchmove",mf="touchend",nf={ce:ef,ee:df,he:gf,ke:hf,ie:jf,je:ff,Me:kf,Le:lf,Ke:mf};function of(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function pf(a,b){if(y(a))return a+b};function qf(a){this.resolution=a;this.rotation=pf};function R(a){Se.call(this);var a=a||{},b={};b.center=y(a.center)?a.center:k;b.projection=Ke(a.projection);if(y(a.resolution))b.resolution=a.resolution;else if(y(a.zoom)){var c=b.projection.G(),c=Math.max(c.k-c.h,c.i-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.mb(b);if(y(a.resolutions))var d=a.resolutions,a=function(a,b){if(y(a)){var c=of(d,a),c=Eb(c+b,0,d.length-1);return d[c]}};else{y(a.maxResolution)&&y(a.numZoomLevels)&&y(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
||||
a=a.zoomFactor):(a=Ke(a.projection).G(),b=Math.max(a.k-a.h,a.i-a.j)/256,c=116,a=Math.exp(Math.log(2)/4));var e=a,f=b,g=c-1,a=function(a,b){if(y(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);y(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new qf(a)}B(R,Se);R.prototype.T=function(){return this.r("center")};R.prototype.getCenter=R.prototype.T;
|
||||
R.prototype.G=function(a){var b=this.T(),c=this.U();return new N(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};R.prototype.tc=function(){return this.r("projection")};R.prototype.getProjection=R.prototype.tc;R.prototype.U=function(){return this.r("resolution")};R.prototype.getResolution=R.prototype.U;R.prototype.ia=function(){return this.r("rotation")||0};R.prototype.getRotation=R.prototype.ia;R.prototype.Ha=function(){return this.T()!=k&&y(this.U())};
|
||||
(function(){var h=void 0,i=!0,k=null,l=!1;function aa(){return function(a){return a}}function p(a){return function(){return this[a]}}var s,v=this;function x(){}function ba(a){a.Ya=function(){return a.lc?a.lc:a.lc=new a}}
|
||||
function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
||||
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function y(a){return a!==h}function da(a){return"array"==ca(a)}function ea(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function ga(a){return"string"==typeof a}function ha(a){return"function"==ca(a)}function ia(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function z(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<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return na.apply(k,arguments)}
|
||||
function oa(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var pa=Date.now||function(){return+new Date};function A(a,b){var c=a.split("."),d=v;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&y(b)?d[e]=b:d=d[e]?d[e]:d[e]={}}function B(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c};function qa(a){Error.captureStackTrace?Error.captureStackTrace(this,qa):this.stack=Error().stack||"";a&&(this.message=String(a))}B(qa,Error);qa.prototype.name="CustomError";function ra(a){if(!sa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ta,"&"));-1!=a.indexOf("<")&&(a=a.replace(ua,"<"));-1!=a.indexOf(">")&&(a=a.replace(va,">"));-1!=a.indexOf('"')&&(a=a.replace(wa,"""));return a}var ta=/&/g,ua=/</g,va=/>/g,wa=/\"/g,sa=/[&<>\"]/;var xa=Array.prototype,ya=xa.indexOf?function(a,b,c){return xa.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ga(a))return!ga(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},C=xa.forEach?function(a,b,c){xa.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},za=xa.map?function(a,b,c){return xa.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=
|
||||
ga(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Aa=xa.some?function(a,b,c){return xa.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=ga(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return i;return l};function Ba(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ca(a,b){var c=ya(a,b),d;(d=0<=c)&&xa.splice.call(a,c,1);return d}function Da(a){return xa.concat.apply(xa,arguments)}
|
||||
function Ea(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Fa(a,b,c,d){xa.splice.apply(a,Ga(arguments,1))}function Ga(a,b,c){return 2>=arguments.length?xa.slice.call(a,b):xa.slice.call(a,b,c)}function Ha(a){xa.sort.call(a,Ia)}function Ia(a,b){return a>b?1:a<b?-1:0};function Ja(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ra(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Sa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ta(a){for(var b in a)return l;return i}var Ua="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
||||
function Va(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ua.length;f++)c=Ua[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function Wa(a){if("function"==typeof a.N)return a.N();if(ga(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ra(a)};function Xa(a,b){this.b={};this.a=[];var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)Ya(this,arguments[d],arguments[d+1])}else if(a){a instanceof Xa?(c=a.V(),d=a.N()):(c=Sa(a),d=Ra(a));for(var e=0;e<c.length;e++)Ya(this,c[e],d[e])}}s=Xa.prototype;s.n=0;s.Yb=0;s.Z=p("n");s.N=function(){Za(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};s.V=function(){Za(this);return this.a.concat()};s.Ha=function(){return 0==this.n};
|
||||
s.clear=function(){this.b={};this.Yb=this.n=this.a.length=0};s.remove=function(a){return $a(this.b,a)?(delete this.b[a],this.n--,this.Yb++,this.a.length>2*this.n&&Za(this),i):l};function Za(a){if(a.n!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];$a(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.n!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],$a(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}function ab(a,b){return $a(a.b,b)?a.b[b]:h}
|
||||
function Ya(a,b,c){$a(a.b,b)||(a.n++,a.a.push(b),a.Yb++);a.b[b]=c}s.R=function(){return new Xa(this)};function $a(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var bb,cb,db,eb,fb,gb,hb;function ib(){return v.navigator?v.navigator.userAgent:k}function jb(){return v.navigator}eb=db=cb=bb=l;var kb;if(kb=ib()){var lb=jb();bb=0==kb.indexOf("Opera");cb=!bb&&-1!=kb.indexOf("MSIE");db=!bb&&-1!=kb.indexOf("WebKit");eb=!bb&&!db&&"Gecko"==lb.product}var mb=bb,F=cb,nb=eb,G=db,ob,pb=jb();ob=pb&&pb.platform||"";fb=-1!=ob.indexOf("Mac");gb=-1!=ob.indexOf("Win");hb=-1!=ob.indexOf("Linux");var qb=!!jb()&&-1!=(jb().appVersion||"").indexOf("X11"),rb;
|
||||
a:{var sb="",tb;if(mb&&v.opera)var ub=v.opera.version,sb="function"==typeof ub?ub():ub;else if(nb?tb=/rv\:([^\);]+)(\)|;)/:F?tb=/MSIE\s+([^\);]+)(\)|;)/:G&&(tb=/WebKit\/(\S+)/),tb)var vb=tb.exec(ib()),sb=vb?vb[1]:"";if(F){var wb,xb=v.document;wb=xb?xb.documentMode:h;if(wb>parseFloat(sb)){rb=String(wb);break a}}rb=sb}var yb={};
|
||||
function zb(a){var b;if(!(b=yb[a])){b=0;for(var c=String(rb).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",j=d[f]||"",m=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var n=m.exec(g)||["","",""],r=q.exec(j)||["","",""];if(0==n[0].length&&0==r[0].length)break;b=((0==n[1].length?0:parseInt(n[1],10))<(0==r[1].length?0:parseInt(r[1],10))?-1:(0==n[1].length?0:parseInt(n[1],
|
||||
10))>(0==r[1].length?0:parseInt(r[1],10))?1:0)||((0==n[2].length)<(0==r[2].length)?-1:(0==n[2].length)>(0==r[2].length)?1:0)||(n[2]<r[2]?-1:n[2]>r[2]?1:0)}while(0==b)}b=yb[a]=0<=b}return b}var Ab={};function Bb(a){return Ab[a]||(Ab[a]=F&&!!document.documentMode&&document.documentMode>=a)};var Cb,Db=!F||Bb(9);!nb&&!F||F&&Bb(9)||nb&&zb("1.9.1");F&&zb("9");function Eb(a,b){var c;c=a.className;c=ga(c)&&c.match(/\S+/g)||[];for(var d=Ga(arguments,1),e=c.length+d.length,f=c,g=0;g<d.length;g++)0<=ya(f,d[g])||f.push(d[g]);a.className=c.join(" ");return c.length==e};function Fb(a,b,c){return Math.min(Math.max(a,b),c)}function Gb(a,b){var c=a%b;return 0>c*b?c+b:c};function Hb(a,b){this.x=y(a)?a:0;this.y=y(b)?b:0}Hb.prototype.R=function(){return new Hb(this.x,this.y)};function Ib(a,b){this.width=a;this.height=b}s=Ib.prototype;s.R=function(){return new Ib(this.width,this.height)};s.Ha=function(){return!(this.width*this.height)};s.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Jb(a){return a?new Kb(Lb(a)):Cb||(Cb=new Kb)}function Mb(a,b){Ja(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Nb?a.setAttribute(Nb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var Nb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
|
||||
function Ob(a){a=a.document.documentElement;return new Ib(a.clientWidth,a.clientHeight)}function Pb(a,b,c){var d=arguments,e=document,f=d[0],g=d[1];if(!Db&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ra(g.name),'"');if(g.type){f.push(' type="',ra(g.type),'"');var j={};Va(j,g);delete j.type;g=j}f.push(">");f=f.join("")}f=e.createElement(f);g&&(ga(g)?f.className=g:da(g)?Eb.apply(k,[f].concat(g)):Mb(f,g));2<d.length&&Qb(e,f,d,2);return f}
|
||||
function Qb(a,b,c,d){function e(c){c&&b.appendChild(ga(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];if(ea(f)&&!(ia(f)&&0<f.nodeType)){var g=C,j;a:{if((j=f)&&"number"==typeof j.length){if(ia(j)){j="function"==typeof j.item||"string"==typeof j.item;break a}if(ha(j)){j="function"==typeof j.item;break a}}j=l}g(j?Ea(f):f,e)}else e(f)}}function Rb(a){return document.createElement(a)}function Sb(a,b){Qb(Lb(a),a,arguments,1)}function Tb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
||||
function Ub(a,b){a.insertBefore(b,a.childNodes[0]||k)}function Vb(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function Lb(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Kb(a){this.a=a||v.document||document}Kb.prototype.createElement=function(a){return this.a.createElement(a)};Kb.prototype.createTextNode=function(a){return this.a.createTextNode(a)};
|
||||
function Wb(a){var b=a.a,a=!G?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new Hb(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Kb.prototype.appendChild=function(a,b){a.appendChild(b)};Kb.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Xb=!F||Bb(9),Yb=!F||Bb(9),Zb=F&&!zb("9");!G||zb("528");nb&&zb("1.9b")||F&&zb("8")||mb&&zb("9.5")||G&&zb("528");nb&&!zb("8")||F&&zb("9");function $b(){0!=ac&&(this.ne=Error().stack,bc[z(this)]=this)}var ac=0,bc={};$b.prototype.xc=l;$b.prototype.Cb=function(){if(!this.xc&&(this.xc=i,this.q(),0!=ac)){var a=z(this);delete bc[a]}};function cc(a,b){a.Ia||(a.Ia=[]);a.Ia.push(b)}$b.prototype.q=function(){this.Ia&&dc.apply(k,this.Ia);if(this.Hc)for(;this.Hc.length;)this.Hc.shift()()};function ec(a){a&&"function"==typeof a.Cb&&a.Cb()}function dc(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?dc.apply(k,d):ec(d)}};function fc(a,b){this.type=a;this.c=this.target=b}s=fc.prototype;s.Cb=function(){};s.na=l;s.bb=l;s.sb=i;s.Fb=function(){this.na=i};s.B=function(){this.bb=i;this.sb=l};function gc(a){a.Fb()};function hc(a){hc[" "](a);return a}hc[" "]=x;function ic(a,b){a&&jc(this,a,b)}B(ic,fc);var kc=[1,4,2];s=ic.prototype;s.target=k;s.hd=k;s.fd=0;s.gd=0;s.clientX=0;s.clientY=0;s.jd=0;s.kd=0;s.dd=0;s.ta=0;s.$a=0;s.ab=l;s.aa=l;s.ka=l;s.ed=l;s.pb=l;s.K=k;
|
||||
function jc(a,b,c){var d=a.type=b.type;fc.call(a,d);a.target=b.target||b.srcElement;a.c=c;if(c=b.relatedTarget){if(nb){var e;a:{try{hc(c.nodeName);e=i;break a}catch(f){}e=l}e||(c=k)}}else"mouseover"==d?c=b.fromElement:"mouseout"==d&&(c=b.toElement);a.hd=c;a.fd=G||b.offsetX!==h?b.offsetX:b.layerX;a.gd=G||b.offsetY!==h?b.offsetY:b.layerY;a.clientX=b.clientX!==h?b.clientX:b.pageX;a.clientY=b.clientY!==h?b.clientY:b.pageY;a.jd=b.screenX||0;a.kd=b.screenY||0;a.dd=b.button;a.ta=b.keyCode||0;a.$a=b.charCode||
|
||||
("keypress"==d?b.keyCode:0);a.ab=b.ctrlKey;a.aa=b.altKey;a.ka=b.shiftKey;a.ed=b.metaKey;a.pb=fb?b.metaKey:b.ctrlKey;a.a=b.state;a.K=b;b.defaultPrevented&&a.B();delete a.na}function lc(a){return(Xb?0==a.K.button:"click"==a.type?i:!!(a.K.button&kc[0]))&&!(G&&fb&&a.ab)}s.Fb=function(){ic.v.Fb.call(this);this.K.stopPropagation?this.K.stopPropagation():this.K.cancelBubble=i};
|
||||
s.B=function(){ic.v.B.call(this);var a=this.K;if(a.preventDefault)a.preventDefault();else if(a.returnValue=l,Zb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};s.bd=p("K");function mc(){}var nc=0;mc.prototype.key=0;mc.prototype.wa=l;mc.prototype.a=l;mc.prototype.handleEvent=function(a){return this.b?this.Ja.call(this.Nb||this.src,a):this.Ja.handleEvent.call(this.Ja,a)};var oc={},pc={},qc={},rc={};
|
||||
function H(a,b,c,d,e){if(b){if(da(b)){for(var f=0;f<b.length;f++)H(a,b[f],c,d,e);return k}var d=!!d,g=pc;b in g||(g[b]={n:0,P:0});g=g[b];d in g||(g[d]={n:0,P:0},g.n++);var g=g[d],j=z(a),m;g.P++;if(g[j]){m=g[j];for(f=0;f<m.length;f++)if(g=m[f],g.Ja==c&&g.Nb==e){if(g.wa)break;return m[f].key}}else m=g[j]=[],g.n++;var q=sc,n=Yb?function(a){return q.call(n.src,n.key,a)}:function(a){a=q.call(n.src,n.key,a);if(!a)return a},f=n;f.src=a;var r=g=new mc;if(ha(c))r.b=i;else if(c&&c.handleEvent&&ha(c.handleEvent))r.b=
|
||||
l;else throw Error("Invalid listener argument");r.Ja=c;r.c=f;r.src=a;r.type=b;r.capture=!!d;r.Nb=e;r.a=l;r.key=++nc;r.wa=l;c=g.key;f.key=c;m.push(g);oc[c]=g;qc[j]||(qc[j]=[]);qc[j].push(g);a.addEventListener?(a==v||!a.dc)&&a.addEventListener(b,f,d):a.attachEvent(b in rc?rc[b]:rc[b]="on"+b,f);return c}throw Error("Invalid event type");}function tc(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)tc(a,b[f],c,d,e);return k}a=H(a,b,c,d,e);oc[a].a=i;return a}
|
||||
function uc(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)uc(a,b[f],c,d,e);else{d=!!d;a:{f=pc;if(b in f&&(f=f[b],d in f&&(f=f[d],a=z(a),f[a]))){a=f[a];break a}a=k}if(a)for(f=0;f<a.length;f++)if(a[f].Ja==c&&a[f].capture==d&&a[f].Nb==e){I(a[f].key);break}}}
|
||||
function I(a){if(!oc[a])return l;var b=oc[a];if(b.wa)return l;var c=b.src,d=b.type,e=b.c,f=b.capture;c.removeEventListener?(c==v||!c.dc)&&c.removeEventListener(d,e,f):c.detachEvent&&c.detachEvent(d in rc?rc[d]:rc[d]="on"+d,e);c=z(c);qc[c]&&(e=qc[c],Ca(e,b),0==e.length&&delete qc[c]);b.wa=i;if(b=pc[d][f][c])b.qc=i,vc(d,f,c,b);delete oc[a];return i}
|
||||
function vc(a,b,c,d){if(!d.lb&&d.qc){for(var e=0,f=0;e<d.length;e++)d[e].wa?d[e].c.src=k:(e!=f&&(d[f]=d[e]),f++);d.length=f;d.qc=l;0==f&&(delete pc[a][b][c],pc[a][b].n--,0==pc[a][b].n&&(delete pc[a][b],pc[a].n--),0==pc[a].n&&delete pc[a])}}function wc(a,b,c,d,e){var f=1,b=z(b);if(a[b]){a.P--;a=a[b];a.lb?a.lb++:a.lb=1;try{for(var g=a.length,j=0;j<g;j++){var m=a[j];m&&!m.wa&&(f&=xc(m,e)!==l)}}finally{a.lb--,vc(c,d,b,a)}}return Boolean(f)}function xc(a,b){a.a&&I(a.key);return a.handleEvent(b)}
|
||||
function J(a,b){var c=b.type||b,d=pc;if(!(c in d))return i;if(ga(b))b=new fc(b,a);else if(b instanceof fc)b.target=b.target||a;else{var e=b,b=new fc(c,a);Va(b,e)}var e=1,f,d=d[c],c=i in d,g;if(c){f=[];for(g=a;g;g=g.Qb)f.push(g);g=d[i];g.P=g.n;for(var j=f.length-1;!b.na&&0<=j&&g.P;j--)b.c=f[j],e&=wc(g,f[j],b.type,i,b)&&b.sb!=l}if(l in d)if(g=d[l],g.P=g.n,c)for(j=0;!b.na&&j<f.length&&g.P;j++)b.c=f[j],e&=wc(g,f[j],b.type,l,b)&&b.sb!=l;else for(d=a;!b.na&&d&&g.P;d=d.Qb)b.c=d,e&=wc(g,d,b.type,l,b)&&b.sb!=
|
||||
l;return Boolean(e)}
|
||||
function sc(a,b){if(!oc[a])return i;var c=oc[a],d=c.type,e=pc;if(!(d in e))return i;var e=e[d],f,g;if(!Yb){var j;if(!(j=b))a:{j=["window","event"];for(var m=v;f=j.shift();)if(m[f]!=k)m=m[f];else{j=k;break a}j=m}f=j;j=i in e;m=l in e;if(j){if(0>f.keyCode||f.returnValue!=h)return i;a:{var q=l;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(n){q=i}if(q||f.returnValue==h)f.returnValue=i}}q=new ic;jc(q,f,this);f=i;try{if(j){for(var r=[],t=q.c;t;t=t.parentNode)r.push(t);g=e[i];g.P=g.n;for(var u=r.length-
|
||||
1;!q.na&&0<=u&&g.P;u--)q.c=r[u],f&=wc(g,r[u],d,i,q);if(m){g=e[l];g.P=g.n;for(u=0;!q.na&&u<r.length&&g.P;u++)q.c=r[u],f&=wc(g,r[u],d,l,q)}}else f=xc(c,q)}finally{r&&(r.length=0)}return f}d=new ic(b,this);return f=xc(c,d)};function yc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}yc.prototype.R=function(){return new yc(this.top,this.right,this.bottom,this.left)};yc.prototype.contains=function(a){return!this||!a?l:a instanceof yc?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function zc(a,b){var c=Lb(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function Ac(a,b){return a.currentStyle?a.currentStyle[b]:k}function Bc(a,b){return zc(a,b)||Ac(a,b)||a.style&&a.style[b]}function Cc(a,b){var c,d,e=nb&&(fb||qb)&&zb("1.9");b instanceof Hb?(c=b.x,d=b.y):(c=b,d=h);a.style.left=Dc(c,e);a.style.top=Dc(d,e)}
|
||||
function Ec(a){var b=a.getBoundingClientRect();F&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
|
||||
function Fc(a){if(F&&!Bb(8))return a.offsetParent;for(var b=Lb(a),c=Bc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Bc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return k}function Gc(a,b){var c=Hc(a),d=Hc(b);return new Hb(c.x-d.x,c.y-d.y)}
|
||||
function Hc(a){var b=new Hb;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Ec(a);b.x=c.left;b.y=c.top}else{c=Wb(Jb(a));var d,e=Lb(a),f=Bc(a,"position"),g=nb&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new Hb(0,0),m;d=e?Lb(e):document;if(m=F)if(m=!Bb(9))Jb(d),m=l;m=m?d.body:d.documentElement;if(a!=m)if(a.getBoundingClientRect)d=Ec(a),e=Wb(Jb(e)),j.x=d.left+e.x,j.y=d.top+e.y;else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),
|
||||
e=e.getBoxObjectFor(m),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(G&&"fixed"==Bc(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(mb||G&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=Fc(g))&&g!=e.body&&g!=m;)if(j.x-=g.scrollLeft,!mb||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(nb&&!zb(12)){var q;F?q="-ms-transform":G?q="-webkit-transform":
|
||||
mb?q="-o-transform":nb&&(q="-moz-transform");var n;q&&(n=Bc(a,q));n||(n=Bc(a,"transform"));n?(a=n.match(Ic),a=!a?new Hb(0,0):new Hb(parseFloat(a[1]),parseFloat(a[2]))):a=new Hb(0,0);b=new Hb(b.x+a.x,b.y+a.y)}}else q=ha(a.bd),n=a,a.targetTouches?n=a.targetTouches[0]:q&&a.K.targetTouches&&(n=a.K.targetTouches[0]),b.x=n.clientX,b.y=n.clientY;return b}function Dc(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Jc(a,b){a.style.display=b?"":"none"}
|
||||
function Kc(a,b){Jb(Lb(a));if(F&&!zb("8")){var c=a.style,d;if(F){d=Lc(a,Ac(a,"paddingLeft"));var e=Lc(a,Ac(a,"paddingRight")),f=Lc(a,Ac(a,"paddingTop")),g=Lc(a,Ac(a,"paddingBottom"));d=new yc(f,e,g,d)}else d=zc(a,"paddingLeft"),e=zc(a,"paddingRight"),f=zc(a,"paddingTop"),g=zc(a,"paddingBottom"),d=new yc(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d));if(F)var e=Mc(a,"borderLeft"),f=Mc(a,"borderRight"),g=Mc(a,"borderTop"),j=Mc(a,"borderBottom"),e=new yc(g,f,j,e);else e=zc(a,"borderLeftWidth"),
|
||||
f=zc(a,"borderRightWidth"),g=zc(a,"borderTopWidth"),j=zc(a,"borderBottomWidth"),e=new yc(parseFloat(g),parseFloat(f),parseFloat(j),parseFloat(e));c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c=a.style,nb?c.MozBoxSizing="border-box":G?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(b.width,0)+"px",c.height=Math.max(b.height,0)+"px"}
|
||||
function Lc(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e}var Nc={thin:2,medium:4,thick:6};function Mc(a,b){if("none"==Ac(a,b+"Style"))return 0;var c=Ac(a,b+"Width");return c in Nc?Nc[c]:Lc(a,c)}var Ic=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Oc(a,b){this.x=a;this.y=b}B(Oc,Hb);Oc.prototype.R=function(){return new Oc(this.x,this.y)};Oc.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};Oc.prototype.rotate=function(a){var b=Math.cos(a),a=Math.sin(a),c=this.y*b+this.x*a;this.x=this.x*b-this.y*a;this.y=c;return this};function K(a,b){Oc.call(this,a,b)}B(K,Oc);function Pc(a,b){var c=Gb(a+180,360)-180,d=Math.abs(Math.round(3600*c));return Math.floor(d/3600)+"\u00b0 "+Math.floor(d/60%60)+"\u2032 "+Math.floor(d%60)+"\u2033 "+b.charAt(0>c?1:0)};var Qc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Rc(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=h)}return a.join("")}function Sc(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Sc(a,String(b[d]),c);else b!=k&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}
|
||||
function Tc(a,b,c){for(c=c||0;c<b.length;c+=2)Sc(b[c],b[c+1],a);return a}function Uc(a,b){for(var c in b)Sc(c,b[c],a);return a}function Vc(a,b){return Rc(2==arguments.length?Tc([a],arguments[1],0):Tc([a],arguments,1))};function Wc(a,b){var c;if(a instanceof Wc)this.ja=y(b)?b:a.ja,Xc(this,a.xa),c=a.xb,Yc(this),this.xb=c,c=a.Aa,Yc(this),this.Aa=c,Zc(this,a.qb),c=a.ob,Yc(this),this.ob=c,$c(this,a.a.R()),c=a.Wa,Yc(this),this.Wa=c;else if(a&&(c=String(a).match(Qc))){this.ja=!!b;Xc(this,c[1]||"",i);var d=c[2]||"";Yc(this);this.xb=d?decodeURIComponent(d):"";d=c[3]||"";Yc(this);this.Aa=d?decodeURIComponent(d):"";Zc(this,c[4]);d=c[5]||"";Yc(this);this.ob=d?decodeURIComponent(d):"";$c(this,c[6]||"",i);c=c[7]||"";Yc(this);
|
||||
this.Wa=c?decodeURIComponent(c):""}else this.ja=!!b,this.a=new ad(k,0,this.ja)}s=Wc.prototype;s.xa="";s.xb="";s.Aa="";s.qb=k;s.ob="";s.Wa="";s.Jd=l;s.ja=l;
|
||||
s.toString=function(){var a=[],b=this.xa;b&&a.push(bd(b,cd),":");if(b=this.Aa){a.push("//");var c=this.xb;c&&a.push(bd(c,cd),"@");a.push(encodeURIComponent(String(b)));b=this.qb;b!=k&&a.push(":",String(b))}if(b=this.ob)this.Aa&&"/"!=b.charAt(0)&&a.push("/"),a.push(bd(b,"/"==b.charAt(0)?dd:ed));(b=this.a.toString())&&a.push("?",b);(b=this.Wa)&&a.push("#",bd(b,fd));return a.join("")};s.R=function(){return new Wc(this)};
|
||||
function Xc(a,b,c){Yc(a);a.xa=c?b?decodeURIComponent(b):"":b;a.xa&&(a.xa=a.xa.replace(/:$/,""))}function Zc(a,b){Yc(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.qb=b}else a.qb=k}
|
||||
function $c(a,b,c){Yc(a);if(b instanceof ad){a.a=b;b=a.a;if((a=a.ja)&&!b.b){gd(b);b.a=k;var d=b.C,c=function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),hd(this,c,a))};if("function"==typeof d.forEach)d.forEach(c,b);else if(ea(d)||ga(d))C(d,c,b);else{var e;if("function"==typeof d.V)e=d.V();else if("function"!=typeof d.N)if(ea(d)||ga(d)){e=[];for(var f=d.length,g=0;g<f;g++)e.push(g)}else e=Sa(d);else e=h;d=Wa(d);f=d.length;for(g=0;g<f;g++)c.call(b,d[g],e&&e[g])}}b.b=a}else c||(b=bd(b,id)),a.a=
|
||||
new ad(b,0,a.ja)}function jd(a,b,c){Yc(a);da(c)||(c=[String(c)]);hd(a.a,b,c)}function Yc(a){if(a.Jd)throw Error("Tried to modify a read-only Uri");}function bd(a,b){return ga(a)?encodeURI(a).replace(b,kd):k}function kd(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var cd=/[#\/\?@]/g,ed=/[\#\?:]/g,dd=/[\#\?]/g,id=/[\#\?@]/g,fd=/#/g;function ad(a,b,c){this.a=a||k;this.b=!!c}
|
||||
function gd(a){if(!a.C&&(a.C=new Xa,a.n=0,a.a))for(var b=a.a.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=k,f=k;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=ld(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}s=ad.prototype;s.C=k;s.n=k;s.Z=function(){gd(this);return this.n};s.add=function(a,b){gd(this);this.a=k;var a=ld(this,a),c=ab(this.C,a);c||Ya(this.C,a,c=[]);c.push(b);this.n++;return this};
|
||||
s.remove=function(a){gd(this);a=ld(this,a);return $a(this.C.b,a)?(this.a=k,this.n-=ab(this.C,a).length,this.C.remove(a)):l};s.clear=function(){this.C=this.a=k;this.n=0};s.Ha=function(){gd(this);return 0==this.n};function md(a,b){gd(a);b=ld(a,b);return $a(a.C.b,b)}s.V=function(){gd(this);for(var a=this.C.N(),b=this.C.V(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
|
||||
s.N=function(a){gd(this);var b=[];if(a)md(this,a)&&(b=Da(b,ab(this.C,ld(this,a))));else for(var a=this.C.N(),c=0;c<a.length;c++)b=Da(b,a[c]);return b};function nd(a,b){var c=b?a.N(b):[];return 0<c.length?String(c[0]):h}function hd(a,b,c){a.remove(b);0<c.length&&(a.a=k,Ya(a.C,ld(a,b),Ea(c)),a.n+=c.length)}
|
||||
s.toString=function(){if(this.a)return this.a;if(!this.C)return"";for(var a=[],b=this.C.V(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.N(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.a=a.join("&")};s.R=function(){var a=new ad;a.a=this.a;this.C&&(a.C=this.C.R());return a};function ld(a,b){var c=String(b);a.b&&(c=c.toLowerCase());return c};function od(){$b.call(this)}B(od,$b);s=od.prototype;s.dc=i;s.Qb=k;s.addEventListener=function(a,b,c,d){H(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){uc(this,a,b,c,d)};s.q=function(){od.v.q.call(this);var a,b=0,c=a==k;a=!!a;if(this==k)Ja(qc,function(d){for(var e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}});else{var d=z(this);if(qc[d])for(var d=qc[d],e=d.length-1;0<=e;e--){var f=d[e];if(c||a==f.capture)I(f.key),b++}}this.Qb=k};function pd(a){return function(){return a}}var qd=pd(l),ud=pd(i),vd=pd(k);function wd(a,b,c){$b.call(this);this.d=a;this.c=c;this.a=b||window;this.b=na(this.Eb,this)}B(wd,$b);s=wd.prototype;s.O=k;s.Xb=l;s.start=function(){xd(this);this.Xb=l;var a=yd(this),b=zd(this);if(a&&!b&&this.a.mozRequestAnimationFrame)this.O=H(this.a,"MozBeforePaint",this.b),this.a.mozRequestAnimationFrame(k),this.Xb=i;else{if(a&&b)a=a.call(this.a,this.b);else{var c=this.b,d;d=d||0;a=this.a.setTimeout(function(){return c.apply(this,Array.prototype.slice.call(arguments,0,d))},20)}this.O=a}};
|
||||
function xd(a){if(a.O!=k){var b=yd(a),c=zd(a);b&&!c&&a.a.mozRequestAnimationFrame?I(a.O):b&&c?c.call(a.a,a.O):a.a.clearTimeout(a.O)}a.O=k}s.Eb=function(){this.Xb&&this.O&&I(this.O);this.O=k;this.d.call(this.c,pa())};s.q=function(){xd(this);wd.v.q.call(this)};function yd(a){a=a.a;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||k}
|
||||
function zd(a){a=a.a;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||k};function Ad(a){$b.call(this);this.ra=a||window;this.kb=H(this.ra,"resize",this.Bd,l,this);this.qa=Ob(this.ra||window);if(G&&gb||mb&&this.ra.self!=this.ra.top)this.zb=window.setInterval(na(this.Zb,this),Bd)}B(Ad,od);var Bd=500;s=Ad.prototype;s.kb=k;s.ra=k;s.qa=k;s.zb=k;s.q=function(){Ad.v.q.call(this);this.kb&&(I(this.kb),this.kb=k);this.zb&&(window.clearInterval(this.zb),this.zb=k);this.qa=this.ra=k};s.Bd=function(){this.Zb()};
|
||||
s.Zb=function(){var a=Ob(this.ra||window);if(!(a==this.qa||(!a||!this.qa?0:a.width==this.qa.width&&a.height==this.qa.height)))this.qa=a,J(this,"resize")};function Cd(a,b,c,d,e){if(!F&&(!G||!zb("525")))return i;if(fb&&e)return Dd(a);if(e&&!d||!c&&(17==b||18==b)||F&&d&&b==a)return l;switch(a){case 13:return!(F&&Bb(9));case 27:return!G}return Dd(a)}function Dd(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||G&&0==a)return i;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return i;default:return l}}
|
||||
function Ed(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Fd(a,b){$b.call(this);a&&(this.gb&&Gd(this),this.Ca=a,this.fb=H(this.Ca,"keypress",this,b),this.Ob=H(this.Ca,"keydown",this.a,b,this),this.gb=H(this.Ca,"keyup",this.b,b,this))}B(Fd,od);s=Fd.prototype;s.Ca=k;s.fb=k;s.Ob=k;s.gb=k;s.da=-1;s.ca=-1;s.Ab=l;
|
||||
var Hd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Id={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Jd=F||G&&zb("525"),Kd=fb&&nb;
|
||||
Fd.prototype.a=function(a){if(G&&(17==this.da&&!a.ab||18==this.da&&!a.aa))this.ca=this.da=-1;Jd&&!Cd(a.ta,this.da,a.ka,a.ab,a.aa)?this.handleEvent(a):(this.ca=nb?Ed(a.ta):a.ta,Kd&&(this.Ab=a.aa))};Fd.prototype.b=function(a){this.ca=this.da=-1;this.Ab=a.aa};
|
||||
Fd.prototype.handleEvent=function(a){var b=a.K,c,d,e=b.altKey;F&&"keypress"==a.type?(c=this.ca,d=13!=c&&27!=c?b.keyCode:0):G&&"keypress"==a.type?(c=this.ca,d=0<=b.charCode&&63232>b.charCode&&Dd(c)?b.charCode:0):mb?(c=this.ca,d=Dd(c)?b.keyCode:0):(c=b.keyCode||this.ca,d=b.charCode||0,Kd&&(e=this.Ab),fb&&(63==d&&224==c)&&(c=191));var f=c,g=b.keyIdentifier;c?63232<=c&&c in Hd?f=Hd[c]:25==c&&a.ka&&(f=9):g&&g in Id&&(f=Id[g]);a=f==this.da;this.da=f;b=new Ld(f,d,a,b);b.aa=e;J(this,b)};
|
||||
function Gd(a){a.fb&&(I(a.fb),I(a.Ob),I(a.gb),a.fb=k,a.Ob=k,a.gb=k);a.Ca=k;a.da=-1;a.ca=-1}Fd.prototype.q=function(){Fd.v.q.call(this);Gd(this)};function Ld(a,b,c,d){d&&jc(this,d,h);this.type="key";this.ta=a;this.$a=b;this.b=c}B(Ld,ic);function Md(a){$b.call(this);this.a=a;a=ia(this.a)&&1==this.a.nodeType?this.a:this.a?this.a.body:k;this.e=!!a&&"rtl"==Bc(a,"direction");this.b=H(this.a,nb?"DOMMouseScroll":"mousewheel",this)}B(Md,od);
|
||||
Md.prototype.handleEvent=function(a){var b=0,c=0,d=0,a=a.K;if("mousewheel"==a.type){c=1;if(F||G&&(gb||zb("532.0")))c=40;d=Nd(-a.wheelDelta,c);y(a.wheelDeltaX)?(b=Nd(-a.wheelDeltaX,c),c=Nd(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),y(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;"number"==typeof this.c&&(b=Fb(b,-this.c,this.c));"number"==typeof this.d&&(c=Fb(c,-this.d,this.d));this.e&&(b=-b);b=new Od(d,a,b,c);J(this,b)};function Nd(a,b){return G&&(fb||hb)&&0!=a%b?a:a/b}
|
||||
Md.prototype.q=function(){Md.v.q.call(this);I(this.b);delete this.b};function Od(a,b,c,d){b&&jc(this,b,h);this.type="mousewheel";this.e=a;this.d=c;this.b=d}B(Od,ic);var Pd=document&&"ontouchstart"in document.documentElement||!!window.navigator.msPointerEnabled;function L(a){$b.call(this);this.o={};y(a)&&this.mb(a)}B(L,od);var Qd={},Rd={},Sd={};function Td(a){return a.substr(0,1).toUpperCase()+a.substr(1)}function Ud(a){return a.ol_accessors_||(a.ol_accessors_={})}function Vd(a){return Qd.hasOwnProperty(a)?Qd[a]:Qd[a]=a.toLowerCase()+"_changed"}function Wd(a){return a.ol_bindings_||(a.ol_bindings_={})}s=L.prototype;
|
||||
s.Rc=function(a,b,c,d){c=c||a;this.Wb(a);var e=Vd(c);Wd(this)[a]=H(b,e,function(){Xd(this,a)},h,this);Ud(this)[a]={target:b,key:c};d||Xd(this,a)};s.Uc=x;s.r=function(a){var b,c=Ud(this);c.hasOwnProperty(a)?(b=c[a],a=b.target,b=b.key,c=Rd.hasOwnProperty(b)?Rd[b]:Rd[b]="get"+Td(b),b=a[c]?a[c]():a.r(b)):this.o.hasOwnProperty(a)&&(b=this.o[a]);return b};
|
||||
s.V=function(){for(var a=Sa(Ud(this)).concat(Sa(this.o)),b={},c=0,d=0;d<a.length;){var e=a[d++],f=ia(e)?"o"+z(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=i,a[c++]=e)}a.length=c;return a};s.rc=function(a){var b=Ud(this);b.hasOwnProperty(a)?(a=b[a],a.target.rc(a.key)):Xd(this,a)};function Xd(a,b){var c=Vd(b);J(a,c);J(a,"changed")}
|
||||
s.p=function(a,b){var c=Ud(this);if(c.hasOwnProperty(a)){var d=c[a],c=d.target,d=d.key,e=Sd.hasOwnProperty(d)?Sd[d]:Sd[d]="set"+Td(d);if(c[e])c[e](b);else c.p(d,b)}else this.o[a]=b,Xd(this,a)};s.Bc=function(a){var b,c,d;for(b in a)if(c=a[b],d=Sd.hasOwnProperty(b)?Sd[b]:Sd[b]="set"+Td(b),this[d])this[d](c);else this.p(b,c)};s.mb=L.prototype.Bc;s.Wb=function(a){var b=Wd(this),c=b[a];c&&(delete b[a],I(c),b=this.r(a),delete Ud(this)[a],this.o[a]=b)};s.Wd=function(){for(var a in Wd(this))this.Wb(a)};function Yd(a,b,c,d,e){fc.call(this,a,e);this.a=b;this.index=c;this.b=d}B(Yd,fc);function M(a){L.call(this);this.a=a||[];Zd(this)}B(M,L);s=M.prototype;s.clear=function(){for(;0<this.Za();)this.sc()};s.forEach=function(a,b){C(this.a,a,b)};s.$c=p("a");s.ad=function(a){return this.a[a]};s.Za=function(){return this.r("length")};s.eb=function(a,b){Fa(this.a,a,0,b);Zd(this);J(this,new Yd("add",b,h,h,this));J(this,new Yd("insert_at",b,a,h,this))};s.sc=function(){return this.yc(this.Za()-1)};
|
||||
s.push=function(a){var b=this.a.length;this.eb(b,a);return b};s.yc=function(a){var b=this.a[a];xa.splice.call(this.a,a,1);Zd(this);J(this,new Yd("remove",b,h,h,this));J(this,new Yd("remove_at",h,a,b,this));return b};s.Od=function(a,b){var c=this.Za();if(a<c)c=this.a[a],this.a[a]=b,J(this,new Yd("set_at",b,a,c,this)),J(this,new Yd("remove",c,h,h,this)),J(this,new Yd("add",b,h,h,this));else{for(;c<a;++c)this.eb(c,h);this.eb(a,b)}};function Zd(a){a.p("length",a.a.length)};function $d(){this.c=Fb(255,0,255);this.b=Fb(255,0,255);this.a=Fb(255,0,255);this.d=Fb(1,0,1)};function ae(a,b){Ib.call(this,a,b)}B(ae,Ib);function be(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}be.prototype.a=function(){return this.i-this.j};be.prototype.b=function(){return this.k-this.h};function ce(a,b){return a.h<=b.k&&a.k>=b.h&&a.j<=b.i&&a.i>=b.j}be.prototype.toString=function(){return"("+[this.h,this.j,this.k,this.i].join(", ")+")"};function N(a,b,c,d){be.call(this,a,b,c,d)}B(N,be);function de(a){var b=arguments[0],b=new N(b.x,b.y,b.x,b.y),c;for(c=1;c<arguments.length;++c){var d=arguments[c];b.h=Math.min(b.h,d.x);b.j=Math.min(b.j,d.y);b.k=Math.max(b.k,d.x);b.i=Math.max(b.i,d.y)}return b}function ee(a){return new K(a.h,a.i)}N.prototype.transform=function(a){var b=[this.h,this.j,this.k,this.i],b=a(b,b,2);return new N(Math.min(b[0],b[2]),Math.min(b[1],b[3]),Math.max(b[0],b[2]),Math.max(b[1],b[3]))};function fe(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}fe.prototype.a=4;fe.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};fe.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(fe.BYTES_PER_ELEMENT=4,fe.prototype.BYTES_PER_ELEMENT=fe.prototype.a,fe.prototype.set=fe.prototype.b,fe.prototype.toString=fe.prototype.toString,A("Float32Array",fe));function ge(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}ge.prototype.a=8;ge.prototype.b=function(a,b){for(var b=b||0,c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};ge.prototype.toString=Array.prototype.join;"undefined"==typeof Float64Array&&(ge.BYTES_PER_ELEMENT=8,ge.prototype.BYTES_PER_ELEMENT=ge.prototype.a,ge.prototype.set=ge.prototype.b,ge.prototype.toString=ge.prototype.toString,A("Float64Array",ge));function he(){var a=Array(16);ie(a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return a}function je(){var a=Array(16);ie(a,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return a}function ie(a,b,c,d,e,f,g,j,m,q,n,r,t,u,w,D,E){a[0]=b;a[1]=c;a[2]=d;a[3]=e;a[4]=f;a[5]=g;a[6]=j;a[7]=m;a[8]=q;a[9]=n;a[10]=r;a[11]=t;a[12]=u;a[13]=w;a[14]=D;a[15]=E}
|
||||
function ke(a,b){a[0]=b[0];a[1]=b[1];a[2]=b[2];a[3]=b[3];a[4]=b[4];a[5]=b[5];a[6]=b[6];a[7]=b[7];a[8]=b[8];a[9]=b[9];a[10]=b[10];a[11]=b[11];a[12]=b[12];a[13]=b[13];a[14]=b[14];a[15]=b[15]}function le(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1}
|
||||
function me(a,b,c){var d=a[0],e=a[1],f=a[2],g=a[3],j=a[4],m=a[5],q=a[6],n=a[7],r=a[8],t=a[9],u=a[10],w=a[11],D=a[12],E=a[13],U=a[14],a=a[15],V=b[0],O=b[1],Y=b[2],fa=b[3],Ka=b[4],La=b[5],Ma=b[6],Na=b[7],Oa=b[8],Pa=b[9],Qa=b[10],S=b[11],rd=b[12],sd=b[13],td=b[14],b=b[15];c[0]=d*V+j*O+r*Y+D*fa;c[1]=e*V+m*O+t*Y+E*fa;c[2]=f*V+q*O+u*Y+U*fa;c[3]=g*V+n*O+w*Y+a*fa;c[4]=d*Ka+j*La+r*Ma+D*Na;c[5]=e*Ka+m*La+t*Ma+E*Na;c[6]=f*Ka+q*La+u*Ma+U*Na;c[7]=g*Ka+n*La+w*Ma+a*Na;c[8]=d*Oa+j*Pa+r*Qa+D*S;c[9]=e*Oa+m*Pa+t*Qa+
|
||||
E*S;c[10]=f*Oa+q*Pa+u*Qa+U*S;c[11]=g*Oa+n*Pa+w*Qa+a*S;c[12]=d*rd+j*sd+r*td+D*b;c[13]=e*rd+m*sd+t*td+E*b;c[14]=f*rd+q*sd+u*td+U*b;c[15]=g*rd+n*sd+w*td+a*b}function ne(a,b){return a.length==b.length&&a[0]==b[0]&&a[1]==b[1]&&a[2]==b[2]&&a[3]==b[3]&&a[4]==b[4]&&a[5]==b[5]&&a[6]==b[6]&&a[7]==b[7]&&a[8]==b[8]&&a[9]==b[9]&&a[10]==b[10]&&a[11]==b[11]&&a[12]==b[12]&&a[13]==b[13]&&a[14]==b[14]&&a[15]==b[15]}
|
||||
function oe(a,b,c){var d=b[0],e=b[1],b=b[2];c[0]=d*a[0]+e*a[4]+b*a[8]+a[12];c[1]=d*a[1]+e*a[5]+b*a[9]+a[13];c[2]=d*a[2]+e*a[6]+b*a[10]+a[14]}function pe(a,b,c){var d=a[1]*b+a[5]*c+0*a[9]+a[13],e=a[2]*b+a[6]*c+0*a[10]+a[14],f=a[3]*b+a[7]*c+0*a[11]+a[15];a[12]=a[0]*b+a[4]*c+0*a[8]+a[12];a[13]=d;a[14]=e;a[15]=f}function qe(a,b,c){ie(a,a[0]*b,a[1]*b,a[2]*b,a[3]*b,a[4]*c,a[5]*c,a[6]*c,a[7]*c,1*a[8],1*a[9],1*a[10],1*a[11],a[12],a[13],a[14],a[15])}
|
||||
function re(a,b){var c=a[0],d=a[1],e=a[2],f=a[3],g=a[4],j=a[5],m=a[6],q=a[7],n=Math.cos(b),r=Math.sin(b);a[0]=c*n+g*r;a[1]=d*n+j*r;a[2]=e*n+m*r;a[3]=f*n+q*r;a[4]=c*-r+g*n;a[5]=d*-r+j*n;a[6]=e*-r+m*n;a[7]=f*-r+q*n}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function se(a,b,c){Oc.call(this,b,c);this.m=a}B(se,K);se.prototype.hash=function(){return(this.x<<this.m)+this.y};function te(a){var b=Array(a.m),c=1<<a.m-1,d,e;for(d=0;d<a.m;++d)e=48,a.x&c&&(e+=1),a.y&c&&(e+=2),b[d]=String.fromCharCode(e),c>>=1;return b.join("")}se.prototype.toString=function(){return[this.m,this.x,this.y].join("/")};function ue(a,b,c,d){this.h=a;this.j=b;this.k=c;this.i=d}B(ue,be);ue.prototype.contains=function(a){return this.h<=a.x&&a.x<=this.k&&this.j<=a.y&&a.y<=this.i};ue.prototype.a=function(){return this.i-this.j+1};ue.prototype.b=function(){return this.k-this.h+1};function ve(a,b){this.b=a;this.a=b||k};function we(a){$b.call(this);this.X=a;this.b=0}B(we,od);we.prototype.la=function(){return z(this).toString()};we.prototype.L=p("b");function xe(a){this.d=a;this.e=8;this.c=0;this.a=[];this.b={}}function ye(a,b,c,d){if(0==b.L()){var e=b.la();if(!(e in a.b)){var f=a.d(b,c,d);Infinity!=f&&(a.a.push([f,b,c,d]),a.b[e]=i,ze(a,0,a.a.length-1))}}}xe.prototype.f=function(){--this.c};function Ae(a,b){for(var c=a.a,d=c.length,e=c[b],f=b;b<d>>1;){var g=2*b+1,j=2*b+2,g=j<d&&c[j][0]<c[g][0]?j:g;c[b]=c[g];b=g}c[b]=e;ze(a,f,b)}function ze(a,b,c){for(var a=a.a,d=a[c];c>b;){var e=c-1>>1;if(a[e][0]>d[0])a[c]=a[e],c=e;else break}a[c]=d};/*
|
||||
|
||||
Latitude/longitude spherical geodesy formulae taken from
|
||||
http://www.movable-type.co.uk/scripts/latlong.html
|
||||
Licenced under CC-BY-3.0.
|
||||
*/
|
||||
function Be(a,b){var c=a.y*Math.PI/180,d=b.y*Math.PI/180,e=(d-c)/2,f=(b.x-a.x)*Math.PI/180/2,c=Math.sin(e)*Math.sin(e)+Math.sin(f)*Math.sin(f)*Math.cos(c)*Math.cos(d);return 2*Ce.a*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))};var Ce=new function(){this.a=6370997};var De="object"==typeof Proj4js,Ee={fe:"degrees",oe:"m"};function P(a,b,c,d){this.a=a;this.e=b;this.l=c;this.b=y(d)?d:"enu"}P.prototype.g=p("a");P.prototype.G=p("l");P.prototype.o=p("e");P.prototype.f=p("b");function Fe(a,b){P.call(this,a,b.units,k,b.axis);this.wc=b;this.d=k}B(Fe,P);
|
||||
Fe.prototype.c=function(a,b){if("degrees"==this.e)return a;this.d===k&&(this.d=Ge(this,He("EPSG:4326")));var c=[b.x-a/2,b.y,b.x+a/2,b.y,b.x,b.y-a/2,b.x,b.y+a/2],c=this.d(c,c,2);return(Be(new K(c[0],c[1]),new K(c[2],c[3]))+Be(new K(c[4],c[5]),new K(c[6],c[7])))/2};var Ie={},Je={},Ke={};function Le(a){C(a,function(a){Me(a)});C(a,function(b){C(a,function(a){b!==a&&Ne(b,a,Oe)})})}function Me(a){Je[a.a]=a;Ne(a,a,Oe)}function Pe(a){return a!=k?ga(a)?Qe(a):a:Qe("EPSG:3857")}
|
||||
function Ne(a,b,c){a=a.a;b=b.a;a in Ke||(Ke[a]={});Ke[a][b]=c}function Qe(a){var b=Je[a];De&&!y(b)&&(b=He(a));y(b)||(b=k);return b}function He(a){var b=Ie[a];y(b)||(b=new Proj4js.Proj(a),b=new Fe(a,b),Ie[a]=b);return b}
|
||||
function Ge(a,b){var c=a.a,d=b.a,e;c in Ke&&d in Ke[c]&&(e=Ke[c][d]);if(De&&!y(e)){var f;f=(a instanceof Fe?a:He(a.a)).wc;var g;g=(b instanceof Fe?b:He(b.a)).wc;e=function(a,b,c){var d=a.length,c=1<c?c:2;y(b)||(b=2<c?a.slice():Array(d));for(var e,t=0;t<d;t+=c)e=new Proj4js.Point(a[t],a[t+1]),e=Proj4js.transform(f,g,e),b[t]=e.x,b[t+1]=e.y;return b};Ne(a,b,e)}y(e)||(e=Re);return e}function Se(a,b){var c=Qe(a),d=Qe(b);return Ge(c,d)}
|
||||
function Re(a,b){if(y(b)&&a!==b){for(var c=0,d=a.length;c<d;++c)b[c]=a[c];a=b}return a}function Oe(a,b){var c;if(y(b)){c=0;for(var d=a.length;c<d;++c)b[c]=a[c];c=b}else c=a.slice();return c};function Te(a){$b.call(this);this.l=y(a.projection)?a.projection:k;this.o=y(a.extent)?a.extent:a.projection.G();this.e=y(a.attributions)?a.attributions:k}B(Te,od);Te.prototype.ha=p("e");Te.prototype.G=p("o");Te.prototype.c=ud;function Q(a){L.call(this);this.g=a.source;this.l(y(a.brightness)?a.brightness:0);this.s(y(a.contrast)?a.contrast:1);this.u(y(a.hue)?a.hue:0);this.D(y(a.opacity)?a.opacity:1);this.F(y(a.saturation)?a.saturation:1);this.H(y(a.visible)?a.visible:i);this.g.c()||tc(this.g,"load",this.J,l,this)}B(Q,L);Q.prototype.b=function(){return this.r("brightness")};Q.prototype.getBrightness=Q.prototype.b;Q.prototype.c=function(){return this.r("contrast")};Q.prototype.getContrast=Q.prototype.c;Q.prototype.d=function(){return this.r("hue")};
|
||||
Q.prototype.getHue=Q.prototype.d;Q.prototype.e=function(){return this.r("opacity")};Q.prototype.getOpacity=Q.prototype.e;Q.prototype.f=function(){return this.r("saturation")};Q.prototype.getSaturation=Q.prototype.f;Q.prototype.W=p("g");Q.prototype.a=function(){return this.r("visible")};Q.prototype.getVisible=Q.prototype.a;Q.prototype.J=function(){J(this,"load")};Q.prototype.l=function(a){a=Fb(a,-1,1);a!=this.b()&&this.p("brightness",a)};Q.prototype.setBrightness=Q.prototype.l;
|
||||
Q.prototype.s=function(a){a=Math.max(0,a);a!=this.c()&&this.p("contrast",a)};Q.prototype.setContrast=Q.prototype.s;Q.prototype.u=function(a){a!=this.d()&&this.p("hue",a)};Q.prototype.setHue=Q.prototype.u;Q.prototype.D=function(a){a=Fb(a,0,1);a!=this.e()&&this.p("opacity",a)};Q.prototype.setOpacity=Q.prototype.D;Q.prototype.F=function(a){a=Math.max(0,a);a!=this.f()&&this.p("saturation",a)};Q.prototype.setSaturation=Q.prototype.F;Q.prototype.H=function(a){a=!!a;a!=this.a()&&this.p("visible",a)};
|
||||
Q.prototype.setVisible=Q.prototype.H;function Ue(a){return 3*a*a-2*a*a*a};function Ve(){L.call(this);this.e=[0,0]}B(Ve,L);function We(a,b){a.e[1]+=b};var Xe={mc:aa(),Gc:function(a){return 0.5>a?Ue(2*a):1-Ue(2*(a-0.5))},Xc:function(a){return Math.pow(2,-10*a)*Math.sin((a-0.075)*2*Math.PI/0.3)+1},Bb:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};var Ye={Bb:function(a){var b=a.resolution,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Xe.Gc;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=e((g.time-c)/d),m=b-g.t.resolution;g.Q=i;g.t.resolution+=j*m;g.A[0]+=1;return i}return l}},Ka:function(a){var b=a.source,c=y(a.start)?a.start:pa(),d=b.x,e=b.y,f=y(a.duration)?a.duration:1E3,g=y(a.easing)?a.easing:Ue;return function(a,b){if(b.time<c)return b.Q=i,b.A[0]+=1,i;if(b.time<c+f){var q=
|
||||
1-g((b.time-c)/f),n=d-b.t.center.x,r=e-b.t.center.y;b.Q=i;b.t.center.x+=q*n;b.t.center.y+=q*r;b.A[0]+=1;return i}return l}},rotate:function(a){var b=a.rotation,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:1E3,e=y(a.easing)?a.easing:Ue;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.t.rotation;g.Q=i;g.t.rotation+=j*m;g.A[0]+=1;return i}return l}},zoom:function(a){var b=a.resolution,c=y(a.start)?a.start:pa(),d=y(a.duration)?a.duration:1E3,
|
||||
e=y(a.easing)?a.easing:Xe.mc;return function(a,g){if(g.time<c)return g.Q=i,g.A[0]+=1,i;if(g.time<c+d){var j=1-e((g.time-c)/d),m=b-g.t.resolution;g.Q=i;g.t.resolution+=j*m;g.A[0]+=1;return i}return l}}};function Ze(a,b,c){this.e=a;this.d=b;this.f=c;this.a=[];this.b=this.c=0}function $e(a){for(var b=pa(),c=a.a.length-1,d=c-1;0<=d&&a.a[d].Oa>b-a.f;)d--;if(0<=d){var b=a.a[d],c=a.a[c],d=c.x-b.x,e=c.y-b.y;a.c=Math.atan2(e,d);a.b=Math.sqrt(d*d+e*e)/(c.Oa-b.Oa);return a.b>a.d}return l}Ze.prototype.Ka=function(a){var b=this.e,c=this.b,d=this.d,e=Math.log(this.d/this.b)/this.e;return Ye.Ka({source:a,duration:e,easing:function(a){return c*(Math.exp(b*a*e)-1)/(d-c)}})};function af(a,b,c){fc.call(this,a);this.map=b;this.bb=l;this.d=y(c)?c:k}B(af,fc);af.prototype.B=function(){af.v.B.call(this);this.bb=i};function bf(a,b){Hb.call(this,a,b)}B(bf,Hb);function cf(a,b,c,d){af.call(this,a,b,d);this.a=c;this.f=this.e=k}B(cf,af);cf.prototype.b=function(){this.e===k&&(this.e=df(this.map,ef(this)));return this.e};function ef(a){if(a.f===k){var b=Gc(a.a,a.map.b);a.f=new bf(b.x,b.y)}return a.f}
|
||||
function ff(a){this.a=a;this.e=k;this.b=l;this.c=this.g=this.d=this.l=this.o=this.f=k;a=this.a.b;this.o=H(a,["click","dblclick"],this.ac,l,this);this.l=H(a,"mousedown",this.vd,l,this);this.g=[H(a,["touchstart","MSPointerDown"],this.Fd,l,this),H(a,["touchmove","MSPointerMove"],this.Ed,l,this),H(a,["touchend","MSPointerUp"],this.Dd,l,this)]}B(ff,od);s=ff.prototype;s.ac=function(a){if(!this.b){var b=a.type;J(this,0==this.f||"dblclick"==b?new cf(gf,this.a,a):new cf(hf,this.a,a))}};
|
||||
s.xd=function(a){this.e&&(this.c=k,C(this.d,I),this.e=this.d=k,this.b&&J(this,new cf(jf,this.a,a)))};s.vd=function(a){J(this,new cf(kf,this.a,a));this.e||(this.c=a,this.e={clientX:a.clientX,clientY:a.clientY},this.b=l,this.d=[H(document,"mousemove",this.wd,l,this),H(document,"mouseup",this.xd,l,this)],a.B())};s.wd=function(a){var b;this.b||(this.b=i,b=new cf(lf,this.a,this.c),J(this,b));this.e={clientX:a.clientX,clientY:a.clientY};b=new cf(mf,this.a,a);J(this,b)};
|
||||
s.Fd=function(a){a.B();this.c=a;this.b=l;J(this,new cf(nf,this.a,a))};s.Ed=function(a){this.b=i;J(this,new cf(of,this.a,a))};s.Dd=function(a){J(this,new cf(pf,this.a,a));this.b||(a=pa(),this.f=!this.f||250<a-this.f?a:0,this.ac(this.c));this.c=k};s.q=function(){I(this.o);I(this.l);this.d!==k&&(C(this.d,I),this.d=k);this.g!==k&&(C(this.g,I),this.g=k);ff.v.q.call(this)};
|
||||
var hf="click",gf="dblclick",kf="down",lf="dragstart",mf="drag",jf="dragend",nf="touchstart",of="touchmove",pf="touchend",qf={ce:hf,ee:gf,he:kf,ke:lf,ie:mf,je:jf,Me:nf,Le:of,Ke:pf};function rf(a,b){var c=a.length;if(a[0]<=b)return 0;if(!(b<=a[c-1])){var d;for(d=1;d<c;++d){if(a[d]==b)return d;if(a[d]<b)return a[d-1]-b<b-a[d]?d-1:d}}return c-1};function sf(a,b){if(y(a))return a+b};function tf(a){this.resolution=a;this.rotation=sf};function R(a){Ve.call(this);var a=a||{},b={};b.center=y(a.center)?a.center:k;b.projection=Pe(a.projection);if(y(a.resolution))b.resolution=a.resolution;else if(y(a.zoom)){var c=b.projection.G(),c=Math.max(c.k-c.h,c.i-c.j);b.resolution=c/(256*Math.pow(2,a.zoom))}b.rotation=a.rotation;this.mb(b);if(y(a.resolutions))var d=a.resolutions,a=function(a,b){if(y(a)){var c=rf(d,a),c=Fb(c+b,0,d.length-1);return d[c]}};else{y(a.maxResolution)&&y(a.numZoomLevels)&&y(a.zoomFactor)?(b=a.maxResolution,c=a.numZoomLevels,
|
||||
a=a.zoomFactor):(a=Pe(a.projection).G(),b=Math.max(a.k-a.h,a.i-a.j)/256,c=116,a=Math.exp(Math.log(2)/4));var e=a,f=b,g=c-1,a=function(a,b){if(y(a)){var c=Math.floor(Math.log(f/a)/Math.log(e)+0.5),c=Math.max(c+b,0);y(g)&&(c=Math.min(c,g));return f/Math.pow(e,c)}}}this.b=new tf(a)}B(R,Ve);R.prototype.T=function(){return this.r("center")};R.prototype.getCenter=R.prototype.T;
|
||||
R.prototype.G=function(a){var b=this.T(),c=this.U();return new N(b.x-c*a.width/2,b.y-c*a.height/2,b.x+c*a.width/2,b.y+c*a.height/2)};R.prototype.tc=function(){return this.r("projection")};R.prototype.getProjection=R.prototype.tc;R.prototype.U=function(){return this.r("resolution")};R.prototype.getResolution=R.prototype.U;R.prototype.ia=function(){return this.r("rotation")||0};R.prototype.getRotation=R.prototype.ia;R.prototype.Ga=function(){return this.T()!=k&&y(this.U())};
|
||||
R.prototype.a=function(a){this.p("center",a)};R.prototype.setCenter=R.prototype.a;R.prototype.f=function(a){this.p("projection",a)};R.prototype.setProjection=R.prototype.f;R.prototype.c=function(a){this.p("resolution",a)};R.prototype.setResolution=R.prototype.c;R.prototype.d=function(a){this.p("rotation",a)};R.prototype.setRotation=R.prototype.d;
|
||||
R.prototype.rotate=function(a,b,c){b=this.b.rotation(b,0);if(c!=k){var d=this.T(),e=new K(d.x-c.x,d.y-c.y);e.rotate(b-this.ia());e.x+=c.x;e.y+=c.y;rf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};function sf(a,b,c,d){if(c!=k&&d!=k){var e=a.T(),f=a.U(),g=new K(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);rf(b,function(){this.a(g);this.c(c)},a)}else a.c(c)}
|
||||
R.prototype.zoom=function(a,b,c,d){var e=this.U();y(e)&&y(d)&&(tf(a),a.l(Ve.zoom({resolution:e,duration:d})));b=this.b.resolution(e,b);sf(this,a,b,c)};function uf(a){Zb.call(this);this.element=y(a.element)?a.element:k;this.o=a.target;this.b=k;y(a.map)&&this.a(a.map)}B(uf,Zb);uf.prototype.q=function(){Ub(this.element);uf.v.q.call(this)};uf.prototype.a=function(a){this.b===k||Ub(this.element);this.b=a;this.b!==k&&(y(this.o)?this.o:a.D).appendChild(this.element)};function vf(a){this.g=Qb("UL");var b=Ob("DIV",{"class":"ol-attribution ol-unselectable"},this.g);uf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(vf,uf);
|
||||
vf.prototype.l=function(a){var b=a.d;if(b===k)this.f&&(Ic(this.element,m),this.f=m);else{var c={},d={},a=this.b.u();y(a)&&a.forEach(function(a){a=a.W();d[z(a).toString()]=a;a=a.ha();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],w=z(b).toString(),c[w]=i}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Pa;var b={},g,j,l,p,n;for(n in f)if(e=d[n],p=e.ha(),p!==k){g=f[n];for(e=0;e<p.length;++e)if(j=p[e],l=z(j).toString(),!(l in b)){var r;a:if(j.a===k)r=i;else{var u=r=h,t=h;for(t in g)if(t in j.a){u=
|
||||
g[t];for(r=0;r<j.a[t].length;++r)if(be(j.a[t][r],u)){r=i;break a}}r=m}r&&(b[l]=j)}}Ua(a,b);n=ya(Ra(a),Number);Ga(n);var w;for(f=0;f<n.length;++f)w=n[f].toString(),w in this.c?this.d[w]||(Ic(this.c[w],i),this.d[w]=i):(b=Qb("LI"),b.innerHTML=a[w].b,this.g.appendChild(b),this.c[w]=b,this.d[w]=i),delete c[w];for(w in c)Ub(this.c[w]),delete this.c[w],delete this.d[w];a=0!=n.length;this.f!=a&&(Ic(this.element,a),this.f=a)}};
|
||||
vf.prototype.a=function(a){this.e!==k&&(D(this.e,I),this.e=k);vf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.l,m,this)])};function wf(a){var b=Od?"touchend":"click",c=Ob("A",{href:"#zoomIn","class":"ol-zoom-in"});H(c,b,this.d,m,this);var d=Ob("A",{href:"#zoomOut","class":"ol-zoom-out"});H(d,b,this.e,m,this);b=Ob("DIV","ol-zoom ol-unselectable",c,d);uf.call(this,{element:b,map:a.map,target:a.target});this.c=y(a.delta)?a.delta:1}B(wf,uf);wf.prototype.d=function(a){a.B();a=this.b;tf(a);a.a().zoom(a,this.c,h,250)};wf.prototype.e=function(a){a.B();a=this.b;tf(a);a.a().zoom(a,-this.c,h,250)};function xf(){};function yf(a){this.a=a}B(yf,xf);yf.prototype.na=function(a){var b=a.a;if(a.type==df&&(Od||kc(a.a))){var c=a.map,d=a.b(),e=a.a.ka?-this.a:this.a;c.a().zoom(c,e,d);a.B();b.B()}};function zf(a){return a.aa&&!a.pb&&a.ka}function Af(a){return!a.aa&&!a.pb&&!a.ka}function Bf(a){return!a.aa&&!a.pb&&a.ka};function Cf(){this.e=m;this.s=this.la=this.o=this.g=0;this.Na=this.f=k}B(Cf,xf);s=Cf.prototype;s.Gb=x;s.Hb=x;s.cb=sd;s.kc=x;s.na=function(a){var b=a.map;if(b.Ha()){var b=b.a(),c=a.a;a.type==gf&&this.kc(a);this.e?a.type==jf?(this.d=c.clientX-this.g,this.b=c.clientY-this.o,this.Gb(a)):a.type==ff&&(this.d=c.clientX-this.g,this.b=c.clientY-this.o,this.Hb(a),this.e=m):a.type==hf&&(this.g=c.clientX,this.o=c.clientY,this.b=this.d=0,this.f=b.T(),this.Na=a.b(),this.cb(a)&&(this.e=i,a.B()))}};function Df(a,b){Cf.call(this);this.l=a;this.a=b;this.c=k}B(Df,Cf);Df.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Oa:oa()});var a=a.map,b=a.a(),c=b.U(),d=b.ia(),c=new K(-c*this.d,c*this.b);c.rotate(d);d=new K(this.f.x+c.x,this.f.y+c.y);tf(a);b.a(d)};
|
||||
Df.prototype.Hb=function(a){var b=a.map,a=b.a();Te(a,-1);if(this.a&&Xe(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.T();this.c=this.a.Ka(e);b.l(this.c);e=Ef(b,e);b=af(b,new Ze(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Df.prototype.cb=function(a){var b=a.a;if(this.l(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,Oa:oa()})}a=a.map;tf(a);Te(a.a(),1);return i}return m};
|
||||
Df.prototype.kc=function(a){var b=a.map,c=b.a();this.c!==k&&Ba(b.g,this.c)&&(tf(b),c.a(a.d.t.center),this.c=k)};function Ff(a){Cf.call(this);this.c=a}B(Ff,Cf);Ff.prototype.Gb=function(a){var b=a.map,c=b.e(),a=bf(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(y(this.a)){var a=c-this.a,d=b.a();tf(b);d.rotate(b,d.ia()-a)}this.a=c};Ff.prototype.cb=function(a){var b=a.a;return kc(b)&&this.c(b)?(a=a.map,a.a(),tf(a),this.a=h,i):m};function Gf(a){var b=Ob("DIV","ol-dragbox");this.c=k;this.e=a.Na;this.d=k;uf.call(this,{element:b,map:a.map})}B(Gf,uf);Gf.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Ef(a,this.e),Bc(this.element,this.c),Jc(this.element,new $d(0,0)),this.d=H(a,jf,this.f,m,this));Gf.v.a.call(this,a)};Gf.prototype.f=function(a){var b=this.b,a=a.b(),b=Ef(b,a);Bc(this.element,new Ze(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Jc(this.element,new $d(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Hf(a){Cf.call(this);this.c=a;this.a=k}B(Hf,Cf);Hf.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=ce(this.Na,a.b());rf(b,function(){var a=b.a(),e=b.e();a.a(new K((c.h+c.k)/2,(c.j+c.i)/2));e=Math.max((c.k-c.h)/e.width,(c.i-c.j)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Hf.prototype.cb=function(a){var b=a.a;return kc(b)&&this.c(b)?(this.a=new Gf({map:a.map,Na:this.Na}),i):m};function If(a){this.a=a}B(If,xf);If.prototype.na=function(a){if("key"==a.type){var b=a.a,c=b.ua;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.U()*this.a,c=40==c?new K(0,-e):37==c?new K(-e,0):39==c?new K(e,0):new K(0,e),e=d.T();d.a(new K(e.x+c.x,e.y+c.y));b.B();a.B()}}};function Jf(){}B(Jf,xf);Jf.prototype.na=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;tf(d);d.a().zoom(d,c,h,100);b.B();a.B()}}};function Kf(a){this.a=a}B(Kf,xf);Kf.prototype.na=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.b(),e=0>c.b?this.a:-this.a,f=b.a();tf(b);f.zoom(b,e,d);a.B();c.B()}};function Lf(){this.g=m;this.l={};this.targetTouches=[]}B(Lf,xf);function Mf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new Ze(c/b,d/b)}Lf.prototype.e=x;Lf.prototype.d=sd;Lf.prototype.f=sd;Lf.prototype.na=function(a){var b=a.a.K;y(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==mf?delete this.l[b.pointerId]:this.l[b.pointerId]=b,this.targetTouches=Qa(this.l));this.g&&(a.type==lf?this.e(a):a.type==mf&&(this.g=this.d(a)));a.type==kf&&(this.g=this.f(a))};function Nf(){Lf.call(this);this.a=new We(-0.005,0.05,100);this.b=this.c=k}B(Nf,Lf);Nf.prototype.e=function(a){var b=Mf(this.targetTouches);if(this.b!==k){this.a.a.push({x:b.x,y:b.y,Oa:oa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new K(c,d),d=a.U();c.x*=d;c.y*=d;c=c.rotate(a.ia()).add(a.T());a.a(c)}this.b=b};
|
||||
Nf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){Te(a,-1);if(Xe(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.T();this.c=this.a.Ka(e);b.l(this.c);e=Ef(b,e);b=af(b,new Ze(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return m}return i};Nf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ba(b.g,this.c)&&(tf(b),c.a(a.d.t.center),this.c=k);a=this.a;a.a.length=0;a.c=0;a.b=0;Te(c,1);return i}return m};function Of(){Lf.call(this);this.a=m;this.b=0;this.la=0.3}B(Of,Lf);
|
||||
Of.prototype.e=function(a){var b=1,c=0,d=Mf(this.targetTouches),e=this.targetTouches[0],f=this.targetTouches[1],g=e.clientX-f.clientX,j=e.clientY-f.clientY,e=Math.atan2(f.clientY-e.clientY,f.clientX-e.clientX),g=Math.sqrt(g*g+j*j);y(this.c)&&(b=this.c/g);this.c=g;y(this.o)&&(c=e-this.o,this.b+=c,!this.a&&Math.abs(this.b)>this.la&&(this.a=i));this.o=e;a=a.map;g=a.a();j=Gc(a.b);d.x-=j.x;d.y-=j.y;d=af(a,d);sf(g,a,g.U()*b,d);this.a&&g.rotate(a,g.ia()+c,d)};
|
||||
Of.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.U(),c=b.b.resolution(c,0);sf(b,a,c,h);Te(b,-1);return m}return i};Of.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.o=this.c=h,this.a=m,this.b=0,Te(a,1),i):m};function Pf(a){P.call(this,a,"m",Qf)}B(Pf,P);var Rf=6378137*Math.PI,Qf=new N(-Rf,-Rf,Rf,Rf),Sf=ya(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Pf(a)});function Tf(a,b){P.call(this,a,"degrees",Uf,b)}B(Tf,P);var Uf=new N(-180,-90,180,90),Vf=[new Tf("CRS:84"),new Tf("EPSG:4326","neu"),new Tf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Tf("urn:ogc:def:crs:OGC:1.3:CRS84")];function Wf(a,b,c,d,e){this.f=e;this.g=a;this.o=c;this.e=b;this.a=new Image;d!==k&&(this.a.crossOrigin=d);this.d={};this.b=k;this.c=0}B(Wf,qd);s=Wf.prototype;s.ha=q("f");s.G=q("g");function Xf(a,b){if(y(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Sa(a.d)?a.a:a.a.cloneNode(m);return a.d[d]=c}return a.a}s.L=q("c");s.Ld=function(){this.c=3;D(this.b,I);this.b=k;J(this,"change")};s.Md=function(){this.c=2;D(this.b,I);this.b=k;J(this,"change")};
|
||||
function Yf(a){0==a.c&&(a.c=1,a.b=[sc(a.a,"error",a.Ld,m,a),sc(a.a,"load",a.Md,m,a)],a.a.src=a.o)};function Zf(a){this.a=a.resolutions;this.f=this.a.length;this.d=y(a.origin)?a.origin:k;this.e=k;y(a.origins)&&(this.e=a.origins);this.b=y(a.tileSize)?a.tileSize:new $d(256,256)}Zf.prototype.c=function(a,b,c){for(var d=$f(this,a),a=a.n-1;0<=a&&!b.call(c,a,ag(this,d,this.a[a]));)--a};function bg(a,b){return a.d===k?a.e[b]:a.d}function ag(a,b,c){var d=cg(a,new K(b.h,b.j),c),a=cg(a,new K(b.k,b.i),c,i);return new te(d.x,d.y,a.x,a.y)}
|
||||
function dg(a,b){var c=bg(a,b.n),d=a.a[b.n],e=a.b;return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function $f(a,b){var c=bg(a,b.n),d=a.a[b.n],e=a.b,f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new N(f,c,f+e.width*d,c+e.height*d)}function cg(a,b,c,d){var e=of(a.a,c),f=c/a.a[e],g=bg(a,e),j=a.b,a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new re(e,a,b)};function eg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=y(a.tileGrid)?a.tileGrid:k}B(eg,Qe);eg.prototype.f=sd;eg.prototype.d=function(a,b,c,d){var e=i,f,g,j,l;for(j=d.h;j<=d.k;++j)for(l=d.j;l<=d.i;++l)if(f=new re(c,j,l),g=f.toString(),!a[c]||!a[c][g])f=this.b(f),b(f)?(a[c]||(a[c]={}),a[c][g]=f):e=m;return e};
|
||||
function fg(a,b,c){for(var d=a.tileGrid,e,f,g;0<=b;--b){e=ag(d,c,d.a[b]);for(f=e.h;f<=e.k;++f)for(g=e.j;g<=e.i;++g)a.s(b+"/"+f+"/"+g)}}eg.prototype.s=x;function gg(a,b){L.call(this);this.s=a;this.a=b;H(this.a,Ud("brightness"),this.Jb,m,this);H(this.a,Ud("contrast"),this.Kb,m,this);H(this.a,Ud("hue"),this.Lb,m,this);H(this.a,"load",this.nd,m,this);H(this.a,Ud("opacity"),this.od,m,this);H(this.a,Ud("saturation"),this.Mb,m,this);H(this.a,Ud("visible"),this.qd,m,this)}B(gg,L);function hg(a){J(a,"change")}s=gg.prototype;s.$=q("s");s.Jb=x;s.Kb=x;s.Lb=x;s.Ib=function(a){2===a.target.L()&&tf(this.s.map)};s.nd=function(){hg(this)};s.od=function(){hg(this)};
|
||||
s.Mb=x;s.qd=function(){hg(this)};s.Pb=function(a){2===a.target.L()&&tf(this.s.map)};function ig(a,b){b.f()&&a.va.push(na(function(a,b,e){b=z(a).toString();a.Ca(e.Pa[b])},b))}function jg(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[z(d).toString()]=d}function kg(a,b,c,d){b=z(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.j=Math.min(a.j,d.j),a.k=Math.max(a.k,d.k),a.i=Math.max(a.i,d.i)):a[b][c]=d:(a[b]={},a[b][c]=d)}
|
||||
function lg(a,b,c){b=z(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i};function mg(a,b){Zb.call(this);this.pa=a;this.map=b;this.d={};this.F=H(b,Ud(ng),this.sd,m,this);this.e=k;this.u={}}B(mg,Zb);s=mg.prototype;s.ta=function(a){var b=this.Ua(a),a=z(a);this.d[a]=b;this.u[a]=H(b,"change",this.pd,m,this)};
|
||||
function og(a){var b=a.t,c=a.cc;ke(c);oe(c,a.size.width/2,a.size.height/2);pe(c,1/b.resolution,-1/b.resolution);qe(c,-b.rotation);oe(c,-b.center.x,-b.center.y);var a=a.vc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],l=c[6],p=c[7],n=c[8],r=c[9],u=c[10],t=c[11],w=c[12],E=c[13],C=c[14],c=c[15],S=b*j-d*g,V=b*l-e*g,O=b*p-f*g,X=d*l-e*j,fa=d*p-f*j,Ia=e*p-f*l,Ja=n*E-r*w,Ka=n*C-u*w,La=n*c-t*w,Ma=r*C-u*E,Na=r*c-t*E,Oa=u*c-t*C,T=S*Oa-V*Na+O*Ma+X*La-fa*Ka+Ia*Ja;0!=T&&(T=1/T,a[0]=(j*Oa-l*Na+p*Ma)*T,a[1]=(-d*Oa+e*
|
||||
Na-f*Ma)*T,a[2]=(E*Ia-C*fa+c*X)*T,a[3]=(-r*Ia+u*fa-t*X)*T,a[4]=(-g*Oa+l*La-p*Ka)*T,a[5]=(b*Oa-e*La+f*Ka)*T,a[6]=(-w*Ia+C*O-c*V)*T,a[7]=(n*Ia-u*O+t*V)*T,a[8]=(g*Na-j*La+p*Ja)*T,a[9]=(-b*Na+d*La-f*Ja)*T,a[10]=(w*fa-E*O+c*S)*T,a[11]=(-n*fa+r*O-t*S)*T,a[12]=(-g*Ma+j*Ka-l*Ja)*T,a[13]=(b*Ma-d*Ka+e*Ja)*T,a[14]=(-w*X+E*V-C*S)*T,a[15]=(n*X-r*V+u*S)*T)}s.Ua=ud;s.q=function(){Pa(this.d,function(a){dc(a)});I(this.F);this.e===k||D(this.e,I);mg.v.q.call(this)};s.Xa=ud;
|
||||
function pg(a,b){var c=z(b);return a.d[c]}s.pd=function(){qg(this.map)};s.rd=function(a){this.ta(a.a)};s.sd=function(){cc(Qa(this.d));this.d={};this.e!==k&&(D(this.e,I),this.e=k);var a=this.map.u();a!=k&&(a.forEach(this.ta,this),this.e=[H(a,"add",this.rd,m,this),H(a,"remove",this.td,m,this)])};s.td=function(a){this.Rb(a.a)};s.Rb=function(a){a=z(a);if(a in this.d){var b=this.d[a];delete this.d[a];I(this.u[a]);delete this.u[a];a=b}else a=k;dc(a)};s.nb=x;function rg(){};function sg(a){Qe.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Ga=y(a.Ga)?a.Ga:rg;this.d=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=y(a.resolutions)?a.resolutions:k}B(sg,Qe);function tg(a,b,c,d){var e=k,d=a.Ga(b,d);y(d)&&(e=new Wf(b,c,d,a.d,a.ha()));return e};function ug(a){Q.call(this,a)}B(ug,Q);function vg(a){Q.call(this,a)}B(vg,Q);function wg(a,b){gg.call(this,a,b)}B(wg,gg);function xg(a,b){gg.call(this,a,b);this.b=k;this.c=ge()}B(xg,wg);xg.prototype.I=function(){return this.b===k?k:Xf(this.b,this)};xg.prototype.J=q("c");
|
||||
xg.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,b=b.rotation,e;e=this.a.W();var f=a.A;!f[0]&&!f[1]&&(e=e.I(a.extent,d),e!==k&&(f=e.L(),0==f?(sc(e,"change",this.Ib,m,this),Yf(e)):2==f&&(this.b=e)));if(this.b!==k){e=this.b;var f=e.G(),g=e.e,j=this.c;ke(j);oe(j,a.size.width/2,a.size.height/2);qe(j,b);pe(j,g/d,g/d);oe(j,(f.h-c.x)/g,(c.y-f.i)/g);jg(a.attributions,e.ha())}};function yg(a,b){gg.call(this,a,b);this.d=this.b=this.c=k;this.e=ge()}B(yg,wg);yg.prototype.I=q("c");yg.prototype.J=q("e");
|
||||
yg.prototype.ea=function(a){var b=a.t,c=this.a.W(),d=z(c).toString(),e=c.tileGrid,f=e.b,g=of(e.a,b.resolution),j=e.a[g],l=ag(e,a.extent,j),p=new $d(f.width*l.b(),f.height*l.a()),n,r;this.c===k?(n=Qb("CANVAS"),n.width=p.width,n.height=p.height,r=n.getContext("2d"),this.c=n,this.b=p,this.d=r):(n=this.c,r=this.d,this.b.width==p.width&&this.b.height==p.height||(n.width=p.width,n.height=p.height,this.b=p));r.clearRect(0,0,p.width,p.height);p={};p[g]={};var u=ma(c.d,c,p,function(a){return a!==k&&2==a.L()}),
|
||||
t,w,E,C;for(E=l.h;E<=l.k;++E)for(C=l.j;C<=l.i;++C)if(w=new re(g,E,C),n=c.b(w),n!==k){t=n.L();if(0==t)sc(n,"change",this.Pb,m,this),lg(a.Qa,c,w),t=dg(e,w),xe(a.Ub,n,d,t);else if(2==t){p[g][w.toString()]=n;continue}else if(3==t)continue;e.c(w,u)}u=ya(Ra(p),Number);Ga(u);var d=de($f(e,new re(g,l.h,l.i))),S;for(w=0;w<u.length;++w)if(n=u[w],E=p[n],n==g)for(S in E)n=E[S],r.drawImage(n.I(),f.width*(n.X.x-l.h),f.height*(l.i-n.X.y));else for(S in C=e.a[n]/j,E)n=E[S],t=$f(e,n.X),r.drawImage(n.I(),(t.h-d.x)/
|
||||
j,(d.y-t.i)/j,C*f.width,C*f.height);kg(a.Pa,c,g,l);fg(c,g,a.extent);ig(a,c);c=this.e;ke(c);oe(c,a.size.width/2,a.size.height/2);qe(c,b.rotation);pe(c,j/b.resolution,j/b.resolution);oe(c,(d.x-b.center.x)/j,(b.center.y-d.y)/j)};function zg(a,b){mg.call(this,a,b);this.f=new $d(a.clientHeight,a.clientWidth);this.c=Qb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Tb(a,this.c);this.g=i;this.o=this.c.getContext("2d")}B(zg,mg);zg.prototype.Ua=function(a){return a instanceof ug?new xg(this,a):a instanceof vg?new yg(this,a):k};zg.prototype.Xa=q("c");
|
||||
zg.prototype.nb=function(a){if(a===k)this.g&&(Ic(this.c,m),this.g=m);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.o;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);D(a.ib,function(b){var d=a.hb[z(b)];if(d.visible)if(d.rb){var g=pg(this,b);g.ea(a,d);b=g.I();b!==k&&(g=g.J(),c.setTransform(g[0],
|
||||
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.Q=i},this);this.g||(Ic(this.c,i),this.g=i);og(a)}};var Ag=function(){if(!("HTMLCanvasElement"in v))return m;try{return Qb("CANVAS").getContext("2d")!==k}catch(a){return m}}();function Bg(a,b){var c;if(y(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Cg(a,b,c){gg.call(this,a,b);this.target=c}B(Cg,gg);Cg.prototype.q=function(){Ub(this.target);Cg.v.q.call(this)};function Dg(a,b){var c=Qb("DIV");c.className="ol-layer-image";c.style.position="absolute";Cg.call(this,a,b,c);this.b=k;this.c=ie()}B(Dg,Cg);
|
||||
Dg.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.W(),g=a.A;!g[0]&&!g[1]&&(f=f.I(a.extent,d),f!==k&&(g=f.L(),0==g?(sc(f,"change",this.Ib,m,this),Yf(f)):2==g&&(b=f)));if(b!==k){var g=b.G(),j=b.e,f=ge();ke(f);oe(f,a.size.width/2,a.size.height/2);qe(f,e);pe(f,j/d,j/d);oe(f,(g.h-c.x)/j,(c.y-g.i)/j);b!=this.b&&(c=Xf(b,this),c.style.position="absolute",Sb(this.target),this.target.appendChild(c),this.b=b);me(f,this.c)||(Bg(this.target,f),je(this.c,f));jg(a.attributions,
|
||||
b.ha())}};function Eg(a,b){var c=Qb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Cg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Eg,Cg);
|
||||
Eg.prototype.ea=function(a,b){if(b.visible){var c=a.t,d=this.a.W(),e=z(d).toString(),f=d.tileGrid,g=of(f.a,c.resolution),j=ag(f,a.extent,f.a[g]),l={};l[g]={};var p=ma(d.d,d,l,function(a){return a!==k&&2==a.L()}),n,r,u,t,w;for(t=j.h;t<=j.k;++t)for(w=j.j;w<=j.i;++w)if(u=new re(g,t,w),n=d.b(u),n!==k){r=n.L();if(0==r)sc(n,"change",this.Pb,m,this),lg(a.Qa,d,u),r=dg(f,u),xe(a.Ub,n,e,r);else if(2==r){l[g][u.toString()]=n;continue}else if(3==r)continue;f.c(u,p)}n=ya(Ra(l),Number);Ga(n);var e={},E;for(u=0;u<
|
||||
n.length;++u){t=n[u];t in this.b?p=this.b[t]:(p=cg(f,c.center,f.a[t]),p=new Fg(f,p),e[t]=i,this.b[t]=p);t=l[t];for(E in t){w=p;r=t[E];var C=r.X,S=C.toString();if(!(S in w.b)){var V=w.d.b,O=r.I(w),X=O.style;X.position="absolute";X.left=(C.x-w.c.x)*V.width+"px";X.top=(w.c.y-C.y)*V.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(O);w.b[S]=r}}p.a!==k&&(p.target.appendChild(p.a),p.a=k)}f=ya(Ra(this.b),Number);Ga(f);n=ge();for(E=0;E<f.length;++E)if(t=f[E],p=this.b[t],t in l)if(w=
|
||||
p.g,u=p.f,ke(n),oe(n,a.size.width/2,a.size.height/2),qe(n,c.rotation),pe(n,w/c.resolution,w/c.resolution),oe(n,(u.x-c.center.x)/w,(c.center.y-u.y)/w),u=p,w=n,me(w,u.e)||(Bg(u.target,w),je(u.e,w)),t in e){for(u=t-1;0<=u;--u)if(u in this.b){t=this.b[u].target;t.parentNode&&t.parentNode.insertBefore(p.target,t.nextSibling);break}0>u&&Tb(this.target,p.target)}else{if(!a.A[0]&&!a.A[1]){r=ag(p.d,a.extent,p.d.a[p.c.n]);u=[];w=t=h;for(w in p.b)t=p.b[w],r.contains(t.X)||u.push(t);r=h;for(r=0;r<u.length;++r)t=
|
||||
u[r],w=t.X.toString(),Ub(t.I(p)),delete p.b[w]}}else Ub(p.target),delete this.b[t];b.opacity!=this.d&&(c=b.opacity,l=this.target.style,"opacity"in l?l.opacity=c:"MozOpacity"in l?l.MozOpacity=c:"filter"in l&&(l.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Ic(this.target,i),this.c=i);kg(a.Pa,d,g,j);fg(d,g,a.extent);ig(a,d)}else this.c&&(Ic(this.target,m),this.c=m)};
|
||||
function Fg(a,b){this.target=Qb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=de($f(a,b));this.g=a.a[b.n];this.b={};this.a=k;this.e=ie()};function Gg(a,b){mg.call(this,a,b);this.c=Qb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Tb(a,this.c);this.f=i}B(Gg,mg);Gg.prototype.ta=function(a){Gg.v.ta.call(this,a);qg(this.map)};Gg.prototype.Ua=function(a){var b;a instanceof vg?b=new Eg(this,a):a instanceof ug&&(b=new Dg(this,a));this.c.appendChild(b.target);return b};
|
||||
Gg.prototype.nb=function(a){a===k?this.f&&(Ic(this.c,m),this.f=m):(D(a.ib,function(b){var c=a.hb[z(b)];c.rb&&pg(this,b).ea(a,c)},this),this.f||(Ic(this.c,i),this.f=i),og(a))};function Hg(a){this.a=a}Hg.prototype.W=q("a");function Ig(a){this.a=a}B(Ig,Hg);Ig.prototype.b=function(){return 35632};function Jg(a){this.a=a}B(Jg,Hg);Jg.prototype.b=function(){return 35633};function Kg(a,b){gg.call(this,a,b);this.D=new Float32Array(16);this.H=new Float32Array(16);this.pa=new Float32Array(16);this.Ma=new Float32Array(16);this.F=new Float32Array(16);this.c=i;this.Jb();this.Kb();this.Lb();this.Mb()}B(Kg,gg);function Lg(a){if(a.c){var b=a.F;ke(b);le(b,a.H,b);le(b,a.D,b);le(b,a.Ma,b);le(b,a.pa,b);a.c=m}return a.F}s=Kg.prototype;s.$=function(){return Kg.v.$.call(this)};s.Jb=function(){var a=this.a.b(),b=this.D;ke(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;hg(this)};
|
||||
s.Kb=function(){var a=this.a.c(),b=this.H;ke(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;hg(this)};s.Lb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);he(this.pa,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;hg(this)};
|
||||
s.Mb=function(){var a=this.a.f();he(this.Ma,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;hg(this)};s.Fa=x;function Mg(a,b){Kg.call(this,a,b);this.b=this.d=k;this.e=ie();this.f=ge()}B(Mg,Kg);s=Mg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||a.deleteTexture(this.b);Mg.v.q.call(this)};s.fc=q("e");s.gc=q("b");s.hc=q("f");s.Fa=function(){this.b=k};
|
||||
s.ea=function(a){var b=this.$().a,c=a.t,d=c.center,e=c.resolution,f=c.rotation,c=this.d,g=this.b,j=this.a.W(),l=a.A;!l[0]&&!l[1]&&(j=j.I(a.extent,e),j!==k&&(l=j.L(),0==l?(sc(j,"change",this.Ib,m,this),Yf(j)):2==l&&(c=j,g=Xf(j,this),j=this.$().a,l=j.createTexture(),j.bindTexture(3553,l),j.texImage2D(3553,0,6408,6408,5121,g),j.texParameteri(3553,10242,33071),j.texParameteri(3553,10243,33071),j.texParameteri(3553,10241,9729),j.texParameteri(3553,10240,9729),g=l,this.b===k||a.va.push(na(function(a,b){a.isContextLost()||
|
||||
a.deleteTexture(b)},b,this.b)))));c!==k&&(l=this.$().Xa(),b=c.G(),j=l.width*e,e*=l.height,l=this.f,ke(l),pe(l,2/j,2/e),qe(l,-f),oe(l,b.h-d.x,b.j-d.y),pe(l,b.b()/2,b.a()/2),oe(l,1,1),d=this.e,ke(d),pe(d,1,-1),oe(d,0,-1),this.d=c,this.b=g,jg(a.attributions,c.ha()))};function Ng(a,b){this.M=a;this.Y=b}Ng.prototype.R=function(){return new Ng(this.M,this.Y)};function Og(a){this.a=[];if(a)a:{var b,c;if(a instanceof Og){if(b=a.V(),c=a.N(),0>=a.Z()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Ng(b[d],c[d]));break a}}else b=Ra(a),c=Qa(a);for(d=0;d<b.length;d++)Pg(this,b[d],c[d])}}function Pg(a,b,c){var d=a.a;d.push(new Ng(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}s=Og.prototype;
|
||||
s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Aa(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].M<b[f].M?g:f;if(b[f].M>e.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};s.N=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};s.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].M);return b};s.R=function(){return new Og(this)};s.Z=function(){return this.a.length};
|
||||
s.Ia=function(){return 0==this.a.length};s.clear=function(){Aa(this.a)};function Qg(){Og.call(this)}B(Qg,Og);function Rg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(Rg,Ig);aa(Rg);function Sg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B(Sg,Jg);aa(Sg);
|
||||
function Tg(a,b){Kg.call(this,a,b);this.wb=Rg.Ya();this.Ra=Sg.Ya();this.e=this.g=this.f=this.z=k;this.l=h;this.d=ge();this.yb=ie();this.u=this.b=k}B(Tg,Kg);s=Tg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Tg.v.q.call(this)};s.fc=q("d");s.gc=q("g");s.hc=q("yb");s.Fa=function(){this.e=this.g=this.f=this.z=k;this.l=h};
|
||||
s.ea=function(a){var b=this.$(),c=b.a,d=a.t,e=d.center,f=this.a.W(),g=z(f).toString(),j=f.tileGrid,l=of(j.a,d.resolution),p=j.a[l],n=ag(j,a.extent,p),r;if(this.b!==k&&this.b.h==n.h&&this.b.j==n.j&&this.b.k==n.k&&this.b.i==n.i)r=this.u;else{var u=new $d(n.b(),n.a()),t=j.b,u=Math.max(u.width*t.width,u.height*t.height),u=Math.pow(2,Math.ceil(Math.log(u)/Math.log(2))),w=new $d(p*u,p*u),E=bg(j,l),C=E.x+n.h*t.width*p,p=E.y+n.j*t.height*p;r=new N(C,p,C+w.width,p+w.height);p=this.$().a;!y(this.l)||this.l!=
|
||||
u?(a.va.push(na(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},p,this.e,this.g)),t=p.createTexture(),p.bindTexture(3553,t),p.texImage2D(3553,0,6408,u,u,0,6408,5121,k),p.texParameteri(3553,10240,9729),p.texParameteri(3553,10241,9729),C=p.createFramebuffer(),p.bindFramebuffer(36160,C),p.framebufferTexture2D(36160,36064,3553,t,0),this.g=t,this.e=C,this.l=u):p.bindFramebuffer(36160,this.e);c.viewport(0,0,u,u);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);u=Ug(b,
|
||||
this.wb,this.Ra);c.useProgram(u);this.z===k&&(this.z={za:c.getAttribLocation(u,"aPosition"),Aa:c.getAttribLocation(u,"aTexCoord"),Ud:c.getUniformLocation(u,"uTileOffset"),Vb:c.getUniformLocation(u,"uTexture")});this.f===k?(u=c.createBuffer(),c.bindBuffer(34962,u),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=u):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.z.za);c.vertexAttribPointer(this.z.za,2,5126,m,16,0);c.enableVertexAttribArray(this.z.Aa);c.vertexAttribPointer(this.z.Aa,
|
||||
2,5126,m,16,8);c.uniform1i(this.z.Vb,0);var S={};S[l]={};for(var p=ma(f.d,f,S,function(a){return a!==k&&2==a.L()&&Vg(b.b,a.ma())}),u=new Qg,V=i,O,X,E=n.h;E<=n.k;++E)for(X=n.j;X<=n.i;++X)if(C=new re(l,E,X),t=f.b(C),t!==k){O=t.L();if(0==O)sc(t,"change",this.Pb,m,this),lg(a.Qa,f,C),O=dg(j,C),xe(a.Ub,t,g,O);else if(2==O)if(Vg(b.b,t.ma())){S[l][C.toString()]=t;continue}else O=dg(j,C),V=O.x-e.x,O=O.y-e.y,V=Math.sqrt(V*V+O*O),Pg(u,V,t);else if(3==O)continue;V=m;j.c(C,p)}e=ya(Ra(S),Number);Ga(e);var fa=new Float32Array(4);
|
||||
D(e,function(a){Pa(S[a],function(a){var d=$f(j,a.X),e=2*d.a()/w.height,f=2*(d.h-r.h)/w.width-1,g=2*(d.j-r.j)/w.height-1;fa[0]=2*d.b()/w.width;fa[1]=e;fa[2]=f;fa[3]=g;c.uniform4fv(this.z.Ud,fa);Wg(b,a);c.drawArrays(5,0,4)},this)},this);u.Ia()||a.va.push(na(function(a,b){var c,d;for(c=0;!b.Ia()&&4>c;++c)d=b.remove(),Wg(a,d)},b,u));V?(this.b=n,this.u=r):(this.u=this.b=k,a.Q=i)}kg(a.Pa,f,l,n);fg(f,l,a.extent);ig(a,f);ke(this.d);oe(this.d,(d.center.x-r.h)/(r.k-r.h),(d.center.y-r.j)/(r.i-r.j));qe(this.d,
|
||||
d.rotation);pe(this.d,a.size.width*d.resolution/(r.k-r.h),a.size.height*d.resolution/(r.i-r.j));oe(this.d,-0.5,-0.5)};function Xg(){this.m=0;this.c={};this.b=this.a=k}s=Xg.prototype;s.clear=function(){this.m=0;this.c={};this.b=this.a=k};function Vg(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.S};function Yg(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.S,a.a.fa=k):(c.S.fa=c.fa,c.fa.S=c.S);c.S=k;c.fa=a.b;a.b.S=c;a.b=c;return c.Y}s.Z=q("m");s.V=function(){var a=Array(this.m),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.M;return a};
|
||||
s.N=function(){var a=Array(this.m),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.Y;return a};function Zg(a){var b=a.a;delete a.c[b.M];b.S!==k&&(b.S.fa=k);a.a=b.S;a.a===k&&(a.b=k);--a.m}function $g(a,b,c){c={M:b,S:k,fa:a.b,Y:c};a.b===k?a.a=c:a.b.S=c;a.b=c;a.c[b]=c;++a.m};var ah=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function bh(a,b){var c,d,e=ah.length;for(d=0;d<e;++d)try{if(c=a.getContext(ah[d],b),c!==k)return c}catch(f){}return k}var ch=function(){if(!("WebGLRenderingContext"in v))return m;try{var a=Qb("CANVAS");return bh(a)!==k}catch(b){return m}}();function dh(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(uTexture, vTexCoord);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}B(dh,Ig);aa(dh);
|
||||
function eh(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nuniform mat4 uTexCoordMatrix;\nuniform mat4 uVertexCoordMatrix;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = uVertexCoordMatrix * vec4(aPosition, 0., 1.);\n vTexCoord = (uTexCoordMatrix * vec4(aTexCoord, 0., 1.)).st;\n}"}B(eh,Jg);aa(eh);
|
||||
function fh(a,b){mg.call(this,a,b);this.c=Qb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Tb(a,this.c);this.s=i;this.D=new $d(a.clientHeight,a.clientWidth);this.a=bh(this.c,{alpha:m,antialias:i,depth:m,preserveDrawingBuffer:m,stencil:m});H(this.c,"webglcontextlost",this.Fa,m,this);H(this.c,"webglcontextrestored",this.Id,m,this);this.l=this.z=k;this.g={};this.f={};this.b=new Xg;this.o=0;this.H=dh.Ya();this.J=eh.Ya();gh(this)}B(fh,mg);s=fh.prototype;
|
||||
s.ta=function(a){fh.v.ta.call(this,a);a.a()&&qg(this.map)};
|
||||
function Wg(a,b){var c=a.a,d=b.ma();if(Vg(a.b,d))d=Yg(a.b,d),c.bindTexture(3553,d.Tb),9729!=d.nc&&(c.texParameteri(3553,10240,9729),d.nc=9729),9729!=d.oc&&(c.texParameteri(3553,10240,9729),d.oc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);$g(a.b,d,{Tb:e,nc:9729,oc:9729})}}
|
||||
s.Ua=function(a){var b=k;a instanceof vg?b=new Tg(this,a):a instanceof ug&&(b=new Mg(this,a));return b};s.q=function(){var a=this.a;a.isContextLost()||(Pa(this.f,function(b){a.deleteProgram(b)}),Pa(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Tb)}));fh.v.q.call(this)};s.Zc=function(a,b){for(var c=this.a,d;1024<this.b.Z()-this.o;){d=this.b.a.Y;if(d===k)if(+this.b.a.M==b.time)break;else--this.o;else c.deleteTexture(d.Tb);Zg(this.b)}};s.Xa=q("c");
|
||||
function Ug(a,b,c){var d=z(b)+"/"+z(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,hh(a,b));e.attachShader(f,hh(a,c));e.linkProgram(f);return a.f[d]=f}function hh(a,b){var c=z(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.W());d.compileShader(e);return a.g[c]=e}s.Fa=function(a){a.B();this.l=this.z=k;this.g={};this.f={};this.b.clear();this.o=0;Pa(this.d,function(a){a.Fa()})};s.Id=function(){gh(this);qg(this.map)};
|
||||
function gh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}s.Rb=function(a){fh.v.Rb.call(this,a);a.a()&&qg(this.map)};
|
||||
s.nb=function(a){var b=this.a;if(a===k)return this.s&&(Ic(this.c,m),this.s=m),m;$g(this.b,a.time.toString(),k);++this.o;D(a.ib,function(b){var c=a.hb[z(b)];c.visible&&c.rb&&pg(this,b).ea(a,c)},this);var c=a.size;this.D.width==c.width&&this.D.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.D=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=Ug(this,this.H,this.J);b.useProgram(c);
|
||||
this.z===k&&(this.z={za:b.getAttribLocation(c,"aPosition"),Aa:b.getAttribLocation(c,"aTexCoord"),Rd:b.getUniformLocation(c,"uColorMatrix"),Td:b.getUniformLocation(c,"uTexCoordMatrix"),Vd:b.getUniformLocation(c,"uVertexCoordMatrix"),Sd:b.getUniformLocation(c,"uOpacity"),Vb:b.getUniformLocation(c,"uTexture")});this.l===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.l=c):b.bindBuffer(34962,this.l);b.enableVertexAttribArray(this.z.za);
|
||||
b.vertexAttribPointer(this.z.za,2,5126,m,16,0);b.enableVertexAttribArray(this.z.Aa);b.vertexAttribPointer(this.z.Aa,2,5126,m,16,8);b.uniform1i(this.z.Vb,0);D(a.ib,function(c){var d=a.hb[z(c)];d.visible&&d.rb&&(d=pg(this,c),b.uniformMatrix4fv(this.z.Td,m,d.fc()),b.uniformMatrix4fv(this.z.Vd,m,d.hc()),b.uniformMatrix4fv(this.z.Rd,m,Lg(d)),b.uniform1f(this.z.Sd,c.e()),b.bindTexture(3553,d.gc()),b.drawArrays(5,0,4))},this);this.s||(Ic(this.c,i),this.s=i);og(a);1024<this.b.Z()-this.o&&a.va.push(ma(this.Zc,
|
||||
this))};var ih={},jh={be:"canvas",ge:"dom",Pe:"webgl"},kh=["webgl","canvas","dom"],ng="layers";
|
||||
function U(a){var b,c;L.call(this);var d={};d[ng]=y(a.layers)?a.layers:new M;d.view=y(a.view)?a.view:new R;c=mg;var e;e=y(a.renderers)?a.renderers:y(a.renderer)?[a.renderer]:kh;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(Ag){c=zg;break}}else if("dom"==f){c=Gg;break}else if("webgl"==f&&ch){c=fh;break}e=[];(y(a.attributionControl)?a.attributionControl:1)&&e.push(new vf({}));if(y(a.zoomControl)?a.zoomControl:1)e.push(new wf({delta:y(a.zoomDelta)?a.zoomDelta:4}));if(y(a.interactions))b=a.interactions;
|
||||
else{b=new M;(y(a.rotate)?a.rotate:1)&&b.push(new Ff(zf));if(y(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new yf(y(a.zoomDelta)?a.zoomDelta:4));(y(a.touchPan)?a.touchPan:1)&&b.push(new Nf);(y(a.touchRotateZoom)?a.touchRotateZoom:1)&&b.push(new Of);(y(a.dragPan)?a.dragPan:1)&&b.push(new Df(Af,new We(-0.005,0.05,100)));f=y(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(y(a.keyboard)?a.keyboard:1)b.push(new If(f)),b.push(new Jf);if(y(a.mouseWheelZoom)?a.mouseWheelZoom:1)b.push(new Kf(y(a.mouseWheelZoomDelta)?
|
||||
a.mouseWheelZoomDelta:1));(y(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Hf(Bf))}a=ea(a.target)?document.getElementById(a.target):a.target;this.c=new vd(this.Nd,h,this);bc(this,this.c);this.Jc=ge();this.Nc=ge();this.d=k;this.f=0;this.s=m;this.H=a;this.F=k;this.b=Ob("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.H.appendChild(this.b);this.D=Ob("DIV","ol-overlaycontainer");
|
||||
H(this.D,["click",Od?"touchstart":"mousedown"],fc);this.b.appendChild(this.D);a=new cf(this);H(a,Qa(nf),this.uc,m,this);bc(this,a);a=new Ed(document);H(a,"key",this.ic,m,this);bc(this,a);a=new Ld(this.b);H(a,"mousewheel",this.ic,m,this);bc(this,a);this.wb=b;this.J=new c(this.b,this);bc(this,this.J);this.Qc=new zd;H(this.Qc,"resize",this.jc,m,this);this.g=[];this.yb=[];this.Mc=ma(this.Ad,this);this.pa=new we(ma(this.cd,this));H(this,Ud("view"),this.Gd,m,this);H(this,Ud("size"),this.Cd,m,this);H(this,
|
||||
Ud("backgroundColor"),this.ld,m,this);this.mb(d);this.jc();D(e,function(a){a.a(this)},this)}B(U,L);U.prototype.l=function(a){tf(this);this.g.push(a)};U.prototype.Ic=function(a){tf(this);Array.prototype.push.apply(this.g,a)};U.prototype.q=function(){Ub(this.b);U.v.q.call(this)};U.prototype.Ma=function(){return this.r("backgroundColor")};U.prototype.getBackgroundColor=U.prototype.Ma;U.prototype.Lc=q("J");
|
||||
function af(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ne(c.vc,d,d);return new K(d[0],d[1])}U.prototype.Kc=q("wb");U.prototype.u=function(){return this.r(ng)};U.prototype.getLayers=U.prototype.u;function Ef(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];ne(c.cc,d,d);return new Ze(d[0],d[1])}U.prototype.e=function(){return this.r("size")};U.prototype.getSize=U.prototype.e;U.prototype.a=function(){return this.r("view")};U.prototype.getView=U.prototype.a;s=U.prototype;
|
||||
s.cd=function(a,b,c){var d=this.d;if(d===k||!(b in d.Qa)||!d.Qa[b][a.X.toString()])return Infinity;b=d.t.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};s.ic=function(a,b){this.uc(new $e(b||a.type,this,a))};s.uc=function(a){a.d=this.d;var b=this.wb.a;if(J(this,a)!==m)for(var c=b.length-1;0<=c&&!(b[c].na(a),a.bb);c--);};
|
||||
s.Ad=function(){var a=this.pa,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.ma(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)ze(a,b);for(a=this.pa;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),ze(b,0)),d=c.ma(),delete b.b[d],b=c,sc(b,"change",a.f,m,a),0==b.b&&(b.b=1,b.c=[sc(b.a,"error",b.f,m,b),sc(b.a,"load",b.g,m,b)],b.a.src=b.e),++a.c;a=this.yb;for(b=0;b<a.length;++b)a[b](this,
|
||||
this.d);a.length=0};s.ld=function(){qg(this)};s.jc=function(){this.Ra(new $d(this.H.clientWidth,this.H.clientHeight))};s.Cd=function(){qg(this)};s.Hd=function(){qg(this)};s.Gd=function(){this.F!==k&&(I(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Hd,m,this));qg(this)};s.Ha=function(){var a=this.a(),b;if(b=y(a)){if(a=a.Ha())a=this.e()!=k;b=a}return b};function qg(a){a.c.O==k&&(0===a.f?(a=a.c,wd(a),a.Eb()):a.s=i)}function tf(a){0===a.f?a.c.O!=k||a.c.start():a.s=i}
|
||||
s.Nd=function(a){var b;if(0==this.f){var c=this.e();b=this.u();var d=y(b)?b.a:h;b=this.a();var e=y(b)?this.a():h,f=k;if(y(d)&&y(c)&&y(e)&&e.Ha()){var f=this.Ma(),g=Da(b.e),j={},l;for(b=0;b<d.length;++b){l=d[b];var p=j,n=z(l),r=l;l=r.b();var u=r.c(),t=r.d(),w=r.e(),E=r.W().c(),C=r.f(),r=r.a();p[n]={brightness:y(l)?l:0,contrast:y(u)?u:1,hue:y(t)?t:0,opacity:y(w)?w:1,rb:E,saturation:y(C)?C:1,visible:y(r)?r:i}}b=e.T();p=e.tc();n=e.U();e=e.ia();p={center:new K(b.x,b.y),projection:p,resolution:n,rotation:e};
|
||||
f={Q:m,attributions:{},backgroundColor:y(f)?f:new Zd,cc:this.Jc,extent:k,ib:d,hb:j,vc:this.Nc,va:[],size:c,Ub:this.pa,time:a,Pa:{},t:p,A:g,Qa:{}}}a=this.g;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=p.center;b=p.resolution;d=p.rotation;e=b*c.width/2;c=b*c.height/2;c=[new K(-e,-c),new K(-e,c),new K(e,-c),new K(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=ce.apply(k,c)}this.d=f;this.J.nb(f);this.s=m;f!==k&&(f.Q&&tf(this),Array.prototype.push.apply(this.yb,
|
||||
f.va));J(this,new Ye("postrender",this,f));v.setTimeout(this.Mc,0)}};s.Pd=function(a){this.p("backgroundColor",a)};U.prototype.setBackgroundColor=U.prototype.Pd;U.prototype.Oc=function(a){this.p(ng,a)};U.prototype.setLayers=U.prototype.Oc;U.prototype.Ra=function(a){this.p("size",a)};U.prototype.setSize=U.prototype.Ra;U.prototype.Pc=function(a){this.p("view",a)};U.prototype.setView=U.prototype.Pc;function rf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.s&&(a=a.c,wd(a),a.Eb())}}
|
||||
ih.Vc=function(a){var b=v.location.search.substring(1),a=y(a)?a:new $c(b);return ld(a,"renderers")?md(a,"renderers").split(","):ld(a,"renderer")?[md(a,"renderer")]:kh};Ge(Sf);Ge(Vf);function lh(a){var b=6378137*Math.PI*a.x/180,a=6378137*Math.log(Math.tan(Math.PI*(a.y+90)/360));return new K(b,a)}function mh(a){return new K(180*a.x/(6378137*Math.PI),360*Math.atan(Math.exp(a.y/6378137))/Math.PI-90)}D(Vf,function(a){D(Sf,function(b){Ie(a,b,lh);Ie(b,a,mh)})});var nh={Zd:"bottom-left",$d:"bottom-right",Ie:"top-left",Je:"top-right"};function W(a){L.call(this);this.b=Qb("DIV");this.b.style.position="absolute";this.a={Ta:"",jb:"",tb:"",vb:"",visible:i};H(this,Ud("element"),this.md,m,this);H(this,Ud("map"),this.ud,m,this);H(this,Ud("position"),this.yd,m,this);H(this,Ud("positioning"),this.zd,m,this);y(a.element)&&this.Ac(a.element);y(a.position)&&this.s(a.position);y(a.positioning)&&this.p("positioning",a.positioning);y(a.map)&&this.l(a.map)}B(W,L);
|
||||
W.prototype.f=function(){return this.r("element")};W.prototype.getElement=W.prototype.f;W.prototype.d=function(){return this.r("map")};W.prototype.getMap=W.prototype.d;W.prototype.g=function(){return this.r("position")};W.prototype.getPosition=W.prototype.g;W.prototype.e=function(){return this.r("positioning")};W.prototype.getPositioning=W.prototype.e;s=W.prototype;s.md=function(){Sb(this.b);var a=this.f();a!=k&&Rb(this.b,a)};
|
||||
s.ud=function(){this.c!==k&&(Ub(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Kd,m,this),oh(this),Rb(a.D,this.b))};s.Kd=function(){oh(this)};s.yd=function(){oh(this)};s.zd=function(){oh(this)};s.Ac=function(a){this.p("element",a)};W.prototype.setElement=W.prototype.Ac;W.prototype.l=function(a){this.p("map",a)};W.prototype.setMap=W.prototype.l;W.prototype.s=function(a){this.p("position",a)};W.prototype.setPosition=W.prototype.s;
|
||||
function oh(a){var b=a.d(),c=a.g();if(!y(b)||!b.Ha()||!y(c))a.a.visible&&(Ic(a.b,m),a.a.visible=m);else{var c=Ef(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.jb&&(a.a.jb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.tb!=f&&(a.a.tb=b.right=f)}else""!==a.a.tb&&(a.a.tb=b.right=""),f=Math.round(c.x)+"px",a.a.jb!=f&&(a.a.jb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ta&&(a.a.Ta=b.bottom=""),c=Math.round(c.y)+"px",a.a.vb!=c&&(a.a.vb=b.top=c)):(""!==a.a.vb&&
|
||||
(a.a.vb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ta!=c&&(a.a.Ta=b.bottom=c));a.a.visible||(Ic(a.b,i),a.a.visible=i)}};/*
|
||||
R.prototype.rotate=function(a,b,c){b=this.b.rotation(b,0);if(c!=k){var d=this.T(),e=new K(d.x-c.x,d.y-c.y);e.rotate(b-this.ia());e.x+=c.x;e.y+=c.y;uf(a,function(){this.a(e);this.d(b)},this)}else this.d(b)};function vf(a,b,c,d){if(c!=k&&d!=k){var e=a.T(),f=a.U(),g=new K(d.x-c*(d.x-e.x)/f,d.y-c*(d.y-e.y)/f);uf(b,function(){this.a(g);this.c(c)},a)}else a.c(c)}
|
||||
R.prototype.zoom=function(a,b,c,d){var e=this.U();y(e)&&y(d)&&(wf(a),a.l(Ye.zoom({resolution:e,duration:d})));b=this.b.resolution(e,b);vf(this,a,b,c)};function xf(a){$b.call(this);this.element=y(a.element)?a.element:k;this.o=a.target;this.b=k;y(a.map)&&this.a(a.map)}B(xf,$b);xf.prototype.q=function(){Vb(this.element);xf.v.q.call(this)};xf.prototype.a=function(a){this.b===k||Vb(this.element);this.b=a;this.b!==k&&(y(this.o)?this.o:a.D).appendChild(this.element)};function yf(a){this.g=Rb("UL");var b=Pb("DIV",{"class":"ol-attribution ol-unselectable"},this.g);xf.call(this,{element:b,map:a.map,target:a.target});this.f=i;this.c={};this.d={};this.e=k}B(yf,xf);
|
||||
yf.prototype.l=function(a){var b=a.d;if(b===k)this.f&&(Jc(this.element,l),this.f=l);else{var c={},d={},a=this.b.u();y(a)&&a.forEach(function(a){a=a.W();d[z(a).toString()]=a;a=a.ha();if(a!==k){var b,e;for(e=0;e<a.length;++e)b=a[e],w=z(b).toString(),c[w]=i}});var e=b.attributions,a={},f;for(f in e)a[f]=e[f];f=b.Pa;var b={},g,j,m,q,n;for(n in f)if(e=d[n],q=e.ha(),q!==k){g=f[n];for(e=0;e<q.length;++e)if(j=q[e],m=z(j).toString(),!(m in b)){var r;a:if(j.a===k)r=i;else{var t=r=h,u=h;for(u in g)if(u in j.a){t=
|
||||
g[u];for(r=0;r<j.a[u].length;++r)if(ce(j.a[u][r],t)){r=i;break a}}r=l}r&&(b[m]=j)}}Va(a,b);n=za(Sa(a),Number);Ha(n);var w;for(f=0;f<n.length;++f)w=n[f].toString(),w in this.c?this.d[w]||(Jc(this.c[w],i),this.d[w]=i):(b=Rb("LI"),b.innerHTML=a[w].b,this.g.appendChild(b),this.c[w]=b,this.d[w]=i),delete c[w];for(w in c)Vb(this.c[w]),delete this.c[w],delete this.d[w];a=0!=n.length;this.f!=a&&(Jc(this.element,a),this.f=a)}};
|
||||
yf.prototype.a=function(a){this.e!==k&&(C(this.e,I),this.e=k);yf.v.a.call(this,a);a!==k&&(this.e=[H(a,"postrender",this.l,l,this)])};function zf(a){var b=Pb("A",{href:"#zoomIn","class":"ol-zoom-in"});H(b,["touchend","click"],this.d,l,this);var c=Pb("A",{href:"#zoomOut","class":"ol-zoom-out"});H(c,["touchend","click"],this.e,l,this);b=Pb("DIV","ol-zoom ol-unselectable",b,c);xf.call(this,{element:b,map:a.map,target:a.target});this.c=y(a.delta)?a.delta:1}B(zf,xf);zf.prototype.d=function(a){a.B();a=this.b;wf(a);a.a().zoom(a,this.c,h,250)};zf.prototype.e=function(a){a.B();a=this.b;wf(a);a.a().zoom(a,-this.c,h,250)};function Af(){};function Bf(a){this.a=a}B(Bf,Af);Bf.prototype.ma=function(a){var b=a.a;if(a.type==gf&&(Pd||lc(a.a))){var c=a.map,d=a.b(),e=a.a.ka?-this.a:this.a;c.a().zoom(c,e,d);a.B();b.B()}};function Cf(a){return a.aa&&!a.pb&&a.ka}function Df(a){return!a.aa&&!a.pb&&!a.ka}function Ef(a){return!a.aa&&!a.pb&&a.ka};function Ff(){this.e=l;this.s=this.Ia=this.o=this.g=0;this.Na=this.f=k}B(Ff,Af);s=Ff.prototype;s.Gb=x;s.Hb=x;s.cb=qd;s.kc=x;s.ma=function(a){var b=a.map;if(b.Ga()){var b=b.a(),c=a.a;a.type==kf&&this.kc(a);this.e?a.type==mf?(this.d=c.clientX-this.g,this.b=c.clientY-this.o,this.Gb(a)):a.type==jf&&(this.d=c.clientX-this.g,this.b=c.clientY-this.o,this.Hb(a),this.e=l):a.type==lf&&(this.g=c.clientX,this.o=c.clientY,this.b=this.d=0,this.f=b.T(),this.Na=a.b(),this.cb(a)&&(this.e=i,a.B()))}};function Gf(a,b){Ff.call(this);this.l=a;this.a=b;this.c=k}B(Gf,Ff);Gf.prototype.Gb=function(a){this.a&&this.a.a.push({x:a.a.clientX,y:a.a.clientY,Oa:pa()});var a=a.map,b=a.a(),c=b.U(),d=b.ia(),c=new K(-c*this.d,c*this.b);c.rotate(d);d=new K(this.f.x+c.x,this.f.y+c.y);wf(a);b.a(d)};
|
||||
Gf.prototype.Hb=function(a){var b=a.map,a=b.a();We(a,-1);if(this.a&&$e(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.T();this.c=this.a.Ka(e);b.l(this.c);e=Hf(b,e);b=df(b,new bf(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}};Gf.prototype.cb=function(a){var b=a.a;if(this.l(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,Oa:pa()})}a=a.map;wf(a);We(a.a(),1);return i}return l};
|
||||
Gf.prototype.kc=function(a){var b=a.map,c=b.a();this.c!==k&&Ca(b.g,this.c)&&(wf(b),c.a(a.d.t.center),this.c=k)};function If(a){Ff.call(this);this.c=a}B(If,Ff);If.prototype.Gb=function(a){var b=a.map,c=b.e(),a=ef(a),c=Math.atan2(c.height/2-a.y,a.x-c.width/2);if(y(this.a)){var a=c-this.a,d=b.a();wf(b);d.rotate(b,d.ia()-a)}this.a=c};If.prototype.cb=function(a){var b=a.a;return lc(b)&&this.c(b)?(a=a.map,a.a(),wf(a),this.a=h,i):l};function Jf(a){var b=Pb("DIV","ol-dragbox");this.c=k;this.e=a.Na;this.d=k;xf.call(this,{element:b,map:a.map})}B(Jf,xf);Jf.prototype.a=function(a){this.d!==k&&(I(this.d),this.d=k);a!==k&&(this.c=Hf(a,this.e),Cc(this.element,this.c),Kc(this.element,new ae(0,0)),this.d=H(a,mf,this.f,l,this));Jf.v.a.call(this,a)};Jf.prototype.f=function(a){var b=this.b,a=a.b(),b=Hf(b,a);Cc(this.element,new bf(Math.min(b.x,this.c.x),Math.min(b.y,this.c.y)));Kc(this.element,new ae(Math.abs(b.x-this.c.x),Math.abs(b.y-this.c.y)))};function Kf(a){Ff.call(this);this.c=a;this.a=k}B(Kf,Ff);Kf.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=de(this.Na,a.b());uf(b,function(){var a=b.a(),e=b.e();a.a(new K((c.h+c.k)/2,(c.j+c.i)/2));e=Math.max((c.k-c.h)/e.width,(c.i-c.j)/e.height);e=a.b.resolution(e,0);a.c(e);a.d(0)})}};Kf.prototype.cb=function(a){var b=a.a;return lc(b)&&this.c(b)?(this.a=new Jf({map:a.map,Na:this.Na}),i):l};function Lf(a){this.a=a}B(Lf,Af);Lf.prototype.ma=function(a){if("key"==a.type){var b=a.a,c=b.ta;if(40==c||37==c||39==c||38==c){var d=a.map.a(),e=d.U()*this.a,c=40==c?new K(0,-e):37==c?new K(-e,0):39==c?new K(e,0):new K(0,e),e=d.T();d.a(new K(e.x+c.x,e.y+c.y));b.B();a.B()}}};function Mf(){}B(Mf,Af);Mf.prototype.ma=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;wf(d);d.a().zoom(d,c,h,100);b.B();a.B()}}};function Nf(a){this.a=a}B(Nf,Af);Nf.prototype.ma=function(a){if("mousewheel"==a.type){var b=a.map,c=a.a,d=a.b(),e=0>c.b?this.a:-this.a,f=b.a();wf(b);f.zoom(b,e,d);a.B();c.B()}};function Of(){this.g=l;this.o={};this.targetTouches=[]}B(Of,Af);function Pf(a){for(var b=a.length,c=0,d=0,e=0;e<b;e++)c+=a[e].clientX,d+=a[e].clientY;return new bf(c/b,d/b)}Of.prototype.e=x;Of.prototype.d=qd;Of.prototype.f=qd;Of.prototype.ma=function(a){var b=a.a.K;y(b.targetTouches)?this.targetTouches=b.targetTouches:(a.type==pf?delete this.o[b.pointerId]:this.o[b.pointerId]=b,this.targetTouches=Ra(this.o));this.g&&(a.type==of?this.e(a):a.type==pf&&(this.g=this.d(a)));a.type==nf&&(this.g=this.f(a))};function Qf(a){Of.call(this);this.a=a;this.b=this.c=k}B(Qf,Of);Qf.prototype.e=function(a){var b=Pf(this.targetTouches);if(this.b!==k){this.a&&this.a.a.push({x:b.x,y:b.y,Oa:pa()});var c=this.b.x-b.x,d=b.y-this.b.y,a=a.map.a(),c=new K(c,d),d=a.U();c.x*=d;c.y*=d;c=c.rotate(a.ia()).add(a.T());a.a(c)}this.b=b};
|
||||
Qf.prototype.d=function(a){var b=a.map,a=b.a();if(0==this.targetTouches.length){We(a,-1);if(this.a&&$e(this.a)){var c=(this.a.d-this.a.b)/this.a.e,d=this.a.c,e=a.T();this.c=this.a.Ka(e);b.l(this.c);e=Hf(b,e);b=df(b,new bf(e.x-c*Math.cos(d),e.y-c*Math.sin(d)));a.a(b)}return l}this.b=k;return i};Qf.prototype.f=function(a){if(1<=this.targetTouches.length){var b=a.map,c=b.a();this.b=k;this.c!==k&&Ca(b.g,this.c)&&(wf(b),c.a(a.d.t.center),this.c=k);this.a&&(a=this.a,a.a.length=0,a.c=0,a.b=0);We(c,1);return i}return l};function Rf(a){Of.call(this);this.a=l;this.b=0;this.l=y(a)?a:0.3}B(Rf,Of);Rf.prototype.e=function(a){var b=0,c=this.targetTouches[0],d=this.targetTouches[1],c=Math.atan2(d.clientY-c.clientY,d.clientX-c.clientX);y(this.c)&&(b=c-this.c,this.b+=b,!this.a&&Math.abs(this.b)>this.l&&(this.a=i));this.c=c;var a=a.map,c=a.a(),d=Hc(a.b),e=Pf(this.targetTouches);e.x-=d.x;e.y-=d.y;d=df(a,e);this.a&&c.rotate(a,c.ia()+b,d)};Rf.prototype.d=function(a){return 2>this.targetTouches.length?(We(a.map.a(),-1),l):i};
|
||||
Rf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.c=h,this.a=l,this.b=0,We(a,1),i):l};function Sf(){Of.call(this)}B(Sf,Of);Sf.prototype.e=function(a){var b=1,c=this.targetTouches[0],d=this.targetTouches[1],e=c.clientX-d.clientX,c=c.clientY-d.clientY,e=Math.sqrt(e*e+c*c);y(this.a)&&(b=this.a/e);this.a=e;a=a.map;e=a.a();c=Hc(a.b);d=Pf(this.targetTouches);d.x-=c.x;d.y-=c.y;c=df(a,d);vf(e,a,e.U()*b,c)};Sf.prototype.d=function(a){if(2>this.targetTouches.length){var a=a.map,b=a.a(),c=b.U(),c=b.b.resolution(c,0);vf(b,a,c,h);We(b,-1);return l}return i};
|
||||
Sf.prototype.f=function(a){return 2<=this.targetTouches.length?(a=a.map.a(),this.a=h,We(a,1),i):l};function Tf(a){P.call(this,a,"m",Uf)}B(Tf,P);var Vf=6378137*Math.PI,Uf=new N(-Vf,-Vf,Vf,Vf),Wf=za(["EPSG:3857","EPSG:102100","EPSG:102113","EPSG:900913"],function(a){return new Tf(a)});Tf.prototype.c=function(a,b){return a/((Math.exp(b.y/6378137)+Math.exp(-(b.y/6378137)))/2)};function Xf(a,b){P.call(this,a,"degrees",Yf,b)}B(Xf,P);var Yf=new N(-180,-90,180,90),Zf=[new Xf("CRS:84"),new Xf("EPSG:4326","neu"),new Xf("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Xf("urn:ogc:def:crs:OGC:1.3:CRS84")];Xf.prototype.c=aa();function $f(a,b,c,d,e){this.f=e;this.g=a;this.o=c;this.e=b;this.a=new Image;d!==k&&(this.a.crossOrigin=d);this.d={};this.b=k;this.c=0}B($f,od);s=$f.prototype;s.ha=p("f");s.G=p("g");function ag(a,b){if(y(b)){var c,d=z(b);if(d in a.d)return a.d[d];c=Ta(a.d)?a.a:a.a.cloneNode(l);return a.d[d]=c}return a.a}s.L=p("c");s.Ld=function(){this.c=3;C(this.b,I);this.b=k;J(this,"change")};s.Md=function(){this.c=2;C(this.b,I);this.b=k;J(this,"change")};
|
||||
function bg(a){0==a.c&&(a.c=1,a.b=[tc(a.a,"error",a.Ld,l,a),tc(a.a,"load",a.Md,l,a)],a.a.src=a.o)};function cg(a){this.a=a.resolutions;this.g=this.a.length;this.d=y(a.origin)?a.origin:k;this.f=k;y(a.origins)&&(this.f=a.origins);this.c=k;y(a.tileSizes)&&(this.c=a.tileSizes);this.e=y(a.tileSize)?a.tileSize:this.c===k?new ae(256,256):k}cg.prototype.b=function(a,b,c){for(var d=dg(this,a),a=a.m-1;0<=a&&!b.call(c,a,eg(this,d,this.a[a]));)--a};function fg(a,b){return a.d===k?a.f[b]:a.d}function eg(a,b,c){var d=gg(a,new K(b.h,b.j),c),a=gg(a,new K(b.k,b.i),c,i);return new ue(d.x,d.y,a.x,a.y)}
|
||||
function hg(a,b){var c=fg(a,b.m),d=a.a[b.m],e=ig(a,b.m);return new K(c.x+(b.x+0.5)*e.width*d,c.y+(b.y+0.5)*e.height*d)}function dg(a,b){var c=fg(a,b.m),d=a.a[b.m],e=ig(a,b.m),f=c.x+b.x*e.width*d,c=c.y+b.y*e.height*d;return new N(f,c,f+e.width*d,c+e.height*d)}function gg(a,b,c,d){var e=rf(a.a,c),f=c/a.a[e],g=fg(a,e),j=ig(a,e),a=f*(b.x-g.x)/(c*j.width),b=f*(b.y-g.y)/(c*j.height);d?(a=Math.ceil(a)-1,b=Math.ceil(b)-1):(a=Math.floor(a),b=Math.floor(b));return new se(e,a,b)}
|
||||
function ig(a,b){return a.e===k?a.c[b]:a.e};function jg(a){Te.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.tileGrid=y(a.tileGrid)?a.tileGrid:k}B(jg,Te);jg.prototype.f=qd;jg.prototype.d=function(a,b,c,d){var e=i,f,g,j,m;for(j=d.h;j<=d.k;++j)for(m=d.j;m<=d.i;++m)if(f=new se(c,j,m),g=f.toString(),!a[c]||!a[c][g])f=this.b(f),b(f)?(a[c]||(a[c]={}),a[c][g]=f):e=l;return e};
|
||||
function kg(a,b,c){for(var d=a.tileGrid,e,f,g;0<=b;--b){e=eg(d,c,d.a[b]);for(f=e.h;f<=e.k;++f)for(g=e.j;g<=e.i;++g)a.s(b+"/"+f+"/"+g)}}jg.prototype.s=x;function lg(a,b){L.call(this);this.s=a;this.a=b;H(this.a,Vd("brightness"),this.Jb,l,this);H(this.a,Vd("contrast"),this.Kb,l,this);H(this.a,Vd("hue"),this.Lb,l,this);H(this.a,"load",this.nd,l,this);H(this.a,Vd("opacity"),this.od,l,this);H(this.a,Vd("saturation"),this.Mb,l,this);H(this.a,Vd("visible"),this.qd,l,this)}B(lg,L);function mg(a){J(a,"change")}s=lg.prototype;s.$=p("s");s.Jb=x;s.Kb=x;s.Lb=x;s.Ib=function(a){2===a.target.L()&&wf(this.s.map)};s.nd=function(){mg(this)};s.od=function(){mg(this)};
|
||||
s.Mb=x;s.qd=function(){mg(this)};s.Pb=function(a){2===a.target.L()&&wf(this.s.map)};function ng(a,b){b.f()&&a.ua.push(oa(function(a,b,e){b=z(a).toString();a.Ba(e.Pa[b])},b))}function og(a,b){var c,d;for(c=0;c<b.length;++c)d=b[c],a[z(d).toString()]=d}function pg(a,b,c,d){b=z(b).toString();c=c.toString();b in a?c in a[b]?(a=a[b][c],a.h=Math.min(a.h,d.h),a.j=Math.min(a.j,d.j),a.k=Math.max(a.k,d.k),a.i=Math.max(a.i,d.i)):a[b][c]=d:(a[b]={},a[b][c]=d)}
|
||||
function qg(a,b,c){b=z(b).toString();c=c.toString();b in a||(a[b]={});a[b][c]=i};function rg(a,b){$b.call(this);this.oa=a;this.map=b;this.d={};this.F=H(b,Vd(sg),this.sd,l,this);this.e=k;this.u={}}B(rg,$b);s=rg.prototype;s.sa=function(a){var b=this.Ua(a),a=z(a);this.d[a]=b;this.u[a]=H(b,"change",this.pd,l,this)};
|
||||
function tg(a){var b=a.t,c=a.cc;le(c);pe(c,a.size.width/2,a.size.height/2);qe(c,1/b.resolution,-1/b.resolution);re(c,-b.rotation);pe(c,-b.center.x,-b.center.y);var a=a.vc,b=c[0],d=c[1],e=c[2],f=c[3],g=c[4],j=c[5],m=c[6],q=c[7],n=c[8],r=c[9],t=c[10],u=c[11],w=c[12],D=c[13],E=c[14],c=c[15],U=b*j-d*g,V=b*m-e*g,O=b*q-f*g,Y=d*m-e*j,fa=d*q-f*j,Ka=e*q-f*m,La=n*D-r*w,Ma=n*E-t*w,Na=n*c-u*w,Oa=r*E-t*D,Pa=r*c-u*D,Qa=t*c-u*E,S=U*Qa-V*Pa+O*Oa+Y*Na-fa*Ma+Ka*La;0!=S&&(S=1/S,a[0]=(j*Qa-m*Pa+q*Oa)*S,a[1]=(-d*Qa+e*
|
||||
Pa-f*Oa)*S,a[2]=(D*Ka-E*fa+c*Y)*S,a[3]=(-r*Ka+t*fa-u*Y)*S,a[4]=(-g*Qa+m*Na-q*Ma)*S,a[5]=(b*Qa-e*Na+f*Ma)*S,a[6]=(-w*Ka+E*O-c*V)*S,a[7]=(n*Ka-t*O+u*V)*S,a[8]=(g*Pa-j*Na+q*La)*S,a[9]=(-b*Pa+d*Na-f*La)*S,a[10]=(w*fa-D*O+c*U)*S,a[11]=(-n*fa+r*O-u*U)*S,a[12]=(-g*Oa+j*Ma-m*La)*S,a[13]=(b*Oa-d*Ma+e*La)*S,a[14]=(-w*Y+D*V-E*U)*S,a[15]=(n*Y-r*V+t*U)*S)}s.Ua=function(a){return new lg(this,a)};s.q=function(){Ja(this.d,function(a){ec(a)});I(this.F);this.e===k||C(this.e,I);rg.v.q.call(this)};s.Xa=vd;
|
||||
function ug(a,b){var c=z(b);return a.d[c]}s.pd=function(){vg(this.map)};s.rd=function(a){this.sa(a.a)};s.sd=function(){dc(Ra(this.d));this.d={};this.e!==k&&(C(this.e,I),this.e=k);var a=this.map.u();a!=k&&(a.forEach(this.sa,this),this.e=[H(a,"add",this.rd,l,this),H(a,"remove",this.td,l,this)])};s.td=function(a){this.Rb(a.a)};s.Rb=function(a){a=z(a);if(a in this.d){var b=this.d[a];delete this.d[a];I(this.u[a]);delete this.u[a];a=b}else a=k;ec(a)};s.nb=x;function wg(){};function xg(a){Te.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection});this.Fa=y(a.Fa)?a.Fa:wg;this.d=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=y(a.resolutions)?a.resolutions:k}B(xg,Te);function yg(a,b,c,d){var e=k,d=a.Fa(b,d);y(d)&&(e=new $f(b,c,d,a.d,a.ha()));return e};function zg(a){Q.call(this,a)}B(zg,Q);function Ag(a){Q.call(this,a)}B(Ag,Q);function Bg(a,b){lg.call(this,a,b)}B(Bg,lg);function Cg(a,b){lg.call(this,a,b);this.b=k;this.c=he()}B(Cg,Bg);Cg.prototype.I=function(){return this.b===k?k:ag(this.b,this)};Cg.prototype.J=p("c");
|
||||
Cg.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,b=b.rotation,e;e=this.a.W();var f=a.A;!f[0]&&!f[1]&&(e=e.I(a.extent,d),e!==k&&(f=e.L(),0==f?(tc(e,"change",this.Ib,l,this),bg(e)):2==f&&(this.b=e)));if(this.b!==k){e=this.b;var f=e.G(),g=e.e,j=this.c;le(j);pe(j,a.size.width/2,a.size.height/2);re(j,b);qe(j,g/d,g/d);pe(j,(f.h-c.x)/g,(c.y-f.i)/g);og(a.attributions,e.ha())}};function Dg(a,b){lg.call(this,a,b);this.d=this.b=this.c=k;this.e=he()}B(Dg,Bg);Dg.prototype.I=p("c");Dg.prototype.J=p("e");
|
||||
Dg.prototype.ea=function(a){var b=a.t,c=this.a.W(),d=z(c).toString(),e=c.tileGrid,f=rf(e.a,b.resolution),g=ig(e,f),j=e.a[f],m=eg(e,a.extent,j),q=new ae(g.width*m.b(),g.height*m.a()),n,r;this.c===k?(n=Rb("CANVAS"),n.width=q.width,n.height=q.height,r=n.getContext("2d"),this.c=n,this.b=q,this.d=r):(n=this.c,r=this.d,this.b.width==q.width&&this.b.height==q.height||(n.width=q.width,n.height=q.height,this.b=q));r.clearRect(0,0,q.width,q.height);q={};q[f]={};var g=na(c.d,c,q,function(a){return a!==k&&2==
|
||||
a.L()}),t,u,w,D;for(w=m.h;w<=m.k;++w)for(D=m.j;D<=m.i;++D)if(u=new se(f,w,D),n=c.b(u),n!==k){t=n.L();if(0==t)tc(n,"change",this.Pb,l,this),qg(a.Qa,c,u),t=hg(e,u),ye(a.Ub,n,d,t);else if(2==t){q[f][u.toString()]=n;continue}else if(3==t)continue;e.b(u,g)}u=za(Sa(q),Number);Ha(u);var d=ee(dg(e,new se(f,m.h,m.i))),E,U;for(w=0;w<u.length;++w)if(n=u[w],g=ig(e,n),D=q[n],n==f)for(E in D)n=D[E],r.drawImage(n.I(),g.width*(n.X.x-m.h),g.height*(m.i-n.X.y));else for(E in t=e.a[n]/j,D)n=D[E],U=dg(e,n.X),r.drawImage(n.I(),
|
||||
(U.h-d.x)/j,(d.y-U.i)/j,t*g.width,t*g.height);pg(a.Pa,c,f,m);kg(c,f,a.extent);ng(a,c);c=this.e;le(c);pe(c,a.size.width/2,a.size.height/2);re(c,b.rotation);qe(c,j/b.resolution,j/b.resolution);pe(c,(d.x-b.center.x)/j,(b.center.y-d.y)/j)};function Eg(a,b){rg.call(this,a,b);this.f=new ae(a.clientHeight,a.clientWidth);this.c=Rb("CANVAS");this.c.height=this.f.height;this.c.width=this.f.width;this.c.className="ol-unselectable";Ub(a,this.c);this.g=i;this.o=this.c.getContext("2d")}B(Eg,rg);Eg.prototype.Ua=function(a){return a instanceof zg?new Cg(this,a):a instanceof Ag?new Dg(this,a):k};Eg.prototype.Xa=p("c");
|
||||
Eg.prototype.nb=function(a){if(a===k)this.g&&(Jc(this.c,l),this.g=l);else{var b=a.size;this.f.width==b.width&&this.f.height==b.height||(this.c.width=b.width,this.c.height=b.height,this.f=b);var c=this.o;c.setTransform(1,0,0,1,0,0);var d=a.backgroundColor;c.fillStyle="rgb("+d.c.toFixed(0)+","+d.b.toFixed(0)+","+d.a.toFixed(0)+")";c.globalAlpha=1;c.fillRect(0,0,b.width,b.height);C(a.ib,function(b){var d=a.hb[z(b)];if(d.visible)if(d.rb){var g=ug(this,b);g.ea(a,d);b=g.I();b!==k&&(g=g.J(),c.setTransform(g[0],
|
||||
g[1],g[4],g[5],g[12],g[13]),c.globalAlpha=d.opacity,c.drawImage(b,0,0))}else a.Q=i},this);this.g||(Jc(this.c,i),this.g=i);tg(a)}};var Fg=function(){if(!("HTMLCanvasElement"in v))return l;try{return Rb("CANVAS").getContext("2d")!==k}catch(a){return l}}();function Gg(a,b){var c;if(y(6)){var d=Array(16);for(c=0;16>c;++c)d[c]=b[c].toFixed(6);c=d.join(",")}else c=b.join(",");c="matrix3d("+c+")";d=a.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.transform=c};function Hg(a,b,c){lg.call(this,a,b);this.target=c}B(Hg,lg);Hg.prototype.q=function(){Vb(this.target);Hg.v.q.call(this)};function Ig(a,b){var c=Rb("DIV");c.className="ol-layer-image";c.style.position="absolute";Hg.call(this,a,b,c);this.b=k;this.c=je()}B(Ig,Hg);
|
||||
Ig.prototype.ea=function(a){var b=a.t,c=b.center,d=b.resolution,e=b.rotation,b=this.b,f=this.a.W(),g=a.A;!g[0]&&!g[1]&&(f=f.I(a.extent,d),f!==k&&(g=f.L(),0==g?(tc(f,"change",this.Ib,l,this),bg(f)):2==g&&(b=f)));if(b!==k){var g=b.G(),j=b.e,f=he();le(f);pe(f,a.size.width/2,a.size.height/2);re(f,e);qe(f,j/d,j/d);pe(f,(g.h-c.x)/j,(c.y-g.i)/j);b!=this.b&&(c=ag(b,this),c.style.position="absolute",Tb(this.target),this.target.appendChild(c),this.b=b);ne(f,this.c)||(Gg(this.target,f),ke(this.c,f));og(a.attributions,
|
||||
b.ha())}};function Jg(a,b){var c=Rb("DIV");c.className="ol-layer-tile";c.style.position="absolute";Hg.call(this,a,b,c);this.c=i;this.d=1;this.b={}}B(Jg,Hg);
|
||||
Jg.prototype.ea=function(a,b){if(b.visible){var c=a.t,d=this.a.W(),e=z(d).toString(),f=d.tileGrid,g=rf(f.a,c.resolution),j=eg(f,a.extent,f.a[g]),m={};m[g]={};var q=na(d.d,d,m,function(a){return a!==k&&2==a.L()}),n,r,t,u,w;for(u=j.h;u<=j.k;++u)for(w=j.j;w<=j.i;++w)if(t=new se(g,u,w),n=d.b(t),n!==k){r=n.L();if(0==r)tc(n,"change",this.Pb,l,this),qg(a.Qa,d,t),r=hg(f,t),ye(a.Ub,n,e,r);else if(2==r){m[g][t.toString()]=n;continue}else if(3==r)continue;f.b(t,q)}n=za(Sa(m),Number);Ha(n);var e={},D;for(t=0;t<
|
||||
n.length;++t){u=n[t];u in this.b?q=this.b[u]:(q=gg(f,c.center,f.a[u]),q=new Kg(f,q),e[u]=i,this.b[u]=q);u=m[u];for(D in u){w=q;r=u[D];var E=r.X,U=E.toString();if(!(U in w.b)){var V=ig(w.d,E.m),O=r.I(w),Y=O.style;Y.position="absolute";Y.left=(E.x-w.c.x)*V.width+"px";Y.top=(w.c.y-E.y)*V.height+"px";w.a===k&&(w.a=document.createDocumentFragment());w.a.appendChild(O);w.b[U]=r}}q.a!==k&&(q.target.appendChild(q.a),q.a=k)}f=za(Sa(this.b),Number);Ha(f);n=he();for(D=0;D<f.length;++D)if(u=f[D],q=this.b[u],
|
||||
u in m)if(w=q.g,t=q.f,le(n),pe(n,a.size.width/2,a.size.height/2),re(n,c.rotation),qe(n,w/c.resolution,w/c.resolution),pe(n,(t.x-c.center.x)/w,(c.center.y-t.y)/w),t=q,w=n,ne(w,t.e)||(Gg(t.target,w),ke(t.e,w)),u in e){for(t=u-1;0<=t;--t)if(t in this.b){u=this.b[t].target;u.parentNode&&u.parentNode.insertBefore(q.target,u.nextSibling);break}0>t&&Ub(this.target,q.target)}else{if(!a.A[0]&&!a.A[1]){r=eg(q.d,a.extent,q.d.a[q.c.m]);t=[];w=u=h;for(w in q.b)u=q.b[w],r.contains(u.X)||t.push(u);r=h;for(r=0;r<
|
||||
t.length;++r)u=t[r],w=u.X.toString(),Vb(u.I(q)),delete q.b[w]}}else Vb(q.target),delete this.b[u];b.opacity!=this.d&&(c=b.opacity,m=this.target.style,"opacity"in m?m.opacity=c:"MozOpacity"in m?m.MozOpacity=c:"filter"in m&&(m.filter=""===c?"":"alpha(opacity="+100*c+")"),this.d=b.opacity);b.visible&&!this.c&&(Jc(this.target,i),this.c=i);pg(a.Pa,d,g,j);kg(d,g,a.extent);ng(a,d)}else this.c&&(Jc(this.target,l),this.c=l)};
|
||||
function Kg(a,b){this.target=Rb("DIV");this.target.style.position="absolute";this.d=a;this.c=b;this.f=ee(dg(a,b));this.g=a.a[b.m];this.b={};this.a=k;this.e=je()};function Lg(a,b){rg.call(this,a,b);this.c=Rb("DIV");this.c.className="ol-layers ol-unselectable";var c=this.c.style;c.position="absolute";c.width="100%";c.height="100%";Ub(a,this.c);this.f=i}B(Lg,rg);Lg.prototype.sa=function(a){Lg.v.sa.call(this,a);vg(this.map)};Lg.prototype.Ua=function(a){var b;a instanceof Ag?b=new Jg(this,a):a instanceof zg&&(b=new Ig(this,a));this.c.appendChild(b.target);return b};
|
||||
Lg.prototype.nb=function(a){a===k?this.f&&(Jc(this.c,l),this.f=l):(C(a.ib,function(b){var c=a.hb[z(b)];c.rb&&ug(this,b).ea(a,c)},this),this.f||(Jc(this.c,i),this.f=i),tg(a))};function Mg(a){this.a=a}Mg.prototype.W=p("a");function Ng(a){this.a=a}B(Ng,Mg);Ng.prototype.b=function(){return 35632};function Og(a){this.a=a}B(Og,Mg);Og.prototype.b=function(){return 35633};function Pg(a,b){lg.call(this,a,b);this.D=new Float32Array(16);this.H=new Float32Array(16);this.oa=new Float32Array(16);this.Ma=new Float32Array(16);this.F=new Float32Array(16);this.c=i;this.Jb();this.Kb();this.Lb();this.Mb()}B(Pg,lg);function Qg(a){if(a.c){var b=a.F;le(b);me(b,a.H,b);me(b,a.D,b);me(b,a.Ma,b);me(b,a.oa,b);a.c=l}return a.F}s=Pg.prototype;s.$=function(){return Pg.v.$.call(this)};s.Jb=function(){var a=this.a.b(),b=this.D;le(b);b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};
|
||||
s.Kb=function(){var a=this.a.c(),b=this.H;le(b);b[0]=a;b[5]=a;b[10]=a;b[15]=1;a=-0.5*a+0.5;b[12]=a;b[13]=a;b[14]=a;b[15]=1;this.c=i;mg(this)};s.Lb=function(){var a=this.a.d(),b=Math.cos(a),a=Math.sin(a);ie(this.oa,0.213+0.787*b-0.213*a,0.213-0.213*b+0.143*a,0.213-0.213*b-0.787*a,0,0.715-0.715*b-0.715*a,0.715+0.285*b+0.14*a,0.715-0.715*b+0.715*a,0,0.072-0.072*b+0.928*a,0.072-0.072*b-0.283*a,0.072+0.928*b+0.072*a,0,0,0,0,1);this.c=i;mg(this)};
|
||||
s.Mb=function(){var a=this.a.f();ie(this.Ma,0.213+0.787*a,0.213-0.213*a,0.213-0.213*a,0,0.715-0.715*a,0.715+0.285*a,0.715-0.715*a,0,0.072-0.072*a,0.072-0.072*a,0.072+0.928*a,0,0,0,0,1);this.c=i;mg(this)};s.Ea=x;function Rg(a,b){Pg.call(this,a,b);this.b=this.d=k;this.e=je();this.f=he()}B(Rg,Pg);s=Rg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||a.deleteTexture(this.b);Rg.v.q.call(this)};s.fc=p("e");s.gc=p("b");s.hc=p("f");s.Ea=function(){this.b=k};
|
||||
s.ea=function(a){var b=this.$().a,c=a.t,d=c.center,e=c.resolution,f=c.rotation,c=this.d,g=this.b,j=this.a.W(),m=a.A;!m[0]&&!m[1]&&(j=j.I(a.extent,e),j!==k&&(m=j.L(),0==m?(tc(j,"change",this.Ib,l,this),bg(j)):2==m&&(c=j,g=ag(j,this),j=this.$().a,m=j.createTexture(),j.bindTexture(3553,m),j.texImage2D(3553,0,6408,6408,5121,g),j.texParameteri(3553,10242,33071),j.texParameteri(3553,10243,33071),j.texParameteri(3553,10241,9729),j.texParameteri(3553,10240,9729),g=m,this.b===k||a.ua.push(oa(function(a,b){a.isContextLost()||
|
||||
a.deleteTexture(b)},b,this.b)))));c!==k&&(m=this.$().Xa(),b=c.G(),j=m.width*e,e*=m.height,m=this.f,le(m),qe(m,2/j,2/e),re(m,-f),pe(m,b.h-d.x,b.j-d.y),qe(m,b.b()/2,b.a()/2),pe(m,1,1),d=this.e,le(d),qe(d,1,-1),pe(d,0,-1),this.d=c,this.b=g,og(a.attributions,c.ha()))};function Sg(a,b){this.M=a;this.Y=b}Sg.prototype.R=function(){return new Sg(this.M,this.Y)};function Tg(a){this.a=[];if(a)a:{var b,c;if(a instanceof Tg){if(b=a.V(),c=a.N(),0>=a.Z()){for(var a=this.a,d=0;d<b.length;d++)a.push(new Sg(b[d],c[d]));break a}}else b=Sa(a),c=Ra(a);for(d=0;d<b.length;d++)Ug(this,b[d],c[d])}}function Ug(a,b,c){var d=a.a;d.push(new Sg(b,c));b=d.length-1;a=a.a;for(c=a[b];0<b;)if(d=b-1>>1,a[d].M>c.M)a[b]=a[d],b=d;else break;a[b]=c}s=Tg.prototype;
|
||||
s.remove=function(){var a=this.a,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ba(a);else{a[0]=a.pop();for(var a=0,b=this.a,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,g=2*a+2,f=g<d&&b[g].M<b[f].M?g:f;if(b[f].M>e.M)break;b[a]=b[f];a=f}b[a]=e}return c.Y}};s.N=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Y);return b};s.V=function(){for(var a=this.a,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].M);return b};s.R=function(){return new Tg(this)};s.Z=function(){return this.a.length};
|
||||
s.Ha=function(){return 0==this.a.length};s.clear=function(){Ba(this.a)};function Vg(){Tg.call(this)}B(Vg,Tg);function Wg(){this.a="precision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n}"}B(Wg,Ng);ba(Wg);function Xg(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nvarying vec2 vTexCoord;\n\nuniform vec4 uTileOffset;\n\nvoid main(void) {\n gl_Position.xy = aPosition * uTileOffset.xy + uTileOffset.zw;\n gl_Position.z = 0.;\n gl_Position.w = 1.;\n vTexCoord = aTexCoord;\n}"}B(Xg,Og);ba(Xg);
|
||||
function Yg(a,b){Pg.call(this,a,b);this.wb=Wg.Ya();this.Ra=Xg.Ya();this.e=this.g=this.f=this.z=k;this.l=h;this.d=he();this.yb=je();this.u=this.b=k}B(Yg,Pg);s=Yg.prototype;s.q=function(){var a=this.$().a;a.isContextLost()||(a.deleteBuffer(this.f),a.deleteFramebuffer(this.e),a.deleteTexture(this.g));Yg.v.q.call(this)};s.fc=p("d");s.gc=p("g");s.hc=p("yb");s.Ea=function(){this.e=this.g=this.f=this.z=k;this.l=h};
|
||||
s.ea=function(a){var b=this.$(),c=b.a,d=a.t,e=d.center,f=this.a.W(),g=z(f).toString(),j=f.tileGrid,m=rf(j.a,d.resolution),q=j.a[m],n=eg(j,a.extent,q),r;if(this.b!==k&&this.b.h==n.h&&this.b.j==n.j&&this.b.k==n.k&&this.b.i==n.i)r=this.u;else{var t=new ae(n.b(),n.a()),u=ig(j,m),t=Math.max(t.width*u.width,t.height*u.height),t=Math.pow(2,Math.ceil(Math.log(t)/Math.log(2))),w=new ae(q*t,q*t),D=fg(j,m),E=D.x+n.h*u.width*q,q=D.y+n.j*u.height*q;r=new N(E,q,E+w.width,q+w.height);q=this.$().a;!y(this.l)||this.l!=
|
||||
t?(a.ua.push(oa(function(a,b,c){a.isContextLost()||(a.deleteFramebuffer(b),a.deleteTexture(c))},q,this.e,this.g)),u=q.createTexture(),q.bindTexture(3553,u),q.texImage2D(3553,0,6408,t,t,0,6408,5121,k),q.texParameteri(3553,10240,9729),q.texParameteri(3553,10241,9729),E=q.createFramebuffer(),q.bindFramebuffer(36160,E),q.framebufferTexture2D(36160,36064,3553,u,0),this.g=u,this.e=E,this.l=t):q.bindFramebuffer(36160,this.e);c.viewport(0,0,t,t);c.clearColor(0,0,0,0);c.clear(16384);c.disable(3042);t=Zg(b,
|
||||
this.wb,this.Ra);c.useProgram(t);this.z===k&&(this.z={ya:c.getAttribLocation(t,"aPosition"),za:c.getAttribLocation(t,"aTexCoord"),Ud:c.getUniformLocation(t,"uTileOffset"),Vb:c.getUniformLocation(t,"uTexture")});this.f===k?(t=c.createBuffer(),c.bindBuffer(34962,t),c.bufferData(34962,new Float32Array([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),35044),this.f=t):c.bindBuffer(34962,this.f);c.enableVertexAttribArray(this.z.ya);c.vertexAttribPointer(this.z.ya,2,5126,l,16,0);c.enableVertexAttribArray(this.z.za);c.vertexAttribPointer(this.z.za,
|
||||
2,5126,l,16,8);c.uniform1i(this.z.Vb,0);var U={};U[m]={};for(var q=na(f.d,f,U,function(a){return a!==k&&2==a.L()&&$g(b.b,a.la())}),t=new Vg,V=i,O,Y,D=n.h;D<=n.k;++D)for(Y=n.j;Y<=n.i;++Y)if(E=new se(m,D,Y),u=f.b(E),u!==k){O=u.L();if(0==O)tc(u,"change",this.Pb,l,this),qg(a.Qa,f,E),O=hg(j,E),ye(a.Ub,u,g,O);else if(2==O)if($g(b.b,u.la())){U[m][E.toString()]=u;continue}else O=hg(j,E),V=O.x-e.x,O=O.y-e.y,V=Math.sqrt(V*V+O*O),Ug(t,V,u);else if(3==O)continue;V=l;j.b(E,q)}e=za(Sa(U),Number);Ha(e);var fa=new Float32Array(4);
|
||||
C(e,function(a){Ja(U[a],function(a){var d=dg(j,a.X),e=2*d.a()/w.height,f=2*(d.h-r.h)/w.width-1,g=2*(d.j-r.j)/w.height-1;fa[0]=2*d.b()/w.width;fa[1]=e;fa[2]=f;fa[3]=g;c.uniform4fv(this.z.Ud,fa);ah(b,a);c.drawArrays(5,0,4)},this)},this);t.Ha()||a.ua.push(oa(function(a,b){var c,d;for(c=0;!b.Ha()&&4>c;++c)d=b.remove(),ah(a,d)},b,t));V?(this.b=n,this.u=r):(this.u=this.b=k,a.Q=i)}pg(a.Pa,f,m,n);kg(f,m,a.extent);ng(a,f);le(this.d);pe(this.d,(d.center.x-r.h)/(r.k-r.h),(d.center.y-r.j)/(r.i-r.j));re(this.d,
|
||||
d.rotation);qe(this.d,a.size.width*d.resolution/(r.k-r.h),a.size.height*d.resolution/(r.i-r.j));pe(this.d,-0.5,-0.5)};function bh(){this.n=0;this.c={};this.b=this.a=k}s=bh.prototype;s.clear=function(){this.n=0;this.c={};this.b=this.a=k};function $g(a,b){return a.c.hasOwnProperty(b)}s.forEach=function(a,b){for(var c=this.a;c!==k;)a.call(b,c.Y,c.M,this),c=c.S};function ch(a,b){var c=a.c[b];if(c===a.b)return c.Y;c===a.a?(a.a=a.a.S,a.a.fa=k):(c.S.fa=c.fa,c.fa.S=c.S);c.S=k;c.fa=a.b;a.b.S=c;a.b=c;return c.Y}s.Z=p("n");s.V=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.M;return a};
|
||||
s.N=function(){var a=Array(this.n),b=0,c;for(c=this.b;c!==k;c=c.fa)a[b++]=c.Y;return a};function dh(a){var b=a.a;delete a.c[b.M];b.S!==k&&(b.S.fa=k);a.a=b.S;a.a===k&&(a.b=k);--a.n}function eh(a,b,c){c={M:b,S:k,fa:a.b,Y:c};a.b===k?a.a=c:a.b.S=c;a.b=c;a.c[b]=c;++a.n};var fh=["webgl","webgl-experimental","webkit-3d","moz-webgl"];function gh(a,b){var c,d,e=fh.length;for(d=0;d<e;++d)try{if(c=a.getContext(fh[d],b),c!==k)return c}catch(f){}return k}var hh=function(){if(!("WebGLRenderingContext"in v))return l;try{var a=Rb("CANVAS");return gh(a)!==k}catch(b){return l}}();function ih(){this.a="precision mediump float;\n\nuniform mat4 uColorMatrix;\nuniform float uOpacity;\nuniform sampler2D uTexture;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n\n vec4 texColor = texture2D(uTexture, vTexCoord);\n vec4 color = uColorMatrix * vec4(texColor.rgb, 1.);\n color.a = texColor.a * uOpacity;\n\n gl_FragColor = color;\n\n}"}B(ih,Ng);ba(ih);
|
||||
function jh(){this.a="attribute vec2 aPosition;\nattribute vec2 aTexCoord;\n\nuniform mat4 uTexCoordMatrix;\nuniform mat4 uVertexCoordMatrix;\n\nvarying vec2 vTexCoord;\n\nvoid main(void) {\n gl_Position = uVertexCoordMatrix * vec4(aPosition, 0., 1.);\n vTexCoord = (uTexCoordMatrix * vec4(aTexCoord, 0., 1.)).st;\n}"}B(jh,Og);ba(jh);
|
||||
function kh(a,b){rg.call(this,a,b);this.c=Rb("CANVAS");this.c.height=a.clientHeight;this.c.width=a.clientWidth;this.c.className="ol-unselectable";Ub(a,this.c);this.s=i;this.D=new ae(a.clientHeight,a.clientWidth);this.a=gh(this.c,{alpha:l,antialias:i,depth:l,preserveDrawingBuffer:l,stencil:l});H(this.c,"webglcontextlost",this.Ea,l,this);H(this.c,"webglcontextrestored",this.Id,l,this);this.l=this.z=k;this.g={};this.f={};this.b=new bh;this.o=0;this.H=ih.Ya();this.J=jh.Ya();lh(this)}B(kh,rg);s=kh.prototype;
|
||||
s.sa=function(a){kh.v.sa.call(this,a);a.a()&&vg(this.map)};
|
||||
function ah(a,b){var c=a.a,d=b.la();if($g(a.b,d))d=ch(a.b,d),c.bindTexture(3553,d.Tb),9729!=d.nc&&(c.texParameteri(3553,10240,9729),d.nc=9729),9729!=d.oc&&(c.texParameteri(3553,10240,9729),d.oc=9729);else{var e=c.createTexture();c.bindTexture(3553,e);c.texImage2D(3553,0,6408,6408,5121,b.I());c.texParameteri(3553,10240,9729);c.texParameteri(3553,10241,9729);c.texParameteri(3553,10242,33071);c.texParameteri(3553,10243,33071);eh(a.b,d,{Tb:e,nc:9729,oc:9729})}}
|
||||
s.Ua=function(a){var b=k;a instanceof Ag?b=new Yg(this,a):a instanceof zg&&(b=new Rg(this,a));return b};s.q=function(){var a=this.a;a.isContextLost()||(Ja(this.f,function(b){a.deleteProgram(b)}),Ja(this.g,function(b){a.deleteShader(b)}),this.b.forEach(function(b){b===k||a.deleteTexture(b.Tb)}));kh.v.q.call(this)};s.Zc=function(a,b){for(var c=this.a,d;1024<this.b.Z()-this.o;){d=this.b.a.Y;if(d===k)if(+this.b.a.M==b.time)break;else--this.o;else c.deleteTexture(d.Tb);dh(this.b)}};s.Xa=p("c");
|
||||
function Zg(a,b,c){var d=z(b)+"/"+z(c);if(d in a.f)return a.f[d];var e=a.a,f=e.createProgram();e.attachShader(f,mh(a,b));e.attachShader(f,mh(a,c));e.linkProgram(f);return a.f[d]=f}function mh(a,b){var c=z(b);if(c in a.g)return a.g[c];var d=a.a,e=d.createShader(b.b());d.shaderSource(e,b.W());d.compileShader(e);return a.g[c]=e}s.Ea=function(a){a.B();this.l=this.z=k;this.g={};this.f={};this.b.clear();this.o=0;Ja(this.d,function(a){a.Ea()})};s.Id=function(){lh(this);vg(this.map)};
|
||||
function lh(a){a=a.a;a.activeTexture(33984);a.blendFunc(770,771);a.disable(2884);a.disable(2929);a.disable(3089)}s.Rb=function(a){kh.v.Rb.call(this,a);a.a()&&vg(this.map)};
|
||||
s.nb=function(a){var b=this.a;if(a===k)return this.s&&(Jc(this.c,l),this.s=l),l;eh(this.b,a.time.toString(),k);++this.o;C(a.ib,function(b){var c=a.hb[z(b)];c.visible&&c.rb&&ug(this,b).ea(a,c)},this);var c=a.size;this.D.width==c.width&&this.D.height==c.height||(this.c.width=c.width,this.c.height=c.height,this.D=c);b.bindFramebuffer(36160,k);var d=a.backgroundColor;b.clearColor(d.c/255,d.b/255,d.a/255,d.d);b.clear(16384);b.enable(3042);b.viewport(0,0,c.width,c.height);c=Zg(this,this.H,this.J);b.useProgram(c);
|
||||
this.z===k&&(this.z={ya:b.getAttribLocation(c,"aPosition"),za:b.getAttribLocation(c,"aTexCoord"),Rd:b.getUniformLocation(c,"uColorMatrix"),Td:b.getUniformLocation(c,"uTexCoordMatrix"),Vd:b.getUniformLocation(c,"uVertexCoordMatrix"),Sd:b.getUniformLocation(c,"uOpacity"),Vb:b.getUniformLocation(c,"uTexture")});this.l===k?(c=b.createBuffer(),b.bindBuffer(34962,c),b.bufferData(34962,new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),35044),this.l=c):b.bindBuffer(34962,this.l);b.enableVertexAttribArray(this.z.ya);
|
||||
b.vertexAttribPointer(this.z.ya,2,5126,l,16,0);b.enableVertexAttribArray(this.z.za);b.vertexAttribPointer(this.z.za,2,5126,l,16,8);b.uniform1i(this.z.Vb,0);C(a.ib,function(c){var d=a.hb[z(c)];d.visible&&d.rb&&(d=ug(this,c),b.uniformMatrix4fv(this.z.Td,l,d.fc()),b.uniformMatrix4fv(this.z.Vd,l,d.hc()),b.uniformMatrix4fv(this.z.Rd,l,Qg(d)),b.uniform1f(this.z.Sd,c.e()),b.bindTexture(3553,d.gc()),b.drawArrays(5,0,4))},this);this.s||(Jc(this.c,i),this.s=i);tg(a);1024<this.b.Z()-this.o&&a.ua.push(na(this.Zc,
|
||||
this))};var nh={},oh={be:"canvas",ge:"dom",Pe:"webgl"},ph=["webgl","canvas","dom"],sg="layers";
|
||||
function T(a){var b,c;L.call(this);var d={};d[sg]=y(a.layers)?a.layers:new M;d.view=y(a.view)?a.view:new R;c=rg;var e;e=y(a.renderers)?a.renderers:y(a.renderer)?[a.renderer]:ph;var f;for(b=0;b<e.length;++b)if(f=e[b],"canvas"==f){if(Fg){c=Eg;break}}else if("dom"==f){c=Lg;break}else if("webgl"==f&&hh){c=kh;break}e=[];(y(a.attributionControl)?a.attributionControl:1)&&e.push(new yf({}));if(y(a.zoomControl)?a.zoomControl:1)e.push(new zf({delta:y(a.zoomDelta)?a.zoomDelta:4}));if(y(a.interactions))b=a.interactions;
|
||||
else{b=new M;(y(a.rotate)?a.rotate:1)&&b.push(new If(Cf));if(y(a.doubleClickZoom)?a.doubleClickZoom:1)b.push(new Bf(y(a.zoomDelta)?a.zoomDelta:4));(y(a.touchPan)?a.touchPan:1)&&b.push(new Qf(new Ze(-0.005,0.05,100)));(y(a.touchRotate)?a.touchRotate:1)&&b.push(new Rf);(y(a.touchZoom)?a.touchZoom:1)&&b.push(new Sf);(y(a.dragPan)?a.dragPan:1)&&b.push(new Gf(Df,new Ze(-0.005,0.05,100)));f=y(a.keyboardPanOffset)?a.keyboardPanOffset:80;if(y(a.keyboard)?a.keyboard:1)b.push(new Lf(f)),b.push(new Mf);if(y(a.mouseWheelZoom)?
|
||||
a.mouseWheelZoom:1)b.push(new Nf(y(a.mouseWheelZoomDelta)?a.mouseWheelZoomDelta:1));(y(a.shiftDragZoom)?a.shiftDragZoom:1)&&b.push(new Kf(Ef))}a=ga(a.target)?document.getElementById(a.target):a.target;this.c=new wd(this.Nd,h,this);cc(this,this.c);this.Jc=he();this.Nc=he();this.d=k;this.f=0;this.s=l;this.H=a;this.F=k;this.b=Pb("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";this.H.appendChild(this.b);
|
||||
this.D=Pb("DIV","ol-overlaycontainer");H(this.D,["click",Pd?"touchstart":"mousedown"],gc);this.b.appendChild(this.D);a=new ff(this);H(a,Ra(qf),this.uc,l,this);cc(this,a);a=new Fd(document);H(a,"key",this.ic,l,this);cc(this,a);a=new Md(this.b);H(a,"mousewheel",this.ic,l,this);cc(this,a);this.wb=b;this.J=new c(this.b,this);cc(this,this.J);this.Qc=new Ad;H(this.Qc,"resize",this.jc,l,this);this.g=[];this.yb=[];this.Mc=na(this.Ad,this);this.oa=new xe(na(this.cd,this));H(this,Vd("view"),this.Gd,l,this);
|
||||
H(this,Vd("size"),this.Cd,l,this);H(this,Vd("backgroundColor"),this.ld,l,this);this.mb(d);this.jc();C(e,function(a){a.a(this)},this)}B(T,L);T.prototype.l=function(a){wf(this);this.g.push(a)};T.prototype.Ic=function(a){wf(this);Array.prototype.push.apply(this.g,a)};T.prototype.q=function(){Vb(this.b);T.v.q.call(this)};T.prototype.Ma=function(){return this.r("backgroundColor")};T.prototype.getBackgroundColor=T.prototype.Ma;T.prototype.Lc=p("J");
|
||||
function df(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];oe(c.vc,d,d);return new K(d[0],d[1])}T.prototype.Kc=p("wb");T.prototype.u=function(){return this.r(sg)};T.prototype.getLayers=T.prototype.u;function Hf(a,b){var c=a.d;if(c===k)return k;var d=[b.x,b.y,0];oe(c.cc,d,d);return new bf(d[0],d[1])}T.prototype.e=function(){return this.r("size")};T.prototype.getSize=T.prototype.e;T.prototype.a=function(){return this.r("view")};T.prototype.getView=T.prototype.a;s=T.prototype;
|
||||
s.cd=function(a,b,c){var d=this.d;if(d===k||!(b in d.Qa)||!d.Qa[b][a.X.toString()])return Infinity;b=d.t.center;a=c.x-b.x;c=c.y-b.y;return a*a+c*c};s.ic=function(a,b){this.uc(new cf(b||a.type,this,a))};s.uc=function(a){a.d=this.d;var b=this.wb.a;if(J(this,a)!==l)for(var c=b.length-1;0<=c&&!(b[c].ma(a),a.bb);c--);};
|
||||
s.Ad=function(){var a=this.oa,b=a.a,c,d=0,e,f,g,j;for(c=0;c<b.length;++c)e=b[c],g=e[1],j=e[2],f=e[3],f=a.d(g,j,f),Infinity==f?(e=g.la(),delete a.b[e]):(e[0]=f,b[d++]=e);b.length=d;for(b=(a.a.length>>1)-1;0<=b;b--)Ae(a,b);for(a=this.oa;0<a.a.length&&a.c<a.e;)b=a,d=b.a,c=d[0][1],1==d.length?d.length=0:(d[0]=d.pop(),Ae(b,0)),d=c.la(),delete b.b[d],b=c,tc(b,"change",a.f,l,a),0==b.b&&(b.b=1,b.c=[tc(b.a,"error",b.f,l,b),tc(b.a,"load",b.g,l,b)],b.a.src=b.e),++a.c;a=this.yb;for(b=0;b<a.length;++b)a[b](this,
|
||||
this.d);a.length=0};s.ld=function(){vg(this)};s.jc=function(){this.Ra(new ae(this.H.clientWidth,this.H.clientHeight))};s.Cd=function(){vg(this)};s.Hd=function(){vg(this)};s.Gd=function(){this.F!==k&&(I(this.F),this.F=k);var a=this.a();a!=k&&(this.F=H(a,"changed",this.Hd,l,this));vg(this)};s.Ga=function(){var a=this.a(),b;if(b=y(a)){if(a=a.Ga())a=this.e()!=k;b=a}return b};function vg(a){a.c.O==k&&(0===a.f?(a=a.c,xd(a),a.Eb()):a.s=i)}function wf(a){0===a.f?a.c.O!=k||a.c.start():a.s=i}
|
||||
s.Nd=function(a){var b;if(0==this.f){var c=this.e();b=this.u();var d=y(b)?b.a:h;b=this.a();var e=y(b)?this.a():h,f=k;if(y(d)&&y(c)&&y(e)&&e.Ga()){var f=this.Ma(),g=Ea(b.e),j={},m;for(b=0;b<d.length;++b){m=d[b];var q=j,n=z(m),r=m;m=r.b();var t=r.c(),u=r.d(),w=r.e(),D=r.W().c(),E=r.f(),r=r.a();q[n]={brightness:y(m)?m:0,contrast:y(t)?t:1,hue:y(u)?u:0,opacity:y(w)?w:1,rb:D,saturation:y(E)?E:1,visible:y(r)?r:i}}b=e.T();q=e.tc();n=e.U();e=e.ia();q={center:new K(b.x,b.y),projection:q,resolution:n,rotation:e};
|
||||
f={Q:l,attributions:{},backgroundColor:y(f)?f:new $d,cc:this.Jc,extent:k,ib:d,hb:j,vc:this.Nc,ua:[],size:c,Ub:this.oa,time:a,Pa:{},t:q,A:g,Qa:{}}}a=this.g;for(b=d=0;b<a.length;++b)e=a[b],e(this,f)&&(a[d++]=e);a.length=d;if(f!==k){a=q.center;b=q.resolution;d=q.rotation;e=b*c.width/2;c=b*c.height/2;c=[new K(-e,-c),new K(-e,c),new K(e,-c),new K(e,c)];for(b=0;4>b;++b)e=c[b],e.rotate(d),e.add(a);f.extent=de.apply(k,c)}this.d=f;this.J.nb(f);this.s=l;f!==k&&(f.Q&&wf(this),Array.prototype.push.apply(this.yb,
|
||||
f.ua));J(this,new af("postrender",this,f));v.setTimeout(this.Mc,0)}};s.Pd=function(a){this.p("backgroundColor",a)};T.prototype.setBackgroundColor=T.prototype.Pd;T.prototype.Oc=function(a){this.p(sg,a)};T.prototype.setLayers=T.prototype.Oc;T.prototype.Ra=function(a){this.p("size",a)};T.prototype.setSize=T.prototype.Ra;T.prototype.Pc=function(a){this.p("view",a)};T.prototype.setView=T.prototype.Pc;function uf(a,b,c){++a.f;try{b.call(c)}finally{0===--a.f&&a.s&&(a=a.c,xd(a),a.Eb())}}
|
||||
nh.Vc=function(a){var b=v.location.search.substring(1),a=y(a)?a:new ad(b);return md(a,"renderers")?nd(a,"renderers").split(","):md(a,"renderer")?[nd(a,"renderer")]:ph};Le(Wf);Le(Zf);function qh(a,b,c){var d=a.length,c=1<c?c:2;y(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=6378137*Math.PI*a[e]/180,b[e+1]=6378137*Math.log(Math.tan(Math.PI*(a[e+1]+90)/360));return b}
|
||||
function rh(a,b,c){var d=a.length,c=1<c?c:2;y(b)||(b=2<c?a.slice():Array(d));for(var e=0;e<d;e+=c)b[e]=180*a[e]/(6378137*Math.PI),b[e+1]=360*Math.atan(Math.exp(a[e+1]/6378137))/Math.PI-90;return b}C(Zf,function(a){C(Wf,function(b){Ne(a,b,qh);Ne(b,a,rh)})});var sh={Zd:"bottom-left",$d:"bottom-right",Ie:"top-left",Je:"top-right"};function W(a){L.call(this);this.b=Rb("DIV");this.b.style.position="absolute";this.a={Ta:"",jb:"",tb:"",vb:"",visible:i};H(this,Vd("element"),this.md,l,this);H(this,Vd("map"),this.ud,l,this);H(this,Vd("position"),this.yd,l,this);H(this,Vd("positioning"),this.zd,l,this);y(a.element)&&this.Ac(a.element);y(a.position)&&this.s(a.position);y(a.positioning)&&this.p("positioning",a.positioning);y(a.map)&&this.l(a.map)}B(W,L);
|
||||
W.prototype.f=function(){return this.r("element")};W.prototype.getElement=W.prototype.f;W.prototype.d=function(){return this.r("map")};W.prototype.getMap=W.prototype.d;W.prototype.g=function(){return this.r("position")};W.prototype.getPosition=W.prototype.g;W.prototype.e=function(){return this.r("positioning")};W.prototype.getPositioning=W.prototype.e;s=W.prototype;s.md=function(){Tb(this.b);var a=this.f();a!=k&&Sb(this.b,a)};
|
||||
s.ud=function(){this.c!==k&&(Vb(this.b),I(this.c),this.c=k);var a=this.d();a!=k&&(this.c=H(a,"postrender",this.Kd,l,this),th(this),Sb(a.D,this.b))};s.Kd=function(){th(this)};s.yd=function(){th(this)};s.zd=function(){th(this)};s.Ac=function(a){this.p("element",a)};W.prototype.setElement=W.prototype.Ac;W.prototype.l=function(a){this.p("map",a)};W.prototype.setMap=W.prototype.l;W.prototype.s=function(a){this.p("position",a)};W.prototype.setPosition=W.prototype.s;
|
||||
function th(a){var b=a.d(),c=a.g();if(!y(b)||!b.Ga()||!y(c))a.a.visible&&(Jc(a.b,l),a.a.visible=l);else{var c=Hf(b,c),d=b.e(),b=a.b.style,e=a.e();if("bottom-right"==e||"top-right"==e){""!==a.a.jb&&(a.a.jb=b.left="");var f=Math.round(d.width-c.x)+"px";a.a.tb!=f&&(a.a.tb=b.right=f)}else""!==a.a.tb&&(a.a.tb=b.right=""),f=Math.round(c.x)+"px",a.a.jb!=f&&(a.a.jb=b.left=f);"top-left"==e||"top-right"==e?(""!==a.a.Ta&&(a.a.Ta=b.bottom=""),c=Math.round(c.y)+"px",a.a.vb!=c&&(a.a.vb=b.top=c)):(""!==a.a.vb&&
|
||||
(a.a.vb=b.top=""),c=Math.round(d.height-c.y)+"px",a.a.Ta!=c&&(a.a.Ta=b.bottom=c));a.a.visible||(Jc(a.b,i),a.a.visible=i)}};/*
|
||||
Portions of this code are from MochiKit, received by
|
||||
The Closure Authors under the MIT license. All other code is Copyright
|
||||
2005-2009 The Closure Authors. All Rights Reserved.
|
||||
*/
|
||||
function ph(a,b){this.a=[];this.f=a;this.e=b||k}s=ph.prototype;s.ga=m;s.Ea=m;s.La=0;s.Cc=m;s.Tc=m;s.Sc=0;s.bc=function(a,b){qh(this,a,b);this.La--;0==this.La&&this.ga&&rh(this)};function qh(a,b,c){a.ga=i;a.b=c;a.Ea=!b;rh(a)}function sh(a){if(a.ga){if(!a.Cc)throw new th(a);a.Cc=m}}function uh(a){return za(a.a,function(a){return ga(a[1])})}
|
||||
function rh(a){a.c&&(a.ga&&uh(a))&&(v.clearTimeout(a.c),delete a.c);a.d&&(a.d.Sc--,delete a.d);for(var b=a.b,c=m,d=m;a.a.length&&0==a.La;){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);y(j)&&(a.Ea=a.Ea&&(j==b||j instanceof Error),a.b=b=j);b instanceof ph&&(d=i,a.La++)}catch(l){b=l,a.Ea=i,uh(a)||(c=i)}}a.b=b;d&&a.La&&(d=b,j=ma(a.bc,a,i),f=ma(a.bc,a,m),d.a.push([j,f,h]),d.ga&&rh(d),b.Tc=i);c&&(a.c=v.setTimeout(function(){throw b;},0))}
|
||||
function th(a){pa.call(this);this.a=a}B(th,pa);th.prototype.message="Deferred has already fired";th.prototype.name="AlreadyCalledError";function vh(a,b){var c=b||{},d=c.document||document,e=Qb("SCRIPT"),f={zc:e,ub:h},g=new ph(wh,f),j=k,l=c.timeout!=k?c.timeout:5E3;0<l&&(j=window.setTimeout(function(){xh(e,i);var b=new yh(zh,"Timeout reached for loading script "+a);sh(g);qh(g,m,b)},l),f.ub=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)xh(e,c.$b||m,j),sh(g),qh(g,i,k)};e.onerror=function(){xh(e,i,j);var b=new yh(Ah,"Error while loading script "+a);sh(g);qh(g,m,b)};Lb(e,
|
||||
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function wh(){if(this&&this.zc){var a=this.zc;a&&"SCRIPT"==a.tagName&&xh(a,i,this.ub)}}function xh(a,b,c){c!=k&&v.clearTimeout(c);a.onload=x;a.onerror=x;a.onreadystatechange=x;b&&window.setTimeout(function(){Ub(a)},0)}var Ah=0,zh=1;function yh(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);pa.call(this,c);this.code=a}B(yh,pa);function Bh(a){this.b=new Vc(a);this.a="jsonp";this.ub=5E3}var Ch=0;function Dh(a,b){v._callbacks_[a]&&(b?delete v._callbacks_[a]:v._callbacks_[a]=x)};function Eh(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return Fh(ya(c,Eh))}return function(b){return b===k?h:a.replace("{z}",b.n).replace("{x}",b.x).replace("{y}",b.y)}}function Fh(a){return function(b){if(b!==k){var c=Fb(b.hash(),a.length);return a[c](b)}}}
|
||||
function Gh(a,b,c){return function(d){if(d!==k)return d=$f(b,d),Qc([a,"&","BBOX","=",encodeURIComponent(String(("ne"==c.substr(0,2)?[d.j,d.h,d.i,d.k]:[d.h,d.j,d.k,d.i]).join(",")))])}}function Hh(){}function Ih(a,b){return function(c){return c===k?h:b(a(c))}};function Jh(a,b,c){ve.call(this,a);this.e=b;this.a=new Image;c!==k&&(this.a.crossOrigin=c);this.d={};this.c=k}B(Jh,ve);Jh.prototype.I=function(a){if(y(a)){var b=z(a);if(b in this.d)return this.d[b];a=Sa(this.d)?this.a:this.a.cloneNode(m);return this.d[b]=a}return this.a};Jh.prototype.ma=q("e");Jh.prototype.f=function(){this.b=3;D(this.c,I);this.c=k;J(this,"change")};Jh.prototype.g=function(){this.b=2;D(this.c,I);this.c=k;J(this,"change")};function Kh(a){Xg.call(this);this.d=y(a)?a:512}B(Kh,Xg);Kh.prototype.Ca=function(a){for(var b,c;this.Z()>this.d&&!(b=this.a.Y,c=b.X.n.toString(),c in a&&a[c].contains(b.X));)Zg(this)};function Lh(a){eg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.ba=y(a.ba)?a.ba:Hh;this.F=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new Kh}B(Lh,eg);Lh.prototype.f=function(){return this.a.Z()>this.a.d};Lh.prototype.Ca=function(a){this.a.Ca(a)};Lh.prototype.b=function(a){var b=a.toString();if(Vg(this.a,b))return Yg(this.a,b);var c=this.ba(a);y(c)?(a=new Jh(a,c,this.F),$g(this.a,b,a)):a=k;return a};
|
||||
Lh.prototype.s=function(a){a=a.toString();Vg(this.a,a)&&Yg(this.a,a)};function Mh(a){var b=Array(a.maxZoom+1),c,d=2*Rf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);Zf.call(this,{origin:new K(-Rf,Rf),resolutions:b,tileSize:new $d(256,256)})}B(Mh,Zf);Mh.prototype.c=function(a,b,c){for(var d=a.x,e=a.y,a=a.n,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new te(d,e,d,e);if(b.call(c,a,f))break}};var Nh={Xd:"Aerial",Yd:"AerialWithLabels",re:"Road",pe:"OrdnanceSurvey",de:"CollinsBart"};
|
||||
function Oh(a){Lh.call(this,{projection:Le("EPSG:3857")});this.Wc=y(a.culture)?a.culture:"en-us";this.g=m;var b=new Vc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Bh(b),a={include:"ImageryProviders",key:a.key},c=ma(this.u,this),a=a||k,d="_"+(Ch++).toString(36)+oa().toString(36);v._callbacks_||(v._callbacks_={});var e=b.b.R();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&id(e,f,a[f]);c&&(v._callbacks_[d]=function(a){Dh(d,i);c.apply(h,arguments)},id(e,b.a,"_callbacks_."+
|
||||
d));f=vh(e.toString(),{timeout:b.ub,$b:i});f.a.push([k,function(){Dh(d,m)},h]);f.ga&&rh(f)}B(Oh,Lh);
|
||||
Oh.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Mh({maxZoom:d,tileSize:new $d(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ba=Ih(function(a){if(a.n<c||d<a.n)return k;var b=1<<a.n,e=-a.y-1;return 0>e||b<=e?k:new re(a.n,Fb(a.x,b),e)},Fh(ya(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Wc);return function(a){return a===k?h:c.replace("{quadkey}",se(a))}})));var f=Ne(Le("EPSG:4326"),this.l);this.e=
|
||||
ya(b.imageryProviders,function(a){var b=a.attribution,c={};D(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new N(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=ag(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new ue(b,c)});this.g=i;J(this,"load")};Oh.prototype.c=q("g");function Y(a){L.call(this);this.a=k;Ph&&(H(this,Ud("projection"),this.s,m,this),this.J=navigator.geolocation.watchPosition(ma(this.F,this),ma(this.H,this),a))}B(Y,L);Y.prototype.q=function(){navigator.geolocation.clearWatch(this.J);Y.v.q.call(this)};Y.prototype.s=function(){var a=this.c();a!=k&&(this.b=Ne(Le("EPSG:4326"),a),this.a===k||this.p("position",this.b(this.a)))};var Ph="geolocation"in navigator;
|
||||
Y.prototype.F=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);this.p("position",this.b(this.a));this.p("speed",a.speed===k?h:a.speed)};Y.prototype.H=function(){};Y.prototype.d=function(){return this.r("accuracy")};Y.prototype.getAccuracy=Y.prototype.d;Y.prototype.e=function(){return this.r("altitude")};
|
||||
Y.prototype.getAltitude=Y.prototype.e;Y.prototype.f=function(){return this.r("altitudeAccuracy")};Y.prototype.getAltitudeAccuracy=Y.prototype.f;Y.prototype.g=function(){return this.r("heading")};Y.prototype.getHeading=Y.prototype.g;Y.prototype.u=function(){return this.r("position")};Y.prototype.getPosition=Y.prototype.u;Y.prototype.c=function(){return this.r("projection")};Y.prototype.getProjection=Y.prototype.c;Y.prototype.l=function(){return this.r("speed")};Y.prototype.getSpeed=Y.prototype.l;
|
||||
Y.prototype.D=function(a){this.p("projection",a)};Y.prototype.setProjection=Y.prototype.D;Y.prototype.b=function(a){return a};function Qh(a){var b=Ob("DIV",{"class":"ol-mouse-position"});uf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=y(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=Oe;this.d=this.e=this.u=k}B(Qh,uf);Qh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.t.projection;Rh(this,this.e)};Qh.prototype.D=function(a){a=Fc(a,this.b.b);a=new Ze(a.x,a.y);Rh(this,a);this.e=a};Qh.prototype.F=function(){Rh(this,k);this.e=k};
|
||||
Qh.prototype.a=function(a){this.d!==k&&(D(this.d,I),this.d=k);Qh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.D,m,this),H(b,"mouseout",this.F,m,this),H(a,"postrender",this.H,m,this)]}};function Rh(a,b){var c=a.J;if(b!==k){a.u!=a.c&&(a.s=y(a.l)?Ne(a.c,a.l):Oe,a.u=a.c);var d=af(a.b,b);d!==k&&(d=a.s(d),c=y(a.g)?a.g(d):d.toString())}if(!y(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Sh(){this.a={}}B(Sh,xf);Sh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Sh.prototype.na=function(a){if("key"==a.type){var b=this.a[a.a.$a];b&&(b(),a.B())}};function Th(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=m;b.validateOnParse=m;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Uh(){this.wa={Fc:/^\s*|\s*$/g,a:/\s*/g,Dc:/\s+/,Ec:/\s*,\s*/g}}function Vh(a,b,c){c||(c={});var d=a.w[b.namespaceURI]||a.w[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&Vh(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
||||
Uh.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,l=a.length;j<l;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function Wh(){function a(a,b){b.Qd.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Re:a.getAttribute("locator"),Qd:[]};b.ec.push(e);Z(this,a,e)}this.w={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
||||
b){b.Se=m;b.Db={version:a.getAttribute("version"),language:a.getAttribute("language"),ec:[]};Z(this,a,b.Db)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Db={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),ec:[]};Z(this,a,b.Db)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Uh.call(this)}B(Wh,Uh);
|
||||
Wh.prototype.qa=function(a){"string"==typeof a&&(a=Th(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function Xh(a){this.c=a=a||{};this.Va=a.Va||k;this.version=a.version;this.profile=a.profile;a.Sa!==h?this.Sa=a.Sa:this.Sa=m;a.Sb!==h?this.Sb=a.Sb:this.Sb=m}
|
||||
Xh.prototype.qa=function(a,b){"string"==typeof a&&(a=Th(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Va))):d=this.version||this.Va;d=(c=d)||this.Va;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Sa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.qa(a,b);e=this.b.Yc||k;e!==k&&
|
||||
d[e]===h&&(d.error=(new Wh).qa(a));d.version=c;return d};function Yh(){this.a="http://www.opengis.net/wms";this.Yc="service";this.w={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
||||
function uh(a,b){this.a=[];this.f=a;this.e=b||k}s=uh.prototype;s.ga=l;s.Da=l;s.La=0;s.Cc=l;s.Tc=l;s.Sc=0;s.bc=function(a,b){vh(this,a,b);this.La--;0==this.La&&this.ga&&wh(this)};function vh(a,b,c){a.ga=i;a.b=c;a.Da=!b;wh(a)}function xh(a){if(a.ga){if(!a.Cc)throw new yh(a);a.Cc=l}}function zh(a){return Aa(a.a,function(a){return ha(a[1])})}
|
||||
function wh(a){a.c&&(a.ga&&zh(a))&&(v.clearTimeout(a.c),delete a.c);a.d&&(a.d.Sc--,delete a.d);for(var b=a.b,c=l,d=l;a.a.length&&0==a.La;){var e=a.a.shift(),f=e[0],g=e[1],e=e[2];if(f=a.Da?g:f)try{var j=f.call(e||a.e,b);y(j)&&(a.Da=a.Da&&(j==b||j instanceof Error),a.b=b=j);b instanceof uh&&(d=i,a.La++)}catch(m){b=m,a.Da=i,zh(a)||(c=i)}}a.b=b;d&&a.La&&(d=b,j=na(a.bc,a,i),f=na(a.bc,a,l),d.a.push([j,f,h]),d.ga&&wh(d),b.Tc=i);c&&(a.c=v.setTimeout(function(){throw b;},0))}
|
||||
function yh(a){qa.call(this);this.a=a}B(yh,qa);yh.prototype.message="Deferred has already fired";yh.prototype.name="AlreadyCalledError";function Ah(a,b){var c=b||{},d=c.document||document,e=Rb("SCRIPT"),f={zc:e,ub:h},g=new uh(Bh,f),j=k,m=c.timeout!=k?c.timeout:5E3;0<m&&(j=window.setTimeout(function(){Ch(e,i);var b=new Dh(Eh,"Timeout reached for loading script "+a);xh(g);vh(g,l,b)},m),f.ub=j);e.onload=e.onreadystatechange=function(){if(!e.readyState||"loaded"==e.readyState||"complete"==e.readyState)Ch(e,c.$b||l,j),xh(g),vh(g,i,k)};e.onerror=function(){Ch(e,i,j);var b=new Dh(Fh,"Error while loading script "+a);xh(g);vh(g,l,b)};Mb(e,
|
||||
{type:"text/javascript",charset:"UTF-8",src:a});f=d.getElementsByTagName("HEAD");(!f||0==f.length?d.documentElement:f[0]).appendChild(e);return g}function Bh(){if(this&&this.zc){var a=this.zc;a&&"SCRIPT"==a.tagName&&Ch(a,i,this.ub)}}function Ch(a,b,c){c!=k&&v.clearTimeout(c);a.onload=x;a.onerror=x;a.onreadystatechange=x;b&&window.setTimeout(function(){Vb(a)},0)}var Fh=0,Eh=1;function Dh(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);qa.call(this,c);this.code=a}B(Dh,qa);function Gh(a){this.b=new Wc(a);this.a="jsonp";this.ub=5E3}var Hh=0;function Ih(a,b){v._callbacks_[a]&&(b?delete v._callbacks_[a]:v._callbacks_[a]=x)};function Jh(a){var b=/\{(\d)-(\d)\}/.exec(a)||/\{([a-z])-([a-z])\}/.exec(a);if(b){var c=[],d=b[2].charCodeAt(0),e;for(e=b[1].charCodeAt(0);e<=d;++e)c.push(a.replace(b[0],String.fromCharCode(e)));return Kh(za(c,Jh))}return function(b){return b===k?h:a.replace("{z}",b.m).replace("{x}",b.x).replace("{y}",b.y)}}function Kh(a){return function(b){if(b!==k){var c=Gb(b.hash(),a.length);return a[c](b)}}}
|
||||
function Lh(a,b,c){return function(d){if(d!==k){var e=dg(b,d),d=ig(b,d.m);return Vc(a,"BBOX",("ne"==c.substr(0,2)?[e.j,e.h,e.i,e.k]:[e.h,e.j,e.k,e.i]).join(","),"HEIGHT",d.height,"WIDTH",d.width)}}}function Mh(){}function Nh(a,b){return function(c){return c===k?h:b(a(c))}};function Oh(a,b,c){we.call(this,a);this.e=b;this.a=new Image;c!==k&&(this.a.crossOrigin=c);this.d={};this.c=k}B(Oh,we);Oh.prototype.I=function(a){if(y(a)){var b=z(a);if(b in this.d)return this.d[b];a=Ta(this.d)?this.a:this.a.cloneNode(l);return this.d[b]=a}return this.a};Oh.prototype.la=p("e");Oh.prototype.f=function(){this.b=3;C(this.c,I);this.c=k;J(this,"change")};Oh.prototype.g=function(){this.b=2;C(this.c,I);this.c=k;J(this,"change")};function Ph(a){bh.call(this);this.d=y(a)?a:512}B(Ph,bh);Ph.prototype.Ba=function(a){for(var b,c;this.Z()>this.d&&!(b=this.a.Y,c=b.X.m.toString(),c in a&&a[c].contains(b.X));)dh(this)};function Qh(a){jg.call(this,{attributions:a.attributions,extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.ba=y(a.ba)?a.ba:Mh;this.F=y(a.crossOrigin)?a.crossOrigin:"anonymous";this.a=new Ph}B(Qh,jg);Qh.prototype.f=function(){return this.a.Z()>this.a.d};Qh.prototype.Ba=function(a){this.a.Ba(a)};Qh.prototype.b=function(a){var b=a.toString();if($g(this.a,b))return ch(this.a,b);var c=this.ba(a);y(c)?(a=new Oh(a,c,this.F),eh(this.a,b,a)):a=k;return a};
|
||||
Qh.prototype.s=function(a){a=a.toString();$g(this.a,a)&&ch(this.a,a)};function Rh(a){var b=Array(a.maxZoom+1),c,d=2*Vf/256;for(c=0;c<=a.maxZoom;++c)b[c]=d/Math.pow(2,c);cg.call(this,{origin:new K(-Vf,Vf),resolutions:b,tileSize:new ae(256,256)})}B(Rh,cg);Rh.prototype.b=function(a,b,c){for(var d=a.x,e=a.y,a=a.m,f;;){a-=1;if(0>a)break;d>>=1;e>>=1;f=new ue(d,e,d,e);if(b.call(c,a,f))break}};var Sh={Xd:"Aerial",Yd:"AerialWithLabels",re:"Road",pe:"OrdnanceSurvey",de:"CollinsBart"};
|
||||
function Th(a){Qh.call(this,{projection:Qe("EPSG:3857")});this.Wc=y(a.culture)?a.culture:"en-us";this.g=l;var b=new Wc("//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+a.style),b=new Gh(b),a={include:"ImageryProviders",key:a.key},c=na(this.u,this),a=a||k,d="_"+(Hh++).toString(36)+pa().toString(36);v._callbacks_||(v._callbacks_={});var e=b.b.R();if(a)for(var f in a)(!a.hasOwnProperty||a.hasOwnProperty(f))&&jd(e,f,a[f]);c&&(v._callbacks_[d]=function(a){Ih(d,i);c.apply(h,arguments)},jd(e,b.a,"_callbacks_."+
|
||||
d));f=Ah(e.toString(),{timeout:b.ub,$b:i});f.a.push([k,function(){Ih(d,l)},h]);f.ga&&wh(f)}B(Th,Qh);
|
||||
Th.prototype.u=function(a){var b=a.resourceSets[0].resources[0],c=b.zoomMin,d=b.zoomMax,e=new Rh({maxZoom:d,tileSize:new ae(b.imageWidth,b.imageHeight)});this.tileGrid=e;this.ba=Nh(function(a){if(a.m<c||d<a.m)return k;var b=1<<a.m,e=-a.y-1;return 0>e||b<=e?k:new se(a.m,Gb(a.x,b),e)},Kh(za(b.imageUrlSubdomains,function(a){var c=b.imageUrl.replace("{subdomain}",a).replace("{culture}",this.Wc);return function(a){return a===k?h:c.replace("{quadkey}",te(a))}})));var f=Ge(Qe("EPSG:4326"),this.l);this.e=
|
||||
za(b.imageryProviders,function(a){var b=a.attribution,c={};C(a.coverageAreas,function(a){var b=a.zoomMin,d=a.zoomMax,a=a.bbox,a=(new N(a[1],a[0],a[3],a[2])).transform(f),g,j;for(g=b;g<=d;++g)j=g.toString(),b=eg(e,a,e.a[g]),j in c?c[j].push(b):c[j]=[b]});return new ve(b,c)});this.g=i;J(this,"load")};Th.prototype.c=p("g");function X(a){L.call(this);this.a=k;Uh&&(H(this,Vd("projection"),this.s,l,this),this.J=navigator.geolocation.watchPosition(na(this.F,this),na(this.H,this),a))}B(X,L);X.prototype.q=function(){navigator.geolocation.clearWatch(this.J);X.v.q.call(this)};X.prototype.s=function(){var a=this.c();a!=k&&(this.b=Ge(Qe("EPSG:4326"),a),this.a!==k&&(a=[this.a.x,this.a.y],a=this.b(a,a,2),this.p("position",new K(a[0],a[1]))))};var Uh="geolocation"in navigator;
|
||||
X.prototype.F=function(a){a=a.coords;this.p("accuracy",a.accuracy);this.p("altitude",a.altitude===k?h:a.altitude);this.p("altitudeAccuracy",a.altitudeAccuracy===k?h:a.altitudeAccuracy);this.p("heading",a.heading===k?h:a.heading*Math.PI/180);this.a=new K(a.longitude,a.latitude);var b=[a.longitude,a.latitude],b=this.b(b,b,2);this.p("position",new K(b[0],b[1]));this.p("speed",a.speed===k?h:a.speed)};X.prototype.H=function(){};X.prototype.d=function(){return this.r("accuracy")};
|
||||
X.prototype.getAccuracy=X.prototype.d;X.prototype.e=function(){return this.r("altitude")};X.prototype.getAltitude=X.prototype.e;X.prototype.f=function(){return this.r("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.f;X.prototype.g=function(){return this.r("heading")};X.prototype.getHeading=X.prototype.g;X.prototype.u=function(){return this.r("position")};X.prototype.getPosition=X.prototype.u;X.prototype.c=function(){return this.r("projection")};X.prototype.getProjection=X.prototype.c;
|
||||
X.prototype.l=function(){return this.r("speed")};X.prototype.getSpeed=X.prototype.l;X.prototype.D=function(a){this.p("projection",a)};X.prototype.setProjection=X.prototype.D;X.prototype.b=aa();function Vh(a){var b=Pb("DIV",{"class":"ol-mouse-position"});xf.call(this,{element:b,map:a.map,target:a.target});this.l=a.projection;this.g=a.coordinateFormat;this.J=y(a.undefinedHTML)?a.undefinedHTML:"";this.f=b.innerHTML;this.c=k;this.s=Re;this.d=this.e=this.u=k}B(Vh,xf);Vh.prototype.H=function(a){a=a.d;a===k?this.c=k:this.c=a.t.projection;Wh(this,this.e)};Vh.prototype.D=function(a){a=Gc(a,this.b.b);a=new bf(a.x,a.y);Wh(this,a);this.e=a};Vh.prototype.F=function(){Wh(this,k);this.e=k};
|
||||
Vh.prototype.a=function(a){this.d!==k&&(C(this.d,I),this.d=k);Vh.v.a.call(this,a);if(a!==k){var b=a.b;this.d=[H(b,"mousemove",this.D,l,this),H(b,"mouseout",this.F,l,this),H(a,"postrender",this.H,l,this)]}};function Wh(a,b){var c=a.J;if(b!==k){a.u!=a.c&&(a.s=y(a.l)?Ge(a.c,a.l):Re,a.u=a.c);var d=df(a.b,b);d!==k&&(c=[d.x,d.y],c=a.s(c,c),d=new K(c[0],c[1]),c=y(a.g)?a.g(d):d.toString())}if(!y(a.f)||c!=a.f)a.element.innerHTML=c,a.f=c};function Xh(){this.a={}}B(Xh,Af);Xh.prototype.b=function(a,b){var c;for(c=0;c<a.length;++c)this.a[a.charCodeAt(c)]=b};Xh.prototype.ma=function(a){if("key"==a.type){var b=this.a[a.a.$a];b&&(b(),a.B())}};function Yh(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");if(b){b.resolveExternals=l;b.validateOnParse=l;try{b.setProperty("ProhibitDTD",i),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};function Zh(){this.va={Fc:/^\s*|\s*$/g,a:/\s*/g,Dc:/\s+/,Ec:/\s*,\s*/g}}function $h(a,b,c){c||(c={});var d=a.w[b.namespaceURI]||a.w[a.a];if(d){var e=b.localName||b.nodeName.split(":").pop();(d=d[e]||d["*"])&&d.apply(a,[b,c])}}function Z(a,b,c){c||(c={});for(var b=b.childNodes,d,e=0,f=b.length;e<f;++e)d=b[e],1==d.nodeType&&$h(a,d,c)}function $(a){var b="";if(a)for(a=a.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:case 4:b+=a.nodeValue}return b}
|
||||
Zh.prototype.getAttributeNS=function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else{var e=k;if(a.getAttributeNodeNS)e=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,f,g,j=0,m=a.length;j<m;++j)if(f=a[j],f.namespaceURI==b&&(g=f.prefix?f.prefix+":"+c:c,g==f.nodeName)){e=f;break}if(b=e)d=b.nodeValue}return d};function ai(){function a(a,b){b.Qd.push($(a))}function b(a,b){var e={code:a.getAttribute("exceptionCode"),Re:a.getAttribute("locator"),Qd:[]};b.ec.push(e);Z(this,a,e)}this.w={"http://www.opengis.net/ogc":{ServiceExceptionReport:function(a,b){b.exceptionReport={};b.exceptionReport.exceptions=[];Z(this,a,b.exceptionReport)},ServiceException:function(a,b){var e={};e.code=a.getAttribute("code");e.locator=a.getAttribute("locator");e.text=$(a);b.exceptions.push(e)}},"http://www.opengis.net/ows":{ExceptionReport:function(a,
|
||||
b){b.Se=l;b.Db={version:a.getAttribute("version"),language:a.getAttribute("language"),ec:[]};Z(this,a,b.Db)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}},"http://www.opengis.net/ows/1.1":{ExceptionReport:function(a,b){b.Db={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),ec:[]};Z(this,a,b.Db)},Exception:function(a,d){b.apply(this,arguments)},ExceptionText:function(b,d){a.apply(this,arguments)}}};Zh.call(this)}B(ai,Zh);
|
||||
ai.prototype.pa=function(a){"string"==typeof a&&(a=Yh(a));var b={exceptionReport:k};a&&Z(this,a,b);return b};function bi(a){this.c=a=a||{};this.Va=a.Va||k;this.version=a.version;this.profile=a.profile;a.Sa!==h?this.Sa=a.Sa:this.Sa=l;a.Sb!==h?this.Sb=a.Sb:this.Sb=l}
|
||||
bi.prototype.pa=function(a,b){"string"==typeof a&&(a=Yh(a));var c;c=a.documentElement;var d;c?(d=this.version,d||(d=c.getAttribute("version"),d||(d=this.Va))):d=this.version||this.Va;d=(c=d)||this.Va;var e=this.profile?"_"+this.profile:"";if(!this.b||this.b.VERSION!=d){var f=this.a["v"+d.replace(/\./g,"_")+e];if(!f&&(""!==e&&this.Sa&&(e="",f=this.a["v"+d.replace(/\./g,"_")+e]),!f))throw"Can't find a parser for version "+d+e;this.b=new f(this.c)}this.b=this.b;d=this.b.pa(a,b);e=this.b.Yc||k;e!==k&&
|
||||
d[e]===h&&(d.error=(new ai).pa(a));d.version=c;return d};function ci(){this.a="http://www.opengis.net/wms";this.Yc="service";this.w={"http://www.opengis.net/wms":{Service:function(a,b){b.service={};Z(this,a,b.service)},Name:function(a,b){b.name=$(a)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};
|
||||
if(!isNaN(a.x)||!isNaN(a.y))b.res=a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ContactInformation:function(a,b){b.contactInformation={};Z(this,a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};Z(this,a,b.personPrimary)},ContactPerson:function(a,b){b.person=$(a)},ContactOrganization:function(a,b){b.organization=$(a)},ContactPosition:function(a,b){b.position=$(a)},ContactAddress:function(a,b){b.contactAddress=
|
||||
{};Z(this,a,b.contactAddress)},AddressType:function(a,b){b.type=$(a)},Address:function(a,b){b.address=$(a)},City:function(a,b){b.city=$(a)},StateOrProvince:function(a,b){b.stateOrProvince=$(a)},PostCode:function(a,b){b.postcode=$(a)},Country:function(a,b){b.country=$(a)},ContactVoiceTelephone:function(a,b){b.phone=$(a)},ContactFacsimileTelephone:function(a,b){b.fax=$(a)},ContactElectronicMailAddress:function(a,b){b.email=$(a)},Fees:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.fees=c)},
|
||||
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Z(this,a,b.capability)},Request:function(a,b){b.request={};Z(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Z(this,a,b.getcapabilities)},Format:function(a,b){ca(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,
|
||||
AccessConstraints:function(a,b){var c=$(a);c&&"none"!=c.toLowerCase()&&(b.accessConstraints=c)},Capability:function(a,b){b.capability={};b.capability.nestedLayers=[];b.capability.layers=[];Z(this,a,b.capability)},Request:function(a,b){b.request={};Z(this,a,b.request)},GetCapabilities:function(a,b){b.getcapabilities={};b.getcapabilities.formats=[];Z(this,a,b.getcapabilities)},Format:function(a,b){da(b.formats)?b.formats.push($(a)):b.format=$(a)},DCPType:function(a,b){Z(this,a,b)},HTTP:function(a,b){Z(this,
|
||||
a,b)},Get:function(a,b){b.get={};Z(this,a,b.get)},Post:function(a,b){b.post={};Z(this,a,b.post)},GetMap:function(a,b){b.getmap={};b.getmap.formats=[];Z(this,a,b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={};b.getfeatureinfo.formats=[];Z(this,a,b.getfeatureinfo)},Exception:function(a,b){b.exception={};b.exception.formats=[];Z(this,a,b.exception)},Layer:function(a,b){var c,d;b.capability?(d=b.capability,c=b):d=b;var e=a.getAttributeNode("queryable"),f=e&&e.specified?a.getAttribute("queryable"):
|
||||
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,l=a.getAttribute("noSubsets"),p=a.getAttribute("fixedWidth"),n=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||m,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
||||
0,opaque:j?"1"===j||"true"===j:e.opaque||m,noSubsets:l!==k?"1"===l||"true"===l:e.noSubsets||m,fixedWidth:p!==k?parseInt(p,10):e.fixedWidth||0,fixedHeight:n!==k?parseInt(n,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Ua(f.srs,e.srs),Ua(f.bbox,e.bbox),Ua(f.dimensions,e.dimensions),Ua(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
||||
k,g=(e=a.getAttributeNode("cascaded"))&&e.specified?a.getAttribute("cascaded"):k,j=(e=a.getAttributeNode("opaque"))&&e.specified?a.getAttribute("opaque"):k,m=a.getAttribute("noSubsets"),q=a.getAttribute("fixedWidth"),n=a.getAttribute("fixedHeight"),e=c||{},f={nestedLayers:[],styles:c?[].concat(c.styles):[],srs:{},metadataURLs:[],bbox:{},llbbox:e.llbbox,dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:f&&""!==f?"1"===f||"true"===f:e.queryable||l,cascaded:g!==k?parseInt(g,10):e.cascaded||
|
||||
0,opaque:j?"1"===j||"true"===j:e.opaque||l,noSubsets:m!==k?"1"===m||"true"===m:e.noSubsets||l,fixedWidth:q!==k?parseInt(q,10):e.fixedWidth||0,fixedHeight:n!==k?parseInt(n,10):e.fixedHeight||0,minScale:e.minScale,maxScale:e.maxScale,attribution:e.attribution};c&&(Va(f.srs,e.srs),Va(f.bbox,e.bbox),Va(f.dimensions,e.dimensions),Va(f.authorityURLs,e.authorityURLs));b.nestedLayers.push(f);f.capability=d;Z(this,a,f);delete f.capability;f.name&&(c=f.name.split(":"),g=d.request,e=g.getfeatureinfo,0<c.length&&
|
||||
(f.prefix=c[0]),d.layers.push(f),f.formats===h&&(f.formats=g.getmap.formats),f.infoFormats===h&&e&&(f.infoFormats=e.formats))},Attribution:function(a,b){b.attribution={};Z(this,a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};Z(this,a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);Z(this,a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;Z(this,a,c)},MetadataURL:function(a,
|
||||
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Uh.call(this)}B(Yh,Uh);
|
||||
Yh.prototype.qa=function(a){"string"==typeof a&&(a=Th(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Vh(this,a,b);return b};function Zh(){Yh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
|
||||
b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);Z(this,a,c)},DataURL:function(a,b){b.dataURL={};Z(this,a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};Z(this,a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};Z(this,a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=$(a)},KeywordList:function(a,b){Z(this,a,b)},SRS:function(a,b){b.srs[$(a)]=i}}};Zh.call(this)}B(ci,Zh);
|
||||
ci.prototype.pa=function(a){"string"==typeof a&&(a=Yh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};$h(this,a,b);return b};function di(){ci.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Va(this.w["http://www.opengis.net/wms"],{WMT_MS_Capabilities:function(a,c){Z(this,a,c)},Keyword:function(a,c){c.keywords&&c.keywords.push({value:$(a)})},DescribeLayer:function(a,c){c.describelayer={formats:[]};Z(this,a,c.describelayer)},GetLegendGraphic:function(a,c){c.getlegendgraphic={formats:[]};Z(this,a,c.getlegendgraphic)},GetStyles:function(a,c){c.getstyles={formats:[]};Z(this,a,c.getstyles)},PutStyles:function(a,
|
||||
c){c.putstyles={formats:[]};Z(this,a,c.putstyles)},UserDefinedSymbolization:function(a,c){var d={supportSLD:1==parseInt(a.getAttribute("SupportSLD"),10),userLayer:1==parseInt(a.getAttribute("UserLayer"),10),userStyle:1==parseInt(a.getAttribute("UserStyle"),10),remoteWFS:1==parseInt(a.getAttribute("RemoteWFS"),10)};c.userSymbols=d},LatLonBoundingBox:function(a,c){c.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},
|
||||
BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("SRS");c.bbox[d.srs]=d},ScaleHint:function(a,c){var d=parseFloat(a.getAttribute("min")),e=parseFloat(a.getAttribute("max")),f=Math.pow(2,0.5),g=25.4/0.28;0!==d&&(c.maxScale=parseFloat(39.37*(d/f)*g));e!=Number.POSITIVE_INFINITY&&(c.minScale=parseFloat(39.37*(e/f)*g))},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};c.dimensions[d.name]=
|
||||
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}B(Zh,Yh);function $h(){Zh.call(this);this.version="1.1.0";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B($h,Zh);function ai(){Zh.call(this);this.version="1.1.1";Ua(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}B(ai,Zh);function bi(){ai.call(this);this.profile="WMSC";Ua(this.w["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.Ue.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
|
||||
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}B(bi,ai);function ci(){Yh.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Ua(this.w["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.w["http://www.opengis.net/wms"].SRS.apply(this,
|
||||
d},Extent:function(a,c){var d=a.getAttribute("name").toLowerCase();d in c.dimensions&&(d=c.dimensions[d],d.nearestVal="1"===a.getAttribute("nearestValue"),d.multipleVal="1"===a.getAttribute("multipleValues"),d.current="1"===a.getAttribute("current"),d["default"]=a.getAttribute("default")||"",d.values=$(a).split(","))}})}B(di,ci);function ei(){di.call(this);this.version="1.1.0";Va(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){for(var c=$(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=i}})}B(ei,di);function fi(){di.call(this);this.version="1.1.1";Va(this.w["http://www.opengis.net/wms"],{SRS:function(a,b){b.srs[$(a)]=i}})}B(fi,di);function gi(){fi.call(this);this.profile="WMSC";Va(this.w["http://www.opengis.net/wms"],{VendorSpecificCapabilities:function(a,b){b.vendorSpecific={tileSets:[]};Z(this,a,b.vendorSpecific)},TileSet:function(a,b){var c={srs:{},bbox:{},resolutions:[]};Z(this,a,c);b.Ue.push(c)},Resolutions:function(a,b){for(var c=$(a).split(" "),d=0,e=c.length;d<e;d++)""!==c[d]&&b.resolutions.push(parseFloat(c[d]))},Width:function(a,b){b.width=parseInt($(a),10)},Height:function(a,b){b.height=parseInt($(a),10)},Layers:function(a,
|
||||
b){b.layers=$(a)},Styles:function(a,b){b.styles=$(a)}})}B(gi,fi);function hi(){ci.call(this);var a=this.w["http://www.opengis.net/wms"].BoundingBox;Va(this.w["http://www.opengis.net/wms"],{WMS_Capabilities:function(a,c){Z(this,a,c)},LayerLimit:function(a,c){c.layerLimit=parseInt($(a),10)},MaxWidth:function(a,c){c.maxWidth=parseInt($(a),10)},MaxHeight:function(a,c){c.maxHeight=parseInt($(a),10)},BoundingBox:function(b,c){var d=a.apply(this,arguments);d.srs=b.getAttribute("CRS");c.bbox[d.srs]=d},CRS:function(a,c){this.w["http://www.opengis.net/wms"].SRS.apply(this,
|
||||
arguments)},EX_GeographicBoundingBox:function(a,c){c.llbbox=[];Z(this,a,c.llbbox)},westBoundLongitude:function(a,c){c[0]=$(a)},eastBoundLongitude:function(a,c){c[2]=$(a)},southBoundLatitude:function(a,c){c[1]=$(a)},northBoundLatitude:function(a,c){c[3]=$(a)},MinScaleDenominator:function(a,c){c.maxScale=parseFloat($(a)).toPrecision(16)},MaxScaleDenominator:function(a,c){c.minScale=parseFloat($(a)).toPrecision(16)},Dimension:function(a,c){var d={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),
|
||||
unitsymbol:a.getAttribute("unitSymbol"),nearestVal:"1"===a.getAttribute("nearestValue"),multipleVal:"1"===a.getAttribute("multipleValues"),"default":a.getAttribute("default")||"",current:"1"===a.getAttribute("current"),values:$(a).split(",")};c.dimensions[d.name]=d},Keyword:function(a,c){var d={value:$(a),vocabulary:a.getAttribute("vocabulary")};c.keywords&&c.keywords.push(d)}});this.w.sld={UserDefinedSymbolization:function(a,c){this.w["http://www.opengis.net/wms"].Ne.apply(this,arguments);var d=
|
||||
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.w["http://www.opengis.net/wms"].le.apply(this,arguments)},GetLegendGraphic:function(a,c){this.w["http://www.opengis.net/wms"].me.apply(this,arguments)}}}B(ci,Yh);function di(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=$h;this.a.v1_1_1=ai;this.a.v1_1_1_WMSC=bi;this.a.v1_3_0=ci;Xh.call(this,a)}B(di,Xh);function ei(){this.w={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Z(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Z(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
|
||||
a.getAttribute("InlineFeature");c.userSymbols.inlineFeature=1==parseInt(d,10);d=a.getAttribute("RemoteWCS");c.userSymbols.remoteWCS=1==parseInt(d,10)},DescribeLayer:function(a,c){this.w["http://www.opengis.net/wms"].le.apply(this,arguments)},GetLegendGraphic:function(a,c){this.w["http://www.opengis.net/wms"].me.apply(this,arguments)}}}B(hi,ci);function ii(a){a=a||{};a.defaultVersion="1.1.1";this.a={};this.a.v1_1_0=ei;this.a.v1_1_1=fi;this.a.v1_1_1_WMSC=gi;this.a.v1_3_0=hi;bi.call(this,a)}B(ii,bi);function ji(){this.w={"http://www.opengis.net/ows":{ServiceIdentification:function(a,b){b.serviceIdentification={};Z(this,a,b.serviceIdentification)},Title:function(a,b){b.title=$(a)},Abstract:function(a,b){b["abstract"]=$(a)},Keywords:function(a,b){b.keywords={};Z(this,a,b.keywords)},Keyword:function(a,b){b[$(a)]=i},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:$(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=$(a)},Fees:function(a,b){b.fees=$(a)},
|
||||
AccessConstraints:function(a,b){b.accessConstraints=$(a)},ServiceProvider:function(a,b){b.serviceProvider={};Z(this,a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=$(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceContact:function(a,b){b.serviceContact={};Z(this,a,b.serviceContact)},IndividualName:function(a,b){b.individualName=$(a)},PositionName:function(a,b){b.positionName=$(a)},ContactInfo:function(a,b){b.contactInfo=
|
||||
{};Z(this,a,b.contactInfo)},Phone:function(a,b){b.phone={};Z(this,a,b.phone)},Voice:function(a,b){b.voice=$(a)},Address:function(a,b){b.address={};Z(this,a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=$(a)},City:function(a,b){b.city=$(a)},AdministrativeArea:function(a,b){b.administrativeArea=$(a)},PostalCode:function(a,b){b.postalCode=$(a)},Country:function(a,b){b.country=$(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=$(a)},Role:function(a,b){b.role=$(a)},OperationsMetadata:function(a,
|
||||
b){b.operationsMetadata={};Z(this,a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};Z(this,a,b[c])},DCP:function(a,b){b.dcp={};Z(this,a,b.dcp)},HTTP:function(a,b){b.http={};Z(this,a,b.http)},Get:function(a,b){b.get||(b.get=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.get.push(c)},Post:function(a,b){b.post||(b.post=[]);var c={url:this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")};Z(this,a,c);b.post.push(c)},
|
||||
Parameter:function(a,b){b.parameters||(b.parameters={});var c=a.getAttribute("name");b.parameters[c]={};Z(this,a,b.parameters[c])},Constraint:function(a,b){b.constraints||(b.constraints={});var c=a.getAttribute("name");b.constraints[c]={};Z(this,a,b.constraints[c])},Value:function(a,b){b[$(a)]=i},OutputFormat:function(a,b){b.formats.push({value:$(a)});Z(this,a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);Z(this,
|
||||
a,c)},BoundingBox:function(a,b){this.w["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.wa.Fc,""),c=c.replace(this.wa.Ec,","),c=c.split(this.wa.Dc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.wa.Fc,""),c=c.replace(this.wa.Ec,","),c=c.split(this.wa.Dc);b.right=c[0];b.top=c[1];b.bounds=new N(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;
|
||||
delete b.top},Language:function(a,b){b.language=$(a)}}};Uh.call(this)}B(ei,Uh);function fi(){ei.call(this);this.w["http://www.opengis.net/ows/1.1"]=this.w["http://www.opengis.net/ows"];Ua(this.w["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Z(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Z(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
|
||||
b){b.supportedCRS=$(a)}})}B(fi,ei);function gi(){this.w={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Z(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Z(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Z(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Z(this,a,d);c.styles.push(d)},Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,
|
||||
c){var d={};Z(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Z(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Te};Z(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Le(c.supportedCRS).b,d=[parseFloat(d[0]),parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new K(d[1],
|
||||
a,c)},BoundingBox:function(a,b){this.w["http://www.opengis.net/ows"].WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=$(a).replace(this.va.Fc,""),c=c.replace(this.va.Ec,","),c=c.split(this.va.Dc);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=$(a).replace(this.va.Fc,""),c=c.replace(this.va.Ec,","),c=c.split(this.va.Dc);b.right=c[0];b.top=c[1];b.bounds=new N(parseFloat(b.left),parseFloat(b.bottom),parseFloat(b.right),parseFloat(b.top));delete b.left;delete b.bottom;delete b.right;
|
||||
delete b.top},Language:function(a,b){b.language=$(a)}}};Zh.call(this)}B(ji,Zh);function ki(){ji.call(this);this.w["http://www.opengis.net/ows/1.1"]=this.w["http://www.opengis.net/ows"];Va(this.w["http://www.opengis.net/ows/1.1"],{AllowedValues:function(a,b){b.allowedValues={};Z(this,a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=i},DataType:function(a,b){b.dataType=$(a)},Range:function(a,b){b.range={};Z(this,a,b.range)},MinimumValue:function(a,b){b.minValue=$(a)},MaximumValue:function(a,b){b.maxValue=$(a)},Identifier:function(a,b){b.identifier=$(a)},SupportedCRS:function(a,
|
||||
b){b.supportedCRS=$(a)}})}B(ki,ji);function li(){this.w={"http://www.opengis.net/wmts/1.0":{Capabilities:function(a,c){Z(this,a,c)},Contents:function(a,c){c.contents={};c.contents.layers=[];c.contents.tileMatrixSets={};Z(this,a,c.contents)},Layer:function(a,c){var d={styles:[],formats:[],dimensions:[],tileMatrixSetLinks:[],layers:[]};Z(this,a,d);c.layers.push(d)},Style:function(a,c){var d={};d.isDefault="true"===a.getAttribute("isDefault");Z(this,a,d);c.styles.push(d)},Format:function(a,c){c.formats.push($(a))},TileMatrixSetLink:function(a,
|
||||
c){var d={};Z(this,a,d);c.tileMatrixSetLinks.push(d)},TileMatrixSet:function(a,c){if(c.layers){var d={matrixIds:[]};Z(this,a,d);c.tileMatrixSets[d.identifier]=d}else c.tileMatrixSet=$(a)},TileMatrix:function(a,c){var d={supportedCRS:c.Te};Z(this,a,d);c.matrixIds.push(d)},ScaleDenominator:function(a,c){c.scaleDenominator=parseFloat($(a))},TopLeftCorner:function(a,c){var d=$(a).split(" "),e=Qe(c.supportedCRS).b,d=[parseFloat(d[0]),parseFloat(d[1])],e=e.charAt(0);c.topLeftCorner="n"===e||"s"===e?new K(d[1],
|
||||
d[0]):new K(d[0],d[1])},TileWidth:function(a,c){c.tileWidth=parseInt($(a),10)},TileHeight:function(a,c){c.tileHeight=parseInt($(a),10)},MatrixWidth:function(a,c){c.matrixWidth=parseInt($(a),10)},MatrixHeight:function(a,c){c.matrixHeight=parseInt($(a),10)},ResourceURL:function(a,c){c.resourceUrl=c.resourceUrl||{};var d=a.getAttribute("resourceType");c.resourceUrls||(c.resourceUrls=[]);d=c.resourceUrl[d]={format:a.getAttribute("format"),template:a.getAttribute("template"),resourceType:d};c.resourceUrls.push(d)},
|
||||
WSDL:function(a,c){c.wsdl={};c.wsdl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},ServiceMetadataURL:function(a,c){c.serviceMetadataUrl={};c.serviceMetadataUrl.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href")},LegendURL:function(a,c){c.legend={};c.legend.href=this.getAttributeNS(a,"http://www.w3.org/1999/xlink","href");c.legend.format=a.getAttribute("format")},Dimension:function(a,c){var d={values:[]};Z(this,a,d);c.dimensions.push(d)},Default:function(a,c){c["default"]=
|
||||
$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new fi;this.w["http://www.opengis.net/ows/1.1"]=a.w["http://www.opengis.net/ows/1.1"];Uh.call(this)}B(gi,Uh);gi.prototype.qa=function(a){"string"==typeof a&&(a=Th(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};Vh(this,a,b);return b};function hi(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=gi;Xh.call(this,a)}B(hi,Xh);function ii(a,b){ve.call(this,a);this.b=2;this.d=a;this.c=b.b;this.a={}}B(ii,ve);ii.prototype.I=function(a){a=y(a)?z(a):-1;if(a in this.a)return this.a[a];var b=this.c,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.d.toString(),b.width/2,b.height/2);return this.a[a]=c};
|
||||
function ji(a){eg.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.a=new Kh}B(ji,eg);ji.prototype.f=function(){return this.a.Z()>this.a.d};ji.prototype.Ca=function(a){this.a.Ca(a)};ji.prototype.b=function(a){var b=a.toString();if(Vg(this.a,b))return Yg(this.a,b);a=new ii(a,this.tileGrid);$g(this.a,b,a);return a};function ki(a){var b=a.projection||Le("EPSG:3857"),c=Hh;y(a.ba)?c=a.ba:y(a.urls)?c=Fh(ya(a.urls,Eh)):y(a.url)&&(c=Eh(a.url));var d=new Mh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Ih(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,j=-b.y-1;if(0>j||c<=j)return k;c=Fb(b.x,c);return!be($f(d,new re(b.n,c,b.y)),e)?k:new re(b.n,c,j)},c):Ih(function(b){if(a.maxZoom<b.n)return k;var c=1<<b.n,d=-b.y-1;return 0>d||c<=d?k:new re(b.n,Fb(b.x,c),d)},c);Lh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
||||
extent:a.extent,projection:b,tileGrid:d,ba:c})}B(ki,Lh);function li(){ki.call(this,{attributions:[new ue('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ue('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(li,ki);
|
||||
function mi(){ki.call(this,{attributions:[new ue('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ue("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(mi,ki);function ni(){ki.call(this,{attributions:[new ue('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(ni,ki);function oi(a){var b=Ke(a.projection),c=b.G(),c=y(a.extent)?a.extent:c,d=y(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};e["1.3"<=d?"CRS":"SRS"]=b.a;Ua(e,a.params);var f=b.b;if(a.url)var g=Qc(Tc([a.url],e)),d=function(a,b){return Uc(g,"BBOX",("ne"==f.substr(0,2)?[a.j,a.h,a.i,a.k]:[a.h,a.j,a.k,a.i]).join(","),"HEIGHT",b.height,"WIDTH",b.width)};else d=rg;sg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,
|
||||
projection:b,resolutions:a.resolutions,Ga:d});this.b=k;this.f=1.5}B(oi,sg);oi.prototype.I=function(a,b){var c=b;this.a===k||(c=this.a[of(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.G(),d=d.h<=a.h&&a.k<=d.k&&d.j<=a.j&&a.i<=d.i;if(d)return c;var c=a=new N(a.h,a.j,a.k,a.i),e=this.f;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.j-=e;c.k+=d;c.i+=e;return this.b=tg(this,a,b,new $d(a.b()/b,a.a()/b))};var pi={ue:"background",ve:"labels",we:"lines",ye:"2010",ze:"2011",Ae:"2011-labels",Be:"2011-lines",Ce:"2011-lite",De:"background",Ee:"hybrid",Fe:"labels",Ge:"lines",He:"lite"},qi={te:"terrain",xe:"toner",Oe:"watercolor"},ri={terrain:{type:"jpg",pc:4,maxZoom:18},toner:{type:"png",pc:0,maxZoom:20},watercolor:{type:"jpg",pc:3,maxZoom:16}};
|
||||
function si(a){var b=new ue('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;y(a.flavor)&&(c+="-"+a.flavor);a=ri[a.provider];ki.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(si,ki);function ti(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;sg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Ga:function(){return e},resolutions:[d]});this.b=tg(this,b,d,c)}B(ti,sg);ti.prototype.I=function(a){return be(a,this.b.G())?this.b:k};var ui=[];A("grid",function(a){ui.push(a)});function vi(a){Lh.call(this,{projection:Le("EPSG:3857")});this.g=m;a=this.u=vh(a.uri,{$b:i});a.a.push([this.D,k,this]);a.ga&&rh(a)}B(vi,Lh);
|
||||
vi.prototype.D=function(){var a=ui.pop(),b=Le("EPSG:4326"),c,d;y(a.bounds)?(c=a.bounds,c=new N(c[0],c[1],c[2],c[3]),this.o=d=c.transform(Ne(b,this.l))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new Mh({maxZoom:f});this.tileGrid=g;this.ba=Ih(function(a){if(a.n<e||f<a.n)return k;var b=1<<a.n,c=-a.y-1;if(0>c||b<=c)return k;b=Fb(a.x,b);return d!==k&&!be($f(g,new re(a.n,b,a.y)),d)?k:new re(a.n,b,c)},Fh(ya(a.tiles,Eh)));if(y(a.attribution)){b=d===k?b.G():d;c={};var j,l;for(j=e;j<=f;++j)l=j.toString(),
|
||||
c[l]=[ag(g,b,g.a[j])];this.e=[new ue(a.attribution,c)]}this.g=i;J(this,"load")};vi.prototype.c=q("g");function wi(a){var b=Ke(a.projection),c=b.G(),d=y(a.extent)?a.extent:c,e=y(a.version)?a.version:"1.3",f,g;if(y(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.G();for(var l=Math.max(g.k-g.h,g.i-g.j),p=y(h)?h:new $d(256,256),j=Array((y(j)?j:18)+1),l=l/p.width,n=0,r=j.length;n<r;++n)j[n]=l/Math.pow(2,n);g=new Zf({origin:de(g),resolutions:j,tileSize:p})}f=g;var u={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};g=f.b;u.WIDTH=g.width;u.HEIGHT=g.height;u["1.3"<=e?
|
||||
"CRS":"SRS"]=b.a;Ua(u,a.params);var t=b.b;a.urls?(e=ya(a.urls,function(a){a=Qc(Tc([a],u));return Gh(a,f,t)}),e=Fh(e)):a.url?(e=Qc(Tc([a.url],u)),e=Gh(e,f,t)):e=Hh;Lh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,ba:Ih(function(a){if(f.a.length<=a.n)return k;var b=a.x,e=$f(f,a);d.h===c.h&&d.k===c.k&&(e=Math.ceil((d.k-d.h)/(e.k-e.h)),b=Fb(b,e),e=$f(f,new re(a.n,b,a.y)));return!be(e,d)?k:new re(a.n,b,a.y)},e)})}B(wi,Lh);A("goog.require",x);function xi(a){W.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(xi,W);A("ol.AnchoredElement",xi);A("ol.AnchoredElementPositioning",nh);nh.BOTTOM_LEFT="bottom-left";nh.BOTTOM_RIGHT="bottom-right";nh.TOP_LEFT="top-left";nh.TOP_RIGHT="top-right";A("ol.Attribution",ue);A("ol.BingMapsStyle",Nh);Nh.AERIAL="Aerial";Nh.AERIAL_WITH_LABELS="AerialWithLabels";Nh.COLLINS_BART="CollinsBart";Nh.ORDNANCE_SURVEY="OrdnanceSurvey";Nh.ROAD="Road";
|
||||
A("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.$c;M.prototype.getAt=M.prototype.ad;M.prototype.getLength=M.prototype.Za;M.prototype.insertAt=M.prototype.eb;M.prototype.pop=M.prototype.sc;M.prototype.push=M.prototype.push;M.prototype.removeAt=M.prototype.yc;M.prototype.setAt=M.prototype.Od;A("ol.Coordinate",K);K.toStringHDMS=function(a){return y(a)?Oc(a.y,"NS")+" "+Oc(a.x,"EW"):""};A("ol.Extent",N);
|
||||
N.prototype.getHeight=N.prototype.a;N.prototype.getWidth=N.prototype.b;A("ol.Geolocation",Y);
|
||||
function yi(a){U.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,shiftDragZoom:a.shiftDragZoom,target:a.target,touchPan:a.touchPan,touchRotateZoom:a.touchRotateZoom,view:a.view,zoomControl:a.zoomControl,zoomDelta:a.zoomDelta})}
|
||||
B(yi,U);A("ol.Map",yi);U.prototype.addPreRenderFunction=U.prototype.l;U.prototype.addPreRenderFunctions=U.prototype.Ic;U.prototype.getInteractions=U.prototype.Kc;U.prototype.getRenderer=U.prototype.Lc;$e.prototype.getCoordinate=$e.prototype.b;A("ol.Object",L);L.prototype.bindTo=L.prototype.Rc;L.prototype.changed=L.prototype.Uc;L.prototype.get=L.prototype.r;L.prototype.notify=L.prototype.rc;L.prototype.set=L.prototype.p;L.prototype.setOptions=L.prototype.Bc;L.prototype.setValues=L.prototype.mb;
|
||||
L.prototype.unbind=L.prototype.Wb;L.prototype.unbindAll=L.prototype.Wd;A("ol.Projection",P);P.prototype.getAxisOrientation=P.prototype.c;P.prototype.getCode=P.prototype.d;P.prototype.getExtent=P.prototype.G;P.prototype.getUnits=P.prototype.e;A("ol.ProjectionUnits",Be);Be.DEGREES="degrees";Be.METERS="m";A("ol.RendererHint",jh);jh.CANVAS="canvas";jh.DOM="dom";jh.WEBGL="webgl";A("ol.RendererHints",ih);ih.createFromQueryData=ih.Vc;
|
||||
function zi(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(zi,R);A("ol.View2D",zi);A("ol.animation",Ve);Ve.bounce=Ve.Bb;Ve.pan=Ve.Ka;Ve.rotate=Ve.rotate;Ve.zoom=Ve.zoom;function Ai(a){vf.call(this,{map:a.map,target:a.target})}B(Ai,vf);A("ol.control.Attribution",Ai);vf.prototype.setMap=vf.prototype.a;
|
||||
function Bi(a){Qh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Bi,Qh);A("ol.control.MousePosition",Bi);Qh.prototype.setMap=Qh.prototype.a;function Ci(a){wf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Ci,wf);A("ol.control.Zoom",Ci);wf.prototype.setMap=wf.prototype.a;A("ol.easing",Ue);Ue.bounce=Ue.Bb;Ue.elastic=Ue.Xc;Ue.linear=Ue.mc;Ue.upAndDown=Ue.Gc;A("ol.interaction.Keyboard",Sh);
|
||||
Sh.prototype.addCallback=Sh.prototype.b;function Di(a){Q.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Di,ug);A("ol.layer.ImageLayer",Di);function Ei(a){Q.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Ei,vg);A("ol.layer.TileLayer",Ei);A("ol.parser.ogc.WMSCapabilities",di);di.prototype.read=di.prototype.qa;
|
||||
A("ol.parser.ogc.WMTSCapabilities",hi);hi.prototype.read=hi.prototype.qa;A("ol.projection.addProjection",He);A("ol.projection.getFromCode",Le);A("ol.projection.getTransform",Ne);A("ol.projection.getTransformFromCodes",Pe);A("ol.projection.transform",function(a,b,c){return Ne(b,c)(a)});A("ol.projection.transformWithCodes",function(a,b,c){return Pe(b,c)(a)});zg.prototype.getCanvas=zg.prototype.Xa;A("ol.source.BingMaps",Oh);
|
||||
function Fi(a){ji.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Fi,ji);A("ol.source.DebugTileSource",Fi);A("ol.source.MapQuestOSM",li);A("ol.source.MapQuestOpenAerial",mi);A("ol.source.OpenStreetMap",ni);A("ol.source.SingleImageWMS",oi);A("ol.source.Stamen",si);A("ol.source.StamenFlavor",pi);pi.TERRAIN_BACKGROUND="background";pi.TERRAIN_LABELS="labels";pi.TERRAIN_LINES="lines";pi.TONER_2010="2010";pi.TONER_2011="2011";pi.TONER_2011_LABELS="2011-labels";
|
||||
pi.TONER_2011_LINES="2011-lines";pi.TONER_2011_LITE="2011-lite";pi.TONER_BACKGROUND="background";pi.TONER_HYBRID="hybrid";pi.TONER_LABELS="labels";pi.TONER_LINES="lines";pi.TONER_LITE="lite";A("ol.source.StamenProvider",qi);qi.TERRAIN="terrain";qi.TONER="toner";qi.WATERCOLOR="watercolor";A("ol.source.StaticImage",ti);A("ol.source.TileJSON",vi);A("ol.source.TiledWMS",wi);function Gi(a){Zf.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize})}B(Gi,Zf);
|
||||
A("ol.tilegrid.TileGrid",Gi);function Hi(a){Mh.call(this,{maxZoom:a.maxZoom})}B(Hi,Mh);A("ol.tilegrid.XYZ",Hi);Ve.ae={};Ve.qe={};Ve.se={};Ve.Qe={};})();
|
||||
$(a)},Value:function(a,c){c.values.push($(a))}}};var a=new ki;this.w["http://www.opengis.net/ows/1.1"]=a.w["http://www.opengis.net/ows/1.1"];Zh.call(this)}B(li,Zh);li.prototype.pa=function(a){"string"==typeof a&&(a=Yh(a));a&&9==a.nodeType&&(a=a.documentElement);var b={};$h(this,a,b);return b};function mi(a){a=a||{};a.defaultVersion="1.0.0";this.a={};this.a.v1_0_0=li;bi.call(this,a)}B(mi,bi);function ni(a,b){we.call(this,a);this.b=2;this.d=a;this.c=ig(b,a.m);this.a={}}B(ni,we);ni.prototype.I=function(a){a=y(a)?z(a):-1;if(a in this.a)return this.a[a];var b=this.c,c=Rb("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.d.toString(),b.width/2,b.height/2);return this.a[a]=c};
|
||||
function oi(a){jg.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid});this.a=new Ph}B(oi,jg);oi.prototype.f=function(){return this.a.Z()>this.a.d};oi.prototype.Ba=function(a){this.a.Ba(a)};oi.prototype.b=function(a){var b=a.toString();if($g(this.a,b))return ch(this.a,b);a=new ni(a,this.tileGrid);eh(this.a,b,a);return a};function pi(a){var b=a.projection||Qe("EPSG:3857"),c=Mh;y(a.ba)?c=a.ba:y(a.urls)?c=Kh(za(a.urls,Jh)):y(a.url)&&(c=Jh(a.url));var d=new Rh({maxZoom:a.maxZoom}),e=a.extent,c=e!=k?Nh(function(b){if(a.maxZoom<b.m)return k;var c=1<<b.m,j=-b.y-1;if(0>j||c<=j)return k;c=Gb(b.x,c);return!ce(dg(d,new se(b.m,c,b.y)),e)?k:new se(b.m,c,j)},c):Nh(function(b){if(a.maxZoom<b.m)return k;var c=1<<b.m,d=-b.y-1;return 0>d||c<=d?k:new se(b.m,Gb(b.x,c),d)},c);Qh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,
|
||||
extent:a.extent,projection:b,tileGrid:d,ba:c})}B(pi,Qh);function qi(){pi.call(this,{attributions:[new ve('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ve('Data © <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:28,url:"http://otile{1-4}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg"})}B(qi,pi);
|
||||
function ri(){pi.call(this,{attributions:[new ve('Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'),new ve("Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency")],maxZoom:18,url:"http://oatile{1-4}.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg"})}B(ri,pi);function si(){pi.call(this,{attributions:[new ve('© <a href="http://www.openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a>')],maxZoom:18,url:"http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"})}B(si,pi);function ti(a){var b=Pe(a.projection),c=b.G(),c=y(a.extent)?a.extent:c,d=y(a.version)?a.version:"1.3",e={SERVICE:"WMS",VERSION:d,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};e["1.3"<=d?"CRS":"SRS"]=b.a;Va(e,a.params);var f=b.b;if(a.url)var g=Rc(Uc([a.url],e)),d=function(a,b){return Vc(g,"BBOX",("ne"==f.substr(0,2)?[a.j,a.h,a.i,a.k]:[a.h,a.j,a.k,a.i]).join(","),"HEIGHT",b.height,"WIDTH",b.width)};else d=wg;xg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:c,
|
||||
projection:b,resolutions:a.resolutions,Fa:d});this.b=k;this.f=1.5}B(ti,xg);ti.prototype.I=function(a,b){var c=b;this.a===k||(c=this.a[rf(this.a,c)]);var b=c,c=this.b,d;if(d=c!==k)if(d=c.e==b)d=c.G(),d=d.h<=a.h&&a.k<=d.k&&d.j<=a.j&&a.i<=d.i;if(d)return c;var c=a=new N(a.h,a.j,a.k,a.i),e=this.f;d=c.b()/2*(e-1);e=c.a()/2*(e-1);c.h-=d;c.j-=e;c.k+=d;c.i+=e;return this.b=yg(this,a,b,new ae(a.b()/b,a.a()/b))};var ui={ue:"background",ve:"labels",we:"lines",ye:"2010",ze:"2011",Ae:"2011-labels",Be:"2011-lines",Ce:"2011-lite",De:"background",Ee:"hybrid",Fe:"labels",Ge:"lines",He:"lite"},vi={te:"terrain",xe:"toner",Oe:"watercolor"},wi={terrain:{type:"jpg",pc:4,maxZoom:18},toner:{type:"png",pc:0,maxZoom:20},watercolor:{type:"jpg",pc:3,maxZoom:16}};
|
||||
function xi(a){var b=new ve('Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'),c=a.provider;y(a.flavor)&&(c+="-"+a.flavor);a=wi[a.provider];pi.call(this,{attributions:[b],maxZoom:a.maxZoom,url:"http://{a-d}.tile.stamen.com/"+c+"/{z}/{x}/{y}."+a.type})}B(xi,pi);function yi(a){var b=a.imageExtent,c=a.imageSize,d=b.a()/c.height,e=a.url;xg.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:a.extent,projection:a.projection,Fa:function(){return e},resolutions:[d]});this.b=yg(this,b,d,c)}B(yi,xg);yi.prototype.I=function(a){return ce(a,this.b.G())?this.b:k};var zi=[];A("grid",function(a){zi.push(a)});function Ai(a){Qh.call(this,{projection:Qe("EPSG:3857")});this.g=l;a=this.u=Ah(a.uri,{$b:i});a.a.push([this.D,k,this]);a.ga&&wh(a)}B(Ai,Qh);
|
||||
Ai.prototype.D=function(){var a=zi.pop(),b=Qe("EPSG:4326"),c,d;y(a.bounds)?(c=a.bounds,c=new N(c[0],c[1],c[2],c[3]),this.o=d=c.transform(Ge(b,this.l))):d=c=k;var e=a.minzoom||0,f=a.maxzoom||22,g=new Rh({maxZoom:f});this.tileGrid=g;this.ba=Nh(function(a){if(a.m<e||f<a.m)return k;var b=1<<a.m,c=-a.y-1;if(0>c||b<=c)return k;b=Gb(a.x,b);return d!==k&&!ce(dg(g,new se(a.m,b,a.y)),d)?k:new se(a.m,b,c)},Kh(za(a.tiles,Jh)));if(y(a.attribution)){b=d===k?b.G():d;c={};var j,m;for(j=e;j<=f;++j)m=j.toString(),
|
||||
c[m]=[eg(g,b,g.a[j])];this.e=[new ve(a.attribution,c)]}this.g=i;J(this,"load")};Ai.prototype.c=p("g");function Bi(a){var b=Pe(a.projection),c=b.G(),d=y(a.extent)?a.extent:c,e=y(a.version)?a.version:"1.3",f,g;if(y(a.tileGrid))g=a.tileGrid;else{var j=a.maxZoom;g=b.G();for(var m=Math.max(g.k-g.h,g.i-g.j),q=y(h)?h:new ae(256,256),j=Array((y(j)?j:18)+1),m=m/q.width,n=0,r=j.length;n<r;++n)j[n]=m/Math.pow(2,n);g=new cg({origin:ee(g),resolutions:j,tileSize:q})}f=g;var t={SERVICE:"WMS",VERSION:e,REQUEST:"GetMap",STYLES:"",FORMAT:"image/png",TRANSPARENT:i};t["1.3"<=e?"CRS":"SRS"]=b.a;Va(t,a.params);var u=b.b;
|
||||
a.urls?(e=za(a.urls,function(a){a=Rc(Uc([a],t));return Lh(a,f,u)}),e=Kh(e)):a.url?(e=Rc(Uc([a.url],t)),e=Lh(e,f,u)):e=Mh;Qh.call(this,{attributions:a.attributions,crossOrigin:a.crossOrigin,extent:d,tileGrid:f,projection:b,ba:Nh(function(a){if(f.a.length<=a.m)return k;var b=a.x,e=dg(f,a);d.h===c.h&&d.k===c.k&&(e=Math.ceil((d.k-d.h)/(e.k-e.h)),b=Gb(b,e),e=dg(f,new se(a.m,b,a.y)));return!ce(e,d)?k:new se(a.m,b,a.y)},e)})}B(Bi,Qh);A("goog.require",x);function Ci(a){W.call(this,{element:a.element,map:a.map,position:a.position,positioning:a.positioning})}B(Ci,W);A("ol.AnchoredElement",Ci);A("ol.AnchoredElementPositioning",sh);sh.BOTTOM_LEFT="bottom-left";sh.BOTTOM_RIGHT="bottom-right";sh.TOP_LEFT="top-left";sh.TOP_RIGHT="top-right";A("ol.Attribution",ve);A("ol.BingMapsStyle",Sh);Sh.AERIAL="Aerial";Sh.AERIAL_WITH_LABELS="AerialWithLabels";Sh.COLLINS_BART="CollinsBart";Sh.ORDNANCE_SURVEY="OrdnanceSurvey";Sh.ROAD="Road";
|
||||
A("ol.Collection",M);M.prototype.clear=M.prototype.clear;M.prototype.forEach=M.prototype.forEach;M.prototype.getArray=M.prototype.$c;M.prototype.getAt=M.prototype.ad;M.prototype.getLength=M.prototype.Za;M.prototype.insertAt=M.prototype.eb;M.prototype.pop=M.prototype.sc;M.prototype.push=M.prototype.push;M.prototype.removeAt=M.prototype.yc;M.prototype.setAt=M.prototype.Od;A("ol.Coordinate",K);K.toStringHDMS=function(a){return y(a)?Pc(a.y,"NS")+" "+Pc(a.x,"EW"):""};A("ol.Extent",N);
|
||||
N.prototype.getHeight=N.prototype.a;N.prototype.getWidth=N.prototype.b;A("ol.Geolocation",X);
|
||||
function Di(a){T.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,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(Di,T);A("ol.Map",Di);T.prototype.addPreRenderFunction=T.prototype.l;T.prototype.addPreRenderFunctions=T.prototype.Ic;T.prototype.getInteractions=T.prototype.Kc;T.prototype.getRenderer=T.prototype.Lc;cf.prototype.getCoordinate=cf.prototype.b;A("ol.Object",L);L.prototype.bindTo=L.prototype.Rc;L.prototype.changed=L.prototype.Uc;L.prototype.get=L.prototype.r;L.prototype.notify=L.prototype.rc;L.prototype.set=L.prototype.p;L.prototype.setOptions=L.prototype.Bc;L.prototype.setValues=L.prototype.mb;
|
||||
L.prototype.unbind=L.prototype.Wb;L.prototype.unbindAll=L.prototype.Wd;A("ol.Projection",P);P.prototype.getAxisOrientation=P.prototype.f;P.prototype.getCode=P.prototype.g;P.prototype.getExtent=P.prototype.G;P.prototype.getPointResolution=P.prototype.c;P.prototype.getUnits=P.prototype.o;A("ol.ProjectionUnits",Ee);Ee.DEGREES="degrees";Ee.METERS="m";A("ol.RendererHint",oh);oh.CANVAS="canvas";oh.DOM="dom";oh.WEBGL="webgl";A("ol.RendererHints",nh);nh.createFromQueryData=nh.Vc;
|
||||
function Ei(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(Ei,R);A("ol.View2D",Ei);A("ol.animation",Ye);Ye.bounce=Ye.Bb;Ye.pan=Ye.Ka;Ye.rotate=Ye.rotate;Ye.zoom=Ye.zoom;function Fi(a){yf.call(this,{map:a.map,target:a.target})}B(Fi,yf);A("ol.control.Attribution",Fi);yf.prototype.setMap=yf.prototype.a;
|
||||
function Gi(a){Vh.call(this,{coordinateFormat:a.coordinateFormat,map:a.map,projection:a.projection,target:a.target,undefinedHTML:a.undefinedHTML})}B(Gi,Vh);A("ol.control.MousePosition",Gi);Vh.prototype.setMap=Vh.prototype.a;function Hi(a){zf.call(this,{delta:a.delta,map:a.map,target:a.target})}B(Hi,zf);A("ol.control.Zoom",Hi);zf.prototype.setMap=zf.prototype.a;A("ol.easing",Xe);Xe.bounce=Xe.Bb;Xe.elastic=Xe.Xc;Xe.linear=Xe.mc;Xe.upAndDown=Xe.Gc;A("ol.interaction.Keyboard",Xh);
|
||||
Xh.prototype.addCallback=Xh.prototype.b;function Ii(a){Q.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Ii,zg);A("ol.layer.ImageLayer",Ii);function Ji(a){Q.call(this,{brightness:a.brightness,contrast:a.contrast,hue:a.hue,opacity:a.opacity,saturation:a.saturation,source:a.source,visible:a.visible})}B(Ji,Ag);A("ol.layer.TileLayer",Ji);A("ol.parser.ogc.WMSCapabilities",ii);ii.prototype.read=ii.prototype.pa;
|
||||
A("ol.parser.ogc.WMTSCapabilities",mi);mi.prototype.read=mi.prototype.pa;A("ol.projection.addProjection",Me);A("ol.projection.getFromCode",Qe);A("ol.projection.getTransform",Ge);A("ol.projection.getTransformFromCodes",Se);A("ol.projection.transform",function(a,b,c){b=Ge(b,c);a=[a.x,a.y];a=b(a,a,2);return new K(a[0],a[1])});A("ol.projection.transformWithCodes",function(a,b,c){b=Se(b,c);a=[a.x,a.y];a=b(a,a,2);return new K(a[0],a[1])});Eg.prototype.getCanvas=Eg.prototype.Xa;A("ol.source.BingMaps",Th);
|
||||
function Ki(a){oi.call(this,{extent:a.extent,projection:a.projection,tileGrid:a.tileGrid})}B(Ki,oi);A("ol.source.DebugTileSource",Ki);A("ol.source.MapQuestOSM",qi);A("ol.source.MapQuestOpenAerial",ri);A("ol.source.OpenStreetMap",si);A("ol.source.SingleImageWMS",ti);A("ol.source.Stamen",xi);A("ol.source.StamenFlavor",ui);ui.TERRAIN_BACKGROUND="background";ui.TERRAIN_LABELS="labels";ui.TERRAIN_LINES="lines";ui.TONER_2010="2010";ui.TONER_2011="2011";ui.TONER_2011_LABELS="2011-labels";
|
||||
ui.TONER_2011_LINES="2011-lines";ui.TONER_2011_LITE="2011-lite";ui.TONER_BACKGROUND="background";ui.TONER_HYBRID="hybrid";ui.TONER_LABELS="labels";ui.TONER_LINES="lines";ui.TONER_LITE="lite";A("ol.source.StamenProvider",vi);vi.TERRAIN="terrain";vi.TONER="toner";vi.WATERCOLOR="watercolor";A("ol.source.StaticImage",yi);A("ol.source.TileJSON",Ai);A("ol.source.TiledWMS",Bi);
|
||||
function Li(a){cg.call(this,{origin:a.origin,origins:a.origins,resolutions:a.resolutions,tileSize:a.tileSize,tileSizes:a.tileSizes})}B(Li,cg);A("ol.tilegrid.TileGrid",Li);function Mi(a){Rh.call(this,{maxZoom:a.maxZoom})}B(Mi,Rh);A("ol.tilegrid.XYZ",Mi);Ye.ae={};Ye.qe={};Ye.se={};Ye.Qe={};})();
|
||||
|
||||
Reference in New Issue
Block a user