function plotMapData(data) { var polylineData=[]; // mark each port on the map for (i=0;i