Using the Baidu Map SDK, positioning the image has always been a small blue dot, do not like, want to replace the image of a custom, in the online search for a chase, found a solution.
Write down the following code:
Positioning layer Custom style parameters Bmklocationviewdisplayparam *displayparam = [Bmklocationviewdisplayparam new]; Displayparam.isrotateanglevalid =yes; Displayparam.isaccuracycircleshow =yes; Displayparam.locationviewimgname = @ "Icon_map_location"; Displayparam.locationviewoffsetx =0; Displayparam.locationviewoffsety =0; [_mapview Updatelocationviewwithparam:displayparam];
Locationviewimgname is the name of the picture you want to replace. The point is, to put your picture in the location of the Mapapi.bundle/images file will be able to implement the replacement function.
IOS changes location image of Baidu Map