Edit in JSFiddle

var viewer=null

function initMap(){
	viewer=iv.getViewer();
}

iv = Geoportal.load(
  	'viewerDiv',
    ['jhyvi0fgmnuxvfv0zjzorvdn'],
    {//Positionnement en fonction de l'adresse IP
    geolocate:true
    },
    17,
    {onView:initMap,
    layers:['ORTHOIMAGERY.ORTHOPHOTOS']}
 );
#viewerDiv {
  width: 100%;
  height: 400px;
}

#info {
  padding: 5px;
  width: 100%;
  height: 20px;
  font-family: "monospace";
  font-size: 10px;
}
<div id="viewerDiv"></div>
<div id="info"></div>

External resources loaded into this fiddle: