イニシャライザのオプションboundsで座標を指定すると、路線図をスクロールできる範囲を限定できます。
このサンプルでは、スクロールできる範囲を四国に限定しています。
var rosen;
function init() {
rosen = new Rosen("map", {
apiKey: "2jr5nchcswemrfjj67jvjaqu", // アクセスキーはサンプル用です。実際にご利用されるときは書き換えてください。
consoleViewControl: true,
zoom: 14,
center: [3255, 7655, 14],
bounds: [[2228, 6720, 14], [4379, 8471, 14]] // 四国(左上、右下)
});
}
window.addEventListener('load', init);