Example: Adding Maptip to WMS layer
From Geoikia-english
> Main Page > Layer Properties > Example: Adding Maptip to WMS layer
If you are working with UMN Mapserver, then you can go driectly to step 7 and you may use the path:
/msGMLOutput/[laagnaam]_layer/[laagnaam]_feature/[KOLOM]
at step 11.
Steps
- Start the Geoide Viewer.
- Move the cursor over the map. After stopping the cursor a "get feature info request" is sent to the server.
- For example, open Firebug (Firefox) to see this request.
- Select the request that corresponds to the layer which you want to add as a maptip. In this example: 'Testlayer:geomorphology'
- Open this request (right-click, Open in New Tab, and Oxygen Editor ). Then the retrieved XML page is displayed.
-
If you are unfamiliar with Oxygen or you want more information about XPath expressions, then you may like the Xpath Tutorial at w3schools.com.
-
- Choose from the XML "tag" the maptips that you want to add. In this example: '<OMSCHRIJVING_CODE>'
- Select the path to this element (copy).
- Start the Geoide Author.
- Choose the appropriate context and map.
- Select the layer the maptip is referring to.
- Add in the field Maptip element the path from Step 7.
- Save changes by clicking Save at the bottom of the screen.
- Start the Geoide Viewer again ('reload'). The maptips are now visible when the cursor is stationary.
