Good day.
There are type coordinates:
Latitude: 55.633671
Longitude: 37.769749
A dotted map is drawn, but geojson uses a different coordinate system.
var geojsonObject = { 'type': 'FeatureCollection', 'features': [{ 'type': 'Feature', 'geometry': { 'type': 'Point', 'coordinates': [4172850.2481443416,7506727.67383059] } }] } //----------------- карта ---------------------- var vectorSource = new ol.source.Vector({ features: (new ol.format.GeoJSON()).readFeatures(geojsonObject) }); var vectorLayer = new ol.layer.Vector({ source: vectorSource }); var rasterLayer = new ol.layer.Tile({ source: new ol.source.OSM() }); var map = new ol.Map({ layers: [rasterLayer, vectorLayer], target: document.getElementById('map'), view: new ol.View({ center: ol.proj.fromLonLat([37.61, 55.75]), zoom: 2 }) });
When I try to substitute my coordinates, he puts the label at [0, 0], how to make him use my coordinates?