MapLibre Compose API Reference
Toggle table of contents
0.6.0
common
Platform filter
common
Switch theme
MapLibre Compose API Reference
compose-html-interop
dev.
sargunv.
composehtmlinterop
HTMLElement
Html
Element()
kotlin-maplibre-js
dev.
sargunv.
maplibrejs
Any
Event
Attribution
Control
Attribution
Control
Options
Attribution
Control
Options()
Camera
Options
Center
Zoom
Bearing
Double
Click
Zoom
Handler
Drag
Pan
Handler
Drag
Rotate
Handler
Ease
To
Options
Ease
To
Options()
Expression
Fly
To
Options
Fly
To
Options()
IControl
Jump
To
Options
Jump
To
Options()
Keyboard
Handler
Lng
Lat
Lng
Lat
Bounds
Logo
Control
Logo
Control
Options
Logo
Control
Options()
Map
Map
Libre
Event
Map
Mouse
Event
Map
Options
Map
Options()
Map
Touch
Event
Map
Wheel
Event
Navigation
Control
Navigation
Control
Options
Navigation
Control
Options()
Padding
Options
Padding
Options()
Point
Query
Rendered
Features
Options
Query
Rendered
Features
Options()
Scale
Control
Scale
Control
Options
Scale
Control
Options()
Scroll
Zoom
Handler
Two
Fingers
Touch
Pitch
Handler
Two
Fingers
Touch
Zoom
Rotate
Handler
maplibre-compose
dev.
sargunv.
maplibrecompose.
compose
Camera
State
Click
Result
Consume
Pass
Features
Click
Handler
Kcef
Provider()
Map
Click
Handler
Maplibre
Composable
Maplibre
Context
Provider()
Maplibre
Map()
remember
Camera
State()
remember
Style
State()
Style
State
dev.
sargunv.
maplibrecompose.
compose.
layer
Anchor
Above
Below
Bottom
Companion
Replace
Top
Background
Layer()
Circle
Layer()
Fill
Extrusion
Layer()
Fill
Layer()
Heatmap
Layer()
Hillshade
Layer()
Line
Layer()
Raster
Layer()
Symbol
Layer()
dev.
sargunv.
maplibrecompose.
compose.
source
get
Base
Source()
remember
Geo
Json
Source()
remember
Raster
Source()
remember
Vector
Source()
dev.
sargunv.
maplibrecompose.
core
Camera
Move
Reason
NONE
UNKNOWN
GESTURE
PROGRAMMATIC
Camera
Position
Gesture
Settings
Companion
Ornament
Settings
Companion
Visible
Region
dev.
sargunv.
maplibrecompose.
core.
source
Attribution
Link
DEFAULT_
RASTER_
TILE_
SIZE
Geo
Json
Options
Cluster
Property
Geo
Json
Source
Raster
Source
Source
Unknown
Source
Vector
Source
dev.
sargunv.
maplibrecompose.
core.
util
Platform
Utils
maplibre-compose-expressions
dev.
sargunv.
maplibrecompose.
expressions
Defaults
Expression
Context
None
Zero
Padding
dev.
sargunv.
maplibrecompose.
expressions.
ast
Bitmap
Literal
Companion
Boolean
Literal
Companion
Color
Literal
Companion
Compiled
Expression
Compiled
Function
Call
Companion
Compiled
List
Literal
Companion
Compiled
Literal
Compiled
Map
Literal
Companion
Compiled
Options
Companion
Dp
Literal
Companion
Dp
Offset
Literal
Companion
Dp
Padding
Literal
Companion
Enum
Literal
Companion
Expression
Float
Literal
Companion
Function
Call
Companion
Int
Literal
Companion
List
Literal
Companion
Literal
Map
Literal
Companion
Milliseconds
Literal
Companion
Null
Literal
Offset
Literal
Companion
Options
Companion
Painter
Literal
Companion
String
Literal
Companion
Text
Unit
Calculation
Companion
Text
Unit
Offset
Calculation
Companion
dev.
sargunv.
maplibrecompose.
expressions.
dsl
abs()
acos()
all()
and()
any()
as
Boolean()
as
Dp
Offset()
as
Enum()
asin()
as
List()
as
Map()
as
Number()
as
Offset()
as
Padding()
as
String()
as
Vector()
atan()
Case
case()
ceil()
coalesce()
collator()
Condition
condition()
const()
contains()
convert
To
Boolean()
convert
To
Color()
convert
To
Number()
convert
To
String()
cos()
cubic
Bezier()
distance()
div()
dp
E
em
eq()
exponential()
Feature
feature
floor()
format()
Format
Span
format
To
String()
get()
gt()
gte()
has()
heatmap
Density()
image()
index
Of()
interpolate()
interpolate
Hcl()
interpolate
Lab()
is
Script
Supported()
length()
linear()
ln()
LN_
2
log10()
log2()
lowercase()
lt()
lte()
max()
milliseconds
min()
minus()
neq()
nil()
not()
offset()
or()
PI
plus()
pow()
rem()
resolved
Locale()
rgb
Color()
round()
seconds
sin()
slice()
sp
span()
sqrt()
step()
substring()
switch()
tan()
text
Variable
Anchor
Offset()
times()
to
Rgba
Components()
type()
unary
Minus()
uppercase()
use()
Variable
within()
with
Variable()
zoom()
dev.
sargunv.
maplibrecompose.
expressions.
value
Alternating
List
Value
Boolean
Value
Circle
Pitch
Alignment
Map
Viewport
Circle
Pitch
Scale
Map
Viewport
Collator
Value
Color
Value
Comparable
Value
Dp
Offset
Value
Dp
Padding
Value
Dp
Value
Enum
Value
Equatable
Value
Expression
Type
Number
String
Object
Boolean
Color
Array
Expression
Value
Float
Offset
Value
Float
Value
Formattable
Value
Formatted
Value
Geo
Json
Value
Geometry
Type
Point
Line
String
Polygon
Multi
Point
Multi
Line
String
Multi
Polygon
Icon
Pitch
Alignment
Map
Viewport
Auto
Icon
Rotation
Alignment
Map
Viewport
Auto
Icon
Text
Fit
None
Width
Height
Both
Illumination
Anchor
Map
Viewport
Image
Value
Interpolateable
Value
Interpolation
Value
Int
Value
Line
Cap
Butt
Round
Square
Line
Join
Bevel
Round
Miter
List
Value
Map
Value
Matchable
Value
Milliseconds
Value
Number
Value
Offset
Value
Raster
Resampling
Linear
Nearest
String
Value
Symbol
Anchor
Center
Left
Right
Top
Bottom
Top
Left
Top
Right
Bottom
Left
Bottom
Right
Symbol
Overlap
Never
Always
Cooperative
Symbol
Placement
Point
Line
Line
Center
Symbol
ZOrder
Auto
Viewport
Y
Source
Text
Justify
Auto
Left
Center
Right
Text
Pitch
Alignment
Map
Viewport
Auto
Text
Rotation
Alignment
Map
Viewport
Viewport
Glyph
Auto
Text
Transform
None
Uppercase
Lowercase
Text
Unit
Offset
Value
Text
Unit
Value
Text
Variable
Anchor
Offset
Value
Text
Writing
Mode
Horizontal
Vertical
Translate
Anchor
Map
Viewport
Vector
Value
maplibre-compose-material3
dev.
sargunv.
maplibrecompose.
material3.
controls
Attribution
Button()
Compass
Button()
Disappearing
Compass
Button()
Disappearing
Scale
Bar()
Scale
Bar()
Scale
Bar
Measure
Feet
And
Miles
Metric
Yards
And
Miles
Scale
Bar
Measures
maplibre-compose-expressions
/
dev.sargunv.maplibrecompose.expressions.dsl
/
sqrt
sqrt
fun
sqrt
(
value
:
Expression
<
FloatValue
>
)
:
Expression
<
FloatValue
>
(
source
)
Returns the square root of
value
.