ptwoms/P2MSRoutingView
关于
Map Wrapper
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文P2MSRoutingView (OnGoing)
This project is inspired by Google Map application for IOS.
This is supposed to work on IOS 5+.
Supported Maps:
- Apple built-in Map (MapKit)
- Google Map (Google Map SDK for IOS)
- ESRI Map (ArcGIS Runtime SDK for IOS) -- coming soon
GoogleMaps.framework and ArcGIS.framework cannot live together and it is required to use either one in the project.
Map APIs
- Google Map REST API
- OneMap REST API (Singapore only) -- coming soon
Please be sure that Google Maps SDK for IOS and Google Places API services are enabled in Google Developer Console and API keys are generated properly.
Follows the steps described in Google Map SDK for IOS Getting Started guide to set up the new project
Please carefully read the usage limits for Places API.
Everyone is invited to contribute to improve and add more features to this library
Usage
Add the Google API Keys in "P2MSMapHelper.h" before running this sample.
#define GOOGLEMAP_IOS_KEY @"add_your_key_here" //Key for iOS apps
#define GOOGLEMAP_API_KEY @"add_your_key_here" //Key for API Access authenticaition
Loading mapView with predefined Place Name and Coordinate
P2MSMapViewController *mapViewC = [[P2MSMapViewController alloc]initWithNibName:nil bundle:nil];
[mapViewC setDefaultLocation:@"Shop Name, #xx-xx, Clementi Shopping Mall,\n Singapore" withCoordinate:CLLocationCoordinate2DMake(1.315047,103.764752)];
mapViewC.mapType = MAP_TYPE_GOOGLE;
// - MAP_TYPE_GOOGLE (default)
// - MAP_TYPE_APPLE
// - MAP_TYPE_ESRI (haven't implemented)
mapViewC.mapAPISource = MAP_API_SOURCE_GOOGLE;
// - MAP_API_SOURCE_GOOGLE (default),
// - MAP_API_SOURCE_ONE_MAP (haven't implemented)
mapViewC.allowDroppedPin = YES;
will result in
###Place AutoComplete & Geocode

(will add custom data source or local source in later)
Query AutoComplete

Driection

Direction Detail

####Add/customize transit icons P2MSDirectionView.m
(UIImageView *)getImageViewForRoute:(NSArray *)routeComponent
####Customize Tracking Button for Apple Map P2MSUserTrackingButton.h P2MSUserTrackingButton.m
####Know Issue
- Memory warning in map rotation (from MKMapKit)
###Credits
###Contributions
- Contributions and suggestions are welcome.
探索相关项目
加载中…