有什么解决方案可以增加ajax弹出窗口中的文本量?

时间:2018-12-29 14:43:57

标签: jquery html ajax database popup

ajax弹出窗口不会显示数据库中的所有文本。此屏幕显示我的问题。 https://uam-my.sharepoint.com/:i:/g/personal/marwas4_st_amu_edu_pl/EZzKWmU0uDZKl2wVmA45ITYBFPI8wZch5eCIkbtimXK5Nw?e=DqkAHj

gs_url="http://localhost:8080/geoserver/wms"
var defaultParam = {
 service: 'WFS',
 version: '1.3.0',
 request: 'GetFeature',
 typeName: 'dane:obiekty',
 maxFeatures: 1000,
 outputFormat: 'json',  
 srsName: 'epsg:4326', 
};
 var parameters = L.Util.extend(defaultParam);
 var obiektyURL = gs_url + L.Util.getParamString(parameters);
 var obiekty= new L.GeoJSON.AJAX(obiektyURL,
  {onEachFeature: function (feature, layer) {
layer.setIcon(nieb_icon);


var popupContent = "<b>Informacje o obiekcie bojowym:</b><ul><li>Nazwa: " + feature.properties.nazwa+ 
"</li><li>Typ: " + feature.properties.typ+ "</li><li>Opis: "+feature.properties.opis+" </li></ul>";
if (feature.properties.zdj != null) popupContent=popupContent+feature.properties.zdj;
layer.bindPopup(popupContent);
}});    

0 个答案:

没有答案