Edit in JSFiddle

<div id="map"></div>

<script defer
src="https://mapea4-sigc.juntadeandalucia.es/api/js?container=map&controls=layerswitcher&callback=mifuncion">
</script>
function mifuncion(json) {
  var mapajs = json;
  mapajs.addControls(['scale', 'location']);
  mapajs.setZoom(5);
}
html,
body,
#map {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}