OpenLayers: Does not work in internet explorer -


i have simple code:

<html> <head> <title>vector icon example</title> <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="../apidoc/styles/bootstrap.min.css"> <script src="../apidoc/scripts/bootstrap.min.js"></script>     <link rel="stylesheet" href="../css/ol.css" type="text/css"> <script src="../build/ol.js"></script>   </head> <body> <div id="map" style="width: 100%, height: 400px">ggg</div> <script>   new ol.map({     layers: [       new ol.layer.tile({source: new ol.source.osm()})     ],     view: new ol.view({       center: [0, 0],       zoom: 2     }),     target: 'map'   }); </script> </body> </html> 

it works correctly in chrome, in ie 11 not appear anything. problem?

this solved problem:

<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"> 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -