mkmapview

Google Map Navigation in Flutter

别等时光非礼了梦想. 提交于 2019-12-28 12:42:47
问题 I'm new to flutter. I found Flutter doesn't support inline map, only a static map view. I wanted to build an app which I need to show the driving directions on the map. Is it possible to create the same in flutter? 回答1: you can use android_intent library in flutter for starting googlemaps and get diection in android. library : https://pub.dartlang.org/packages/android_intent and in ios you can use both google api like comgooglemaps or google map url {i choose this one} and maps.apple.com.

Customise iOS8 Callout bubble (Swift)

こ雲淡風輕ζ 提交于 2019-12-28 08:40:14
问题 I want to customise the iOS8 MapView Callout bubble which get visualised when clicking on a MKAnnotationView. The Default bubble is a bit limiting (having only Title,Subtitle and 2 accessory view) so I'm struggling to find an alternative solution. Here two possible ways and the relative problems I'm facing: PROBLEM 1) CREATING A CUSTOM CALLOUT BUBBLE Digging the Apple documentation I have found this: When you use a custom view instead of a standard callout, you need to do extra work to make

Draw a circle of 1000m radius around users location in MKMapView

谁说胖子不能爱 提交于 2019-12-28 01:43:46
问题 (Using iOS 5 and Xcode 4.2) I have an MKMapView and want to draw a circle of 1000m radius around the user location. On the surface it would seem that implementing the mapView:viewForAnnotation: map view delegate method, and adding a custom MKAnnotationView for the users location, would be a perfect solution. It would look something like this: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation { // If it's the user location, return my custom

Zooming MKMapView to fit annotation pins?

南笙酒味 提交于 2019-12-27 10:29:07
问题 I am using MKMapView and have added a number of annotation pins to the map about a 5-10 kilometre area. When I run the application my map starts zoomed out to show the whole world, what is the best way to zoom the map so the pins fit the view? EDIT: My initial thinking would be to use MKCoordinateRegionMake and calculate the coordinate centre, longitudeDelta and latitudeDelta from my annotations. I am pretty sure this will work, but I just wanted to check I was not missing anything obvious.

How to move legal link in mkmapview IOS 7

依然范特西╮ 提交于 2019-12-26 03:08:08
问题 as all we know Apple, we always need to change something for each update. Did somebody solve the moving problem for map legal link? I tried many ways to control legal label but, just it can be hidden? what else I can do? thanks in advance 回答1: You need to change bottomLayoutGuide for your UIViewController. Create a class with following code: MapLayoutGuide.h @interface MapLayoutGuide : NSObject <UILayoutSupport> -(id)initWithLength:(CGFloat)length; @end MapLayoutGuide.m #import

To show the route between mutliple points in iphone sdk

孤人 提交于 2019-12-25 18:07:31
问题 I want to show the exact route path between the more that two points. I do have some example but all are having example which show the route between two points. Exmaple :- this, also this even i had also gone through the example of regexlite. But all have the logic for the route between two points. Through polyline i can just draw the straight line.I am not able to see the route. EDITED QUESTION:- There are 5 points:- 1)points is :-"lat": -35.29987329273559, "lng": 149.13395404815674, 2)Point

How to find map annotations that fit my criteria

你说的曾经没有我的故事 提交于 2019-12-25 17:19:53
问题 I have a MapView with user location, and a bunch of Map annotations. At first I want to show all the possible pins on the map. (succeeded in doing that) Then I want to zoom in the map to show only the annotations that are within 50 KMs away from the userLocation annotation How do i find these annotations? 回答1: - (CLLocation*)closestLocationToLocation:(CLLocation*)currLocation { CLLocationDistance minDistance; CLLocation *closestLocation = nil; for (CLLocation *location in arrayOfLocations) {

iOS7 - Map view pin do not appear until screen is touched

感情迁移 提交于 2019-12-25 16:46:34
问题 In my app, I download a set of point from a web service using json. Actualizing the app to iOS7, I am experimenting that problem: the locations are downloaded but pins on the map are not painted until user touchs and "moves" the map. Then they appear and all work as in iOS6. How can I correct that behavior? EDIT: AddAnnotation is called at the end of a method that receive data, parse the json and pass them to mylocaction object: - (void)plotBarPosition:(NSString *)data_string { // Parse the

Annotating MKMapView in offline mode

大兔子大兔子 提交于 2019-12-25 08:06:17
问题 In my application, I have a map view displaying nearby locations in a regeon. I can annotate my current location and other fixed locations in the map when the application be in online. The User would change his location(he is travelling),and some time he would be in offline mode. Is there any way to display his current location in map in offline mode? I could display the all other fixed locations already pinned into map. 回答1: Its not possible to display pins in off line mode. When I added pin

Calling coordinates from MySQL database with this code causes simulator to display a SIGABRT error. What's wrong?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 07:59:12
问题 When I use this code to try and call Lat & Long coordinates from a MySQL database (and display them on a MapView), the app runs fine. Everything appears to work, but for some reason, xcode pauses the simulator before the map loads, and throws me a SIGABRT. Any idea why? See below: MapViewController.h #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> @interface MapViewController : UIViewController <MKMapViewDelegate> @property (nonatomic, strong) IBOutlet MKMapView *mapView; @property