HMS Map Kit demo provides an example of intergrating HMS Map Android SDK. Personalizing how your map displays and interacts with your users tailors their experience to them
Since this method used by the Huawei class was called constantly, even if I moved the map, it returned to its previous position.
override fun configureMapOnStart(initialCoordinate: MTSLatLng?, zoom: Float) { if (!initialRequestSent) { mapFragment!!.zoomToLocation( MTSLatLng(initialCoordinate?.latitude.orZero(), initialCoordinate?.longitude.orZero()), zoom ) } }
I reached the solution by adding a flag to check if the map was created. The same class does not cause problems with google map.
Since this method used by the Huawei class was called constantly, even if I moved the map, it returned to its previous position.
override fun configureMapOnStart(initialCoordinate: MTSLatLng?, zoom: Float) { if (!initialRequestSent) { mapFragment!!.zoomToLocation( MTSLatLng(initialCoordinate?.latitude.orZero(), initialCoordinate?.longitude.orZero()), zoom ) } }
I reached the solution by adding a flag to check if the map was created. The same class does not cause problems with google map.