You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle Switch from local layer- content to remote content (with layer-.src) and vice versa #898
When switching from local content for layer- to add a src attribute for a layer- we need to remove all the local content properly so that content is not used for the remote layer. Handle the opposite also.
Sample code for layer.js attribute changed callback:
case'src':
if(oldValue!==newValue&&this._layer){this._onRemove();if(this.children){letelements=this.children;for(leti=0;i<elements.length;i++){elements[i].remove();}}if(this.isConnected){this._onAdd();}// the original inline content will not be removed// but has NO EFFECT and works as a fallback}
Activity
WIP on map-link:
Create map-link custom element
Create map-link custom element
Map link custom element implementation (Maps4HTML#916)