I need to get a static image of a map with a large number of polygons on it .
Reference is generated from the array which can be more than two thousand coordinates.
link += "&path=weight:5|fillcolor:"+color+"|"+params[i].cords[0].lat+","+params[i].cords[0].lng+"|"+params[i].cords[1].lat+","+params[i].cords[1].lng+"|"+params[i].cords[2].lat+","+params[i].cords[2].lng+"|"+params[i].cords[3].lat+","+params[i].cords[3].lng;
After this, I am assuming this URL to the 'img' element:
img.src = "https://maps.googleapis.com/maps/api/staticmap?format=jpg&zoom=2&size=400x400"+ generateParamsForLink(params) +"&key="mykey"
When a request is sent , I get an error - net::ERR_CONNECTION_CLOSED
my short url =)
I will be glad to any advice.