My name.geojson file is in EPSG:3857 and I try to open it on OpenLayers but it didn't show. Which code should I use to open name.geojson file?
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="https://openlayers.org/en/v4.5.0/css/ol.css" type="text/css">
<style>
.map {
height: 400px;
width: 100%;
}
</style>
<script src="https://openlayers.org/en/v4.5.0/build/ol.js" type="text/javascript"></script>
<title>OpenLayers example</title>
</head>
<body>
<div id="map" class="map"></div>
<script type="text/javascript">
var map = new ol.Map({
target: 'map',
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
view: new ol.View({
center: ol.proj.fromLonLat([37.41, 8.82]),
zoom: 2
})
});
</script>
</body>
</html>
My GeoJSON is like:
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } }, "features": [ { "type": "Feature", "properties": { "PROV_NAME": "PHAYAO", "REGION": "เหนือ", "Length": 471901.950000, "Area": 6099882141.720000, "PROV_CODE": "56", "REG_CODE": "02", "PROV_NAMT": "พะเยา" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 11178637.241381312, 2240871.010733759 ], [ 11178705.330343476, 2240860.5557918623 ], [ 11178753.986649765, 2240860.1461515916 ],