info on feature - GeoSmartCity-CIP/gsc-client GitHub Wiki
Info on Feature
The module enables getting info on a specific feature. The user clicks on a feature in the map, the application will open a popup with the detailed information on this feature. GetFeatureInfo request of WMS is issued on the background to get available information about a feature at particular location
Dependencies
This library depends on OpenLayers 3
Example
Adding of the functionality is very easy---new event is added to an existing map, see below. In this case the event is registered for layer reggio_emilia
and limit of maximum 50
features is set.
gscMap.addInfoOnFeatureEvent('nodelist', 50, reggio_emilia);
This example show a map with info functionality: infoonfeature.js.