openlayerでポイントレイヤーオーバーレイを行いました。任意のポイントをクリックすると、テーブルのすべてのデータがポップアップで表示されます。ポップアップのデータ量を制御するには?
コードは次のとおりです。
....
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://localhost:8080/geoserver/layername/wms', // geoserver point layer
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"ABCD",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
map.addControl(info);
info.activate();
現在のポップアップのスクリーンショットは
( )
ポップアップに location_name といくつかの html コンテンツが必要なだけです。どうやってするか?