0

I need to embed a map generated with mymaps in a site that will have many views. Is it necessary to have an API to be able to share the map without visualization limits?

1 Answers1

0

I have done this this way:

<script>
    var x = 0;
    function initialize() {
        
          var map = new google.maps.Map(
              document.getElementById("map"), {
              mapTypeId: google.maps.MapTypeId.ROADMAP
          });

          var layer = new google.maps.KmlLayer({
              url: "http://www.google.com/maps/d/kml?mid=key from integrate on my website i mymaps",
              map: map
          });

Is this what you searched for?

  • [A code-only answer is not high quality](//meta.stackoverflow.com/questions/392712/explaining-entirely-code-based-answers). While this code may be useful, you can improve it by saying why it works, how it works, when it should be used, and what its limitations are. Please [edit] your answer to include explanation and link to relevant documentation. – Stephen Ostermiller Oct 31 '21 at 12:26