heigeo/leaflet.wms

"X and Y incorrectly specified"

hoge6b01 opened this issue · 10 comments

Hi,

thanks for you great peace of code. I love the embedded popup function.
But it's not working as expected.
Clicking on a WMS feature gives me
"X and Y incorrectly specified".
The WMS is coming from my hosted geoserver with ESPG: 3857
Do you have a clue what I have to change?
Thanks

edit: If you need the code I can publish it on a JSFiddle

This should be fixed in #24, let us know otherwise.

Hi guys. I have the same problem (X and Y incorrectly specified). However, I've tried to understand the answer but it's not clear for me. Please, Can you explain more details to resolve it?. I know is a CLOSED issue. Please, help me.

Lucho

I have the same problem (X and Y incorrectly specified).

Could you provide some details? Browser request / response and what WMS server you use at least.

Hi @apdevelop , yes. I'm working in localhost. I have a web map developed with Leaflet, databases in PostGIS and web map server in GeoServer. I instantiate many layers.
1
In first picture, you can identify a specific layer (Primaria), and popUp works good.

2
Second picture, turn on 'Secundaria' layer, but you can't review the popup information.

3
When I inspectioned, I have 2 error messages.

4
Panel said me: X and Y incorrectly specified.

Thanks!!!

@lefcgis, the most important information is on Network tab, where you can see all details of client (leaflet.wms library) GetFeatureInfo request and server (WMS) response.
Without it I can only intuitively suggest, that there is possible issue with declared/used WMS protocol version: the 1.1.1 version use parameters named x and y, the 1.3.0 use i and j with the same meaning. In both cases they must be integer numbers (pixel coordinates).

Hi @apdevelop . I'm sorry for delayed. I attach the specific image that you mentioned. I can't resolve yet
1

I attach the specific image

Unfortunately, the details (url parameters) of these GetFeatureInfo requests (the 2nd and 3rd requests from the top) aren't visible. You can view details (Query String Parameters) after click on it, or just copy the entire request url and paste it here.

Thank you for your answer @apdevelop . Sorry for my bad English. I'm trying to understand it. I hope these steps are correctly and asnwer your requests.

1
2

Please, tell me if it is correct.

L.

Please, tell me if it is correct.

You provided some weather service requests, but we need to see the WMS GetFeatureInfo network requests

1

@lefcgis Hi, I am using betterwms and getting the same X and Y incorrectly specified. Sometimes it shows the feature's attributes but other times it displays this error. In addition, How did you generate that wms getFeatureInfo pop-up? Your styling looks good, the betterwms displays in tabular form and I want to show it like yours instead of a table.