lustre_kakaomap/static_map

Static map (non-interactive image) for KakaoMap.

Displays a static map image. Useful for thumbnails or previews. Does not support overlays or events like the interactive Map.

Types

Options for creating a static map.

pub opaque type StaticMapOption

Values

pub fn center(pos: coords.LatLng) -> StaticMapOption

Sets the center coordinate. Required.

pub fn init(
  id id: String,
  options opts: List(StaticMapOption),
) -> effect.Effect(msg)

Initializes a StaticMap on the container element.

pub fn level(lvl: Int) -> StaticMapOption

Sets the zoom level (default: 3).

pub fn map_type(id: types.MapTypeId) -> StaticMapOption

Sets the map type.

pub fn marker_text(text: String) -> StaticMapOption

Sets the marker tooltip text (only visible if show_marker is True).

pub fn set_center(
  id id: String,
  position pos: coords.LatLng,
) -> effect.Effect(msg)

Sets the center of a static map.

pub fn set_level(
  id id: String,
  level lvl: Int,
) -> effect.Effect(msg)

Sets the zoom level of a static map.

pub fn show_marker(enabled: Bool) -> StaticMapOption

Shows a marker at the center position.

pub fn static_map_view(
  id id: String,
  attributes attributes: List(attribute.Attribute(msg)),
) -> element.Element(msg)

Renders the static map container div.

Search Document