The XYZ class is designed to make it easier for people who have tiles arranged by a standard XYZ grid.
OpenLayers. Layer.XYZ | 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. Layer.XYZ | |
Functions | |
clone | Create a clone of this layer |
setMap | When the layer is added to a map, then we can fetch our origin (if we don’t have one.) |
OpenLayers. Layer.OSM | 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
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 )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
setMap: function( map )