Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

#Leaflet.dbpediaLayer

Leaflet.dbpediaLayer is a easy to use plugin for adding a layer with POIs from Wikipedia. It does so by querying the SPARQL endpoint at DBpedia.

##Demo

Check out the demo.

##Usage

var lay = L.dbpediaLayer({lang: 'de', includeCities: false}).addTo(map);

###Options

Option Type Default Description
lang String en the language used in the query (NB: english has by far the most results).
includeCities Boolean false Whether resources of type PopulatedPlace are included in the results.
use_https Boolean true access DBpedia via https
displayThumbnail Boolean true Whether to display a thumbnail in the popup.
displayPosition Boolean true see above
displayTypes Boolean true see above
displayAbstract Boolean true see above
displayLink Boolean true see above
displayMarkerLabel Boolean true Whether to display marker labels (needs Leaflet.Label plugin).
loaderGif String see src URL of the loader displayed during DBpedia-queries. The default is an internal base64 encoded gif.
icon Object see src specify a custom icon, takes same attributes as Leaflet.Icon

###Recommendations DBpedia's SPARQL-endpoint serves all geo-localized resources present in Wikipedia (currently ~300.000). Queries over a vast territory tend to be somewhat slow.
In order to assure good usability and snappy results we recommend setting a minZoom restriction (8 - 10, depending on the area).

##License

See LICENSE file in the project root.

About

Leaflet.dbpediaLayer is a Leaflet plugin adding a layer with POIs from DBpedia.

Resources

License

Releases

No releases published
You can’t perform that action at this time.