I just created a new page and insert a Map component.
I have set up the google Maps API Key in the APP Setting page, but the map does not render.
Initializing the map with the following code does not work:
var directionsDisplay;
function initialize()
{
console.log('Initializing...');
Code: Select all
//alert("Inicializando o mapa");
map = Apperyio("google_map").gmap;
if (!map)
{
setDelay();
} else
{
directionsDisplay = new google.maps.DirectionsRenderer();
}
}
function setDelay() {
setTimeout(initialize, 50);
}