bc-control.js 404 B

12345678910111213141516
  1. var BcControlClass = L.Control.extend({
  2. options: {
  3. position: 'bottomright'
  4. },
  5. onAdd: function (map) {
  6. // create the control container with a particular class name
  7. var container = L.DomUtil.create('div', 'bc-custom-control');
  8. // ... initialize other DOM elements, add listeners, etc.
  9. return container;
  10. }
  11. });
  12. var bcControl = new BcControlClass();