2015-10-07 91 views
0

我想爲世界地圖製作一個虛線的數據網格。 http://prntscr.com/8oo2tw。我在整個地圖中爲每個地區使用了傳奇(圖片)。一切似乎都很好,但是當這個傳說存在於傳說似乎被扭曲的國家邊界之間時。我怎樣才能消除中風(各國之間的傍邊),使位於國家邊界之間的虛線圖像看起來不會扭曲。如何從jvectormap中刪除描邊或邊框

我已經嘗試過製造行程:無和行程寬度:0和行程不透明度:0。但似乎沒有工作。我的代碼是這樣的:

new jvm.Map({ 
      container: jQuery('#world-map'), 
      map: 'world_mill_en', 
      scaleColors: ['#C8EEFF', '#0071A4'], 
      markersSelectable: true, 
      hoverOpacity: 0.7, 
      hoverColor: false, 
      series: { 
       regions: [{ 
         scale: { 
          dotted:"<?php echo $base_url .'/'. path_to_theme()?>"+"/images/dot.png", 
          yellowBlue: '../images/icon.png' 
         }, 
         attribute: 'fill', 
         values: { 
          "AF": 'dotted', 
          "AX": 'dotted', 
          //all regions with in world_mill_en 
          "ZI": 'dotted', 
          "ZW": 'dotted', 
          "ZM": 'dotted', 
          "_1": 'dotted'         
         }, 
         attribute: 'fill', 
        }] 
      },         
     }); 

回答

0

你可以在地圖對象設置此參數,就像這樣:

 regionStyle : { 
     initial : { 
      fill : "white", 
      "fill-opacity" : 1, 
      stroke : "black", 
      "stroke-width" : 0.0, 
      "stroke-opacity" : 1 
     }, 
     hover : { 
      "fill-opacity": 1, 
      "stroke-width" : 0.0, 
     }, 
     selectedHover : {} 
     },