我有以下坐标:
var singida = [
new google.maps.LatLng(-6.926427,33.464355),
new google.maps.LatLng(-7.057282,33.662109),
new google.maps.LatLng(-7.122696,33.750000),
new google.maps.LatLng(-7.209900,33.771973),
new google.maps.LatLng(-7.471411,33.750000),
new google.maps.LatLng(-7.536764,33.793945),
new google.maps.LatLng(-7.536764,33.969727)];
var Tabora = [
new google.maps.LatLng(-4.127285,31.684570),
new google.maps.LatLng(-4.236856,31.684570),
new google.maps.LatLng(-4.258768,31.508789),
new google.maps.LatLng(-4.236856,31.486816),
new google.maps.LatLng(-4.302591,31.464844),
new google.maps.LatLng(-4.477856,31.420898),
new google.maps.LatLng(-4.631179,31.464844)];
我该如何在同一地图上绘制两个多边形? 我下面的代码仅适用于单个多边形。
var flightPath = new google.maps.Polygon({
path: singida,
geodesic: false,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
strokeWeight: 1
});