camptocamp/cgxp — pull request #136 by ochriste (2012-07-06 13:23:43+00:00)
Title: Contextual data plugin

Adaptation and improvement of the old Mapfish's Coordinate (zyx) plugin and ContextPopup plugin.
This plugin allow to display a popup with several predefined kind of data:
1) coordinate, both in swiss and wsg84 coordinate
2) elevation data
3) streetview link
4) userdefined data
on mouseover and/or right-click

The configuration allow to enable either or both behavior (mouseover/right-click).
Server side query is enabled automatically if an url is specified in the plugin configuration.
The Ext.Template used for the popup content can be overridden, either separately or globally for both behavior.
Streetview link can the enabled/disabled from config
For server query, the user can override a method in the plugin configuration to add specific treatments corresponding to the data returned from the server webservice (of course in this case, the templates must be overridden too to add new variables for these new datas).

Example and details are provided in the API properties documentation.