Here the code.
In the app.run(…) section:
// Hide side menu after entering maps (Native SDK)
$rootScope.menuHidden = false;
$rootScope.$on('$stateChangeStart',
function(event, toState, toParams, fromState, fromParams){
$rootScope.menuHidden = toState.name == 'map' || toState.name == 'map-search';
});
In side menu markup:
...
<ion-side-menu side="left" ng-hide="menuHidden">
...
I have use the map in two states named map and map-search
While i switch to that states menuHidden will set to true. And hides the side menu. That’s the trick