Skip to content
Discussion options

You must be logged in to vote

Have you had a look at this documentation page?

There's two pieces:

Something like:

MapLibreMap(...) {
	val source = rememberGeoJsonSource(
		id = "example", 
		data = GeoJsonData.Features(Point(Position(-89.0,17.5)))
	)
	
	CircleLayer(
		id = "example",
		source = source,
		color = const(Color.Blue)
	)
}

It would be helpful to read and understand the MapLibre style spec; our programmatic styling API is directly based off of that, just with some Kotlin sugar on top.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sargunv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants