Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some indoor map tiles aren't showing up #343

Open
dzbrand opened this issue Nov 10, 2020 · 2 comments
Open

Some indoor map tiles aren't showing up #343

dzbrand opened this issue Nov 10, 2020 · 2 comments

Comments

@dzbrand
Copy link

dzbrand commented Nov 10, 2020

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

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);
	}
}
@wf9a5m75
Copy link
Contributor

Please ask to Google. This plugin just provides the ability to use the native sdk from JavaScript. Behaviors of the SDK is out of control.

@dzbrand
Copy link
Author

dzbrand commented Nov 18, 2020

Thanks for pointing me in the right direction!

Google support said they found the issue and mentioned that the missing tiles were actually fixed in v3.1.0 beta version of the Android SDK.

2 last questions for you, what version of the Android SDK does the plugin currently use? And if not 3.1.0, is there a way to update the SDK through the plugin? And if not, do you have plans on supporting the new version?

Appreciate your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants