I am following this tutorial: https://www.mapbox.com/mapbox-ios-sdk/examples/marker-custom-image/ and I have a web API that I am getting latitude/longitude/name/imageURL from.
You can see my code here: http://pastebin.com/eGtYSXR8
At line 107 I would like to for loop through the response and create the markers while at the same time assigning the custom image for the marker but I'm not sure how i can do that. I am new to Obj-C so I don't understand where this line is being called or what the function name is even:
- (RMMapLayer *)mapView:(RMMapView *)mapView layerForAnnotation:(RMAnnotation *)annotation
Can anyone point me in the right direction? I understand how markers are created on MapBox, but the image seems to be created in a different function with no ability to pass a variable.
-mapView:didUpdateUserLocation:
in it's delegate to notify about location changes. Set the RMMapView'sshowsUserLocation
property toYES
– Azat