<commit_before>---
layout: "v2_fluid/docs_base"
version: "1.2.4"
versionHref: "/docs/v2/native"
path: ""
category: native
id: "google-maps"
title: "Google Maps"
header_sub_title: "Class in module "
doc: "Google Maps"
docType: "class"
---








<h1 class="api-title">

  
  Google Maps
  

  

  

</h1>

<a class="improve-v2-docs" href="http://github.com/driftyco/ionic-native/edit/master/-native/src/plugins/googlemaps.ts#L39">
  Improve this doc
</a>





<!-- decorators -->


<pre><code>$ ionic plugin add cordova-plugin-googlemaps</code></pre>
<p>Repo:
  <a href="https://github.com/mapsplugin/cordova-plugin-googlemaps">
    https://github.com/mapsplugin/cordova-plugin-googlemaps
  </a>
</p>

<!-- description -->

<p>This plugin uses the native Google Maps SDK</p>



<!-- @usage tag -->

<h2>Usage</h2>

<pre><code>import {GoogleMap, GoogleMapsEvent} from &#39;ionic-native&#39;;

...

// somewhere in your component
let map = new GoogleMap(&#39;elementID&#39;);

map.on(GoogleMapsEvent.MAP_READY).subscribe(() =&gt; console.log(&quot;Map is ready!&quot;));
</code></pre>




<!-- @property tags -->
<h2>Static Members</h2>
<div id="isAvailable"></div>
<h3><code>isAvailable()</code>
  
</h3>

Checks if a map object has been created.






<div class="return-value" markdown="1">
  <i class="icon ion-arrow-return-left"></i>
  <b>Returns:</b> 
<code>Promise&lt;GoogleMap&gt;</code> returns a promise that resolves with the Map object (if it exists).
</div>




<!-- methods on the class -->

<h2>Instance Members</h2>

<div id="on"></div>

<h3>
  <code>on()</code>
  

</h3>

<commit_msg>Automated build of native docs driftyco/ionic-native@a53ae8f257c1ffb8adb32e7205833a0e9c2aa882<commit_after>---
layout: "v2_fluid/docs_base"
version: "1.2.4"
versionHref: "/docs/v2/native"
path: ""
category: native
id: "google-maps"
title: "Google Maps"
header_sub_title: "Class in module "
doc: "Google Maps"
docType: "class"
---








<h1 class="api-title">

  
  Google Maps
  

  

  

</h1>

<a class="improve-v2-docs" href="http://github.com/driftyco/ionic-native/edit/master/-native/src/plugins/googlemaps.ts#L39">
  Improve this doc
</a>





<!-- decorators -->


<pre><code>$ ionic plugin add cordova-plugin-googlemaps</code></pre>
<p>Repo:
  <a href="https://github.com/mapsplugin/cordova-plugin-googlemaps">
    https://github.com/mapsplugin/cordova-plugin-googlemaps
  </a>
</p>

<!-- description -->

<p>This plugin uses the native Google Maps SDK</p>



<!-- @usage tag -->

<h2>Usage</h2>

<pre><code>import {GoogleMap, GoogleMapsEvent} from &#39;ionic-native&#39;;

...

// somewhere in your component
let map = new GoogleMap(&#39;elementID&#39;);

map.on(GoogleMapsEvent.MAP_READY).subscribe(() =&gt; console.log(&quot;Map is ready!&quot;));
</code></pre>




<!-- @property tags -->
<h2>Static Members</h2>
<div id="isAvailable"></div>
<h3><code>isAvailable()</code>
  
</h3>

Checks if a map object has been created.






<div class="return-value" markdown="1">
  <i class="icon ion-arrow-return-left"></i>
  <b>Returns:</b> 
<code>Promise&lt;boolean&gt;</code> returns a promise that resolves with a boolean that indicates if the plugin is available.
</div>




<!-- methods on the class -->

<h2>Instance Members</h2>

<div id="on"></div>

<h3>
  <code>on()</code>
  

</h3>


{'fraction_non_alphanumeric': 0.19484848484848485, 'fraction_numerical': 0.024545454545454544, 'mean_word_length': 3.861561119293078, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '802558', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1226, 'n_words': 262}