2016-07-13 14 views
-1

I Problem konfrontiert haben google map in meiner Website einfügen i Code unten nach innen versetzt haben ...google map erscheint nicht auf Kontaktseite

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"> 
</script> 
<script src='https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyD0jH85l0hZ_tNF6zl35997Nb6HXLj9YYI'></script> 
<div style='overflow:hidden;height:471px;width:100%;'> 
<div id='gmap_canvas' style='height:471px;width:100%;'></div> 
    <style>#gmap_canvas img{max-width:none!important;background:none!important}</style> 
</div> 
<a href='https://embedmaps.net'>www.embedmaps.net</a> 
<script type='text/javascript' src='https://embedmaps.com/google-maps-authorization/script.js?id=370cd4178fedb6711b4163f7e3b23f5bc71df81c'></script> 
<script type='text/javascript'> 
function init_map(){ 
    var myOptions = { 
    zoom:12, 
    center:new google.maps.LatLng(26.169595,91.7563156), 
    mapTypeId: google.maps.MapTypeId.ROADMAP 
    }; 
    map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions); 
    marker = new google.maps.Marker({ 
    map: map, 
    position: new google.maps.LatLng(26.169595,91.7563156) 
    }); 
    infowindow = new google.maps.InfoWindow({ 
    content:'<strong>NEWS Travel Services (India) </strong><br>Choudhury Bhawan, House No.33, Borthakur Mill Road, Ulubari<br>781007 Guwahati <br>'}); 
    google.maps.event.addListener(marker, 'click', function(){ 
    infowindow.open(map,marker); 
    }); 
    infowindow.open(map,marker); 
} 
google.maps.event.addDomListener(window, 'load', init_map); 
</script> 

Live-URL der Website ist http://www.newstravelservices.com/

+0

Live-URL der Seite ist http://www.newstravelservices.com/ – afzal

+0

Was ist das Problem? Geben Sie ein [minimales, vollständiges, getestetes und lesbares Beispiel] (http://stackoverflow.com/help/mcve) an, das das Problem zusammen mit einer Beschreibung des Problems veranschaulicht. – geocodezip

+0

Sie laden die Google Maps-API zweimal, was nicht hilfreich ist. – duncan

Antwort

1

diese Zeile löschen :

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"> 
</script> 

Sie laden auch die maps API mit dieser Zeile:

<script src='https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyD0jH85l0hZ_tNF6zl35997Nb6HXLj9YYI'></script> 

Wenn es dupliziert wird, wird es im Allgemeinen nicht mehr funktionieren. Dieser zweite ist wahrscheinlich besser, da er Ihren API-Schlüssel enthält.

+0

Ich habe diese Zeile gelöscht, aber es zeigt nicht :( – afzal