Local Knowledge Types- Distance

Examples

  • How many incidents have occurred within 500m?
  • What properties do we own within 1000m?

Operation

From this location find items within the defined distance.

Returns

The attributes (schema columns) of the found items that have the MapTip option enabled.

Properties

WML::Knowledge_Type$
value: distance

WML::Knowledge_SearchDistance#

Optional Properties

WML::Knowledge_Filter$

 

Adding a property

  • In your Local Knowledge SWD, right click on the overlay you wish to add the property to and select Properties:

  • Select Properties again in the Overlays dialog:
  • Select Add… to add a new property:

  • Add this property to the layers you want to query for distance.
  • Now add the distance to search (e.g. 20 km).
  • Select the Properties button again and click Add.
  • In the New Attribute dialog, type WML::Knowledge_SearchDistance# into the Name field.
  • Type 20000.0 into the Value field.
  • Click OK.
  • Select the Map Tip tick box for each data column you wish to use.

Distance worked example: How many higher education establishments are within 20km of my location?

Open the Local Knowledge SWD (usually found in C:\inetpub\wwwroot\SISWebMap9\App_Data\Data\UK\LocalKnowledge), add the property and values as above to the layers you want to query for distance. Related Topics Link IconRelated Topics

Tick on the MapTip option for any of the attributes that you want to see within the results.

Filtering the Results

You can filter all returned results by the Local Knowledge distance query using the property WML::Knowledge_Filter$.

Template

1. Full Example:

<div class="FMNContainer"> <b>{Attributes[Institute]}</b> is in {Attributes[District]}.</div>

2. Summary Example

<div class="FMNSummaryContainer"><i><b>
<div class="FMNOverlayName"><img src="img/MapPins/MapPinGenericPurple.png" height="18" width="18">
These are the Higher Education establishments within 20km:</div></b></i>
<div class="FMNItemContainer"><repeater {Items} ><div class="FMNItem">
<a href="javascript:zoomToFMNItem({OverlayNo}, '{escape(Name)}')" >
{Attributes[Institute]}</a></div></repeater></div><p></div>