Php 谷歌地图图像未加载
嘿,伙计们,当我加载我的网页时,谷歌地图开始加载,但没有完全加载。这是控制台打印的内容:Php 谷歌地图图像未加载,php,google-maps-api-3,content-type,Php,Google Maps Api 3,Content Type,嘿,伙计们,当我加载我的网页时,谷歌地图开始加载,但没有完全加载。这是控制台打印的内容: Resource interpreted as Image but transferred with MIME type text/html: "http://maps.googleapis.com/maps/gen_204?ev=api_viewport&cad=src:apiv3". Resource interpreted as Image but transferred with MIME
Resource interpreted as Image but transferred with MIME type text/html: "http://maps.googleapis.com/maps/gen_204?ev=api_viewport&cad=src:apiv3".
Resource interpreted as Image but transferred with MIME type text/html: "http://maps.googleapis.com/maps/gen_204?ev=api_ads&cad=src:apiv3,ads:0".
Resource interpreted as Image but transferred with MIME type text/html: "http://maps.googleapis.com/maps/gen_204?ev=api_marker&cad=src:apiv3,m:2,d:0,s:0".
我知道这与内容类型有关,但我不知道如何设置它。我把这两个元标签放在我的头上,但运气不好
我找到了我的地图没有完全加载的原因。我用这个来获取一个位置:
newgoogle.maps.LatLng(-103.6975488,36.8813329)代码>
但是,我需要这样做:
newgoogle.maps.LatLng(36.8813329,-103.6975488)代码>
感谢Andrew指出MIME类型错误与此无关。MIME类型错误与此无关。每一张地图都是这样的,它们来自谷歌,你无法改变这种行为。您的标题需要与您所服务的内容相关。有联系的机会吗?谢谢安德鲁。不幸的是,我没有链接。我现在正在当地发展。我也发现了我的错误。我在做这个:new google.maps.LatLng(-103.6975488,36.8813329);然而,写这篇文章的正确方法是:新建google.maps.LatLng(36.8813329,-103.6975488);罚款:-)。请写一个答案(因此它被标记为已回答)或删除问题(因为所有问题都不相关!)Arg,谷歌地图仍然没有显示任何错误,只是一个空白地图,很难调试。