@maplibre-yaml/core 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/register.browser.js
CHANGED
|
@@ -15601,6 +15601,10 @@ var MLMap = class extends HTMLElement {
|
|
|
15601
15601
|
*/
|
|
15602
15602
|
async initialize() {
|
|
15603
15603
|
this.initialized = true;
|
|
15604
|
+
if (this._config) {
|
|
15605
|
+
this.renderMap(this._config);
|
|
15606
|
+
return;
|
|
15607
|
+
}
|
|
15604
15608
|
const yamlScript = this.querySelector('script[type="text/yaml"]');
|
|
15605
15609
|
if (yamlScript?.textContent) {
|
|
15606
15610
|
this.loadFromScriptTag(yamlScript.textContent);
|