wiki-map
The wiki-map
component is used to display a map of a location. The location can be
specified by providing the latitude and longitude of the location, or by providing the name of the
location in the form of an article from Wikipedia. The map can also be sourced from a Wikimedia
Commons map file.
Attributes
latitude
: The latitude of the location.longitude
: The longitude of the location.article
: The name of the location in the form of an article from Wikipedia.language
: The language code of the article. Default isen
.source
: The URL of the Wikimedia Commons map file.
Examples
Draw a map by giving the wikipedia article about the place. For example to draw a map of Banaras, we can use the following code
<wiki-map article="Banaras" language="en">
</wiki-map>
We can also provide longitude and latitude values
<wiki-map longitude="76.9545" latitude="8.4906">
</wiki-map>
In the following example, the source is taken from a .map file in Wikimedia commons
<wiki-map source="https://commons.wikimedia.org/wiki/Data:India/Kerala/Wayanad.map">
</wiki-map>
Features
Thewiki-map
component supports the following features:
- Interactive
- Responsive
- Lazy loaded