Skip to content

Commit

Permalink
#1 Empty black box on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyverbruggen@gmail.com committed Dec 22, 2015
1 parent 3a6ea1c commit ca725b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ From the command prompt go to your app's root folder and execute:
tns plugin add nativescript-mapbox
```

If you get an error during iOS build related to Podspec versions, probably the easiest fix is:
`tns platform remove ios` and `tns platform add ios`.

## Usage

If you want a quickstart, [clone our demo app](https://github.com/EddyVerbruggen/nativescript-mapbox-demo).
Expand Down Expand Up @@ -176,7 +179,7 @@ Note that `hasFineLocationPermission` will return true when:
mapbox.hasFineLocationPermission().then(
function(granted) {
// if this is 'false' you probably want to call 'requestFineLocationPermission' now
console.log("Has Location Permission? " + result);
console.log("Has Location Permission? " + granted);
}
);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-mapbox",
"version": "1.0.4",
"version": "1.0.5",
"description" : "Native Maps, by Mapbox.",
"main" : "mapbox.js",
"nativescript": {
Expand Down
2 changes: 1 addition & 1 deletion platforms/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pod "Mapbox-iOS-SDK"
pod 'Mapbox-iOS-SDK', '~> 2.1.2'

post_install do |installer|
installer.pods_project.targets.each do |target|
Expand Down

0 comments on commit ca725b5

Please sign in to comment.