
MKMapView
zani515
这个作者很懒,什么都没留下…
展开
-
MKPolylineView 绘制虚线
overlayView.lineDashPhase = 2; NSArray* array = [NSArray arrayWithObjects:[NSNumber numberWithInt:5] , [NSNumber numberWithInt:5], nil]; overlayView.lineDashPattern = array;原创 2011-09-08 16:30:27 · 412 阅读 · 0 评论 -
已知一个点的经纬度,通过距离求另外一个点的经纬度
#include <math.h>#define KmPerDegree 111.12000071117#define DegreesPerKm (1.0/KmPerDegree)#define PI M_PI#define TwoPI (M_PI+M_PI)#define HalfPI M_PI_2#define RadiansPerD...原创 2011-09-17 17:35:55 · 3701 阅读 · 0 评论 -
MKMapView响应touch事件
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Lucida Grande'; color: #929292}TapDetectingWindow.h//// plist> // NBFisheryiPad//// Created by shiqyn on 11-6-16.//...原创 2011-06-27 17:37:47 · 219 阅读 · 0 评论 -
MapKit基本知识
User Location:MapViews 用Core Location 来保存用户的路径并在地图上用一个蓝色的点表示出来。 你可以打开:mapView.showUserLocation = YES;如果地图跟踪的是用户的未知,你可以通过只读的属性userLcoationVisible 来检测用户当前的位置是不是可见的。如果是YES,就是可见的。你可以首先设定 showsUs...原创 2012-01-30 20:54:30 · 186 阅读 · 0 评论 -
Move google map logo
#import "MKMapView+Additions.h"@implementation MKMapView (Additions)- (UIImageView*)googleLogo { UIImageView *imgView = nil; for (UIView *subview in self.subviews) { if ([subview isM...原创 2012-07-20 13:10:45 · 111 阅读 · 0 评论 -
ios google map sdk 移动google logo方法
UIEdgeInsets mapInsets = UIEdgeInsetsMake(0.0, 160.0, 0.0, 0); mapView.padding = mapInsets;原创 2014-07-03 10:06:00 · 181 阅读 · 0 评论