Problema Google Map Template
-
Caros,
Estou com o problema no wordpress toda vez que o mapa vai abrir aparece o seguinte erro “Esta página não carregou o Google Maps corretamente. Consulte o console JavaScript para ver detalhes técnicos”, estou usando um template pronto e no map.php está com esse código aqui…. >>>>
<div id=”map_canvas”></div>
<?php
$map_lati = get_option(‘theme_map_lati’);
$map_longi = get_option(‘theme_map_longi’);
$map_zoom = get_option(‘theme_map_zoom’);$contact_address = stripslashes(get_option(‘theme_contact_address’));
$contact_cell = get_option(‘theme_contact_cell’);
$contact_phone = get_option(‘theme_contact_phone’);
?><script type=”text/javascript”>
// Google Map
function initializeContactMap()
{
var officeLocation = new google.maps.LatLng(<?php echo $map_lati; ?>, <?php echo $map_longi; ?>);
var contactMapOptions = {
center: officeLocation,
zoom: <?php echo $map_zoom; ?>,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scrollwheel: true
};
var contactMap = new google.maps.Map(document.getElementById(“map_canvas”), contactMapOptions);
var contactMarker = new google.maps.Marker({
position: officeLocation,
map: contactMap
});
}window.onload = initializeContactMap();
</script>
- O tópico ‘Problema Google Map Template’ está fechado para novas respostas.