title: Geolocation has been disabled in this document by Feature Policy
body: <p>In my ionic app, I am trying to use google maps. When I was using below code then it did show maps on my page.</p>
  
  <pre><code>let latLng = new google.maps.LatLng(-34.9290, 138.6010);
  
  let mapOptions = {
    center: latLng,
    zoom: 15,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  
  this.map = new google.maps.Map(this.mapElement.nativeElement, mapOptions);
  </code></pre>
  
  <p>But when I use below code, then I get </p>
  
  <blockquote>
    <p><code>Geolocation has been disabled in this document by Feature Policy</code> error.</p>
  </blockquote>
  
  <pre><code>this.geolocation.getCurrentPosition().then((position) =&gt; {
  
    let latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
  
    let mapOptions = {
      center: latLng,
      zoom: 15,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
  
    this.map = new google.maps.Map(this.mapElement.nativeElement, mapOptions);
  
  }, (err) =&gt; {
    console.log(err);
  });
  </code></pre>