highlightSections()を使うと駅間を強調することができます。
var rosen;
var markers = []; // 立てたマーカーを記憶しておく変数
function init() {
rosen = new Rosen("map", {
apiKey: "2jr5nchcswemrfjj67jvjaqu", // アクセスキーはサンプル用です。実際にご利用されるときは書き換えてください。
centerStation: 22917, // 中心の駅コード
zoom: 16,
consoleViewControl: true
});
// 駅間を強調(都営地下鉄三田線 神保町 - 水道橋)
rosen.highlightSections([3390190]);
// 色・透明度・太さを指定して路線を強調(東京メトロ丸ノ内線 とびとびの駅間)
rosen.highlightSections([3280140, 3280160, 3280180, 3280200, 3280220, 3280240, 3280260, 3280280], {color: '#ffff00', opacity: 0.5, weight: 15});
}
window.addEventListener('load', init);