Tile js


OpenLayers.Tile - OpenLayers OpenLayers.TileThis is a class designed to designate a single tile, however it is explicitly designed to do relatively little.  Tiles store information about themselves -- such as the URL that they are related to, and their size - but do not add themselves to the layer div automatically, for example.  Create a new tile with the OpenLayers.Tile constructor, or a subclass.TBD 3.0remove reference to url in above paragraphSummaryOpenLayers.TileThis is a class designed to designate a single tile, however it is explicitly designed to do relatively little. Propertiesevents{OpenLayers.Events} An events object that handles all events on the tile.eventListeners{Object} If set as an option at construction, the eventListeners object will be registered with OpenLayers.Events.on. id{String} nulllayer{OpenLayers.Layer} layer the tile is attached tourl{String} url of the request.bounds{OpenLayers.Bounds} nullsize{OpenLayers.Size} nullposition{OpenLayers.Pixel} Top Left pixel of the tileisLoading{Boolean} Is the tile loading?ConstructorOpenLayers.TileConstructor for a new OpenLayers.Tile instance.FunctionsunloadCall immediately before destroying if you are listening to tile events, so that counters are properly handled if tile is still loading at destroy-time. destroyNullify references to prevent circular references and memory leaks.drawClear whatever is currently in the tile, then return whether or not it should actually be re-drawn. shouldDrawReturn whether or not the tile should actually be (re-)drawn. setBoundsSets the bounds on this instancemoveToReposition the tile.clearClear the tile of any bounds/position-related data so that it can be reused in a new location. Properties events{OpenLayers.Events} An events object that handles all events on the tile.Register a listener for a particular event with the following syntaxtile.events.register(type, obj, listener);Supported event typesbeforedrawTriggered before the tile is drawn.  Used to defer drawing to an animation queue.  To defer drawing, listeners need to return false, which will abort drawing.  The queue handler needs to call <draw>(true) to actually draw the tile.loadstartTriggered when tile loading starts.loadendTriggered when tile loading ends.loaderrorTriggered before the loadend event (i.e. when the tile is still hidden) if the tile could not be loaded.reloadTriggered when an already loading tile is reloaded.unloadTriggered before a tile is unloaded. eventListeners{Object} If set as an option at construction, the eventListeners object will be registered with OpenLayers.Events.on.  Object structure must be a listeners object as shown in the example for the events.on method.This options can be set in the ``tileOptions`` option from OpenLayers.Layer.Grid.  For example, to be notified of the ``loadend`` event of each tiles:new OpenLayers.Layer.OSM('osm', 'http://tile.openstreetmap.org/${z}/${x}/${y}.png', { tileOptions: { eventListeners: { 'loadend': function(evt) { // do something on loadend } } } }); id{String} null layer{OpenLayers.Layer} layer the tile is attached to url{String} url of the request.TBD 3.0 Deprecated.  The base tile class does not need an url.  This should be handled in subclasses.  Does not belong here. bounds{OpenLayers.Bounds} null size{OpenLayers.Size} null position{OpenLayers.Pixel} Top Left pixel of the tile isLoading{Boolean} Is the tile loading? Constructor OpenLayers.TileConstructor for a new OpenLayers.Tile instance.Parameterslayer{OpenLayers.Layer} layer that the tile will go in.position{OpenLayers.Pixel}bounds{OpenLayers.Bounds}url{String}size{OpenLayers.Size}options{Object} Functions unloadunload: function()Call immediately before destroying if you are listening to tile events, so that counters are properly handled if tile is still loading at destroy-time.  Will only fire an event if the tile is still loading. destroydestroy:function()Nullify references to prevent circular references and memory leaks. drawdraw: function(deferred)Clear whatever is currently in the tile, then return whether or not it should actually be re-drawn.  This is an example implementation that can be overridden by subclasses.  The minimum thing to do here is to call clear and return the result from shouldDraw.Parametersdeferred{Boolean} When drawing was aborted by returning false from a beforedraw listener, the queue manager needs to pass true, so the tile will not be cleared and immediately be drawn.  Otherwise, the tile will be cleared and a beforedraw event will be fired.Returns{Boolean} Whether or not the tile should actually be drawn. shouldDrawshouldDraw: function()Return whether or not the tile should actually be (re-)drawn.  The only case where we wouldn’t want to draw the tile is if the tile is outside its layer’s maxExtentReturns{Boolean} Whether or not the tile should actually be drawn. setBoundssetBounds: function(bounds)Sets the bounds on this instanceParametersbounds {OpenLayers.Bounds} moveTomoveTo: function (bounds,position,redraw)Reposition the tile.Parametersbounds{OpenLayers.Bounds}position{OpenLayers.Pixel}redraw{Boolean} Call draw method on tile after moving.  Default is true clearclear: function(draw)Clear the tile of any bounds/position-related data so that it can be reused in a new location. Generated by Natural Docs OpenLayersJavaScript Mapping LibraryOpenLayersOpenLayersBaseTypesBase TypesBoundsClassDateElementLonLatPixelSizeControlControlControlArgParserAttributionButtonCacheReadCacheWriteDragFeatureDragPanDrawFeatureEditingToolbarGeolocateGetFeatureGraticuleKeyboardDefaultsLayerSwitcherMeasureModifyFeatureMousePositionNavigationNavigationHistoryNavToolbarOverviewMapPanPanelPanPanelPanZoomPanZoomBarPermalinkPinchZoomScaleScaleLineSelectFeatureSLDSelectSnappingSplitTouchNavigationTransformFeatureUTFGridWMSGetFeatureInfoWMTSGetFeatureInfoZoomZoomBoxZoomInZoomOutZoomPanelZoomToMaxExtentFeatureFeatureVectorFilterFilterComparisonFeatureIdFunctionLogicalSpatialFormatFormatArcXMLArcXML.FeaturesAtomContextCQLCSWGetDomainCSWGetDomain.v2_0_2CSWGetRecordsCSWGetRecords.v2_0_2FilterFilterv1v1_0_0v1_1_0GMLGMLBasev2v3SLDSLDSLD/v1_0_0_GeoServerv1v1_0_0GeoJSONGeoRSSGPXJSONKMLOGCExceptionReportOSMOWSCommonOWSCommonv1v1_0_0v1_1_0OWSContextOWSContext.v0_3_1QueryStringFilterSOSCapabilitiesSOSCapabilities.v1_0_0SOSGetFeatureOfInterestSOSGetObservationTextVersionedOGCWCSGetCoverage version 1.1.0WFSWFSCapabilitiesWFSCapabilitiesv1v1_0_0v1_1_0WFSTWFSTv1v1_0_0v1_1_0WMCWMCv1v1_0_0v1_1_0WMSCapabilitiesWMSCapabilitiesv1v1_1v1_1_0v1_1_1v1_3v1_3_0WMSCapabilities/v1_1_1_WMSCWMSDescribeLayerWMSDescribeLayerv1_1WFSDescribeFeatureTypeWKTWMSGetFeatureInfoWMTSCapabilitiesWMTSCapabilities.v1_0_0WPSCapabilitiesWPSCapabilities.v1_0_0WPSDescribeProcessWPSExecute version 1.0.0XLSXLS.v1XLS.v1_1_0XMLGeometryGeometryCollectionCurveLinearRingLineStringMultiLineStringMultiPointMultiPolygonPointPolygonHandlerHandlerBoxClickDragFeatureHoverKeyboardMouseWheelPathPinchPointPolygonRegularPolygonLangLangarbe-taraskbgbrcacs-CZda-DKdeenen-CAeselfifrfurglgswhrhsbhuiaidioisitjakmkshltndsnbnlnnocplptpt-BRrusksv-SEtevizh-CNzh-TWLayerLayerLayerArcGISCache.jsArcGIS93RestArcIMSBingBoxesEventPaneFixedZoomLevelsGeoRSSGoogleGoogle.v3GridHTTPRequestImageKaMapKaMapCacheMapGuideMapServerMarkersPointGridPointTrackSphericalMercatorTextTileCacheTMSVectorVector.RootContainerWMSWMTSWorldWindXYZZoomifyOSMUTFGridMarkerMarkerBoxPopupPopupAnchoredAnchoredBubbleFramedFramedCloudProtocolProtocolProtocolCSWCSW.v2_0_2HTTPScriptSOS.DEFAULTSSOS.v1_0_0WFSWFSv1v1_0_0v1_1_0RendererRendererCanvasElementsIndexerSVGVMLRequestRequestXMLHttpRequestStrategyStrategyBBOXClusterFilterFixedPagingRefreshSaveSymbolizerSymbolizerLinePointPolygonRasterTextTileTileImageImage.IFrameUTFGridDeprecatedOpenLayersConsoleEventsIconKineticMapProjectionRuleSingleFile.jsStyleStyle2StyleMapTweenUtilSphericalAnimationEvents.buttonclickIndexEverythingClassesConstantsFunctionsPropertiesFilesConstructorEverythingClassesConstantsConstructorFilesFunctionsProperties on: function(object)Convenience method for registering listeners with a common scope. Instances of this class represent bounding boxes. Instances of this class represent a width/height pairThis class represents a screen coordinate, in x and y coordinatesConstructor for a new OpenLayers.Tile instance.unload: function()Call immediately before destroying if you are listening to tile events, so that counters are properly handled if tile is still loading at destroy-time. destroy:function()Nullify references to prevent circular references and memory leaks.draw: function(deferred)Clear whatever is currently in the tile, then return whether or not it should actually be re-drawn. shouldDraw: function()Return whether or not the tile should actually be (re-)drawn. setBounds: function(bounds)Sets the bounds on this instancemoveTo: function (bounds,position,redraw)Reposition the tile.clear: function(draw)Clear the tile of any bounds/position-related data so that it can be reused in a new location.Base class for layers that use a lattice of tiles. Contains convenience functions for string manipulation. Close

Wyszukiwarka

Podobne podstrony:
Tile js
Util js
js zegarek na www
Animation js
Format js
Map js
livehelp js
PHP JS readme
Style js
b js
Rule js
js 6
help?llon js source
js 4
Format js
js lab2
Jś Wytrębowiczowi

więcej podobnych podstron