Simple google maps
Posted: Fri Feb 01, 2008 6:14 pm
Does anyone know how to write stuff into popup window in simple google maps. i looked in another thread and he said you write ii in this bit of code.
if($this->sidebar) {
$_output .= 'function click_sidebar(idx) {' . "\n";
$_output .= ' if(isArray(marker_html[idx])) { markers[idx].openInfoWindowTabsHtml(marker_html[idx]); }' . "\n";
$_output .= ' else { markers[idx].openInfoWindowHtml(marker_html[idx]); }' . "\n";
$_output .= '}' . "\n";
}
$_output .= 'function showInfoWindow(idx,html) {' . "\n";
$_output .= 'map.centerAtLatLng(points[idx]);' . "\n";
$_output .= 'markers[idx].openInfoWindowHtml(html);' . "\n";
$_output .= '}' . "\n";
tried everywhere but no luck. Does any know how to??
Also does anyone know how to use simple google maps with coordinates instead of addressess. The addresses are right but is not accurate. It would be good to make tem accurate.
Any help would be appreciated
if($this->sidebar) {
$_output .= 'function click_sidebar(idx) {' . "\n";
$_output .= ' if(isArray(marker_html[idx])) { markers[idx].openInfoWindowTabsHtml(marker_html[idx]); }' . "\n";
$_output .= ' else { markers[idx].openInfoWindowHtml(marker_html[idx]); }' . "\n";
$_output .= '}' . "\n";
}
$_output .= 'function showInfoWindow(idx,html) {' . "\n";
$_output .= 'map.centerAtLatLng(points[idx]);' . "\n";
$_output .= 'markers[idx].openInfoWindowHtml(html);' . "\n";
$_output .= '}' . "\n";
tried everywhere but no luck. Does any know how to??
Also does anyone know how to use simple google maps with coordinates instead of addressess. The addresses are right but is not accurate. It would be good to make tem accurate.
Any help would be appreciated