Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.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
Google maps 多段线模式融合表_Google Maps_Google Maps Api 3_Google Fusion Tables - Fatal编程技术网

Google maps 多段线模式融合表

Google maps 多段线模式融合表,google-maps,google-maps-api-3,google-fusion-tables,Google Maps,Google Maps Api 3,Google Fusion Tables,我想在谷歌地图中使用融合表。 有人能给我一个多段线模式的融合表吗? 我不想使用KML文件。 类似于[(1,1),(3,3)]我只是使用下面这样的代码将多边形覆盖到融合表生成的地图上,如果这是您的意思的话 var triangleCoords = [ new google.maps.LatLng(51.620736,-0.443077), new google.maps.LatLng(51.632233,-0.437060), new google.maps.LatLng(51.629092,-0

我想在谷歌地图中使用融合表。 有人能给我一个多段线模式的融合表吗? 我不想使用KML文件。
类似于[(1,1),(3,3)]

我只是使用下面这样的代码将多边形覆盖到融合表生成的地图上,如果这是您的意思的话

var triangleCoords = [
new google.maps.LatLng(51.620736,-0.443077),
new google.maps.LatLng(51.632233,-0.437060),
new google.maps.LatLng(51.629092,-0.434385),
new google.maps.LatLng(51.625626,-0.434879),
new google.maps.LatLng(51.619795,-0.435577)
];

bermudaTriangle = new google.maps.Polygon({
paths: triangleCoords,
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 3,
fillColor: '#FF0000',
fillOpacity: 0.35
});

bermudaTriangle.setMap(map);

正如Molle博士指出的那样,
1,1 3,3
将其放置在GFT的位置字段中时,效果非常好。您甚至可以放置多个LineString Segmet,它会将其视为单个实体:

<LineString><coordinates>1,1 3,3</coordinates></LineString>
<LineString><coordinates>2,2 4,4</coordinates></LineString>
1,1,3,3
2,2 4,4

为了便于阅读,这里分成两行,但GFT将所有空白(换行符、制表符、空格)视为一个空格,因此将上述内容复制粘贴到GFT中也会起作用(除非您尝试将其插入SQL查询,然后您需要自己替换换行符)。

,我想使用融合表作为多段线的源,但这些多段线作为字符串而不是KML。我只是想澄清一下,这些多段线实际上是KML片段。
1,1,3,3
太好了-没错-你帮我省了很多工作。。。