Карта Jvector не работает, когда режим браузера и режим документа отличаются в IE8

В настоящее время я использую карту Jvector, и она хорошо работает. Я проверил, хорошо ли работает Internet Explorer. Я использую IE8. наконец, проверьте мою задачу, я установил режим браузера 8 и режим документа 7. затем запустите код, показывающий ошибку, как это?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Tue, 26 May 2015 13:47:52 UTC


Message: Expected identifier, string or number
Line: 290
Char: 13
Code: 0
URI: http://dotnetportfolio.com/project/Map/tests/basic1.html

помогите пожалуйста? как исправить эту ошибку? заранее спасибо

код:

<!DOCTYPE html>
<html>
<head>
  <title>Country Footprint</title>
  <link rel="stylesheet" media="all" href="../jquery-jvectormap.css"/>
  <script src="assets/jquery-1.8.2.js"></script>
  <script src="../jquery-jvectormap.js"></script>
  <script src="../lib/jquery-mousewheel.js"></script>

  <script src="../src/jvectormap.js"></script>

  <script src="../src/abstract-element.js"></script>
  <script src="../src/abstract-canvas-element.js"></script>
  <script src="../src/abstract-shape-element.js"></script>

  <script src="../src/svg-element.js"></script>
  <script src="../src/svg-group-element.js"></script>
  <script src="../src/svg-canvas-element.js"></script>
  <script src="../src/svg-shape-element.js"></script>
  <script src="../src/svg-path-element.js"></script>
  <script src="../src/svg-circle-element.js"></script>
  <script src="../src/svg-image-element.js"></script>
  <script src="../src/svg-text-element.js"></script>

 <script src="../src/vml-element.js"></script>
  <script src="../src/vml-group-element.js"></script>
  <script src="../src/vml-canvas-element.js"></script>
  <script src="../src/vml-shape-element.js"></script>
  <script src="../src/vml-path-element.js"></script>
  <script src="../src/vml-circle-element.js"></script>
  <script src="../src/vml-image-element.js"></script>

  <script src="../src/map-object.js"></script>
  <script src="../src/region.js"></script>
  <script src="../src/marker.js"></script>

  <script src="../src/vector-canvas.js"></script>
  <script src="../src/simple-scale.js"></script>
  <script src="../src/ordinal-scale.js"></script>
  <script src="../src/numeric-scale.js"></script>
  <script src="../src/color-scale.js"></script>
  <script src="../src/legend.js"></script>
  <script src="../src/data-series.js"></script>
  <script src="../src/proj.js"></script>
  <script src="../src/map.js"></script>

  <script src="assets/jquery-jvectormap-world-mill-en.js"></script>
  <script>
    jQuery.noConflict();
    jQuery(function(){
      var $ = jQuery;
      $('#focus-single').click(function(){
        $('#map1').vectorMap('set', 'focus', {region: 'AU', animate: true});
      });
      $('#focus-multiple').click(function(){
        $('#map1').vectorMap('set', 'focus', {regions: ['AU', 'JP'], animate: true});
      });
      $('#focus-coords').click(function(){
        $('#map1').vectorMap('set', 'focus', {scale: 7, lat: 35, lng: 33, animate: true});
      });
      $('#focus-init').click(function(){
        $('#map1').vectorMap('set', 'focus', {scale: 1, x: 0.5, y: 0.5, animate: true});
      });
      $('#map1').vectorMap({
        map: 'world_mill_en',
        panOnDrag: true,
        focusOn: {
          x: 0.5,
          y: 0.5,
          scale: 1,
          animate: true
        },
        series: {
          regions: [{
            scale: ['#688FA0'],
            normalizeFunction: 'polynomial',
            values: {



 //"DZ": 158.97,
     // "AZ":1.1,
      "AG": 1.1,
     // "AE":7.54,
     // "AO":5.6,
      "AR": 351.02,
      //"AM":3.96,
      "AU": 1219.72,
      "AT": 366.26,
      //"AF":3.96,
     // "AL":3.96,
      //"BS": 7.54,
      "BH": 21.73,
     // "BI":4.45,
      "BB": 3.96,
      //"BY": 52.89,
      "BE": 461.33,
     // "BT":7.54,
     // "BD":7.54,     
      // "BW":9.3,

    //  "BA": 16.2,
    //  "BF":4.6,
     // "BR": 2023.53,
           }
      }]
    },
    onRegionTipShow: function(e, label, code){
    var code=label.html();


  switch(code){
        case  'Argentina' :
        label.html("<div style='height:129px;width:296px;Length:98px'><b>Country</b>:&nbsp  Argentina<br/><b>Category</b>:&nbsp  Approved<br/><b>PDP GCO Region</b>:&nbsp  South America<br/><b>Comments</b>:&nbsp  Have had delays with regulatory submissions/approvals. As long as advanced planning is taken into consideration this country should be okay.</br><b>CCL</b>:&nbsp Mariana Bodmer</div>");
        break;

        case  'Australia' :
        label.html("<div style='height:78px;Length:88px'><b>Country</b>:&nbsp  Australia<br/><b>Category</b>:&nbsp  Approved<br/><b>PDP GCO Region</b>:&nbsp  ROW</br><b>Comments</b>:&nbsp  None <br/><b>CCL</b>:&nbsp Michelle Barrington</div>");
        break;

        case  'Belgium' :
        label.html("<div style='height:78px;Length:78px'><b>Country</b>:&nbsp  Belgium<br/><b>Category</b>:&nbsp  Approved<br/><b>PDP GCO Region</b>:&nbsp  Europe</br><b>Comments</b>:&nbsp  None<br/><b>CCL</b>:&nbsp Marleen Van Kerckhoven</div>");
        break;

        case  'Brazil' :
        label.html("<div style='height:148px;width:490px;Length:198px'><b>Country</b>:&nbsp  Brazil<br/><b>Category</b>:&nbsp  Requires Approval<br/><b>PDP GCO Region</b>:&nbsp  South America<br/><b>Comments</b>:&nbsp  There are concerns with country stipulations regarding provisions and rights to study medication, following protocol treatment, regardless of commercialization. Also issues from the regulatory governance.A  Advanced planning in place surrounding the CTA and country setup in Brazil, as it can take close to 12 months.</div>");
        break;

default :
        label.html(
        "<div style='height:15px;font-size: 11px;font-family: Verdana, sans-serif;padding: 1px;white-space: pre-line'>" + code + "</div>");
        break;
        }   
},
      });
    })
  </script>

0 ответов

Другие вопросы по тегам