Socket
Book a DemoInstallSign in
Socket

leaflet-wikipedia

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-wikipedia

A leaflet plugin module to display Wikipedia entries on a map layer

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
8
100%
Maintainers
1
Weekly downloads
 
Created
Source

Leaflet-Wikipedia

NPM

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.map('map').setView([52.4235064, -1.7134741999999998], 14);

// Add an OpenStreetMap tile layer
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
	attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

// Add a Wikipedia layer
L.layerGroup.wikipediaLayer().addTo(map);

Advanced options

L.layerGroup.wikipediaLayer({ target: '_blank' }).addTo(map);

url

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/

Keywords

leaflet

FAQs

Package last updated on 01 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.