# Google Maps Plugin Vs Javascript Option

**URL:** <https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777>\
**Category:** Capacitor\
**Created:** [March 15, 2023, 1:42pm UTC](https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777 "2023-03-15T13:42:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aardra](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@aardra](https://forum.ionicframework.com/u/aardra)\
**Post date:** [March 15, 2023, 1:42pm UTC](https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777/1 "2023-03-15T13:42:20Z")

</div>

Hi All

I have been using google Maps using the Javascript method.

I have seen there is a capacitor plugin.

What would be the advantage of using a plugin compared to current javascript method?

---

<div class="post-metadata">

**Author:** ![thor9n](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@thor9n](https://forum.ionicframework.com/u/thor9n)\
**Post date:** [March 19, 2023, 2:18pm UTC](https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777/2 "2023-03-19T14:18:07Z")

</div>

I’m wondering the same. Could someone clarify this?

The plugin is also missing vital features such as the fitBounds() method.

---

<div class="post-metadata">

**Author:** ![aardra](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@aardra](https://forum.ionicframework.com/u/aardra)\
**Post date:** [March 29, 2023, 1:34pm UTC](https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777/3 "2023-03-29T13:34:12Z")

</div>

Any update on your side about the advantage of the plugin over JS?

---

<div class="post-metadata">

**Author:** ![thor9n](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@thor9n](https://forum.ionicframework.com/u/thor9n)\
**Post date:** [March 29, 2023, 1:58pm UTC](https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777/4 "2023-03-29T13:58:10Z")

</div>

From what I can gather it mainly affects performance; users will get a faster experience with the native elements compared to the JS implementation.

The Capacitor plugin seems to be missing quite a lot so far though ([see link](https://github.com/ionic-team/capacitor-plugins/issues/1502)), so you’ll probably have to make a choice between features and the alleged performance improvements.

---

<div class="post-metadata">

**Author:** ![aardra](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@aardra](https://forum.ionicframework.com/u/aardra)\
**Post date:** [March 29, 2023, 10:35pm UTC](https://forum.ionicframework.com/t/google-maps-plugin-vs-javascript-option/231777/5 "2023-03-29T22:35:13Z")

</div>

Yes, at the moment, I need to use it for a simple location display.

By the way, has the JS version stopped working for you today all of a sudden?

I am getting the following errors:

Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns, please see [Overview &nbsp;|&nbsp; Maps JavaScript API &nbsp;|&nbsp; Google Developers](https://goo.gle/js-api-loading)

I had to comment out all my google maps references and resubmit to the app store.
