Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcartoixa/leaflet-binglayer
Yet another Leaflet plugin that handles Bing maps layers
https://github.com/mcartoixa/leaflet-binglayer
Last synced: 26 days ago
JSON representation
Yet another Leaflet plugin that handles Bing maps layers
- Host: GitHub
- URL: https://github.com/mcartoixa/leaflet-binglayer
- Owner: mcartoixa
- License: mit
- Created: 2018-04-12T14:09:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T10:56:40.000Z (about 6 years ago)
- Last Synced: 2024-08-08T15:29:06.765Z (5 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leaflet-binglayer
Yet another Leaflet plugin that handles Bing Maps layers.[![Build status](https://travis-ci.org/mcartoixa/leaflet-binglayer.svg?branch=master)](https://travis-ci.org/mcartoixa/leaflet-binglayer)
This plugin is loosely based on [leaflet-bing-layer](https://github.com/digidem/leaflet-bing-layer/blob/gh-pages/leaflet-bing-layer.js) and
[leaflet-plugins](https://github.com/shramov/leaflet-plugins/blob/master/layer/tile/Bing.js). 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](http://leafletjs.com/) v1+ of course).
* it caches Bing metadata in memory, which should result in fewer [Bing Maps transactions](https://msdn.microsoft.com/en-us/library/ff859477.aspx) 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](https://github.com/motdotla/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.