Proximitii Book a Demo

Super Widget Documentation

Combine lifestyle, demographics, community highlights and crime in one address-level experience. Read the installation details, parameters and examples.

The Super Widget brings Local Lifestyle, Demographics, Community Highlights, and Crime into one tabbed address-level experience.

Super 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-super-widget"></div>

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

<script>
ProximitiiWidgets.superWidget({
  container: 'prox-super-widget',
  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 fall back to the defaults listed below.

Customization

The following Super 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
RadiusSets the local data search radius.500100 to 6400 metersradius
CountrySets the country dataset.usus or cacountry
LanguageSets the widget language.enen or frlanguage


Included Sections:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
Local LifestyleShows or hides the Local Lifestyle tab.truetrue/falsesections.localLifestyle.enabled
DemographicsShows or hides the Demographics tab.truetrue/falsesections.demographics.enabled
Community HighlightsShows or hides the Community Highlights tab.truetrue/falsesections.communityHighlights.enabled
CrimeShows or hides the Crime tab.truetrue/falsesections.crime.enabled


Appearance and Map 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.#f8fafcHex colorsecondaryColor
Box StyleControls the widget container styling.shadowshadow or flatboxStyle
Font FamilySets the widget font family.Poppins, sans-serifAny valid CSS font-familyfontFamily
Map StyleSets the Proximitii map style.lightlight, bright, modern, baselinemapStyle
Disable Gesture HandlingDisables scroll-wheel and gesture handling on the map.falsetrue/falsedisableGestureHandling


The following Widget Settings apply to individual tabs through the sections object. Omitted values use these defaults.

Local Lifestyle Widget Settings:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
LayoutSets the tab layout.bottombottom or leftsections.localLifestyle.layout
Score TitleSets the score heading.Proximitii ScoreTextsections.localLifestyle.scoreTitle
Font Size (px)Sets the score heading size.3010 to 50 pixelssections.localLifestyle.scoreTitleFontSize
Maximum POIsLimits places shown per category.165 to 25sections.localLifestyle.maxPoisPerCategory
Show Top HeaderShows or hides the top header.truetrue/falsesections.localLifestyle.showTopHeader
Show Proximitii ScoreShows or hides the overall score.truetrue/falsesections.localLifestyle.showProximitiiScore
Show Customize LinkShows or hides the score customization link.truetrue/falsesections.localLifestyle.showCustomize
Show HighlightsShows or hides the score highlights.truetrue/falsesections.localLifestyle.showHighlights
Show Main Category ScoresShows or hides main category scores.truetrue/falsesections.localLifestyle.showMainCategoryScores
Show Subcategory ScoresShows or hides subcategory scores.truetrue/falsesections.localLifestyle.showSubCategoryScores
Show Bottom Footer/Left PanelShows or hides the footer or left panel.truetrue/falsesections.localLifestyle.showBottomFooter
Show CommuteShows or hides the commute control.truetrue/falsesections.localLifestyle.showCommuteButton
Show Walking-Distance RadiusShows or hides the walking-distance radius.truetrue/falsesections.localLifestyle.showWalkingDistanceRadius
Main CategoriesSelects the main score categories. A category is included only when it is selected and at least one of its subcategories is selected.All fourArray of walkability, education, active-living, transit-accesssections.localLifestyle.categories
SubcategoriesSelects the place and service types.All twelveArray of childcare, coffee, food, park, grocery, shop, entertainment, fitness, health, elem, high, transitsections.localLifestyle.subcategories
Widget Height (px)Sets the Local Lifestyle widget height.610550 to 1000 pixelssections.localLifestyle.widgetHeight
Default ZoomSets the map starting zoom.1512 to 20sections.localLifestyle.defaultZoomLevel


Demographics Widget Settings:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
TitleSets the tab heading.Who Lives Here?Textsections.demographics.title
SubtitleSets the text below the heading. Use $radius for the formatted search radius.Learn about the people, households, and lifestyles within a $radius radius.Textsections.demographics.description
Title Size (px)Sets the heading size.3010 to 50 pixelssections.demographics.titleFontSize
Show HighlightsShows or hides demographic highlights.truetrue/falsesections.demographics.showHighlights
Show MapShows or hides the demographics map.falsetrue/falsesections.demographics.showMap
Show Map PinShows or hides the map location pin.truetrue/falsesections.demographics.showPin
CategoriesSelects the demographic tabs: Population, Economy, Households, Education, Languages, and Getting around.All sixArray of people, economy, housing, education, diversity, commutesections.demographics.categories
Map Height (px)Sets the demographics map height.250px150px to 400pxsections.demographics.mapHeight


Community Highlights Widget Settings:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
General
TitleSets the tab heading.Community HighlightsTextsections.communityHighlights.title
SubtitleSets the text below the heading. Use $radius for the formatted search radius.A quick look at what stands out within a $radius radius.Textsections.communityHighlights.description
Title Size (px)Sets the heading size.3010 to 50 pixelssections.communityHighlights.titleFontSize
LayoutSelects two separate rows or one combined card section.combinedcombined or twoRowssections.communityHighlights.layoutMode
Show NavigationShows or hides section navigation.truetrue/falsesections.communityHighlights.showNavigation
Show ScorecardShows or hides the scorecard section.truetrue/falsesections.communityHighlights.showTopSection
Show HighlightsShows or hides the highlights section.truetrue/falsesections.communityHighlights.showHighlightsSection
Two Rows: Scorecard
Section TitleSets the scorecard heading.ScorecardTextsections.communityHighlights.topTitle
Card CountLimits scorecard cards.101 to 20sections.communityHighlights.topCardCount
OrderSorts scorecards by score.highesthighest or lowestsections.communityHighlights.topOrder
Included CardsSelects scorecard topics.All tenArray of walkability, shopping-essentials, transit-access, bike-access, schools, noise-level, local-economy, parks-recreation, neighbourhood-pace, community-feelsections.communityHighlights.topSelectedCards
Show ScoresShows or hides numeric scores on scorecards.truetrue/falsesections.communityHighlights.topShowScores
Show DescriptionsShows or hides scorecard descriptions.truetrue/falsesections.communityHighlights.topShowDescriptions
Two Rows: Highlights
Section TitleSets the highlights heading.HighlightsTextsections.communityHighlights.highlightsTitle
Card CountLimits highlight cards.101 to 20sections.communityHighlights.highlightCardCount
SelectionChooses the strongest highlights or a random selection from the strongest.strongeststrongest or randomStrongestsections.communityHighlights.highlightSelection
CategoriesSelects which highlight groups can appear.All sevenArray of diningEntertainment, shoppingEssentials, recreation, education, mobility, economy, communityLifestylesections.communityHighlights.highlightCustomCategories
Minimum ScoreSets the minimum highlight score.60 to 10sections.communityHighlights.highlightMinimumScore
Show Named Place CardsIncludes cards for named places.truetrue/falsesections.communityHighlights.showNamedPoiCards
Show Demographic CardsIncludes demographic highlight cards.truetrue/falsesections.communityHighlights.showDemographicCards
Combined Layout
Section TitleSets the combined section heading.Community HighlightsTextsections.communityHighlights.combinedTitle
Card CountLimits all combined cards.151 to 20sections.communityHighlights.combinedCardCount
OrderSorts combined cards by score.highesthighest or lowestsections.communityHighlights.combinedOrder
Card TypesSelects which card types can appear.All fourArray of communityScores, lifestyleHighlights, namedPlaces, demographicHighlightssections.communityHighlights.combinedCardTypes
Max Score CardsLimits score cards within the combined section.100 to 20sections.communityHighlights.combinedMaxScoreCards
Max POI CardsLimits named place cards within the combined section.30 to 20sections.communityHighlights.combinedMaxNamedPoiCards
Show ScoresShows or hides numeric scores on combined cards.truetrue/falsesections.communityHighlights.combinedShowScores


Crime Widget Settings:

NameDescriptionDefault ValueAccepted ValuesVariable / Function
TitleSets the tab heading.Crime Risk MapTextsections.crime.title
SubtitleSets the text below the heading.Explore nearby crime risk patterns from the selected location.Textsections.crime.description
Title Size (px)Sets the heading size.3010 to 50 pixelssections.crime.titleFontSize
Map Height (px)Sets the crime map height.550550 to 1000 pixelssections.crime.height
Default ZoomSets the crime map starting zoom.131 to 20sections.crime.zoomLevel
Show PinShows or hides the location pin.truetrue/falsesections.crime.showPin
Show Crime Intensity ScaleShows or hides the map intensity scale.truetrue/falsesections.crime.showCrimeIntensityScale