0

I'm using google maps nativescript.

I have this code:

HTML:

 <MapView class="map" (mapReady)="onMapReady1($event)" (markerSelect)="onMarkerSelect($event)" height="100%"> </MapView>

TS:

   public onMapReady1(event) {
        console.log('OnMapReady')
        this.mapView = event.object;
        this.gMap = event.object.gMap;
        var UiSettings = this.gMap.getUiSettings();
        this.gMap.setMyLocationEnabled(true);
        UiSettings.setZoomControlsEnabled(true);
}

Project when I run in Android tns run andorid show correct zoom level and location point and button.

In IOS doesn't show zoom level and location point and button.

Can you ask me any idea how to show in IOS?

web site
  • 99
  • 8
  • You are accessing the native APIs of Android, which is not valid for iOS. The iOS version of Google Maps SDK doesn't seem to expose such controls. – Manoj Sep 11 '19 at 14:41
  • Try this If gMap is map object, this.gMap.setZoom(19) – Shikha Oct 11 '19 at 14:12

0 Answers0