how to take snapshot of google map with polyline and openInfoWindowHtml

前端 未结 1 977
谎友^
谎友^ 2021-01-18 11:59

I\'m working on functionality to take snapshot of google map with polylines and open popup window on polyline click on google map. The snapshot of google map with polylines

相关标签:
1条回答
  • 2021-01-18 12:19

    from the snapshotcontrol source

    This library makes it easy to generate an image "snapshot" of your interactive map, using the Google Static Maps API.

    Static maps doesn't support info windows or anything like adding custom text to the map https://developers.google.com/maps/documentation/staticmaps/index

    You could draw the map on a canvas within the browser then draw the info window on top of that using this http://html2canvas.hertzen.com/ and then download the canvas content

    0 讨论(0)
提交回复
热议问题