pengrad / MapScaleView

Scale bar for Android Maps (Google Maps, OSM, MapBox, Yandex)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple setup scaleView with GoolgeMap, MapboxMap, etc

pengrad opened this issue · comments

Client just call scaleView.initWith(map: GoogleMap) when map is ready.

This method will set all camera move listeners and pass data to scaleView.
Maybe add lifecycle param to support unregistering listeners on destroy.

The google-maps or mapbox sdks should be added as runtime dependencies, to be not included in client app.