kekscom / osmbuildings

OSM Buildings Classic 2.5D
http://osmbuildings.org
BSD 2-Clause "Simplified" License
505 stars 140 forks source link

How to work under 'EPSG:4326' #112

Closed codingmiao closed 5 years ago

codingmiao commented 5 years ago

I finished a demo with openlayers,How to work under 'EPSG:4326' like this

    var map = new ol.Map({
        target: 'map',
        view: new ol.View({
            // center: ol.proj.transform([116.450, 39.916], 'EPSG:4326', 'EPSG:3857'),
            center:[116.450, 39.916],
            zoom: 16,
            projection: 'EPSG:4326'
        })
    });
......
        $.get('data/buildings.json', function (geojson) {
            data = geojson;
            new OSMBuildings(map)
                .date(new Date(2018, 5, 15, 6, 30))
                .set(geojson)
                .click(bindPopup);
        });

When I set parameter "projection: 'EPSG:4326'", it is not displayed on the map