Tag Info

Hot answers tagged


Here is what I do: In your GeoServer content.ftl file (explained here FTL), add a hidden list item like this: <li style="display:none";>popup</li> You can change the key word 'popup' to anything you like. You will be searching for this word in you popup javascript. This word will only appear in the getFeatureInfo request if there is a feature ...


You can switch to infoformat=application/json so you will get a json response from Geoserver. Then just check how many features are returned and if features.length>0 is true show the popup otherwise not. For this solution you will have to create a table from the json-response. You could do something like that: set infoformat in your ...

Only top voted, non community-wiki answers of a minimum length are eligible