lustre_kakaomap/preset

Composable map presets for common configurations.

Presets return lists of MapOption that can be customized via pipeline.

preset.readonly()
|> preset.with_center(coords.jeju())
|> preset.with_level(5)
|> preset.apply(id: "map")

Values

pub fn apply(
  options: List(lustre_kakaomap.MapOption),
  id id: String,
) -> effect.Effect(msg)

Applies preset options to initialize a map.

preset.readonly()
|> preset.with_center(coords.jeju())
|> preset.with_level(5)
|> preset.apply(id: "map")
pub fn clean_map() -> List(lustre_kakaomap.MapOption)

Clean, minimal roadmap centered on Seoul at zoom level 3.

pub fn full_control() -> List(lustre_kakaomap.MapOption)

Fully interactive map with all controls enabled.

pub fn hybrid() -> List(lustre_kakaomap.MapOption)

Hybrid (satellite + road labels) preset.

pub fn readonly() -> List(lustre_kakaomap.MapOption)

Read-only map — no drag, scroll, keyboard, or double-click interactions. Ideal for embedded or display-only maps.

pub fn satellite() -> List(lustre_kakaomap.MapOption)

Satellite (skyview) preset.

pub fn with_center(
  options: List(lustre_kakaomap.MapOption),
  position: coords.LatLng,
) -> List(lustre_kakaomap.MapOption)

Overrides the center position (pipeline-friendly).

pub fn with_level(
  options: List(lustre_kakaomap.MapOption),
  level: Int,
) -> List(lustre_kakaomap.MapOption)

Overrides the zoom level (pipeline-friendly).

Search Document