bjornd / jvectormap

jvectormap.com
GNU Affero General Public License v3.0
1.39k stars 431 forks source link

Tooltips won't diappear when I click on the country #392

Open Disane87 opened 8 years ago

Disane87 commented 8 years ago

I have a tooltip set via:

  onRegionTipShow: function(e, el, code){
                    var r = results;
                    if(c =='world_mill_en'){
                      el.html(//el.html()
                        '<b>'+$rootScope.countrytranslations[code]+'</b></br>'+
                        // '<hr>'+
                        (n[code] ?
                        $translate.instant('MAP_RESTRICTIONS_IMPORT')+': <i class="fa fa-'+n[code].Import+'" aria-hidden="true"></i><br>'+
                        $translate.instant('MAP_RESTRICTIONS_NUTZUNG')+': <i class="fa fa-'+n[code].Dampfen+'" aria-hidden="true"></i><br>'+
                        $translate.instant('MAP_RESTRICTIONS_HANDEL')+': <i class="fa fa-'+n[code].Verkauf+'" aria-hidden="true"></i><br>'+
                        (n[code].ShowNote == 1 ?
                        '<br><b>'+$translate.instant('MAP_RESTRICTIONS_HINWEIS')+':</b><br>'+
                        (n[code].Hinweis != '' ? n[code].Hinweis +'<br>' : '')+
                        (n[code].DampfenHinweis != '' ? n[code].DampfenHinweis +'<br>': '')+
                        (n[code].VerkaufHinweis != '' ? n[code].VerkaufHinweis +'<br>': '')+
                        (n[code].ImportHinweis != '' ? n[code].ImportHinweis +'<br>': '') : '') : '')

                      );
                    }else{
                      // debugger;
                      el.html(n[code].Name);
                  }

If I click on one country, the tootip persists:

bildschirmfoto 2016-09-05 um 12 47 28

bildschirmfoto 2016-09-05 um 12 51 29

How can I hide the tooltip?