Openlayers 3, getfeautreinfo and geowebcache

المشرف العام

Administrator
طاقم الإدارة
I am having a bit of trouble using the getGetFeatureInfo function on the TileWMS source in OL3. It works, but it represents the X/Y-parameters as I/J in the generated URL.

/geowebcache/service/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=mylayer&LAYERS=mylayer&SRS=EPSG%3A32633&CQL_FILTER=TIME%20TEQUALS2015-12-07T18%3A00%3A00)&INFO_FORMAT=text%2Fhtml&FEATURE_COUNT=50&I=162&J=125&WIDTH=256&HEIGHT=256&CRS=EPSG%3A32633&BBOX=294656%2C6706272%2C316320%2C6727936&callback=

This gives me the following error: 400: The parameters for x and y must both be positive integers.

If I exchange I for X and J for Y in the above URL, it works fine.

How can I make this work? Is the some setting in geowebcache that can be used for it to accept I/J? Or can I do something in OL3 to make it generate X/Y instead of I/J?

Thanks!



أكثر...
 
أعلى