Extension:YandexMaps

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
YandexMaps

Release status: beta

Implementation Parser function
Description Creates Yandex maps
Author(s) Valerian Ivashenko
Last version 1.8.2 (06/27/2011)
MediaWiki 1.16 - 1.17
License No license specified
Download Extension:YandexMaps#Installation
Parameters

$wgYandexMapServer, $wgYandexMapAPIKey

Check usage (experimental)

Contents

[edit] What can this extension do?

This extension allows you to create easily Yandex maps with a marked balloon. The descriptions of the placemarked maps are all parser functions enabling geocoding. Yandex maps are allowed to be used for public sites.

[edit] Usage

[edit] Map Example

{{#yandexmap:Москва|100|200|cdzMB}}

Only fourth attribute is optional:

  • location
  • width
  • height
  • map options:
    • c - enable zoom on mouse double click
    • d - enable mouse map dragging
    • r - enable map ruler
    • z - enable mouse wheel scroll zoom
    • h - enable hot keys
    • m - enable mouse left button map magnification
    • b - enable mouse right button map magnification
    • M - switch to map mode
    • H - switch to hybrid map mode
    • S - switch to satellite mode
    • P - show placemark
    • B - show balloon

[edit] Installation

  1. Create a directory called YandexMaps in your extensions directory
  2. Download files from the following archive into your YandexMaps directory

[edit] Parameters

You should add your Yandex Maps API key and server as parameters within LocalSettings.php just prior to the require_once

$wgYandexMapServer = 'http://api-maps.yandex.ru/1.1/index.xml?';
$wgYandexMapAPIKey = 'key=YOUR1OWN2YANDEX3MAP4API5KEY==';

While you don't provide an API key, extension could not be run.

[edit] Changes to LocalSettings.php

require_once("$IP/extensions/YandexMaps/YandexMaps.php");

[edit] Revision History

1.8.2 (06/27/2011)
Map options support was added.
0.9.1 (06/24/2011)
Initial release, supports several maps on a page.

[edit] External links

[edit] See also

  • Maps Provides the ability to display coordinate data on maps and allows users to geocode addresses.
  • YahooMaps Provides the ability to display coordinate data on Yahoo maps and allows users to geocode addresses.
  • Semantic Maps Provides the ability to add, view and edit coordinate data stored through the Semantic MediaWiki extension.
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox