File: /pages/tutorials/picture/picture-05.php
<?php class Picture05 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Picture with map area"; $pic = new Picture("img/slider/3-small.jpg"); $pic->setTitle("In The Blue by sharkbait"); $picture_map = new PictureMap("shark"); $picture_map->addPolygon( new Link("http://www.flickr.com/photos/sharkbait/2992242065 /in/pool-809956@N25/", Link::TARGET_BLANK), "In The Blue by sharkbait", 17,58,13,63,14,72,16,81,18,90,17,98,11,104,4,111,1,119,3, 127,13,128,23,124,31,120,33,127,34,135,39,143,48,146,49, 137,46,125,46,115,54,108,74,101,92,101,109,107,123,115, 131,128,137,122,149,123,137,114,123,103,110,92,91,85,79, 82,54,83,41,87,36,83,29,72); $pic->setPictureMap($picture_map); $this->render = $pic; } } ?>
Go back to tutorial of the componant Picture
|