Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/424.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 用4个坐标在没有谷歌地图的情况下画正方形?_Javascript_Html_Coordinates - Fatal编程技术网

Javascript 用4个坐标在没有谷歌地图的情况下画正方形?

Javascript 用4个坐标在没有谷歌地图的情况下画正方形?,javascript,html,coordinates,Javascript,Html,Coordinates,我有一张桌子,有四张拉长的 我们的桌子: corner1_lat (Latitude of the southeast corner of the grid box ) 40.617055 corner1_long (Longitude of the southeast corner of the grid box ) -89.461143 corner2_lat (Latitude of the northwest corner of the

我有一张桌子,有四张拉长的

我们的桌子:

corner1_lat (Latitude of the southeast corner of the grid box )           40.617055   

corner1_long (Longitude of the southeast corner of the grid box )       -89.461143     

corner2_lat (Latitude of the northwest corner of the grid box )           40.798627   

corner2_long (Longitude of the northwest corner of the grid box)        -89.641881     
grid_size(This is a value, in meters, of the size of the grid )                75
这是图像。我想在没有谷歌地图的情况下画一个有4个坐标的正方形?? 没有谷歌地图有可能吗??

当然有可能,但请记住,它们实际上不是正方形,而是半径为6378137m的球体上的曲面。好吧,这怎么可能呢?我在谷歌上搜索了一下,但没有找到任何东西。你可以,然后将它们绘制在地图上。我尝试过,但不起作用。因为这些是坐标。我们必须使用谷歌地图。你可以看看这里