hex*_*mal 6 google-maps ios google-maps-sdk-ios
我正在iOS项目中使用GoogleMaps SDK.
myLocationEnabled属性设置为YES.我希望用户定位引脚悬停在所有其他引脚上,就像在Android上一样.但由于某种原因,它与其他地图引脚重叠.
谷歌搜索没有给我任何有类似问题的人.我该怎么办?在地图上添加引脚时,我正在使用标准的GMSMapView工作流程.
GMSMarker * marker = [[GMSMarker alloc]init];
CLLocationCoordinate2D coordinate;
//cluster - is just an object of business logic
coordinate.latitude = [cluster.latitude floatValue];
coordinate.longitude =[cluster.longitude floatValue];
[marker setIcon:markerIcon];
[marker setPosition:coordinate];
[marker setUserData:cluster];
[marker setMap:mapView_];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
660 次 |
| 最近记录: |