Google 地图坐标转换
Google Map Coordinates conversion
我有未知形式的坐标
例如:X:187341.9208,Y:665722.3982,
这些坐标在什么投影中?
主要目的是将这些坐标转换为可在 Google 地图中使用的纬度和经度形式。
我不知道这些坐标的来源,它是以色列的一个城市。根据 Google 座标到该城市是 lat: 32.096 , lng: 34.886
看起来这些坐标在以色列横向墨卡托投影中
https://epsg.io/transform#s_srs=2039&t_srs=4326&x=187341.9208000&y=665722.3982000
给出 {lat: 32.0844147, lng: 34.8643428},看起来很接近。
function initMap() {
var myLatLng = {
lat: 32.0844147,
lng: 34.8643428
};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 15,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: '187341.9208,665722.3982'
});
}
html,
body,
#map {
height: 100%;
margin: 0;
padding: 0;
}
<div id="map"></div>
<!-- Replace the value of the key parameter with your own API key. -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&callback=initMap">
</script>
我有未知形式的坐标 例如:X:187341.9208,Y:665722.3982, 这些坐标在什么投影中? 主要目的是将这些坐标转换为可在 Google 地图中使用的纬度和经度形式。
我不知道这些坐标的来源,它是以色列的一个城市。根据 Google 座标到该城市是 lat: 32.096 , lng: 34.886
看起来这些坐标在以色列横向墨卡托投影中
https://epsg.io/transform#s_srs=2039&t_srs=4326&x=187341.9208000&y=665722.3982000
给出 {lat: 32.0844147, lng: 34.8643428},看起来很接近。
function initMap() {
var myLatLng = {
lat: 32.0844147,
lng: 34.8643428
};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 15,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: '187341.9208,665722.3982'
});
}
html,
body,
#map {
height: 100%;
margin: 0;
padding: 0;
}
<div id="map"></div>
<!-- Replace the value of the key parameter with your own API key. -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&callback=initMap">
</script>