What's Here

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 searchFields keyword
  • 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.

Layer Properties > QGIS Server > Keyword list
parent=Whats Here, showInLayerControl=false

Notes:

  • The absence of any parameter keyword in this configuration lets Pozi know that the parent/child relationship is a standard spatial intersection.
  • The Whats Here keyword 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.

Layer Properties > QGIS Server > Keyword list
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 PlacesDecimal DegreesN/S or E/W at equatorE/W at 23°N/SE/W at 45°N/SE/W at 67°N/S
01.0111 km102 km78.7 km43.5 km
10.111.1 km10.2 km7.87 km4.35 km
20.011.11 km1.02 km0.787 km0.435 km
30.001111 m102 m78.7 m43.5 m
40.000111.1 m10.2 m7.87 m4.35 m
50.000011.11 m1.02 m0.787 m0.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.

SettingDescription
enabled=falsedisable a dataset in Pozi
infoPanelCollapse=truecollapse info results panel for this dataset
promoteDetails=truedisplay all child attributes instead of a preview
searchFields=fieldname1;fieldname2enable Search options for these fields
initialRevealFields=nnumber of fields to initially display in the Details pane (use 0 to collapse pane)
Last updated on