| OpenLayers. | |
| Properties | |
| isBaseLayer | {Boolean} KaMap Layer is always a base layer |
| Constants | |
| DEFAULT_PARAMS | {Object} parameters set by default. |
| Constructor | |
| OpenLayers. | |
| Functions | |
| getURL | |
| calculateGridLayout | ka-Map uses the center point of the map as an origin for its tiles. |
| getTileBoundsForGridIndex | |
| clone | |
| getTileBounds | Returns The tile bounds for a layer given a pixel location. |
| name | {String} |
| url | {String} |
| params | {Object} Parameters to be sent to the HTTP server in the query string for the tile. The format can be set via the ‘i’ parameter (defaults to jpg) , and the map should be set via the ‘map’ parameter. It has been reported that ka-Map may behave inconsistently if your format parameter does not match the format parameter configured in your config.php. (See ticket #327 for more information.) |
| options | {Object} Additional options for the layer. Any of the APIProperties listed on this layer, and any layer types it extends, can be overridden through the options parameter. |
getURL: function ( bounds )
| 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
calculateGridLayout: function( bounds, origin, resolution )
ka-Map uses the center point of the map as an origin for its tiles. Override calculateGridLayout to center tiles correctly for this case.
| bounds | {<OpenLayers.Bound>} |
| origin | {OpenLayers.LonLat} |
| resolution | {Number} |
{Object} Object containing properties tilelon, tilelat, startcol, startrow
getTileBoundsForGridIndex: function( row, col )
| row | {Number} The row of the grid |
| col | {Number} The column of the grid |
{OpenLayers.Bounds} The bounds for the tile at (row, col)
getTileBounds: function( viewPortPx )
Returns The tile bounds for a layer given a pixel location.
| viewPortPx | {OpenLayers.Pixel} The location in the viewport. |
{OpenLayers.Bounds} Bounds of the tile at the given pixel location.
getURL: function ( bounds )
ka-Map uses the center point of the map as an origin for its tiles.
calculateGridLayout: function( bounds, origin, resolution )
getTileBoundsForGridIndex: function( row, col )
clone: function ( obj )
Returns The tile bounds for a layer given a pixel location.
getTileBounds: function( viewPortPx )