Google Maps Api V3 Div Bug

Asked

Viewed 93 times

0

My Google Maps, when it is in the zoom "global" and I use draggable, it disappears, as if it were some bug in the div.

OVERVIEW, WITHOUT DRAGGABLE.

MAIN

DRAGGING THE MAP IN THE OVERVIEW. DRAGGABLE

CSS CODE:

html,
body,
#map {
    height: 100%;
    margin: 0;
    padding: 0;
}

HTML CODE:

<header></header>

<div id="map"></div>

<main></main>
<footer></footer>

JS CODE:

  const MAP_DOM = document.getElementById('map');
    const GOOGLE_MAPS = new google.maps.Map(MAP_DOM, {
        id: "NeorisMapDefault",
        center: new google.maps.LatLng({lat: -15, lng: -1}),
        zoom: 2,
        disableDefaultUI: true,
        noClear: false,
        mapTypeId: google.maps.MapTypeId.SATELLITE,
        draggable: false,
    });
  • I don’t know much about the API, but because you don’t block vertical drag when you’re with Zoom Global?

  • @hugocsl because you may have Mark next to each other, then you won’t be able to click. Because one will overlap the other.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.