Kind of an old problem, but the maps box isn’t showing up when i set the height to 100%. The ‘set body and html to 100%’ solution isn’t working. The view is nested through ui-router and has an abstract parent state. If i set an absolute height the map is showing. Thanks in advance for any hint or help.
Nested View (‘home.index’):
<ion-view hide-back-button="true" left-buttons="leftButtons" right-buttons="rightButtons">
<ion-content scroll="false" has-header="true">
<div id="map" search="address" damage-type="damageType" google-maps></div> <!-- google-maps is an own written directive -->
</ion-content>
</ion-view>
Parent State (‘home’):
<ion-pane ion-side-menu-content>
<ion-nav-bar type="bar-energized"
back-button-type="button-icon"
back-button-icon="ion-ios7-arrow-back"></ion-nav-bar>
<ion-nav-view name="homeContent"></ion-nav-view>
</ion-pane>
<ion-side-menu side="left">
......
Routes:
$stateProvider
.state('home', {
url: "/home",
abstract: true,
templateUrl: "templates/home.html"
})
.state('home.index', {
url: "/index",
views: {
'homeContent': {
templateUrl: "templates/home.index.html",
controller: 'IndexCtrl',
resolve: {
auth: function (Auth) {
return Auth.check()
}
}
}
}
})