Proximitii Book a Demo

Climate Widget Documentation

Show climate risk categories, highlights and report options for a location. Read the installation details, parameters and examples.

The Climate Widget shows location-based climate risk categories and highlights for an address in the United States or Canada. Visitors can also open a Local Insights report when the Download Report button is enabled.

Climate Widget showing heat, precipitation, fire, drought, flood and wind risk scores

Installation

Add the container and widget script to your page. Replace the widget key and coordinates with your own values.

<div id="prox-climate"></div>

<script src="https://widget.proximitii.com/v1/core/proximitii-widget.js?v=41"></script>
<script>
ProximitiiWidgets.climate({
  container: 'prox-climate',
  widgetKey: 'PUT_YOUR_WIDGET_KEY_HERE',
  lat: 40.778832684988224,
  lon: -73.98103168840414
});
</script>

Always provide a valid widgetKey, lat, and lon. All other settings are optional and use the defaults below.

Customization

Pass optional settings in the ProximitiiWidgets.climate configuration object. The Download Report mode is set on the container element.

OptionPurposeDefaultAccepted valuesSetting
ContainerID of the element where the widget renders.N/AValid element IDcontainer
Widget KeyYour public widget key.N/AValid widget keywidgetKey
LatitudeCenter latitude.N/A-90 to 90lat
LongitudeCenter longitude.N/A-180 to 180lon
RadiusSearch radius in metres.500100 to 6,400radius
CountryClimate dataset.usus or cacountry
LanguageWidget language.enen or fr-CAlanguage
TitleHeading above the climate snapshot.Climate Risk SnapshotTexttitle
Title Font SizeHeading size.30pxCSS sizetitleFontSize
Show HighlightsShow or hide local climate highlights.truetrue or falseshowHighlights
Show Download ReportShow or hide the report control.truetrue or falseshowDownloadReport
Download Report ModeChoose referral, lead capture or no button.referralreferral, lead, hiddendata-download-report on the container
Show BorderShow or hide the widget border.truetrue or falseshowBorder
Primary ColorPrimary brand color.#607eb8Hex colorprimaryColor
Secondary ColorSecondary panel color.#f6f8fbHex colorsecondaryColor
Font FamilyWidget font.Poppins, sans-serifCSS font familyfontFamily
Box StyleWidget container styling.shadowshadow or flatboxStyle
CategoriesRisk categories to display, in order.All available categoriesArray of category slugs belowcategories

For a lead-capture report button, add data-download-report="lead" to the container. Use hidden to remove the button. The default referral mode needs no attribute.

<div id="prox-climate" data-download-report="lead"></div>

<script>
ProximitiiWidgets.climate({
  container: 'prox-climate',
  widgetKey: 'PUT_YOUR_WIDGET_KEY_HERE',
  lat: 40.778832684988224,
  lon: -73.98103168840414,
  radius: 800,
  country: 'us',
  primaryColor: '#2e6653',
  boxStyle: 'flat'
});
</script>

Categories

Use categories to control which climate risk categories appear. Select at least one category. Wind is available for US locations and is omitted for Canada.

CategoryValue
Heatheat
Precipitationprecipitation
Firefire
Droughtdrought
Floodflood
Wind (US only)wind