dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

ios No map image #295

Open cnqiuxue opened 6 years ago

cnqiuxue commented 6 years ago

image ··· <MapView *ngIf="latitude && longitude" height="250" #mapView [latitude]="latitude" [longitude]="longitude" [zoom]="zoom" [minZoom]="minZoom" [maxZoom]="maxZoom" [bearing]="bearing" [compassEnabled]="compassEnabled" [tilt]="tilt" i-padding="50,50,50,50" [padding]="padding" (mapReady)="onMapReady($event)" (markerSelect)="onMarkerEvent($event)" (markerBeginDragging)="onMarkerEvent($event)" (markerEndDragging)="onMarkerEvent($event)" (markerDrag)="onMarkerEvent($event)" (markerInfoWindowTapped)="onMarkerEvent($event)" (coordinateTapped)="onCoordinateTapped($event)" (cameraChanged)="onCameraChanged($event)"> ··· image ··· "dependencies": { "@angular/animations": "~5.2.0", "@angular/common": "~5.2.0", "@angular/compiler": "~5.2.0", "@angular/core": "~5.2.0", "@angular/forms": "~5.2.0", "@angular/http": "~5.2.0", "@angular/platform-browser": "~5.2.0", "@angular/platform-browser-dynamic": "~5.2.0", "@angular/router": "~5.2.0", "apollo-angular": "^1.0.1", "apollo-angular-link-http": "^1.0.1", "apollo-cache-inmemory": "^1.2.2", "apollo-client": "^2.3.2", "apollo-link": "^1.2.2", "apollo-link-error": "^1.0.9", "graphql": "^0.13.2", "graphql-tag": "^2.9.2", "moment": "^2.22.1", "moment-hijri": "^2.1.1", "nativescript-advanced-webview": "^2.0.2", "nativescript-angular": "~5.3.0", "nativescript-audio-player": "^1.0.3", "nativescript-geolocation": "^4.2.6", "nativescript-google-maps-sdk": "^2.6.0", "nativescript-loading-indicator": "^2.4.0", "nativescript-localstorage": "^1.1.5", "nativescript-pulltorefresh": "^2.1.1", "nativescript-social-share": "^1.5.0", "nativescript-theme-core": "~1.0.4", "nativescript-ui-calendar": "^3.6.0", "nativescript-ui-listview": "^3.5.8", "reflect-metadata": "~0.1.10", "rxjs": "~5.5.5", "tns-core-modules": "4.1.0", "uglify-es": "^3.2.2", "zone.js": "~0.8.18" }, ···

breningham commented 6 years ago

Usually means API Key problem, are you setting the API Properly ? setting up for Android

setting up for ios

cnqiuxue commented 6 years ago

The api key is correct, you can use the Hong Kong network, you can't use the Chinese mainland network. Test virtual machine ios