IFrame.js | |
Constants | |
OpenLayers. | Mixin for tiles that use form-encoded POST requests to get images from remote services. |
Properties | |
useIFrame | {Boolean} true if we are currently using an IFrame to render POST responses, false if we are using an img element to render GET responses. |
Functions | |
draw | Set useIFrame in the instance, and operate the image/iframe switch. |
getImage | Creates the content for the frame on the tile. |
createRequestForm | Create the html <form> element with width, height, bbox and all parameters specified in the layer params. |
setImgSrc | Sets the source for the tile image |
onImageLoad | Handler for the image onload event |
createBackBuffer | Override createBackBuffer to do nothing when we use an iframe. |
Mixin for tiles that use form-encoded POST requests to get images from remote services. Images will be loaded using HTTP-POST into an IFrame.
This mixin will be applied to OpenLayers.Tile.Image instances configured with OpenLayers.Tile.Image.maxGetUrlLength set.
Set useIFrame in the instance, and operate the image/iframe switch.
draw: function()
Creates the content for the frame on the tile.
getImage: function()
Create the html form element with width, height, bbox and all parameters specified in the layer params.
createRequestForm: function()
Sets the source for the tile image
setImgSrc: function( url )
Handler for the image onload event
onImageLoad: function()
Override createBackBuffer to do nothing when we use an iframe.
createBackBuffer: function()