我在客户端编写此代码并发送到服务器以发送电子邮件。在该电子邮件中,图像显示为损坏的图像我想在谷歌静态地图上绘制路径。这是我使用的代码。
<img src = "http://maps.googleapis.com/maps/api/staticmap?size=400x400&path=weight:3%7Ccolor:orange%7Cenc:'+polyline+'" />
我以这种方式创建的折线
var polyline;
var points = new Array();
for(var i=0; i<googleRoute.getVertexCount(); i++)
{
points[i] = new GLatLng(googleRoute.getVertex(i).lng(),googleRoute.getVertex(i).lat());
}
polyline = new GPolyline(points, '#ff0000', 5, 0.7);
当我使用此代码时,它不会出现图像。我在客户端编写此代码并发送到服务器以发送电子邮件。在该电子邮件中,图像显示为损坏的图像,我的代码有什么问题吗?