

$(“#modal-peta”).on(“shown.bs.modal”, function () {
google.maps.event.trigger(peta, “resize”);
});
Bootstrap 2:$(‘#modal-peta’).on(‘shown’, function () {
google.maps.event.trigger(peta, “resize”);
});
#modal-peta
is the name of the id of the modal element where the map is displayed and the variable peta
is the object variable from the map (Google Maps). The code above, written in functions initialize()
or map preparation, see the previous tutorial . Reference:
http://stackoverflow.com/a/11743005
Reference: https://www.petanikode.com/google-map-modal/
0 Komentar untuk "Overcoming Maps (Google Map) that are not Displayed on Modal"
Silahkan berkomentar sesuai artikel