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
Post a Comment