Tuesday, 22 June 2021

How to change OSM map custom theme?

I am using osm map, i want to change map style

How to change the colours and styles of the android maps in open street map- I would like to totally simplify a map for a particular purpose and remove colours of particular elements.

binding!!.mapView.apply {

             
                            setTileSource(TileSourceFactory.DEFAULT_TILE_SOURCE)
                            zoomController.setVisibility(CustomZoomButtonsController.Visibility.NEVER)
                            setMultiTouchControls(true)
                            val mapController: IMapController = controller
                            mapController.setZoom(12.0)

                            val zoomLocation =  GeoPoint(it.from_lat.toDouble(), it.from_lng.toDouble())

                            mapController.setCenter(zoomLocation)
                            startMarker.position = zoomLocation // marker location

                      

                }

enter image description here

looking android theme like this screenshot.



from How to change OSM map custom theme?

No comments:

Post a Comment