parameters needed to open the iframe popup
Error if invalid parameters are passed
// Open an embedded popup of k2geospatial website
JMap.UI.openIFramePopup({
src: "https://my.web.site.com/",
initialPosition: { x: 400, y: 250 },
initialWidth: 400,
initialHeight: 250,
title: "My embeded web page",
resizable: true
})
JMap.UI.openIFramePopup
Opens a embedded page in a popup that is movable (and resizable in options).
Only one iframe popup can be open at the same time.
Parameters initialWidth and initialHeight are in pixels.
Embedding a page that sets the
X-Frame-Options
orContent-Security-Policy: frame-ancestors
headers in an incompatible way may cause the display of the page to fail.See
here
andhere
for details