Hello, I am trying to get information from layers (I have my map, and 2 layers), my layers from Geoserver (localhost). My layers are displayed.
at this moment, how I create layers :
private OLSource afficheCalque(String calqueId) {
//Variable
Map<String, String> params = new HashMap<>();
OLTileWMSSourceOptions options = new OLTileWMSSourceOptions();
options.setUrl(CChaineCaractere.WORKSPACE);
params.put(CChaineCaractere.LAYERS, calqueId);
params.put(CChaineCaractere.FORMAT, CChaineCaractere.PNG);
params.put("CRS", "EPSG:4326");
options.setParams(params);
return new OLTileWMSSource(options);
}
And, how I am trying get information from layers
[code]
((CarteSiteVue) vue).getMap().addClickListener(new OLMap.ClickListener() {
@Override
public void onClick(OLMap.OLClickEvent pClickEvent) {
System.out.println(pClickEvent.getFeatureInfoUrls());
}
});
[/code]But my Urls don’t give me results… I have this error :
{“type”:“FeatureCollection”,“totalFeatures”:“unknown”,“features”:,“crs”:null}
What are my mistakes ?