bjornd / jvectormap

jvectormap.com
GNU Affero General Public License v3.0
1.39k stars 431 forks source link

Fallback bug on element.style.initial #396

Open MarZab opened 7 years ago

MarZab commented 7 years ago

When there is a faulty value while in scale mode, there is a faulty fallback:

https://github.com/bjornd/jvectormap/blob/master/src/data-series.js#L115

attrs[cc] = this.elements[cc].element.style.initial[this.params.attribute]; where it should be attrs[cc] = this.elements[cc].element.shape.style.initial[this.params.attribute];

as jvm.Region does not define style but the shape does.