Hi,

http://docs.geoserver.org/stable/en/user/services/wms/global.html#wms-global-variables

set System variable ENABLE_JSONP=true and outFormat=text/javascript

regards,
Imran



On Tue, Apr 9, 2013 at 2:05 AM, Michael Savarese <geomajo...@gmail.com>wrote:

> 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');
> }
>  });
>
> });
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
I.R
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to