Location:

Map Hits

Why do you want to do some on the map? Because you want to specifically indicate the location of your search on the map, you need to display a logo on the map to mark the location you searched for. This logo is the point on the map. Implementation: Get the coordinates of the position you searched, and then convert it to the coordinate point relative to the screen through the corresponding API. Then draw a prepared marker point resource in the corresponding location.

                (For complete code, see OverlayActivity.java in the Demo project)
                // Dot
                Point point = new Point(11638780, 3998076);             // Create a point object
                CircleOverlay circle = new CircleOverlay(point, 0f);    // Create a point centered on the point object
                mRenderer.addOverlay(circle);       // draw the point on the map
            

Map dot and bubble display:

地图打点及气泡展示效果
TOP