귀하는 로그인되어 있지 않습니다. 이대로 편집하면 귀하의 IP 주소가 편집 기록에 남게 됩니다.
편집을 취소할 수 있습니다.
이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 |
당신의 편집 |
250번째 줄: |
250번째 줄: |
| align-items: center; | | align-items: center; |
| } | | } |
| </syntaxhighlight>
| |
|
| |
| === 지도 확장기능 Kartographer 오류 ===
| |
| 예전에는 [https://www.mediawiki.org/wiki/Extension:Kartographer Kartographer] 확장기능에 별도의 타일 서버 URL 설정을 하지 않더라도 지도가 출력되었지만, 현재는 설정하지 않으면 `Uncaught Error: wgKartographerMapServer must be configured.`이라고 뜹니다.
| |
|
| |
| ==== 수정 전 ====
| |
| `LocalSettings.php`에서 다음 항목을 수정합니다.
| |
|
| |
| <syntaxhighlight lang='php'>
| |
| wfLoadExtension( 'Kartographer' );
| |
| </syntaxhighlight>
| |
|
| |
| ==== 수정 후 ====
| |
| <syntaxhighlight lang='php'>
| |
| wfLoadExtension( 'Kartographer' );
| |
|
| |
| # 타일 서버 설정
| |
| $wgKartographerMapServer = 'https://tile.openstreetmap.org';
| |
| $wgKartographerStyles = ["osm"];
| |
| $wgKartographerDfltStyle = "";
| |
|
| |
| # 아래의 세부 설정은 선택사항
| |
| $wgKartographerSrcsetScales = [];
| |
| $wgKartographerUseMarkerStyle = false;
| |
| $wgKartographerWikivoyageMode = false;
| |
| $wgKartographerStaticMapframe = false;
| |
| $wgKartographerStaticFullWidth = 1024;
| |
| $wgKartographerUsePageLanguage = true;
| |
| $wgKartographerFallbackZoom = 13;
| |
| $wgKartographerSimpleStyleMarkers = true;
| |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|