Embed a map generated with mymaps

52 Views Asked by At

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

There are 1 best solutions below

1
Neesgaard On

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?