Proximitii Book a Demo

Local Lifestyle Widget Documentation

Show scores, nearby places, maps and everyday lifestyle context. Read the installation details, parameters and examples.

The Local Lifestyle Widget displays a neighborhood score, nearby points of interest, category scores, highlights, commute tools, and optional report download controls for a specific latitude and longitude.

Local Lifestyle Widget

Installation

Add the following embed code to your page or template. Replace the widget key and coordinates with your own values.

<div id="prox-local-lifestyle"></div>

<script src="https://widget.proximitii.com/v1/core/proximitii-widget.js?v=33"></script>

<script>
ProximitiiWidgets.localLifestyle({
  container: 'prox-local-lifestyle',
  widgetKey: "PUT_YOUR_WIDGET_KEY_HERE",
  lat: 43.66068291135164,
  lon: -79.34739798021833
});
</script>

Always provide a valid widgetKey, lat, and lon. All other settings are optional and fall back to the defaults listed below.

Customization

The following Local Lifestyle Widget customization options are available.


General Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
ContainerThe ID of the div where the widget renders.N/AAny valid element IDcontainer
Widget KeyYour public widget key.N/AValid Proximitii widget keywidgetKey
LatitudeSets the latitude of the center location.N/ADecimal between -90 and 90lat
LongitudeSets the longitude of the center location.N/ADecimal between -180 and 180lon
LanguageSets the widget language.enen or frlanguage
LayoutControls the primary desktop layout.bottombottom or leftlayout
Box StyleControls the widget container styling.shadowshadow or flatboxStyle
Widget HeightSets the widget height.610pxCSS sizewidgetHeight
Default Zoom LevelSets the starting map zoom.15Number from 12 to 20defaultZoomLevel
Max POIs Per CategoryLimits the number of POIs shown for each category.16Number from 5 to 25maxPoisPerCategory


Content Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Score TitleSets the title shown with the overall score.Proximitii ScoreAny valid textscoreTitle
Score Title Font SizeSets the score title font size.30pxCSS sizescoreTitleFontSize
Show Top HeaderShows or hides the top header area.truetrue/falseshowTopHeader
Show Proximitii ScoreShows or hides the overall Proximitii score.truetrue/falseshowProximitiiScore
Show CustomizeShows or hides the customize control.truetrue/falseshowCustomize
Show HighlightsShows or hides the highlights section.truetrue/falseshowHighlights
Show Download ReportShows or hides the download report button.truetrue/falseshowDownloadReport
Show Bottom Footer/Left PanelShows or hides the bottom category footer or left layout panel.truetrue/falseshowBottomFooter
Show Main Category ScoresShows or hides main category scores.truetrue/falseshowMainCategoryScores
Show Sub Category ScoresShows or hides subcategory scores.truetrue/falseshowSubCategoryScores
Show Commute ButtonShows or hides the commute button.truetrue/falseshowCommuteButton
Show Walking Distance RadiusShows or hides the walking distance radius.truetrue/falseshowWalkingDistanceRadius


Appearance Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Show BorderShows or hides the widget border.truetrue/falseshowBorder
Primary ColorSets the primary brand color.#607eb8Hex colorprimaryColor
Secondary ColorSets the secondary panel/background color.#EEF2F6Hex colorsecondaryColor
Font FamilySets the widget font family.Poppins, sans-serifAny valid CSS font-familyfontFamily
Disable Gesture HandlingDisables scroll-wheel and gesture handling on the map.falsetrue/falsedisableGestureHandling


Map Options:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Map ProviderSelects the map provider.proximitiiproximitii, google, mapbox, maptilermapProvider
Proximitii Map StyleSets the Proximitii map style.lightlight, bright, modern, baselinemapStyle
Google Maps API KeySets the Google Maps key when using Google Maps.N/AValid Google Maps API keygoogleMapsKey
Google Map StyleSets the Google map type.roadmaproadmap, satellite, hybrid, terraingoogleMapType
Mapbox Public TokenSets the Mapbox public token when using Mapbox.N/AValid Mapbox public tokenmapboxToken
Mapbox Map StyleSets the Mapbox style.mapbox/streets-v12streets, outdoors, light, dark, satellitemapboxStyle
MapTiler API KeySets the MapTiler key when using MapTiler.N/AValid MapTiler API keymaptilerKey
MapTiler Map StyleSets the MapTiler style.streets-v4streets-v4 and supported MapTiler stylesmaptilerStyle

Categories

Use categories to control main category order and visibility, and subcategories to control the POI categories shown in the widget.

Category TypeCategory NameVariableIndividual Toggle
MainWalkabilitywalkabilitycategoryWalkability
MainEducationeducationcategoryEducation
MainActive Livingactive-livingcategoryActiveLiving
MainTransit Accesstransit-accesscategoryTransitAccess
SubChild CarechildcarecategoryChildcare
SubCoffee ShopscoffeecategoryCoffee
SubElementary SchoolselemcategoryElementary
SubEntertainmententertainmentcategoryEntertainment
SubFitness FacilitiesfitnesscategoryFitness
SubFood & DrinkfoodcategoryFood
SubGroceriesgrocerycategoryGroceries
SubHealth & SafetyhealthcategoryHealth
SubHigh SchoolshighcategoryHighSchools
SubParksparkcategoryParks
SubShopsshopcategoryShops
SubTransit Stops/StationstransitcategoryTransit