ionic-team / ionic-team/ionic-native-google-maps

Some indoor map tiles aren't showing up

Offen
#343 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
215
Forks
119
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi I am testing out the capabilities of Google Maps in mapping an airport and I have been able to get it to show me the level manager and roughly a quarter of the airport, but the other 75% does not show up as an indoor area.

Looking on maps.google.com on the browser, I know there is more that it can show, and I can't figure out what the issue is.

Does anyone know what the problem might be? It doesn't seem to be related to my cdebecause the rest of the map shows up, it just seems like it's missing the tiles or something, but who knows! The related code is below

```typescript
import { Component } from '@angular/core';
import { Platform } from "@ionic/angular";
import { Geolocation } from '@ionic-native/geolocation/ngx';
import { GoogleMap, GoogleMaps, GoogleMapOptions, Environment, GoogleMapsEvent, LatLng, MarkerOptions, Marker } from "@ionic-native/google-maps";
import { ThrowStmt } from '@angular/compiler';

// declare var google: any;

@Component({
selector: 'app-polygon-drawer',
templateUrl: './polygon-drawer.page.html',
styleUrls: ['./polygon-drawer.page.scss'],
})
export class PolygonDrawerPage {
map: GoogleMap;
constructor(public platform: Platform) { }

async ngOnInit() {
await this.platform.ready()
}

ngAfterViewInit() {
this.loadMap()
}

loadMap() {

Environment.setEnv({
'API_KEY_FOR_BROWSER_RELEASE': 'APIKEY',
'API_KEY_FOR_BROWSER_DEBUG': 'APIKEY'
});

let mapOptions: GoogleMapOptions = {
camera: {
target: {
lat: 48.1195049,
lng: 16.5639036
},
zoom: 18,
tilt: 0
}
};
console.log('a map should be created soon');
this.map = GoogleMaps.create('map_canvas', mapOptions);
}
}
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.