I’ve upgraded to GeoServer 2.3 with tomcat on a remote host. The docs say that ENABLE_SJONP is set to false. How do I go about changing that to true.
Be kind please I’m less than able with server side things.
The following used to work on 2.1.3,
thanks in advance for any help at all
Michael
map.on(‘geosearch_showlocation’, function(result) {
thisLatLon = result.Location.X + " " + result.Location.Y;
var rootUrl = ‘http://tomcat.capecodgis.com/geoserver/capecodgis/ows’;
var defaultParameters = {
service : ‘WFS’,
version : ‘1.0.0’,
request : ‘GetFeature’,
typeName : ‘capecodgis:cape_town_lines’,
maxFeatures : 10,
outputFormat : ‘jsonp’,
format_options : ‘callback:getJson’
};
var customParams = {
//bbox : map.getBounds().toBBoxString(),
cql_filter : ‘CONTAINS(the_geom, POINT(’ + thisLatLon + ‘))’
};
var parameters = L.Util.extend(defaultParameters), customParams);
console.log(rootUrl + L.Util.getParamString(parameters));
$.ajax({
url : rootUrl + L.Util.getParamString(parameters),
dataType : ‘jsonp’,
jsonpCallback : ‘getJson’,
success : function(data) {
geojsonLayer.addData(data);
currentAddress.addLayer(geojsonLayer)
},
error : function() {
console.log(‘problems with data transfer’);
}
});
});