';
}
} */
// $id is not used anymore as this is added in methods of Phoca Maps Class
// e.g. 'phocaMap' will be not 'phocaMap'.$id as the id will be set in methods
/* echo $map->startJScData();
echo $map->addAjaxAPI('maps', '3', $this->t['params']);
echo $map->addAjaxAPI('search', '1', $this->t['paramssearch']);
echo $map->createMap('phocaMap', 'mapPhocaMap', 'phocaLatLng', 'phocaOptions','tstPhocaMap', 'tstIntPhocaMap', FALSE, FALSE, $this->t['displaydir']);
echo $map->cancelEventFunction();
echo $map->checkMapFunction();
echo $map->startMapFunction();
echo $map->setLatLng( $this->map->latitude, $this->map->longitude );
echo $map->startMapOptions();
echo $map->setMapOption('zoom', $this->map->zoom).','."\n";
echo $map->setCenterOpt().','."\n";
echo $map->setTypeControlOpt($this->map->typecontrol, $this->map->typecontrolposition).','."\n";
echo $map->setNavigationControlOpt($this->map->zoomcontrol).','."\n";
echo $map->setMapOption('scaleControl', $this->map->scalecontrol, TRUE ).','."\n";
echo $map->setMapOption('scrollwheel', $this->map->scrollwheelzoom, TRUE).','."\n";
echo $map->setMapOption('disableDoubleClickZoom', $this->map->disabledoubleclickzoom).','."\n";
// echo $map->setMapOption('googleBar', $this->map->googlebar).','."\n";// Not ready yet
// echo $map->setMapOption('continuousZoom', $this->map->continuouszoom).','."\n";// Not ready yet
echo $map->setMapOption('styles', $this->map->map_styles).','."\n";
echo $map->setMapTypeOpt($this->map->typeid)."\n";
echo $map->endMapOptions($this->map->custom_options);
if ($this->t['close_opened_window'] == 1) {
echo $map->setCloseOpenedWindow();
}
echo $map->setMap();*/
$map->createMap($this->map->latitude, $this->map->longitude, $this->map->zoom);
$map->setMapType();
// Markers
jimport('joomla.filter.output');
$i = 0;
if (isset($this->marker) && !empty($this->marker)) {
$iconArray = array(); // add information about created icons to array and check it so no duplicity icons js code will be created
foreach ($this->marker as $key => $markerV) {
if ((isset($markerV->longitude) && $markerV->longitude != '')
&& (isset($markerV->latitude) && $markerV->latitude != '')) {
if ($i == 0) {
// Get info about first marker to use it in routing plan
$firstMarker = $markerV;
}
//$hStyle = 'font-size:120%;margin: 5px 0px;font-weight:bold;';
//$text = '
' . addslashes($markerV->title) . '
';
$text = '
' . addslashes($markerV->title) . '
';
// Try to correct images in description
$markerV->description = PhocaMapsHelper::fixImagePath($markerV->description);
$markerV->description = str_replace('@', '@', $markerV->description);
$text .= '