New answers tagged

0

uses this modified method: getFeatureInfoUrl: function (latlng) { // Construct a GetFeatureInfo request URL given a point var point = this._map.latLngToContainerPoint(latlng, this._map.getZoom()), size = this._map.getSize(), crs = this.options.crs || this._map.options.crs, sw = ...


0

You can add conditional statements to freemarker templates. For example in your content.ftl file you can add something like this to only list "YOUR_FIELDNAME". <#if attribute.name == "YOUR_FIELDNAME"> <li>${attribute.name}: ${attribute.value}</li> </#if> Alternatively you can exclude a field by doing this: <#if ...


2

It appears as though the INFO_FORMAT parameter was also required. The following works: Request: ...


1

You can change the getFeatureInfo template used by geoserver, see section "Advanced Formatting". You could try to intercept the ${attribute.rawValue} and print this directly or modify it before sending the feature info back.


1

You are making a GetFeatureInfo request to a WMS service, the WMS is required by the standard to return information about the point you have clicked on. If there is more than one feature at the point then it may return information about all the features (up to featureCount) that are there. You seem to be asking for information about a raster so the request ...


1

There is a link where time support for GetMap in Geoserver is described, which seems to be available from version 2.2. You could check, if using time parameter for GetFeatureInfo on a time-enabled wms will work, too. Otherwise, I am pretty sure, there is time support with the thredds WMS/ ncWMS, where you can expose netCDF files containing time series data. ...



Top 50 recent answers are included