Improved www.ttss.krakow.pl
Jacek Kowalski
2021-07-31 95ecda6c51c197c3171c0784583d079b3ae5ff67
map.js
@@ -720,8 +720,10 @@
      var span = displayVehicle(feature.get('type'));
      
      additional = document.createElement('p');
      if(span.title) {
         setText(additional, span.title);
      if(span.dataset.typeShort) {
         setText(additional, span.dataset.typeShort);
         additional.title = span.dataset.typeAdditional;
         span.removeAttribute('title');
      } else {
         setText(additional, feature.getId());
      }
@@ -944,7 +946,9 @@
      return false;
   },
   _updateOld: function() {
      if(window.location.hash.match(/^#![bt][0-9]{3}$/)) {
      if(window.location.hash.match(/^#!s[bt][0-9]{1,3}$/)) {
         this.go('s' + window.location.hash.charAt(3) + window.location.hash.substr(4).padStart(4, '0'));
      } else if(window.location.hash.match(/^#![bt][0-9]{3}$/)) {
         this.go('v' + window.location.hash.substr(2));
      } else if(window.location.hash.match(/^#![RHrh][A-Za-z][0-9]{3}$/)) {
         this.go('vt'+ window.location.hash.substr(4));