mapkit

Clear MKMapView's cache of tiles?

风格不统一 提交于 2019-12-30 02:25:06
问题 I'm working on an iPhone game that uses an MKMapView as the playfield. After only a couple of minutes of play the app inevitably starts to get sluggish and eventually crashes due to low memory. After digging around the culprit seems to be that the map view constantly demands more memory. The game requires a lot of zooming and panning of the map so I can only assume that the map's cache of tiles just keeps growing until it runs out of memory. Is there any way to force the map view to flush it

How to deal with inconsistent Chinese maps on iOS 6?

醉酒当歌 提交于 2019-12-30 01:37:27
问题 For Chinese maps on iOS 6, it seems that MapKit selects map provider based on your where the device is located. If you're in China it will use AutoNavi maps, and else it will use the default Apple maps. To complicate things, the AutoNavi maps seem to be transformed in the same way that Google's maps on iOS 5 are, whereas the default Apple maps are not transformed. By transformed I'm talking about the fact that all maps in China are transformed, although this is not true. Rather, some maps in

Custom map style in MapKit

微笑、不失礼 提交于 2019-12-29 18:02:40
问题 I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps. I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below. (source: servendesign.com) I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The

Custom map style in MapKit

折月煮酒 提交于 2019-12-29 18:02:11
问题 I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps. I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below. (source: servendesign.com) I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The

Check whether zoom level changed

自作多情 提交于 2019-12-29 11:36:37
问题 I'm using MapKit on iPhone. How can I know when the user changes the zoom level (zoom in\out the map)? I've tried to use mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated; but that's called even when the map is only dragged. Unfortunately, when the map is dragged the mapView.region.span changes as well... Help? 10x 回答1: It is pretty simple to calculate the zoom level. See the snippet below. You can get the mRect parameter from the visibleMapRect property on your MKMapView

How to calculate the current speed and average speed of user travelling from current location to particular locaction in iPhone? [closed]

那年仲夏 提交于 2019-12-29 04:50:26
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . I am having a map application. When a person travels from current location to particular location I want to calculate the distance covered by the person, the current speed of the person, average speed of the

iPhone Map Kit cluster pinpoints

邮差的信 提交于 2019-12-28 08:05:40
问题 Regarding iPhone Map Kit cluster pinpoints: I have 1000's of marks that I want to show on the map but it's just too many to handle so I want to cluster them. Are there frameworks available or proof of concepts? That this is possible or is already been done? 回答1: You can use REVClusterMap to cluster 回答2: Note: This is a commercial product I'm affiliated with, but it solves this very problem. I solved this problem in few of my apps and decided to extract it into a reusable framework. It's

how to show Custom user location programmatically

[亡魂溺海] 提交于 2019-12-26 03:09:10
问题 Hey I'm a beginner and learning Ios App development and i want to know that how to set the the user location programmatically like we did here using IDE (Custom Location) :- I setup everything and location system is working fine in my simulator (fake location) what i have to do if i want to do the same thing programmatically i worked myself and found a little solution but its not helping me out like something is missing here's my code :- - (IBAction)showMyLocation:(id)sender { CLLocation

how to show Custom user location programmatically

南楼画角 提交于 2019-12-26 03:09:10
问题 Hey I'm a beginner and learning Ios App development and i want to know that how to set the the user location programmatically like we did here using IDE (Custom Location) :- I setup everything and location system is working fine in my simulator (fake location) what i have to do if i want to do the same thing programmatically i worked myself and found a little solution but its not helping me out like something is missing here's my code :- - (IBAction)showMyLocation:(id)sender { CLLocation

how to get current location inside a building iphone

做~自己de王妃 提交于 2019-12-25 17:03:29
问题 How is it possible to obtain the current location inside a building. I want to develop an application similar to this http://matadornetwork.com/goods/point-inside-indoor-map-application-for-the-iphone-and-android/ (on a smaller/less complicated scale) and wondering on the approach i should take. Are there any tutorials/examples/articles that would point me in the right direction? Thanks ... 回答1: Indoor Navigation System for Handheld Devices shows up a few possibilities how indoor navigation