07/06/25 22:42:21
>>608
ありがとうございました。
下記で、無事表示を確認できました。
<body onload="load()">
<script type="text/javascript">
//<![CDATA[
var map = null;
var geocoder = null;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(35.67431, 139.69082), 13);
geocoder = new GClientGeocoder();
<?php print "showAddress(\"".$DBaddress."\")"; ?>;
}}
function showAddress(address) {
if (geocoder) { geocoder.getLatLng(
address, function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
}});}}
//]]>
</script>