echo $map->setMapTypeOpt() . "\n"; echo $map->endOptions(); echo $map->setMap(); foreach ($this->categories as $category) { if (isset($category->longitude) && $category->longitude != '' && $category->longitude != 0 && (isset($category->latitude) && $category->latitude != '' && $category->latitude != 0)) { if ($category->geotitle == '') { $category->geotitle = $category->title; } $extCategory = PhocaGalleryImage::isExtImage($category->extid); if ($extCategory) { $correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($category->extw, $category->exth, $this->tmpl['picasa_correct_width'], $this->tmpl['picasa_correct_height']); $imgLink = JHtml::_('image', $category->linkthumbnailpath, str_replace('»', '-', $category->title), array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height'])); } else { $imgLink = JHtml::_('image', $category->linkthumbnailpath, PhocaGalleryText::strTrimAll(addslashes($category->geotitle))); } $text = '<div style="text-align:left">' . '<table border="0" cellspacing="5" cellpadding="5">' . '<tr>' . '<td align="left" colspan="2"><b><a href="' . $category->link . '">' . PhocaGalleryText::strTrimAll(addslashes($category->geotitle)) . '</a></b></td>' . '</tr>' . '<tr>' . '<td valign="top" align="left"><a href="' . $category->link . '">' . $imgLink . '</a></td>' . '<td valign="top" align="left">' . PhocaGalleryText::strTrimAll(addslashes($category->description)) . '</td>' . '</tr></table></div>'; // Markers $iconOutput = $map->setMarkerIcon(0); echo $iconOutput['js']; echo $map->setMarker($category->id, $category->geotitle, $category->description, $category->latitude, $category->longitude, $iconOutput['icon'], $text); echo $map->setListener(); } } echo $map->endMapF(); echo $map->setInitializeF(); ?> //]]></script><?php } echo '<div> </div>'; echo '<div style="text-align: center; color: rgb(211, 211, 211);display:block;">Powered by <a href="http://www.phoca.cz/phocagallery" style="text-decoration: none;">Phoca Gallery</a></div>'; echo '</div>';
echo '</div></div>'; ?> <script type='text/javascript'>//<![CDATA[ google.load("maps", "3.x", {"other_params":"sensor=false"}); <?php $map = new PhocaGalleryRenderMap(); echo $map->createMap('phocaMap', 'mapPhocaMap', 'phocaLatLng', 'phocaOptions', 'tstPhocaMap', 'tstIntPhocaMap'); echo $map->cancelEventF(); echo $map->checkMapF(); echo $map->startMapF(); echo $map->setLatLng($this->map['latitude'], $this->map['longitude']); echo $map->startOptions(); echo $map->setZoomOpt($this->map['zoom']) . ',' . "\n"; echo $map->setCenterOpt() . ',' . "\n"; echo $map->setTypeControlOpt() . ',' . "\n"; echo $map->setNavigationControlOpt() . ',' . "\n"; echo $map->setScaleControlOpt(1) . ',' . "\n"; echo $map->setScrollWheelOpt(1) . ',' . "\n"; echo $map->setDisableDoubleClickZoomOpt(0) . ',' . "\n"; echo $map->setMapTypeOpt() . "\n"; echo $map->endOptions(); echo $map->setMap(); // Markers $iconOutput = $map->setMarkerIcon(0); echo $iconOutput['js']; echo $map->setMarker(1, $this->map['geotitle'], $this->map['description'], $this->map['latitude'], $this->map['longitude'], $iconOutput['icon']); echo $map->setListener(); echo $map->endMapF(); echo $map->setInitializeF(); ?> //]]></script>
$map = new PhocaGalleryRenderMap(); echo $map->createMap('phocaMap', 'mapPhocaMap', 'phocaLatLng', 'phocaOptions', 'tstPhocaMap', 'tstIntPhocaMap', $text); echo $map->cancelEventF(); echo $map->checkMapF(); echo $map->startMapF(); echo $map->setLatLng($this->map->latitude, $this->map->longitude); echo $map->startOptions(); echo $map->setZoomOpt($this->map->zoom) . ',' . "\n"; echo $map->setCenterOpt() . ',' . "\n"; echo $map->setTypeControlOpt() . ',' . "\n"; echo $map->setNavigationControlOpt() . ',' . "\n"; echo $map->setScaleControlOpt(1) . ',' . "\n"; echo $map->setScrollWheelOpt(1) . ',' . "\n"; echo $map->setDisableDoubleClickZoomOpt(0) . ',' . "\n"; echo $map->setMapTypeOpt() . "\n"; echo $map->endOptions(); echo $map->setMap(); // Markers $iconOutput = $map->setMarkerIcon(0); echo $iconOutput['js']; echo $map->setMarker(1, $this->map->geotitle, $this->map->description, $this->map->latitude, $this->map->longitude, $iconOutput['icon'], $text); echo $map->setListener(); echo $map->endMapF(); echo $map->setInitializeF(); ?> //]]></script><?php } if ($this->tmpl['detailwindow'] == 7) { echo '<div> </div>'; echo PhocaGalleryRenderFront::renderInfo(); }