+* Smart M.App - remove white stroke from the choropleth style
+* 2018-10-08 Piotr Szrajber <piotr.szrajber@hexagon.com>
+// waits until choropleth widget is ready
+function waitForChoropleths(callback) {
+ gsp.bi.stage.findWidgets({
+ if (!widgets || !widgets[0]) {
+ TIMEOUT = setTimeout(function() {
+ waitForChoropleths(callback);
+// modify style of the geometries
+function overwriteStyle(widget) {
+ "fillColor": "#cccccc",
+ "pointerEvents": "auto",
+ "strokeColor": "#ffffff",
+ "strokeLineCap": "round",
+ "strokeLineJoin": "round"
+ let painter = widget.chart.painter(),
+ defaultStyle = painter.defaultStyle(),
+ paintStyle = painter.paintStyle(),
+ clearStyle = painter.clearStyle();
+ defaultStyle.stroke = false;
+ defaultStyle.weight = 0;
+ painter.defaultStyle(defaultStyle);
+ clearStyle.stroke = false;
+ painter.clearStyle(clearStyle);
+ painter.paintStyle((feature) => {
+ let style = paintStyle.call(this, feature);
+function repaint(widget) {
+ let painter = widget.chart.painter();
+waitForChoropleths((widgets) => {
+ overwriteStyle(widgets[0]);