MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / attributeChangedCallback

Method attributeChangedCallback

src/map-feature.js:152–164  ·  view source on GitHub ↗
(name, oldValue, newValue)

Source from the content-addressed store, hash-verified

150 }
151
152 attributeChangedCallback(name, oldValue, newValue) {
153 if (this.#hasConnected /* jshint ignore:line */) {
154 switch (name) {
155 case 'min':
156 case 'max':
157 case 'zoom':
158 if (oldValue !== newValue) {
159 this.reRender(this._featureLayer);
160 }
161 break;
162 }
163 }
164 }
165
166 constructor() {
167 // Always call super first in constructor

Callers

nothing calls this directly

Calls 1

reRenderMethod · 0.95

Tested by

no test coverage detected