What's Here
Pozi’s Info Panel displays a set of results called “What’s Here” whenever the user clicks anywhere on the map (but not directly on any vector feature).
Any datasets that you configure as What’s Here datasets will always appear in the Info Panel (as long as any active profile includes them). Users will see results for What’s Here datasets when they click on a location without having to turn on specific layers.
When a user clicks on the map or draws a line or polygon selection, Pozi creates a spatial target against which all What’s Here datasets will be queried. If the user does a single click on the map, the target appears as a special icon. If the user uses the region or line selection tool, the target appears as a dashed line.
Pozi fetches any intersecting features from the available What’s Here datasets and displays them in the Info Panel.
Use cases:
- properties
- administrative zones
- work zones
- council wards
- more…
Tip
Any dataset that is enabled for What’s Here can essentially be considered a child dataset. Learn more about parent/child dataset interaction here.
Instead of the layer’s parent being a selected feature in another layer, the parent is a temporary feature called the target that is created when the user clicks on the map (or uses the region or line selection tool).
What’s Here vs Standard Layers
What’s Here datasets can be configured separately from standard layers. When working with large datasets such as property, consider configuring both a What’s Here and a standard version of the layer in your QGIS project to cover a range of use cases.
In this example, we’ll use a property layer as the source for both a What’s Here dataset and a standard layer. Configure the two layers with different names, following the naming convention suggested below.
Standard Layer
- primary purpose is for visualisation
- appears in the layer panel, and the user can turn it on or off
- configuration:
- use plural naming convention (ie ‘Properties’)
- don’t enable for WFS (because it’s a large dataset that would overwhelm the browser if loaded in full)
- make the layer NOT queryable because the info results will be taken care of by the new dataset below
What’s Here
- the dataset is considered to be a child of the What’s Here target on the map
- always returns a result when the user clicks on the map, regardless of whether the ‘Properties’ layer (above) is turned on or not
- can be hidden from the layer panel
- can be configured to be searchable by using the optional
searchFieldskeyword - configuration:
- use singular naming convention (ie ‘Property’)
- enable for WFS
- configure layer keywords as follows:
Configuration
Standard
The standard configuration for a What’s Here layer uses the What’s Here target (ie a click on the map) to generate a standard spatial intersection query.
parent=Whats Here, showInLayerControl=falseNotes:
- The absence of any
parameterkeyword in this configuration lets Pozi know that the parent/child relationship is a standard spatial intersection. - The
Whats Herekeyword does NOT contain an apostrophe. - It is NOT practical to configure point layers for What’s Here using a standard intersection query because a typical What’s Here target (ie a click on the map) is unlikely to intersect exactly with a point feature.
Custom
Alternatively, you can configure a custom spatial query using the parameter keyword.
For example, a custom query can add a buffer to the What’s Here target to return any features that are within a specified distance.
parent=Whats Here, parameter=EXP_FILTER=intersects(@geometry [$comma] buffer(geom_from_wkt('[$wkt]') [$comma] 0.001 ))This example enables the What’s Here results to return any features from the layer that are within approximately 100m (specified as 0.001 of a degree) of the What’s Here target.
The [$comma] is required in the place of a normal comma because QGIS considers a normal comma to be a keyword delimiter.
Use this decimal degree table for approximate degree values to use that correspond to your required distances:
Degree Value Conversion
| Decimal Places | Decimal Degrees | N/S or E/W at equator | E/W at 23°N/S | E/W at 45°N/S | E/W at 67°N/S |
|---|---|---|---|---|---|
| 0 | 1.0 | 111 km | 102 km | 78.7 km | 43.5 km |
| 1 | 0.1 | 11.1 km | 10.2 km | 7.87 km | 4.35 km |
| 2 | 0.01 | 1.11 km | 1.02 km | 0.787 km | 0.435 km |
| 3 | 0.001 | 111 m | 102 m | 78.7 m | 43.5 m |
| 4 | 0.0001 | 11.1 m | 10.2 m | 7.87 m | 4.35 m |
| 5 | 0.00001 | 1.11 m | 1.02 m | 0.787 m | 0.435 m |
Further information about custom child dataset configuration can be found here.
End Result
Users can click anywhere on the map and get information for that location for any layers that are configured with What’s Here, regardless of what layers are already turned on.
Additionally, users can use the line and polygon selection tool (as well Ctrl-click for adding spot locations) for selecting features in a specific area.
Optional Settings
These settings provide an override for some of the default layer behaviours in Pozi. Append any of these overrides to the keyword setting, separated by commas.
| Setting | Description |
|---|---|
enabled=false | disable a dataset in Pozi |
infoPanelCollapse=true | collapse info results panel for this dataset |
promoteDetails=true | display all child attributes instead of a preview |
searchFields=fieldname1;fieldname2 | enable Search options for these fields |
initialRevealFields=n | number of fields to initially display in the Details pane (use 0 to collapse pane) |