# Embedding a Boldest map To integrate any Boldest map into a website page, it is necessary to apply a piece of HTML code, consisting of a DIV and a Javascript include. Within this DIV, there will be a series of attributes that will serve to give certain characteristics to each use case. The system is compatible with any framework since it is written in native Javascript, aiming not to collide with the libraries used in the host website. ```
``` ## Attributes ### General Configuration - `integration` (string): Defines the type of integration. Possible values: `segment`, `full`, `modal`. - `showCurtain` (boolean): Indicates whether the curtain should be shown. Values: `true`, `false`. - `showButtons` (boolean): Indicates whether the buttons to view map/return should be displayed. Values: `true`, `false`. - `viewMapText` (string): Text for the 'VIEW MAP' floating anchor static button. - `hideMapListWhenMobile` (boolean): Indicates whether to hide map/list buttons on mobile version. Values: `true`, `false`. ### URL Configuration - `parenturiprefix` (string): Prefix of pushstate URLs. - `embedurl` (string): Base URL for the widget. - `embedmainuri` (string): URI for the widget. Includes language. ### Map Configuration - `mapScrollwheel` (boolean): Allows using mouse wheel when widget is focused. Values: `true`, `false`. ### Events - `onFocus` (string): Handler for focus event on the widget. - `onFocusOut` (string): Handler for blur event on the widget. ### Height Configuration - `topHeight` (integer): Top distance in pixels if there's a fixed header. - `opHeightXs` (integer) (optional): `topHeight` for media query xs: Extra small <576px. - `opHeightSm` (integer) (optional): `topHeight` for media query sm: Small ≥576px. - `opHeightLg` (integer) (optional): `topHeight` for media query lg: Large ≥992px. - `opHeightXl` (integer) (optional): `topHeight` for media query xl: Extra large ≥1200px. ## Embed examples ### Segment integration Allows to embed a Boldest map in any DIV of a web page. The larger the width, the better UX. It is recommended to maintain a minimum side margin to avoid confusion with the double scroll (widget gallery + scroll of the host web page). If the DIV is less than 768px wide when the page loads, the mobile version of the Boldest widget will be loaded. Variable `integration="segment"` ```