Android - displaying a crosshair in the center of my google map

I have an application with Google Map and ItemizedOverlay used to display some markers (from the official MapView manual). I need your help: I ​​want to show the crosshair always on top and is focused on the map, even when the map is tinted.

I read this topic: Creating a crosshair in the center of my Google map , but there is no explanation on how to use the resulting code.

Thanks in advance.

0
source share
1 answer

Step # 1: Copy any of the Overlay classes from this answer into your project.

Step # 2: Add an instance of this Overlay class to MapView via getOverlays().add() , as if you were adding your own ItemizedOverlay .

Step # 3: There is no step # 3.

This assumes their sample code is working, and I have not tried it.

0
source

Source: https://habr.com/ru/post/1468790/


All Articles