Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70904

Ionic V3: Mylocation button is not working :Google maps

$
0
0

@naveenvuppu wrote:

My location option not showing in google maps.

loadMap() {
this.geolocation.getCurrentPosition().then((position) => {
let latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);

  let mapOptions = {
    center: latLng,
    zoom: 10,
    streetViewControl: false,
    zoomControl: false,
    mapTypeControl: false,
    controls : {
      compass : true,
      myLocationButton : true,
      myLocation: true,
      indoorPicker : false,
      zoom : false,
      mapToolbar : true
    },
    mapTypeId: google.maps.MapTypeId.ROADMAP,

  }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70904

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>