GENIUS!
That did it arclyte. Thank You!
I replaced
var point = new GLatLng(<?php echo $csv_lat;?>, <?php echo
$csv_long; ?>);
map.addOverlay(new GMarker(point));
with this:
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: "Title"
});
But I didn't stop there. I also added the info box that open when you
click on the marker. Here's the full script. I'll be experimenting
with controlling the info box and the controls. Thank for your help.
------------------------JS----------------------------
function initialize() {
var latlng = new google.maps.LatLng(43.6080350,-72.9802560);
var myOptions = {
zoom: 13,
center: latlng,
navigationControl: false,
mapTypeControl: false,
scaleControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById
("map_canvas"), myOptions);
var infotext = "<div style='font-family:verdana; font-size:11px; font-
weight:bold; height:20px; margin-top:10px'>121 West St, Rutland, VT
05701, USA</div>";
var infowindow = new google.maps.InfoWindow({
content: infotext
});
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: "Title"
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
}
------------------------JS----------------------------
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.