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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -