{"version":3,"sources":["jsdelivr-header.js","/npm/@mapbox-controls/zoom@3.0.0/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,cAAe,qBAAwB,kCACvC,UAAa,aAEtB,MAAM,YACL,WAAA,GACC,KAAK,UAAY,iBAAiB,oBAClC,KAAK,SAAW,cAAc,CAC7B,MAAO,UACP,KAAM,MAAM,OACZ,QAAS,IAAM,KAAK,KAAK,WAE1B,KAAK,UAAY,cAAc,CAC9B,MAAO,WACP,KAAM,MAAM,QACZ,QAAS,IAAM,KAAK,KAAK,WAE3B,CAMA,KAAA,CAAM,GAIL,OAHA,KAAK,IAAM,EACX,KAAK,UAAU,YAAY,KAAK,UAChC,KAAK,UAAU,YAAY,KAAK,WACzB,KAAK,SACb,CAEA,QAAA,GACC,KAAK,UAAU,YAAY,YAAY,KAAK,UAC7C,iBAGc","file":"/npm/@mapbox-controls/zoom@3.0.0/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@mapbox-controls/zoom@3.0.0/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { controlButton, controlContainer } from '@mapbox-controls/helpers';\nimport { icons } from './icons.js';\n\nclass ZoomControl {\n\tconstructor() {\n\t\tthis.container = controlContainer('mapbox-ctrl-zoom');\n\t\tthis.buttonIn = controlButton({\n\t\t\ttitle: 'Zoom In',\n\t\t\ticon: icons.plus(),\n\t\t\tonClick: () => this.map?.zoomIn(),\n\t\t});\n\t\tthis.buttonOut = controlButton({\n\t\t\ttitle: 'Zoom Out',\n\t\t\ticon: icons.minus(),\n\t\t\tonClick: () => this.map?.zoomOut(),\n\t\t});\n\t}\n\n\t/**\n\t * @param {import('mapbox-gl').Map} map\n\t * @returns {HTMLElement}\n\t */\n\tonAdd(map) {\n\t\tthis.map = map;\n\t\tthis.container.appendChild(this.buttonIn);\n\t\tthis.container.appendChild(this.buttonOut);\n\t\treturn this.container;\n\t}\n\n\tonRemove() {\n\t\tthis.container.parentNode?.removeChild(this.container);\n\t}\n}\n\nexport default ZoomControl;\n"]}