Map Module
import { loadGMapApi } from "./map.js";
const map = $("#map");
if (
map.length > 0 &&
$(window).scrollTop() > map.position().top - map.height() - 100
) {
loadGMapApi(mapVars.key, "initMap");
}
Please
register
or
sign in
to comment