「Widget:Custom map」の版間の差分
提供:メタファー リファンタジオ 攻略Wiki
ヘイグ運営用アカウント (トーク | 投稿記録) 編集の要約なし |
ヘイグ運営用アカウント (トーク | 投稿記録) 編集の要約なし |
||
1行目: | 1行目: | ||
<includeonly> | <includeonly> | ||
<!-- | <!-- 必要なCDNリソース --> | ||
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> | <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> | ||
<script src="https://dq.h1g.jp/leaflet/leaflet.js"></script> | <script src="https://dq.h1g.jp/leaflet/leaflet.js"></script> | ||
10行目: | 9行目: | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.2/lightgallery.min.js"></script> | <script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/2.7.2/lightgallery.min.js"></script> | ||
<!-- | <!-- スタイルシート --> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/> | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css"/> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/> | <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/> | ||
18行目: | 17行目: | ||
<link rel="stylesheet" href="https://dq.h1g.jp/img/lightgallery.min.css"/> | <link rel="stylesheet" href="https://dq.h1g.jp/img/lightgallery.min.css"/> | ||
<!-- | <!-- マップ設定 --> | ||
<script> | <script> | ||
window.mapConfig = { | window.mapConfig = { | ||
img: '<!--{$img}-->', | |||
imgWidth: <!--{$imgwidth}-->, | |||
imgHeight: <!--{$imgheight}-->, | |||
minZoom: <!--{$minzoom}-->, | |||
maxZoom: <!--{$maxzoom}-->, | |||
geojsonPage: '<!--{$geojson}-->', | |||
filters: { | filters: { | ||
filter1: '<!--{$filter1|default:"分類1"}-->', | filter1: '<!--{$filter1|default:"分類1"}-->', | ||
65行目: | 33行目: | ||
filter5: '<!--{$filter5|default:"分類5"}-->', | filter5: '<!--{$filter5|default:"分類5"}-->', | ||
filter6: '<!--{$filter6|default:"分類6"}-->' | filter6: '<!--{$filter6|default:"分類6"}-->' | ||
}, | |||
icons: { | |||
icon1: '<!--{$icon1|default:"https://dq.h1g.jp/img/marker-icon-img/marker-icon-blue.png"}-->', | |||
icon2: '<!--{$icon2|default:"https://dq.h1g.jp/img/marker-icon-img/marker-icon-red.png"}-->', | |||
icon3: '<!--{$icon3|default:"https://dq.h1g.jp/img/marker-icon-img/marker-icon-violet.png"}-->', | |||
icon4: '<!--{$icon4|default:"https://dq.h1g.jp/img/marker-icon-img/marker-icon-green.png"}-->', | |||
icon5: '<!--{$icon5|default:"https://dq.h1g.jp/img/marker-icon-img/marker-icon-gold.png"}-->', | |||
icon6: '<!--{$icon6|default:"https://dq.h1g.jp/img/marker-icon-img/marker-icon-black.png"}-->' | |||
} | } | ||
}; | }; | ||
</script> | |||
<!-- メインのマップスクリプト --> | |||
<script src="https://dq.h1g.jp/leaflet/leafletmaps-widget.js"></script> | |||
</script> | |||
</includeonly> | </includeonly> |