mcartoixa / leaflet-binglayer

Yet another Leaflet plugin that handles Bing maps layers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

leaflet-binglayer

Yet another Leaflet plugin that handles Bing Maps layers.

Build status

This plugin is loosely based on leaflet-bing-layer and leaflet-plugins. Check them out, you might find there is better support there ;-)

The main difference here is that :

  • this plugin has no dependency (outside of leaflet v1+ of course).
  • it caches Bing metadata in memory, which should result in fewer Bing Maps transactions when:
    • you need more than 1 map in the same page.
    • your maps are part of a Single Page Application.

Usage

Development

You can live test the plugin:

  • create a .env file (cf. dotenv) at the root of your project that defines the BING_KEY variable with your Bing Maps key.
  • run npm run-script debug.
  • open your browser at http://localhost:8000.

About

Yet another Leaflet plugin that handles Bing maps layers

License:MIT License


Languages

Language:JavaScript 49.3%Language:Batchfile 36.8%Language:Shell 10.1%Language:HTML 3.8%