ios - Facing issue with showing pins / clusters : OCMapView -
in app have mkmapview
works well, have replaced mkmapview
ocmapview
, pins stopped being displayed. , found viewforannotation
function stopped being called. thing found different sample project method adding annotation, in sample project addannotations
method used in case have use addannotation
method in loop.
any idea missing or workaround call viewforannotation
, start displaying pins.
source : https://github.com/yinkou/ocmapview
we don't need 3rd party library clustering guess, when in ios mkmapview providing method:-
(nsset *)annotationsinmaprect:(mkmaprect)maprect
what programmer should is-- 1 map presented in view controller used find coordinate map-view hidden , map-view responsible displaying annotation.
a demo code there in apple developer website:-
https://developer.apple.com/library/ios/samplecode/photomap/introduction/intro.html
Comments
Post a Comment