Closed codingmiao closed 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
I finished a demo with openlayers,How to work under 'EPSG:4326' like this
When I set parameter "projection: 'EPSG:4326'", it is not displayed on the map