网络上可以搜索到google的方法。但是搜索不到百度的方法,经过查询api总算是找到了,我勒个去啊!
在google maps中的api是
map.fromLatLngToDivPixel(pointer)
测试发图: