Example: Adding Maptip to WMS layer

From Geoikia-english

Jump to: navigation, search

Image:germanflagthumb.png Deutsch Image:dutchflagthumb.png Nederlands

> Main Page > Layer Properties > Example: Adding Maptip to WMS layer


Image:tip.png 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

  1. Start the Geoide Viewer.
  2. Move the cursor over the map. After stopping the cursor a "get feature info request" is sent to the server.
  3. For example, open Firebug (Firefox) to see this request.
  4. Select the request that corresponds to the layer which you want to add as a maptip. In this example: 'Testlayer:geomorphology'
  5. Open this request (right-click, Open in New Tab, and Oxygen Editor ). Then the retrieved XML page is displayed.
    Image: Tip.png If you are unfamiliar with Oxygen or you want more information about XPath expressions, then you may like the Xpath Tutorial at w3schools.com.
  6. Choose from the XML "tag" the maptips that you want to add. In this example: '<OMSCHRIJVING_CODE>'
  7. Select the path to this element (copy).
  8. Start the Geoide Author.
  9. Choose the appropriate context and map.
  10. Select the layer the maptip is referring to.
  11. Add in the field Maptip element the path from Step 7.
  12. Save changes by clicking Save at the bottom of the screen.
  13. Start the Geoide Viewer again ('reload'). The maptips are now visible when the cursor is stationary.
Personal tools