Download "user manual"

Transcript
Calling Plugins
$request->locationRequest
->zoomPointLocationRequest->bbox->minx = 500000;
$request->locationRequest
->zoomPointLocationRequest->bbox->miny = 100000;
$request->locationRequest
->zoomPointLocationRequest->bbox->maxx = 600000;
$request->locationRequest
->zoomPointLocationRequest->bbox->maxy = 200000;
$request->locationRequest
->zoomPointLocationRequest->point->x = 550000;
$request->locationRequest
->zoomPointLocationRequest->point->y = 150000;
$request->locationRequest
->zoomPointLocationRequest->zoomType = 'ZOOM_SCALE';
$request->locationRequest
->zoomPointLocationRequest->scale = 200000;
...
Now request object is ready, SOAP method is called.
try{
$result = $client->getMap($request);
print_r($result);
} catch (SoapFault $fault) {
print $fault->faultstring;
}
?>
Result is shown below. It includes relative paths to generated images and new
bounding box computed from requested scale.
stdClass Object
(
[timestamp] => 1107925732
[serverMessages] => Array
(
)
[imagesResult] => stdClass Object
(
[className] => ImagesResult
[mainmap] => stdClass Object
(
[isDrawn] => 1
[path] => images/110839565198671.jpg
[width] => 500
[height] => 500
[format] =>
)
[keymap] => stdClass Object
(
[isDrawn] =>
[path] =>
[width] =>
[height] =>
[format] =>
)
[scalebar] => stdClass Object
(
[isDrawn] => 1
[path] => images/110839565198672.png
[width] => 300
[height] => 31
[format] =>
168