Skip to content

Commit

Permalink
perf: disable texture mode on android (#225)
Browse files Browse the repository at this point in the history
Disabled texture mode again in MapLibre's Android map view to improve rendering performance. This has caveats; see #15. A future PR will make this an opt-in option instead, see #217 

previously enabled in #214
  • Loading branch information
sargunv authored Jan 3, 2025
1 parent d968010 commit 8e7c97e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ internal fun AndroidMapView(
modifier = modifier,
factory = { context ->
MapLibre.getInstance(context)
MapView(context, MapLibreMapOptions.createFromAttributes(context).textureMode(true)).also {
MapView(context, MapLibreMapOptions.createFromAttributes(context).textureMode(false)).also {
mapView ->
currentMapView = mapView
mapView.getMapAsync { map ->
Expand Down

0 comments on commit 8e7c97e

Please sign in to comment.