...
They use 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.
The map tip tool can query any entity and is not dependent upon the active entity. The user chooses from the map tip menu what data they're interested in and when they move the mouse around the map that's what the data they 'll will be presented withshown.
ID
weave.maptips
Properties
name | description |
---|---|
minScale | This can be set at the action level, the tip level or not at all, and specifies the minimum scale below which no map tips will be shown to the user. |
maxScale | This can be set at the action level, the tip level or not at all, and specifies the maximum scale above which no map tips will be shown to the user. |
radius | This can be set at the action level, the tip level or not at all, and specifies the radius, in map units, of the area to be searched based , centred on the mouse location. |
pressed | This sets the initial state of the map tip and it is off by default. Setting it to turn 'true' will turn on map tip at startup. This can only be set at the action level. The default is 'false'. |
multipleMaximum | If the search returns more than this many results, the default being 1, then |
multipleText | The text to show to the user if more than |
isDefault | Should be set to 'true' in the tip that should be enabled by default. |
tip | A tip tag must be created for each set of data that's to be made available to the user for display in a map tip. Only This is only available at the action level. |
data | The name of a Data configured configuration that provides the data for this particular tip. Only This is only available at the tip level. |
datadefinition | The name of a Data Definition configured that provides the data for this particular tip. Only This is only available at the tip level. |
entity | The Entity that the data definition for the tip is associated with. Only This is only available at the tip level. |
label | The label to display for this particular tip. Only This is only available at the tip level. |
autoSize | true/false indicating if the popup window should try and adjust its size. The default is 'false'. |
minSize | The minimum width and height in pixels that the popup window should use when auto-sizing. The default is 105,10. |
maxSize | The maximum width and height in pixels that the popup window should use when auto-sizing. The default is 1200,660. |
size | The default width and height in pixels that the popup windows should use. The default is 200,200. |
hideDelay | The number of milliseconds to wait before hiding the popup window, the . The default is 2000. |
selectedOnly | Restrict the map tip to the selected features only, the . The default is 'false'. |
selectedOnlyMenu | Add a menu to the map tips tool to allow the user to turn on or off the selectedOnly flag, the . The default is 'false'. |
visibleOnly | Restrict the map tip to display only if the associated layer is turned on in the ToC, the . The default is 'false'. Only available from 2.5.26. |
visibleOnlyMenu | Add a menu to the map tips tool to allow the user to turn on or off the visibleOnly flag, the . The default is 'false'. Only available from 2.5.26 |
showGeometry | Should the geometry of the related entity be shown, defaults to true . The default is 'true'. Only available in 2.5.26 |
Notes
Only one
ofdata
of data or
datadefinition
datadefinition
should be set.- If
datadefintion
datadefinition
is set thenentity
andlabel
should also be set. - If
data
is set thenentity
does not need to be set (and will be ignored). - If
data
is set thenlabel
isn't required, but will override the label set for the given data if set.
Examples
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<item action="weave.maptips"> <tip> <data>property_details</data> <isDefault>true</isDefault> </tip> <tip> <data>road_details</data> </tip> </item> |
...