Posts

Showing posts with the label mapkit

MapKit JS. How to obtain file and API key?

MapKit JS. How to obtain file and API key? I have found that Apple has a Javascript Maps API. I have been researching and I have got as far as obtaining an Apple ID. MapKIT JS - Maps Apple Developer For some reason, when I log in, I cannot see a section where I generate an API key. developer.apple.com Am I missing something or, do I seriously need to actually buy an Apple computer to be able to download a Javascript library? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Content Scroll to Row at Index Path beyond bonds?

Content Scroll to Row at Index Path beyond bonds? So I was able to have the annotation's callout animate when the selected table cell was selected like so. Quite simple due to the indexPath. func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let indexPath = indexPath.row myMap.selectAnnotation(pinArray[indexPath] , animated: true) } However, I do not understand how to achieve this when I select the annotation and want the table cell to light up. I've been attempting to set a var to indexPath but because the annotation has no subscript, I am unable to perform this. Therefore, how would I be able to accomplish the annotation to selected cell logic? func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { //Magic } Update - currently the code I have to highlight the table cell correlated to the map annotation is this. func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { let index = pinArray.index(of: ...