openlayers wms点击查询报错
报错如下: 1 2 3 4 5 6 <?xml version="1.0" encoding="UTF-8"?> <ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://fzzt.fzjhdn.com:10080/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd"> <ServiceException code="LayerNotQueryable" locator="QUERY_LAYERS"> Either no layer was queryable, or no layers were specified using QUERY_LAYERS </ServiceException> </ServiceExceptionReport> 代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 var view = map.getView(); var viewResolution =...