|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Rails + OpenLaszloサンプルアプリ</title>
<script type="text/javascript">
lzOptions = { ServerRoot: 'http://127.0.0.1:8080/lps-4.0.3'};
</script>
<script type="text/javascript" src="http://127.0.0.1:8080/lps-4.0.3/lps/includes/embed-compressed.js"></script>
<script src="http://maps.google.com/maps?file=api&v=2&key=ここはGoogleMapsで取得したAPIkeyを入力"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if(GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
}
}
//住所からマップを移動
function setByAddress(address) {
if(geocoder) {
geocoder.getLatLng(address,
function(point) {
if(!point) {
alert(address + " はみつかりませんでした。");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
}
}
);
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<script type="text/javascript">
Lz.swfEmbed({url: 'http://127.0.0.1:8080/lps-4.0.3/my-apps/laszlocustomerapp/main.lzx?lzt=swf', bgcolor: '#ffffff', width: '600', height: '300', id: 'lzapp', accessible: 'false'});
</script>
<div id="map" style="width: 500px; height: 300px"></div>
<noscript>
Please enable JavaScript in order to use this application.
</noscript>
</body>
</html>
|
|