Tag Info

New answers tagged

0

You need to specify WMS params in getGetFeatureInfoUrl() function. In your case, try to ask for more features by adding the param FEATURE_COUNT after INFO_FORMAT. For instance: var url = layers[3].getSource().getGetFeatureInfoUrl( evt.coordinate, viewResolution, 'EPSG:3857', { 'INFO_FORMAT': 'text/html', 'FEATURE_COUNT': '20' //or ...


1

I used to following tutorial to figure out how to get popups on WMS and WFS layers. Maybe it will be useful to you. Here is some of the relevant code map.on('click', function(evt) { // Hide existing popup and reset it's offset popup.hide(); popup.setOffset([0, 0]); // Attempt to find a marker from the planningAppsLayer var feature = ...


2

You have to use a freemarker template in Geoserver with a content that converts the urls to hyperlinks. See the docs: http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html#tutorials-getfeatureinfo This website contains an example that looks quite useful: http://longwayaround.org.uk/notes/custom-geoserver-getfeatureinfo-template/ ...



Top 50 recent answers are included