Sample code to create a popup anchored to a feature:
var popup = new GeoExt.Popup({
title: "My Popup",
location: feature,
width: 200,
html: "<div>Popup content</div>",
collapsible: true
});
Configuration properties in addition to those listed for Ext.Window.
Public methods in addition to those listed for Ext.Window.
Parameters: |
|
---|
Sets the size of the popup, taking into account the size of the anchor.