没有显示地理位置的googleMap [英] googleMap with geolocation not showing up

查看:114
本文介绍了没有显示地理位置的googleMap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图用地理定位这个谷歌地图的东西。我真的只是复制粘贴的代码,但我没有设法让地图出现。浏览器甚至要求我获取我的位置,但地图不显示。 (哦,我甚至用google api键来调用它)

 <!DOCTYPE html> 
< html lang =en-gbdir =ltr>
< head>
< style type =text / css>
< meta charset =utf-8>
< title> Geolocation API getCurrentPosition示例< / title>
< style>
< script src =http://maps.google.com/maps/api/js?key=AIzaSyDBy_moo4fAc2Z2DmSLBayqjry_VkthwyU&sensor=false>
< script type =text / javascriptsrc =http://maps.gstatic.com/intl/pt_pt/mapfiles/api-3/10/19/main.js>
< script type =text / javascriptcharset =UTF-8src =http://maps.gstatic.com/cat_js/intl/pt_pt/mapfiles/api-3/10/19/ %7Bcommon,UTIL,统计%7D.js>
< script type =text / javascriptcharset =UTF-8src =http://maps.gstatic.com/cat_js/intl/pt_pt/mapfiles/api-3/10/19/ %7Bmap,标记,信息窗口%7D.js>
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆