0

Currently I'm using the version 4.12.x from here map (Navigate edition), I want to display a point from A to B or bounding box but with some padding, I can make the animation however In landscape I have a "loading" screen that takes almost half of the screen so the location and the waypoint/coordinate might not be visible for example point A is in the south and point B is in the north so if the distance is far enough I can't see the waypoints.

Currently I'm trying this:

 val orientation = GeoOrientationUpdate(null, 0.0)
        val sizeInPixels = Size2D(
            binding.hereMapsMapView.width.toDouble() - 100,
            binding.hereMapsMapView.height.toDouble() -100
        )
        val origin = Point2D(1.0, 1.0)
        val mapViewport = Rectangle2D(origin, sizeInPixels)
        val cameraUpdate =MapCameraUpdateFactory.lookAt(geoBox, orientation, mapViewport)
        val animation = MapCameraAnimationFactory.createAnimation(
            cameraUpdate,
            Duration.ofMillis(CAMERA_ANIMATION_TIME_IN_MILLIS),
            EasingFunction.IN_OUT_SINE
        )
        binding.hereMapsMapView.camera.startAnimation(animation) {
            if (it == AnimationState.COMPLETED || it == AnimationState.CANCELLED) {
                // complete
            }
        }

I check the documents but I can't find a lot of info let's say my screen is 2044 px high and my "loading view" is 1200 px high.

I try to do this

        val sizeInPixels = Size2D(
            binding.hereMapsMapView.width.toDouble() - 100,
            binding.hereMapsMapView.height.toDouble() + 1200px
        )

But it does not work, seems it's working with something around 700px and still not everything of the route is displayed. is any way to fix this?

SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
Javier
  • 1,469
  • 2
  • 20
  • 38

0 Answers0