The Map Popup tool provides the ability to display a map popup when there is one feature selected on the map. The feature may have been selected by any supported selection method (i.e. Quick Search, graphical selection, attribute selection, etc.)
The tool uses data definitions to supply the data, meaning that the data available to the user can come from any provider, not just the attributes attached to the underlying spatial feature.
...
Code Block |
---|
title | Simple popup example |
---|
|
<view id="com.cohga.html.client.map.mapView">
...
<plugin id="weave.mappopup">
<multipleMaximum>2</multipleMaximum>
<multipleText>This features has too many details to be show</multipleText>
<tips>
<tip>
<data>property_details</data>
</tip>
<tip>
<datadefinition>road_details</datadefinition>
<entity>roads</entity>
</tip>
</tips>
</plugin>
...
</view> |
Code Block |
---|
title | Example with text formatting |
---|
|
<view id="com.cohga.html.client.map.mapView">
...
<plugin id="weave.mappopup">
<multipleMaximum>5</multipleMaximum>
<multipleText>This features has too many details to be shown</multipleText>
<tips>
<tip>
<data>property_details</data>
<template><![CDATA[<div><h1><i>ADDRESS DETAILS:</i></h1>{street_number} {street_name} {street_type}<br>{suburb_name}</div>]]></template>
</tip>
</tips>
</plugin>
...
</view> |