OpenLayers JavaScript Mapping Library |
OpenLayers. Tile. ImageInstances of OpenLayers.Tile.Image are used to manage the image tiles used by various layers. Create a new image tile with the OpenLayers.Tile.Image constructor. Inherits fromSummary
OpenLayers. Tile. ImageConstructor for a new OpenLayers.Tile.Image instance. Parameters
checkImgURL
Make sure that the image that just loaded is the one this tile is meant to display, since panning/zooming might have changed the tile’s URL in the meantime. If the tile URL did change before the image loaded, set the imgDiv display to ‘none’, as either (a) it will be reset to visible when the new URL loads in the image, or (b) we don’t want to display this tile after all because its new bounds are outside our maxExtent. This function should no longer be neccesary with the improvements to Grid.js in OpenLayers 2.3. The lack of a good isEquivilantURL function caused problems in 2.2, but it’s possible that with the improved isEquivilant URL function, this might be neccesary at some point. See discussion in the thread at http://openlayers.org- /pipermail- /dev- /2007-January- /000205.html |
nullify references to prevent circular references and memory leaks
destroy: function()
Check that a tile should be drawn, and draw it.
draw:function()
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
clear: function()
Creates the imgDiv property on the tile.
initImgDiv: function()
Make sure that the image that just loaded is the one this tile is meant to display, since panning/zooming might have changed the tile’s URL in the meantime.
checkImgURL: function ()