# Header over status bar problem when using Google Maps

**URL:** <https://forum.ionicframework.com/t/header-over-status-bar-problem-when-using-google-maps/3585>\
**Category:** ionic-v1\
**Created:** [April 30, 2014, 12:53pm UTC](https://forum.ionicframework.com/t/header-over-status-bar-problem-when-using-google-maps/3585 "2014-04-30T12:53:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikewazowski](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mikewazowski](https://forum.ionicframework.com/u/mikewazowski)\
**Post date:** [April 30, 2014, 12:53pm UTC](https://forum.ionicframework.com/t/header-over-status-bar-problem-when-using-google-maps/3585/1 "2014-04-30T12:53:15Z")

</div>

When I add the Google Maps script into my index.html for use throughout my app, the header bar (e.g.: ion-view title) goes over the status bar on my iPhone.

The script I use in my index.html for Google Maps:

```
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB16sGmIekuGIvYOfNoW9T44377IU2d2Es&sensor=true"></script>

```

Header taking over status bar’s space when including the previous script:

![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/608/6807df3346bf7fc1.png)

When I remove that particular script, the header takes its normal position (below the status bar).

I’ve also looked at some sample code here: [http://codepen.io/ionic/pen/uzngt](http://codepen.io/ionic/pen/uzngt)

How should I go about integrating Google Maps and yet not breaking the header?

---

<div class="post-metadata">

**Author:** ![mikewazowski](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mikewazowski](https://forum.ionicframework.com/u/mikewazowski)\
**Post date:** [April 30, 2014, 1:14pm UTC](https://forum.ionicframework.com/t/header-over-status-bar-problem-when-using-google-maps/3585/2 "2014-04-30T13:14:16Z")

</div>

I’ve tried adding the script before any other JavaScript (before the importing of app.js, controllers.js and ionic.js, etc) and now it works without breaking the header.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [April 30, 2014, 6:48pm UTC](https://forum.ionicframework.com/t/header-over-status-bar-problem-when-using-google-maps/3585/3 "2014-04-30T18:48:28Z")

</div>

Yeah, any external script need to be placed before the ionic js files.

Glad to here you got this worked out!
