sergeybe

Results 2 issues of sergeybe

The small fix for new version on Leaflet.

Changes for code optimization.