# Google map using at ionic2

**URL:** <https://forum.ionicframework.com/t/google-map-using-at-ionic2/85343>\
**Category:** ionic-v3\
**Created:** [April 4, 2017, 12:52pm UTC](https://forum.ionicframework.com/t/google-map-using-at-ionic2/85343 "2017-04-04T12:52:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meansoup](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@meansoup](https://forum.ionicframework.com/u/meansoup)\
**Post date:** [April 4, 2017, 12:52pm UTC](https://forum.ionicframework.com/t/google-map-using-at-ionic2/85343/1 "2017-04-04T12:52:39Z")

</div>

Hello! I’m trying to using google map at ionic2.

At using this, I considering performance about map. so I worrying about selecting techniques.

I find two techniques. one is using javascript google map, another is using ionic native.

finding about performance of which techniques, I thought native is better (commonly it can be understand)

and I used both of them.

but, I couldn’t see the better performance. (sometime it makes lower quality)

at this point I think some point

1. bad android device (android 4.2.2, LG gflex which I bought 2 years ago)

2. bad code (which i found, attached under here)

@Component({  
selector: ‘page-home’,  
templateUrl: ‘home.html’  
})

export class HomePage {

map: GoogleMap;  
url: any;

constructor(public navCtrl: NavController, private platform: Platform, public http:Http) {  
// platform.ready().then(() =\> {  
this.loadMap();  
// });  
}

loadMap(){  
let location: GoogleMapsLatLng = new GoogleMapsLatLng(37.284869, 127.045237);

```
this.map = new GoogleMap('map', {
});

this.map.on(GoogleMapsEvent.MAP_READY).subscribe(() => {
    // create CameraPosition
    let position: CameraPosition = {
      target: location,
      zoom: 18,
      tilt: 30
    };

    // move the map's camera to position
    this.map.moveCamera(position);

    // create new marker
    let markerOptions: GoogleMapsMarkerOptions = {
      position: location,
      title: 'abc'
    };

    this.map.addMarker(markerOptions)
      .then((marker: GoogleMapsMarker) => {
        marker.showInfoWindow();
      });
});

```

}  
}

can I make better performance with witch of one? and what’s the better?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [April 5, 2017, 1:30pm UTC](https://forum.ionicframework.com/t/google-map-using-at-ionic2/85343/2 "2017-04-05T13:30:53Z")

</div>

> [@meansoup](#):
>
> bad android device (android 4.2.2, LG gflex which I bought 2 years ago)

Android 4.2.2 and the LG G Flex are ancient - the device was introduced 2013.
