added check on a class attribut disappeared between 1.9 version and 2.4 - searchRadiusMM
this allow compatibility with 2.X ver4sion with X < 4
modified rendering using canvas instead of renderer as workaround of #232