# Google maps: my map doesn't shown up

**URL:** <https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452>\
**Category:** ionic-v1\
**Created:** [May 9, 2017, 2:29am UTC](https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452 "2017-05-09T02:29:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CH13](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@CH13](https://forum.ionicframework.com/u/CH13)\
**Post date:** [May 9, 2017, 2:29am UTC](https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452/1 "2017-05-09T02:29:06Z")

</div>

Hello,

I am a beginner, i created a project ‘tabs’ type and i wanted to show my maps in the page of account,but it didn’t shown up. .can you help me to solve the probleme please???  
this is an article i work with it as a reference:

> **[Part 1: Integrating Google Maps with an Ionic 1.x Application](https://www.joshmorony.com/integrating-google-maps-with-an-ionic-application/)**
>
> Google Maps and mobile apps are a perfect match. The Google Maps API is an awesome piece of tech by itself, but when you couple it with a device that is meant to be mobile, as in not stationary, it…

this is the important part of my code:

controllers.js

```auto
.controller('AccountCtrl', function($scope, $ionicLoading) {
 
    google.maps.event.addDomListener(window, 'load', function() {
        var myLatlng = new google.maps.LatLng(37.3000, -120.4833);
 
        var mapOptions = {
            center: myLatlng,
            zoom: 11,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
 
        var map = new google.maps.Map(document.getElementById("map"), mapOptions);
 
        navigator.geolocation.getCurrentPosition(function(pos) {
            map.setCenter(new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude));
            var myLocation = new google.maps.Marker({
                position: new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude),
                map: map,
                title: "My Location"
            });
        });
 
        $scope.map = map;
    });
 
});

```

tab-account.html

```auto
<ion-view view-title="Account">
  <ion-content>
   <div id="map" data-tap-disabled="true"></div>
  </ion-content>
</ion-view>

```

as for the others things are like the article.(i already tryed the code in a “blank” project and it did work)

---

<div class="post-metadata">

**Author:** ![thesourav](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@thesourav](https://forum.ionicframework.com/u/thesourav)\
**Post date:** [May 9, 2017, 3:24am UTC](https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452/2 "2017-05-09T03:24:50Z")

</div>

Make sure you have installed the latest google maps sdk with valid account key

---

<div class="post-metadata">

**Author:** ![CH13](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@CH13](https://forum.ionicframework.com/u/CH13)\
**Post date:** [May 9, 2017, 10:09am UTC](https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452/3 "2017-05-09T10:09:52Z")

</div>

i’m a little lost here you mean to install it throught the sdk manager o using CLI or somthing else???

in the CLI i already used the command :  
“cordova plugin add cordova-plugin-geolocation”  
and add on my “index.html” file:

```auto
<script src="http://maps.google.com/maps/api/js?key=YOUR_API_KEY_GOES_HERE&sensor=true"></script>

```

but if you mean throught the sdk manager this is what i already have :

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/2/5/25808c9fa59a5433c22efd3c92cefebc38bbbcb8.PNG)

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/f/2/f25cff711634513c54f0363960e5a20101d961d4.PNG)

if you mean other thing please say it??

---

<div class="post-metadata">

**Author:** ![thesourav](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@thesourav](https://forum.ionicframework.com/u/thesourav)\
**Post date:** [May 9, 2017, 2:13pm UTC](https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452/4 "2017-05-09T14:13:03Z")

</div>

What happens when you open it, do you get any console errors

---

<div class="post-metadata">

**Author:** ![CH13](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@CH13](https://forum.ionicframework.com/u/CH13)\
**Post date:** [May 9, 2017, 5:43pm UTC](https://forum.ionicframework.com/t/google-maps-my-map-doesnt-shown-up/89452/5 "2017-05-09T17:43:05Z")

</div>

i was getting this warning:  
" Google Maps API warning: SensorNotRequired [https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required](https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required) "  
and i delete sensor=true from the link of maps.

after that i don’t have any probleme in the console.
