Leaflet-Wikipedia
A leaflet plugin module to display Wikipedia entries on a map layer
Example
http://matthewbarker.github.io/leaflet-wikipedia/
Dependencies
Installation instructions
- npm:
npm install leaflet-wikipedia
- Bower:
bower install leaflet-wikipedia
Simple example
var map = L; // Add an OpenStreetMap tile layerL; // Add a Wikipedia layerLlayerGroup;
Advanced options
LlayerGroup;
url
- The URL for Wikipedia
- type: string
- default: https://en.wikipedia.org/
limit
- The maximum number of search results to return
- type: number
- default: 100
popupOnMouseover
- If true then the popup will open on mouse over; otherwise it won't
- type: Boolean
- default: false
clearOutsideBounds
- If true then markers outside the current map bounds will be removed; otherwise they won't
- type: Boolean
- default: false
target
- Specifies where to open the linked Wikipedia page
- type: string
- default: _self
images
- Specifies the folder that contains the Wikipedia icon images
- type: string
- default: images/