    var map = null;
        var heatLayer = null;

        function init() {
            //初始化地图容器
            map = new ol.Map({
                target: 'mapCon',     //地图容器div的ID
                controls: ol.control.defaults({
                    attributionOptions: ({
                        collapsible: true
                    })
                }),
                view: new ol.View({
                    projection: 'EPSG:4326',
                    center: [80,30],  //地图初�