Proximitii Book a Demo

Crime Widget Documentation

Add location-specific crime context and map views. Read the installation details, parameters and examples.

The Proximitii Crime Widget displays crime risk patterns around a selected location with configurable title, map, pin, and brand styling.

Crime 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-crime"></div>

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

<script>
ProximitiiWidgets.crime({
  container: 'prox-crime',
  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 Crime Widget customization options are available.

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
Show BorderShows or hides the widget border.truetrue/falseshowBorder
TitleSets the widget title.Crime Risk MapAny valid texttitle
Title Font SizeSets the title font size.30pxCSS sizetitleFontSize
DescriptionSets the text shown below the title.Explore nearby crime risk patterns from the selected location.Any valid textdescription
Primary ColorSets the primary brand color.#607eb8Hex colorprimaryColor
Secondary ColorSets the secondary panel/background color.#f8fafcHex colorsecondaryColor
Font FamilySets the widget font family.Poppins, sans-serifAny valid CSS font-familyfontFamily
Box StyleControls the widget container styling.shadowshadow or flatboxStyle
Zoom LevelSets the starting map zoom.13Number from 1 to 20zoomLevel
HeightSets the widget height.550Number from 550 to 1000height
Map StyleSets the Proximitii map style.lightlight, bright, modern, baselinemapStyle
Show PinShows or hides the location pin.truetrue/falseshowPin
Show Crime Intensity ScaleShows or hides the low-to-high crime intensity legend.truetrue/falseshowCrimeIntensityScale
Disable Gesture HandlingDisables scroll-wheel and gesture handling on the map.falsetrue/falsedisableGestureHandling