-1

I have to generate multiple google maps with polylines. May be 25 maps per page. I can generate the maps with the coordinates. But for the page performance, can I generate these simple Polyline maps as Images? Can I get a Image instead of rendered google Map? Thank You All!!!

gamini2006
  • 299
  • 3
  • 17

1 Answers1

0

You can use html2canvas to convert the map div to images.

It was working this way:

$('#map').html2canvas({
onrendered: function( canvas ) {
  var img = canvas.toDataURL()
  window.open(img);
}
Hongbin Wang
  • 1,186
  • 2
  • 14
  • 34