HLPWebView is a MapService Client Framework for iOS.
- None
- Install Carthage.
- Add below to your
Cartfile
:
github "hulop/HLPWebView"
- In your project directory, run
carthage update HLPWebView
.
- Add HLPWebView to ViewController class
If you use StoryBoard, add UIWebView object to your ViewController scene. And set Custom Class
to HLPWebView
.
Then, make link from the object to the source file of ViewController.
@property (weak, nonatomic) IBOutlet HLPWebView *webView;
- Setup parameters
Set HLPWebView parameters below
userMode
- A name of MapService setting preset.- The preset names:
user_blind
- A preset for blind usersuser_wheelchair
- A preset for wheel chair usersuser_general
(default) - A preset for all sighted users
- The preset names:
config
- MapService server setting.- Setting keys:
serverHost
- Server host nameserverContext
- API KeyusesHttps
(default: YES) - Use HTTPS to access server
- Setting keys:
Set HLPWebViewDelegate
implementation to HLPWebView.delegate
.
It enables to get current parameters of MapService.
Set HLPTTSProtocol
implementation to HLPWebView.tts
.
The protocol enables to customize Text to Speech and vibration.
This Human Scale Localization Platform library is intended solely for use with an Apple iOS product and intended to be used in conjunction with officially licensed Apple development tools and further customized and distributed under the terms and conditions of your licensed Apple developer program.