ion imgSprite(name) {
  return '<img src="https://openmap.lt/img_trans.gif" style="width: ' + sprite[name].width +
    'px; height: ' + sprite[name].height +
    'px; background: url(https://openmap.lt/sprites/river.png) -' + sprite[name].x + 'px -' + sprite[name].y + 'px;">';
}
/***************************************************
* Set/update start/end point position and calculate
* route if both points are set.
***************************************************/
function onDragEnd(m) {
  if (m == 'S') {
