Bill,
Ive just successfully hacked away at your code and got it working. Dont ask me how but Im sure as hell it cant be right. *shrugs*
Anyway, would you mind taking a look at it and correcting it where necessary (as well as telling me how badly written it is)
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var latitudes = new Array( );
var longitudes = new Array( );
var markers = new Array();
var mappy = new GMap2(document.getElementById("mappy"));
mappy.setCenter(new GLatLng(<%=share_latitude%>, <%=share_longitude%>), 15);
latitudes = <%=share_latitude%>;
longitudes = <%=share_longitude%>;
var icon = new GIcon();
icon.image = "/images/marker1.png"
icon.shadow = "/images/shadow-marker1.png";
icon.iconSize = new GSize(16.0, 33.0);
icon.shadowSize = new GSize(33.0, 33.0);
icon.iconAnchor = new GPoint(8.0, 30.0);
icon.infoWindowAnchor = new GPoint(8.0, 16.0);
markers[1] = new GMarker(new GLatLng(<%=share_latitude%>, <%=share_longitude%>), icon);
// Show info about this marker when it is clicked
//GEvent.addListener(markers[1], "click", function() { markers[1].openInfoWindowHtml("Address:<br/><%=addr%>"); } );
// and add this marker:
mappy.addOverlay(markers[1]);
}
}
</script>
webdesigndocuments.com