How do I download JavaScript string as a file

前端 未结 8 746
太阳男子
太阳男子 2021-01-13 18:52

Application requests KML data through AJAX from server. This data is stored in javascript variables, and displayed in Google Earth plugin.

In javascript, how do I

8条回答
  •  抹茶落季
    2021-01-13 19:23

    You could probably use the parseKml function to parse the kml data in the javascript variable rather than trying to store it in a file and modifying it from javascript (which I dont think is possible due to security reasons)

    https://developers.google.com/earth/documentation/kml

提交回复
热议问题