Extension:MultiMaps

From mediawiki.org
This page is a translated version of the page Extension:MultiMaps and the translation is 100% complete.
MediaWiki manüel uzantıları
MultiMaps
Sürüm durumu: bakımsız
Uygulama Ayrıştırıcı uzantısı
Açıklama Kullanıcıların birden çok harita hizmeti kullanarak haritaları görüntülemesine ve verileri koordine etmesine izin verir
Yazar(lar) Pavel Astakhov (pastakhovmesaj)
En son sürüm 0.7.3 (2019-06-15)
MediaWiki
PHP 5.3+
Veritabanı değişiklikleri Hayır
Lisans GNU Genel Kamu Lisansı 2.0 veya üstü
İndir
Örnek osmwiki:Wiki:Maps
  • $egMultiMaps_AllowGeocoderTests
  • $egMultiMaps_CoordinatesSeparator
  • $egMultiMaps_DefaultZoom
  • $egMultiMaps_DelimiterParam
  • $egMultiMaps_DelimiterParam
  • $egMultiMaps_GoogleApiKey
  • $egMultiMaps_Height
  • $egMultiMaps_IconAllowFromDirectory
  • $egMultiMaps_IconPath
  • $egMultiMaps_MapServices
  • $egMultiMaps_SeparatorItems
  • $egMultiMaps_Width
  • $egMultiMaps_YandexApiKey
multimaps
Quarterly downloads 8 (Ranked 139th)
MultiMaps uzantısını çevirin
Sorunlar Açık görevler · Hata bildir

MultiMaps uzantısı, kullanıcıların birden çok harita hizmeti kullanarak haritaları görüntülemesine ve verileri koordine etmesine izin verir. Şu anda mevcut haritalar openstreetmap (hizmete göre leaflet), google, yandex şeklindedir ve işaretçileri, çizgileri, çokgenleri, dikdörtgenleri, daireleri görüntüleyebilirler. 0.7.3 sürümünden başlayarak, bir hizmete ek bir URL atamak da mümkündür.

Mümkünse, parametre sözdizimi Maps uzantısıyla uyumlu olacaktır.

Belgelendirme

Anasayfa: Documentation

N10° ve E10° konumundaki tüm varsayılan ayarlara sahip bir haritayı hızlı bir şekilde görüntülemek için şunu yazın:

{{#multimaps: 10, 10
}}

Örnek

Örnek şu adreste mevcuttur:

Kurulum

  • Dosyaları indirin ve extensions/ klasörünüzdeki MultiMaps adlı dizine yerleştirin.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MultiMaps
  • LocalSettings.php dosyanızın altına aşağıdaki kodu ekleyin:
    require_once "$IP/extensions/MultiMaps/MultiMaps.php";
    
  • Yes Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için vikinizde Special:Version seçeneğine gidin.

Yapılandırma

Yapılandırma ayarları (varsayılanlar Settings.php olarak tanımlanmıştır)
Parametre Varsayılan Yorum
$egMultiMaps_AllowGeocoderTests false
$egMultiMaps_MapServices
[
 'Leaflet',
 'Google',
 'Yandex',
 'Wikimedia' => [
  'service' => 'Leaflet',
  'attribution' => '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia maps</a> | Map data &copy; <a href="osm.org/copyright">OpenStreetMap contributors</a>',
  'source' => 'https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png',
 ]
];
lists all map services provided to the wiki users, first entry is default

Since version 0.7.3 it is possible to specify different tile addresses and attribution notices and link them to a service as seen with Wikimedia. The source attribute is provided in Leaflet notation here. For TMS sources, use {-y}.

$egMultiMaps_DefaultZoom 14 default zoom level of map displays, can be configured individually for each map using zoom parameter
$egMultiMaps_SeparatorItems ';'
$egMultiMaps_DelimiterParam '~'
$egMultiMaps_OptionsSeparator ',' delimiter between latitude and longitude
$egMultiMaps_CoordinatesSeparator ':' Geographic coordinates can be a delimited list of values ​​specified in the variable.
$egMultiMaps_Width 'auto' default width of map displays, can be configured individually for each map using width parameter
$egMultiMaps_Height '350px' default height of map displays, can be configured individually for each map using height parameter
$egMultiMaps_IconAllowFromDirectory false If true, allow specify an icon for the marker from the directory
$egMultiMaps_IconPath "$wgScriptPath/mapicons" provide a source for map icons using a URL

OpenStreetMap tabanlı harita stillerine genel bir bakış osmwiki:Tile servers adresinde bulunmaktadır. Lütfen kullanmadan önce kullanım politikalarını incelemeyi daima unutmayın.

Ayrıca bakınız