Watermark

When using the Pathway Pro SDK, it is required that the Navmii logo always be visible on the map view. By default, the Navmii logo is located at the bottom left corner of the map view. You can customize its location to meet your app design needs by changing the watermark anchor on the map view (using the setWatermarkAnchorPoint method in MapView) and the watermark offset (using the setWatermarkPositionOffset method in MapView). There is also another method in MapView that allows retrieving the size of the watermark – getWatermarkSize.

The default watermark anchor point is (0.0, 1.0).

The anchor point on the watermark itself is its center point (width / 2, height / 2), around which it will be placed in the map view. Thus, the default value of the watermark position offset is (watermarkSize.width / 2, -watermarkSize.height / 2).

It is recommended to change the default placement only when required due to overlapping UI elements.

Example of placing the watermark in the bottom right corner of the map view, additionally slightly moved to the left and to the top:

Size watermarkSize = mapView.getWatermarkSize(); mapView.setWatermarkAnchorPoint(new PointF(1, 1)); mapView.setWatermarkPositionOffset(new Point( -watermarkSize.getWidth() / 2 - 20, -watermarkSize.getHeight() / 2 - 5));