Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/398.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Can';“不要隐藏链接”;“如何嵌入谷歌地图”;在我网站的地图下面_Javascript_Html_Google Maps_Google Maps Api 3 - Fatal编程技术网

Javascript Can';“不要隐藏链接”;“如何嵌入谷歌地图”;在我网站的地图下面

Javascript Can';“不要隐藏链接”;“如何嵌入谷歌地图”;在我网站的地图下面,javascript,html,google-maps,google-maps-api-3,Javascript,Html,Google Maps,Google Maps Api 3,我不能在我的网站地图下隐藏“如何嵌入谷歌地图”的链接 <script src='https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyD0kdWVIPpFGdRWTTakMpe-GFsgOXnr0JQ'></script> <div style='overflow:hidden;height:400px;width:100%;'> <div id='gmap_canvas' st

我不能在我的网站地图下隐藏“如何嵌入谷歌地图”的链接

<script src='https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyD0kdWVIPpFGdRWTTakMpe-GFsgOXnr0JQ'></script>
<div style='overflow:hidden;height:400px;width:100%;'>
   <div id='gmap_canvas' style='height:400px;width:100%;'></div
       <style>#gmap_canvas img{max-width:none!important;background:none!important}</style>
</div>
<a href='https://www.embed-map.net/'>how to embed google map</a> <script type='text/javascript' src='https://embedmaps.com/google-maps-authorization/script.js?id=b9034e5a46df59aa59d9407a13d18c82efa4b408'></script><script type='text/javascript'>
function init_map() {
    var myOptions = {
        zoom: 15,
        center: new google.maps.LatLng(42.657185, 23.364427699999965),
        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(42.657185, 23.364427699999965)
    });
    infowindow = new google.maps.InfoWindow({
        content: '<strong>Авантюрин</strong><br>Илия Димушев<br>1756 Sofia<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 src='https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyD0kdWVIPpFGdRWTTakMpe-GFsgOXnr0JQ'></script><div style='overflow:hidden;height:400px;width:100%;'><div id='gmap_canvas' style='height:400px;width:100%;'></div><style>#gmap_canvas img{max-width:none!important;background:none!important}</style></div> <script type='text/javascript' src='https://embedmaps.com/google-maps-authorization/script.js?id=b9034e5a46df59aa59d9407a13d18c82efa4b408'></script><script type='text/javascript'>function init_map(){var myOptions = {zoom:15,center:new google.maps.LatLng(42.657185,23.364427699999965),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(42.657185,23.364427699999965)});infowindow = new google.maps.InfoWindow({content:'<strong>Авантюрин</strong><br>Илия Димушев<br>1756 Sofia<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>
#gmap#canvas img{max width:none!important;background:none!important}函数init#u map(){var myOptions={zoom:15,center:new google.maps.LatLng(42.657185,23.3644276999965),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(42.657185,23.3644276999965)};infowindow=new google.maps.infowindow({content:'Ааааааааааааааааааааааааааgoogle.maps.event.addDomListener(窗口'load',初始化映射);

您正在使用第三方代码生成器如果您在链接的js中看到它检查锚定标记可能是一个品牌化的东西如果您仍然想删除它或者在本地获取代码并通过该检查,或者可以将样式设置为在地图加载后不显示HTML,您的HTML无效,您缺少此页面上的结尾
行:

<script src='https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyD0kdWVIPpFGdRWTTakMpe-GFsgOXnr0JQ'></script><div style='overflow:hidden;height:400px;width:100%;'><div id='gmap_canvas' style='height:400px;width:100%;'></div><style>#gmap_canvas img{max-width:none!important;background:none!important}</style></div> <script type='text/javascript' src='https://embedmaps.com/google-maps-authorization/script.js?id=b9034e5a46df59aa59d9407a13d18c82efa4b408'></script><script type='text/javascript'>function init_map(){var myOptions = {zoom:15,center:new google.maps.LatLng(42.657185,23.364427699999965),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(42.657185,23.364427699999965)});infowindow = new google.maps.InfoWindow({content:'<strong>Авантюрин</strong><br>Илия Димушев<br>1756 Sofia<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>