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 MBNewSearchMapController.m of the SDKDemo project)
// analog point
MBPoint pos = {11617606,3971098};
// Offset of x and y axes
CGPoint pivotPoint = {0.5,0.5};
// Initialize MBAnnotation
annotation = [[MBAnnotation alloc] initWithZLevel:1 pos:pos iconId:8001 pivot:pivotPoint];
// Add MBAnnotation to MBMapView
[mapView addAnnotation:annotation];
// Set the map center point to pos
mapView.worldCenter = pos;
Map dot and bubble display:
