The XYZ class is designed to make it easier for people who have tiles arranged by a standard XYZ grid.
OpenLayers. | The XYZ class is designed to make it easier for people who have tiles arranged by a standard XYZ grid. |
Properties | |
isBaseLayer | Default is true, as this is designed to be a base tile source. |
sphericalMecator | Whether the tile extents should be set to the defaults for spherical mercator. |
Constructor | |
OpenLayers. | |
Functions | |
clone | Create a clone of this layer |
getUrl | |
addTile | addTile creates a tile, initializes it, and adds it to the layer div. |
setMap | When the layer is added to a map, then we can fetch our origin (if we don’t have one.) |
OpenLayers. | A class to access OpenStreetMap tiles. |
clone: function ( obj )
Create a clone of this layer
obj | {Object} Is this ever used? |
{OpenLayers.Layer.Grid} An exact clone of this OpenLayers.Layer.Grid
bounds | {OpenLayers.Bounds} |
{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters
addTile:function( bounds, position )
addTile creates a tile, initializes it, and adds it to the layer div.
bounds | {OpenLayers.Bounds} |
position | {OpenLayers.Pixel} |
{OpenLayers.Tile.Image} The added OpenLayers.Tile.Image
setMap: function( map )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
map | {OpenLayers.Map} |
A class to access OpenStreetMap tiles. By default, uses the OpenStreetMap hosted tile.openstreetmap.org ‘Mapnik’ tileset. If you wish to use tiles@home / osmarender layer instead, you can pass a layer like:
new OpenLayers.Layer.OSM("t@h", "http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png");
This layer defaults to Spherical Mercator.
Create a clone of this layer
clone: function ( obj )
addTile creates a tile, initializes it, and adds it to the layer div.
addTile:function( bounds, position )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
setMap: function( map )