Example #1
0
echo $map->setMapOption('zoom', $this->zoom) . ',' . "\n";
echo $map->setCenterOpt() . ',' . "\n";
echo $map->setTypeControlOpt() . ',' . "\n";
echo $map->setNavigationControlOpt() . ',' . "\n";
echo $map->setMapOption('scaleControl', 1, TRUE) . ',' . "\n";
echo $map->setMapOption('scrollwheel', 1) . ',' . "\n";
echo $map->setMapOption('disableDoubleClickZoom', 0) . ',' . "\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->setMapTypeOpt() . "\n";
echo $map->endMapOptions();
echo $map->setMap();
//	echo $map->exportZoom($this->zoom, 'window.top.document.forms.adminForm.elements.zoom');
//	echo $map->exportMarker('Global', $this->type, $this->latitude, $this->longitude, 'window.top.document.forms.adminForm.elements.latitude', 'window.top.document.forms.adminForm.elements.longitude');
if ($this->type != 'marker') {
    echo $map->exportZoom($this->zoom, '', 'phocaSelectMap_jform_zoom');
}
if ($this->type == 'marker') {
    echo $map->exportMarker('Global', $this->type, $this->latitude, $this->longitude, '', '', 'phocaSelectMap_jform_latitude', 'phocaSelectMap_jform_longitude', 'phocaSelectMap_jform_gpslatitude', 'phocaSelectMap_jform_gpslongitude');
} else {
    echo $map->exportMarker('Global', $this->type, $this->latitude, $this->longitude, '', '', 'phocaSelectMap_jform_latitude', 'phocaSelectMap_jform_longitude');
}
echo $map->setListener();
echo $map->setGeoCoder();
echo $map->endMapFunction();
if ($this->type == 'marker') {
    echo $map->addAddressToMapFunction('Global', 'phocaAddressEl', $this->type, '', '', 'phocaSelectMap_jform_latitude', 'phocaSelectMap_jform_longitude', 'phocaSelectMap_jform_gpslatitude', 'phocaSelectMap_jform_gpslongitude');
    // no '.id.' - it is set in class
} else {
    echo $map->addAddressToMapFunction('Global', 'phocaAddressEl', $this->type, '', '', 'phocaSelectMap_jform_latitude', 'phocaSelectMap_jform_longitude');
    // no '.id.' - it is set in class