Google maps + KML?

Hello,

I would like to export KML areas from Google MyMaps and then import them into a Google Maps via the API, in order to display an address from Scriptcase.

Can I do this from Scriptcase or would it be easier to code a page outside Scriptcase and display it in my project?

Thank you.

Thank you ChatGpt … in a blank projet it’s good solution to begin.

<!DOCTYPE html>
<html>
<head>
  <title>Google Maps KML Example</title>
  <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
  <script>
    function initMap() {
      var map = new google.maps.Map(document.getElementById('map'), {
        zoom: 8,
        center: {lat: 37.7749, lng: -122.4194}
      });

      var kmlLayer = new google.maps.KmlLayer('http://example.com/path/to/your.kml', {
        suppressInfoWindows: true,
        preserveViewport: false,
        map: map
      });
    }
  </script>
</head>
<body onload="initMap()">
  <div id="map" style="height: 500px; width: 100%;"></div>
</body>
</html>

haha , I did same thing!
how is your project going! I want to improve my project google map part. Do you have time help me?
:slight_smile:
Jonathan