「Widget:Custom map」の版間の差分
提供:メタファー リファンタジオ 攻略Wiki
ヘイグ運営用アカウント (トーク | 投稿記録) (ページの作成:「<noinclude>__NOTOC__ 地図表示Widget「'''{{FULLPAGENAME}}'''」です。 </noinclude> <includeonly> <script type="text/javascript"> let map; var drawnItems; var drawControl; var editMode = false; window.savePopupContent = savePopupContent; // 表示する画像 var imageBase = { url: '<!--{$img}-->', width: <!--{$imgwidth}-->, // 画像のサイズ height: <!--{$imgheight}--> }; // 地図初期化 var imageBounds = L.latLngBounds( [0, 0],…」) |
ヘイグ運営用アカウント (トーク | 投稿記録) 編集の要約なし |
||
1行目: | 1行目: | ||
< | <includeonly> | ||
<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/img/dq10_offline/map/js/leaflet-easy-button.js"></script> | |||
<script src="https://dq.h1g.jp/img/dq10_offline/map/js/leaflet-tag-filter-button.js"></script> | |||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js"></script> | |||
<script src="https://dq.h1g.jp/leaflet/custom-leaflet-draw-locale.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://unpkg.com/leaflet@1.9.4/dist/leaflet.css"/> | |||
<link rel="stylesheet" href="https://dq.h1g.jp/img/dq10_offline/map/css/leaflet-easy-button.css" /> | |||
<link rel="stylesheet" href="https://dq.h1g.jp/img/dq10_offline/map/css/leaflet-tag-filter-button.css" /> | |||
<link rel="stylesheet" href="https://dq.h1g.jp/img/marker-icon-img/editable-popup.css" /> | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
379行目: | 387行目: | ||
var host = window.location.origin; | var host = window.location.origin; | ||
var geojsonPage = "<!--{$geojson}-->"; | var geojsonPage = "<!--{$geojson}-->"; | ||
var url = host + "/index.php/" + geojsonPage; | var url = host + "/zelda_eow/index.php/" + geojsonPage; | ||
$.ajax({ | $.ajax({ | ||
552行目: | 560行目: | ||
$.ajax({ | $.ajax({ | ||
type: "POST", | type: "POST", | ||
url: 'http:// | url: 'http://ec2-13-114-153-166.ap-northeast-1.compute.amazonaws.com/api.php', | ||
data: { | data: { | ||
action: 'edit', | action: 'edit', |