在我的页面中删除谷歌地图的tabindex

csf*_*csf 3 javascript google-maps-api-3

我需要删除我的页面上的地图tabindex.我使用了下面的代码,但标签通过了地图上的标记和Google徽标.

var map = new google.maps.Map(document.getElementById('map'),
            mapOptions);

    //Remove o TAB do mapa
      google.maps.event.addListener(map, 'tilesloaded', function() {
          var mapContent = (document.getElementById("map"));
          mapContent('a').attr('tabindex',-1);          
      });
Run Code Online (Sandbox Code Playgroud)

Xio*_*ark 5

建立瓦西里的答案

google.maps.event.addListener(MAP, "tilesloaded", function(){
    [].slice.apply(document.querySelectorAll('#map a')).forEach(function(item) {
        item.setAttribute('tabindex','-1');
    });
})
Run Code Online (Sandbox Code Playgroud)

这是它的实际行动.