| OpenLayers. Layer. KaMap | |
| Properties | |
| isBaseLayer | {Boolean} KaMap Layer is always a base layer |
| units | {?} |
| resolution | {Float} |
| Constants | |
| DEFAULT_PARAMS | {Object} parameters set by default. |
| Constructor | |
| OpenLayers. Layer. KaMap | |
| Functions | |
| getURL | |
| addTile | |
| calculateGridLayout | ka-Map uses the center point of the map as an origin for its tiles. |
| 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
addTile:function( bounds, position )
| bounds | {OpenLayers.Bounds} |
| position | {OpenLayers.Pixel} |
calculateGridLayout: function( bounds, extent, 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>} |
| extent | {OpenLayers.Bounds} |
| resolution | {Number} |
Object containing properties tilelon, tilelat, tileoffsetlat, tileoffsetlat, tileoffsetx, tileoffsety
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 )
addTile:function( bounds, position )
ka-Map uses the center point of the map as an origin for its tiles.
calculateGridLayout: function( bounds, extent, resolution )
clone: function ( obj )
Returns The tile bounds for a layer given a pixel location.
getTileBounds: function( viewPortPx )