When you need a particular metabox to disappear from a particular template.
//my-admin.js (enqeue script in functions file)
//remove MapPress API on pages except for page_map.php
(function($){
$(document).ready(function() {
var $page_template = $('#page_template')
,$metabox = $('#mappress'); //targets mappress metabox
$page_template.change(function() {
if ($(this).val() == 'page_map.php') { //template we want map on
$metabox.show();
} else {
$metabox.hide();
}
}).change();
});
})(jQuery);






