I'm working on my first IOS app and I need to display a map where the user can see their current location and several locations specified by me in the form of pins or so.
Would also be cool if they could immediately plan a route to these locations.
Can anyone point me in the right direction?
You display a map on iOS with MKMapKit, an official library that allows you to add Apple Maps to your app. You can also set pins (MKPointAnnotation) and do routing (MKDirections API) with that.
There is a Ray Wenderlich tutorial covering the basics of MapKit here:
http://www.raywenderlich.com/21365/introduction-to-mapkit-in-ios-6-tutorial
Related
I have integrated HERE maps successfully in my iOS app, but now I am facing an issue in implementing info-bubble on tap of markers on HERE map.I have searched on HERE documentation for iOS SDK, but can't find anything relevant. There are many solutions for JS, but nothing for iOS.
This feature doesn't seem to exist on iOS and Android. In order to create a similar behaviour in iOS, you should use NMAMapOverlay instead and add your own subviews/styling to it.
The iOS SDK documentation states that NMAMapOverlay can be used to display custom UIView-based content at a fixed location on the map. (...) Then, give the overlay a NMAGeoCoordinates location and add it to a map. The overlay will automatically be repositioned on the screen as the map moves.
You can find more information about the best practices for the implementation here:
https://developer.here.com/documentation/ios-premium/3.15/api_reference_jazzy/Classes/NMAMapOverlay.html
I am currently working through the Ray Wenderlich book called iOS Apprentice, specifically the tutorial called MyLocations. In this tutorial, the user of the app is able to get the coordinates and address of their current location, categorize the location (i.e. a landmark), add a description, and then pin the location to a map.
I am curious if it is possible to create a back-end, perhaps through Firebase, where the pinned locations are able to be shared with other users of the app. In other words, if I opened the map to see my previously pinned locations, I would also be able to see other users' pinned locations and the description that they added when they categorized the location.
Is this possible? If so, any suggestions would be appreciated.
There is an app, that should provide turn by turn navigation. At the moment it uses Google Map SDK and I was able to draw a route using Google Directions API and GMSPath using tutorial from AppCoda. Problem is it looks kind of ugly - simply thin blue line.
My questions is it possible create turn by turn navigation inside an app using Google Maps?
I think Google does provide this option but not for free.
Have a look at this:
https://cloud.google.com/maps-platform/ridesharing/
I'm using MapKit to load a MKMapView and loading KML files to display a route with polylines between the designated points. I've seen a similar Android app using Google Maps that animates the route and runs it from start to finish.
I've been through the MapKit Framework documentation and I can't find anything that suggests I can do the same thing using Apple Maps.
If I'm wrong and it is possible I would be grateful for any information
The only way to resolve this issue is import the Google maps framework, which works perfectly well alongside MKMapkit.
There is a facility within Google Maps that enables the developer to animate their route.
I have been building an app that pins places to a map and have been using Apple Maps for it thus far. However, I've noticed that when zoomed in, the default POI annotations that Apple has included in its maps are quite distracting and make the map feel cluttered when I add my own annotations to the map as well.
I am searching for a way to turn these POIs off in the API but have yet to find the correct property or method to do so.
Just to note, it does appear possible as the new OpenTable app is using Apple Maps, but has found a way to remove these POI annotations. I would post images of each to show the difference, but apparently I need 10 reputation points to do this!
If anyone can even point me to a link that will show me how to remove these, I'm happy to read documentation.
Looking at the documentation there is a showsPointsOfInterest as of iOS 7, just set it to NO (ObjC) or false (Swift).