@maplibre-yaml/core 0.1.0 → 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.
@@ -4301,6 +4301,10 @@ var MLMap = class extends HTMLElement {
4301
4301
  */
4302
4302
  async initialize() {
4303
4303
  this.initialized = true;
4304
+ if (this._config) {
4305
+ this.renderMap(this._config);
4306
+ return;
4307
+ }
4304
4308
  const yamlScript = this.querySelector('script[type="text/yaml"]');
4305
4309
  if (yamlScript?.textContent) {
4306
4310
  this.loadFromScriptTag(yamlScript.textContent);