1、导入openlayer css包、js包 2、在APP 首页index.html中引入 index.html引入openlayer包 <!--引入openlayer css--> <link rel="stylesheet" href="lib/openlayer/css/ol.css"> <!--引入openlayer js--> <script src="lib/openlayer/js/ol.js"></script> 3、在controller中初始化openlayer map实例 实例化openlayer map 对象 //创建地图