Location: PHPKode > projects > AppForMap > appformap/includes/reference_map.php
<?php
$refControlObject = & new control("TRUE");

$extent=explode(" ",$extentReferenceMap); 

$refControlObject->setMinX($extent[0]);
$refControlObject->setMinY($extent[1]);
$refControlObject->setMaxX($extent[2]);
$refControlObject->setMaxY($extent[3]);
$refControlObject -> setproportion();

$refControlObject -> doNotUseBackGroundWMS=$doNotUseBackGroundWMS;
$refControlObject -> doNotUseWMS=$doNotUseWMS;

$refControlObject->width=$refMapWidth;
$refControlObject->height=$refMapHeight;

if ($mapfileUrlRef) {
	$refMapscriptObject = & new mapscript(NULL,$mapfileUrlRef,$refControlObject);
	$refControlObject -> setMapscriptObject($refMapscriptObject);
}



for ($i = 0; $i <= $controlObject -> serverCount; $i ++)
{
	$serviceObject[$i] -> setControlObject($refControlObject);
}
$refControlObject -> setproportion();

$refControlObject -> renderGeometry($refControlObject->convertpointarray_geo($controlObject->getExtentAsPolygon(),""),"polygon",2,255,0,0);

// In Ajax server there is no need for reloading the ref map image
if ($includedInAjaxServer) $refControlObject -> $doNotRenderMap=true;
$imageName=$refControlObject->createMapImage($workingDir,$imgPrefix,$imageLabel);
$refmapimageUrl=$imageUrl.$imageName;
$overlayRefmapimageUrl=$imageUrl."overlay".$imageName;


for ($i = 0; $i <= $controlObject -> serverCount; $i ++)
{
	$serviceObject[$i] -> setControlObject($controlObject,TRUE);
}
//$controlObject -> set_bbox_form();
?>
Return current item: AppForMap