ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

My location button is not being displayed #127

Closed gbarrionuevo closed 5 years ago

gbarrionuevo commented 5 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.4.6 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.3 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"```

**If you use `@ionic-native/google-maps`, please tell the package.json (only `@ionic-native/core` and `@ionic-native/google-maps` are fine mostly)**
   "@ionic-native/core": "^5.0.0-beta.21",
    "@ionic-native/google-maps": "^5.0.0-beta.25",
    "@ionic-native/splash-screen": "5.0.0-beta.21",
    "@ionic-native/status-bar": "5.0.0-beta.21",
    "@ionic/angular": "4.0.0-beta.15",
**Current behavior:**
<!-- Describe how the bug manifests. -->

My location button is not being displayed

**Expected behavior:**
<!-- Describe what the behavior would be without the bug. -->
My location button should being displayed

**Screen capture or video record:**

https://i.stack.imgur.com/9ttlH.png

**Related code, data or error log (please format your code or data):**

let mapOptions: GoogleMapOptions = {
      controls : {
        zoom : false,
        myLocation : true,
        myLocationButton : true
      },
      camera: {
        target: {
          lat: 43.0741704,
          lng: -89.3809802
        },
        zoom: 18,
        // tilt: 30
      }
    }

    this.map = GoogleMaps.create('map_canvas', mapOptions);
wf9a5m75 commented 5 years ago

Please share your project files ob GitHub.

wf9a5m75 commented 5 years ago

Browser platform does not support mylication button and feature by the way

kapilSoni101 commented 5 years ago

@wf9a5m75 sir i have add myLocationButton & myLocation both set true but in my case location button is not displaying tell m please why not showing?