私はTimemap.jsをいじっていて、情報ウィンドウ (アイテムの説明) を特定のアイテムに対して常に開くようにしています (つまり、クリックしなくても常にポップアップします)。なぜかうまくいかない... openInfoWindow関数をいろいろ呼び出してみたのですがうまくいきません。これは単なる単純/基本的な timemap.js コードです。私が行った唯一の「カスタマイズ」は、タイムライン バンドからイベントを非表示にすること (noEventLoad: true) です。これが私の単純なコード全体です:
var tm;
$(function() {
tm = TimeMap.init({
mapId: "map",
timelineId: "timeline",
options: {
mapType: "satellite",
style: "classic",
noEventLoad: true
},
datasets: [
{
id: "events",
title: "Events",
type: "basic",
options: {
mapFilter: "showMomentOnly",
items: [
{
"start" : '2007-01-01T13:02:43Z',
"end" : '2007-01-01T13:20:55Z',
"polyline" : [{
"lat" : 35.706,
"lon" : -90.851681},
{"lat" : 35.703682,
"lon" : -90.84924},
{"lat" : 35.697886,
"lon" : -90.843138},
{"lat" : 35.692091,
"lon" : -90.837037},
],
"title" : 'N487LP-1229',
"options" : {
"theme": 'purple',
"lineWeight": 2,
}
},
]
}
}
],
bandInfo: [
{
width: "00%",
intervalUnit: Timeline.DateTime.SECOND,
intervalPixels: 10000,
},
{
width: "50%",
intervalUnit: Timeline.DateTime.MINUTE,
intervalPixels: 100,
},
{
width: "50%",
intervalUnit: Timeline.DateTime.HOUR,
intervalPixels: 300,
}
],
scrollTo: '2007-01-01T13:02:43Z'
});
});
何か案は?
どうもありがとう