Hi All,
The result of body will not contain onload="initialize()" and onunload="GUnload()".
So use window.onload instead.
Have to study the javascript mechanism of appfuse.
BR,
Maker Su
//
window.onload = function() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
}
}
</script>
</head>
<div id="map_canvas" style="width: 500px; height: 300px"></div>
On Thu, Mar 12, 2009 at 4:45 PM, maker su
<makersu@...> wrote:
Hi All,
I create map.jsp for show google map but not work.
Please hint.
Thanks,
Maker su
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
map.setUIToDefault();
}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>