mapkit

MKMapview don't show map in iOS-7.0 in simulator

筅森魡賤 提交于 2019-12-25 02:13:47
问题 I am using MKMapView in my application. i need to show current location on Map. When i am showing it on iOS 6.0 or 6.1, it is working fine. On iOS 7.0, Map is not appearing properly. have a look of map in iOS 7.0 - Can anyone suggest why map's background is not appearing here, is there any extra approach form iOS 6.0, we will have to perform to show map in simulator in iOS-7.0 ? 回答1: Simulator will not show user current location no matter whether it is iOS 6, 6.1 or iOS 7. To simulate

Prevent replacing of WMS Overlay while adding Polygon or Polyline to MKMapView

风格不统一 提交于 2019-12-25 00:32:33
问题 I have implemented Web Map Service in the MKMapView by subclassing the MKTileOverlay & rendering it using MKTileOverlayRenderer . It works fine and displays the custom map properly. When I call method like mapView.addOverlay(polyLine) to add Polyline or Polygon. The WMS overlay gets replaced with the Apple Maps overly. // Set up the overlay and adds it to MKMapView. func setupTileRenderer() { let wmsURL = formTemplate?.wmsURL let overlay = WMSTileOverlay(urlTemplate: wmsURL) overlay

Xcode 7.0 beta 6: Issue with VectorKit

青春壹個敷衍的年華 提交于 2019-12-24 17:42:44
问题 I'm using MapKit in my App. Everything is fine except with iOS9. I recently downloaded Xcode7.0 beta 6 and ran my project in iOS9 beta , App is hanged with the following error message in console: /BuildRoot/Library/Caches/com.apple.xbs/Sources/VectorKit/VectorKit- 1134.11/GeoCSS/GeoCSS/StyleSheet.cpp:122 STYL Parse: Decode error here /BuildRoot/Library/Caches/com.apple.xbs/Sources/VectorKit/VectorKit-1134.11/GeoCSS/GeoCSS/StyleSheet.cpp:99 STYL Parse: Decode error here Anyone know what is

showsUserLocation action attached to button not working

我只是一个虾纸丫 提交于 2019-12-24 17:28:39
问题 I am having problems with a map view in my app. I have created a button that when clicked should show users location on the map, but nothing happens (no error messages occur). I believe the issue may lie in the way I've written the delegates. The code from the relevant .h and .m files is below: mapViewController.h #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> @interface mapViewController : UIViewController { MKMapView *mapview; } @property (nonatomic,

User Location Mapkit ViewDidLoad

亡梦爱人 提交于 2019-12-24 15:24:00
问题 So from the multiple answers I see on here this is how to center and zoom on user location when the app loads and it works great. -(void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation{ NSLog(@"Did update user location"); MKCoordinateRegion mapRegion; mapRegion.center = mapView.userLocation.coordinate; mapRegion.span.latitudeDelta = 0.2; mapRegion.span.longitudeDelta = 0.2; [map setRegion:mapRegion animated: YES]; } But when you start playing with the map

add id to pin annotation in objective c to load detailview

六眼飞鱼酱① 提交于 2019-12-24 15:09:42
问题 I have a mapview controller which shows pins from an array of business objects I have created (each business has a method to get the title and subtitle of the pin). I have added a disclosure button to each pin annotation which works correctly, but I am not sure how to pass a variable to the detail view which is to be loaded from the disclosure button, and show all the details for that particular business. I add my businesses to the array like this (in viewWillAppear)... // fetch model data

Drawing routes with the help of latitude and longitude values saved in database [closed]

ⅰ亾dé卋堺 提交于 2019-12-24 13:22:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I have created a table in database named UserJourneyLocation which consist of columns LocationID, Latitude, Longitude. The latitude and longitude values are stored in SQLite database. I want to fetch these latitude and longitude values that are there and display them on map and draw

Change User Location Blue Pulsing Circle Radius

故事扮演 提交于 2019-12-24 12:33:52
问题 Is it possible to change the radius of the blue pulsing circle around current user's location in MapKit? I have an application which looks around current location for points of interest within a certain radius. I'd like to show this circle to the user without having to completely provide a new annotation for current user location. Any ideas? 回答1: This radius signifies the GPS's inaccuracy. I don't think you can override its behaviour. 回答2: Take a look at the Mapbox iOS SDK, which is open

Multiple Annotations On Mapkit for iPhone

元气小坏坏 提交于 2019-12-24 11:53:26
问题 Does anyone know how to display more than one location on a map Using Database? I am trying to drop Multiple Pins on google Map with the help of database but just able to drop last pin 回答1: Below is the function which i m using to fill array with the help of Database RecipieAppDelegate *appDelegate = (RecipieAppDelegate *)[[UIApplication sharedApplication] delegate]; [appDelegate getallrecords]; self.namesArray=appDelegate.rs; ///filling array with database for (int i=0; i<namesArray.count; i

Multiple Annotations On Mapkit for iPhone

匆匆过客 提交于 2019-12-24 11:48:02
问题 Does anyone know how to display more than one location on a map Using Database? I am trying to drop Multiple Pins on google Map with the help of database but just able to drop last pin 回答1: Below is the function which i m using to fill array with the help of Database RecipieAppDelegate *appDelegate = (RecipieAppDelegate *)[[UIApplication sharedApplication] delegate]; [appDelegate getallrecords]; self.namesArray=appDelegate.rs; ///filling array with database for (int i=0; i<namesArray.count; i