clavijojuan / l.switchbasemap Goto Github PK
View Code? Open in Web Editor NEWAn easy leaflet plugin to switch basemap
Home Page: https://elegant-meninsky-515912.netlify.app/
License: MIT License
An easy leaflet plugin to switch basemap
Home Page: https://elegant-meninsky-515912.netlify.app/
License: MIT License
Hi,
First off great work with the plugin.
Plugin works perfect but I wonder if there is anyway to get the layer property of the layer that changed. In example
Lets say we have two layers one for satellite and one for classic street map. Satellite is loaded first and when I changed it to Street map, I need some kind of event trigger with parameters includes layer property of Street map layer config.
I am asking this because I am trying to use this plugin with an another plugin: Leaflet-MiniMap . So I need this event so that I can tell my minimap controller to switch street view as well when I changed the basemap from satellite to street.
Hi @clavijojuan, it's me again ๐
Please consider making the switches (e.g. the <div class="basemapImg">
) keyboard focusable and understandable by screen reader users:
tabindex="0"
can be used to make the icons focusablerole="button"
lets users with screen readers know that they can be pressedaria-pressed="true|false"
lets screen reader users know if the icon is selected or notHi!
Please consider
imgContainer.addEventListener('click', (event) =>{
event.stopPropagation();
this._removeLayers(obj.layer);
Hi,
Thank you for a very nice plugin. Would it make sense to suppress the other panels appearing when moving the mouse off the control after the first one is selected?
I can see the argument either way but maybe it could be an option?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.