'+this.name+'';
if (showDate || showTime) {
html+='';
if (showDate) {
html+=this.date;
}
if (showTime) {
if (showDate) {
html+=' ';
}
html+=this.time;
}
html+='
';
}
if (showLocation || showHeight) {
html+='';
if (showLocation) {
var prefix_lat=(this.point.lat()>=0) ? 'N' : 'S';
var prefix_lon=(this.point.lng()>=0) ? 'E' : 'W';
html+='('+prefix_lat+Math.abs(this.point.lat()).toFixed(6)+', '+prefix_lon+Math.abs(this.point.lng()).toFixed(6)+')';
}
if (showHeight) {
if (showLocation) {
html+=' ';
}
html+='標高'+this.height+'m';
}
html+='
';
}
if (this.image!='' && imageLoaded) {
html+='';
}
if (this.url!='') {
html+='';
}
if (this.desc!='') {
html+=''+this.desc+'
';
}
html+='';
return html;
}
function createMarker(markerInfo,showDate,showTime,showLocation,showHeight) {
var marker=new GMarker(markerInfo.point,{title: markerInfo.name});
GEvent.addListener(marker,'click',function() {
if (markerInfo.image!='') {
var image=new Image();
image.src=markerInfo.image;
if (image.complete) {
marker.openInfoWindowHtml(markerInfo.getHtml(showDate,showTime,showLocation,showHeight,true));
}
else {
image.onload=function() {
marker.openInfoWindowHtml(markerInfo.getHtml(showDate,showTime,showLocation,showHeight,true));
}
image.onerror=function() {
marker.openInfoWindowHtml(markerInfo.getHtml(showDate,showTime,showLocation,showHeight,false));
}
}
}
else {
marker.openInfoWindowHtml(markerInfo.getHtml(showDate,showTime,showLocation,showHeight,false));
}
});
return marker;
}
function popupMarker(num) {
GEvent.trigger(markers[num],'click');
}
function getBrowser() {
var agent=navigator.userAgent;
if (agent.indexOf('Safari')>=0) {
return 'Safari';
}
else if (agent.indexOf('Opera')>=0) {
return 'Opera';
}
else if (agent.indexOf('Gecko')>=0) {
return 'Mozilla';
}
else if (agent.indexOf('MSIE')>=0) {
return 'MSIE';
}
else {
return 'other';
}
}
function playRoute() {
if (points.length>1 && !playing) {
Pointer = new CenterPointer();
map.addControl(Pointer);
playing=true;
goForward();
}
}
function goForward() {
map.panTo(points[playPoint++]);
if (playPoint>=points.length) {
window.clearTimeout(playTimer);
playing=false;
playPoint=0;
map.removeControl(Pointer);
}
else {
playTimer=window.setTimeout("goForward()",parseInt(document.getElementById("playSpeed").value));
}
}
function stopRoute() {
if (points.length>1 && playing) {
window.clearTimeout(playTimer);
playing=false;
map.removeControl(Pointer);
}
}
function rewindRoute() {
if (points.length>1) {
playPoint=0;
map.setCenter(points[playPoint]);
}
}
function CenterPointer() {
}
CenterPointer.prototype = new GControl();
CenterPointer.prototype.initialize = function(map) {
var pointer = document.createElement("div");
pointer.style.width = "32px";
pointer.style.height = "32px";
pointer.style.border = "1px solid black";
pointer.innerHTML = '';
map.getContainer().appendChild(pointer);
return pointer;
}
CenterPointer.prototype.getDefaultPosition = function() {
var mapsize = map.getSize();
var left = mapsize.width/2-16;
var top = mapsize.height/2-16;
return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(left, top));
}
//]]>
四万十川ウルトラ100kmマラソン
071014四万十100km.trk
プロフィールマップ