Google Maps集成中的“未定义rd”错误

Shile

突然之间,我遇到了这个奇怪的错误,而我的Google Maps集成不再在Firefox上运行,而在Chrome上运行良好。

这是我的地图的代码:

 var map;
 var myCenter = new google.maps.LatLng(42.439071, 19.266683);
 var marker = new google.maps.Marker({
   position: myCenter
 });

 function initialize() {
   var mapProp = {
     center: myCenter,
     zoom: 14,
     draggable: true,
     scrollwheel: false,
     mapTypeId:google.maps.MapTypeId.ROADMAP
   };

   map = new google.maps.Map(document.getElementById("map-canvas"), mapProp);
   marker.setMap(map);

   google.maps.event.addListener(marker, 'click', function() {
     infowindow.setContent(contentString);
     infowindow.open(map, marker);
   }); 
 };

 google.maps.event.addDomListener(window, 'load', initialize);
 google.maps.event.addDomListener(window, "resize", resizeMap());

 $('#myMapModal').on('shown.bs.modal', function() {
   resizeMap();
 });

 function resizeMap() {
   if (typeof map =="undefined")
     return;

   var center = map.getCenter();
   google.maps.event.trigger(map, "resize");
   map.setCenter(center); 
 };

我将其包括如下:

<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>

我收到以下错误

未定义rd https://maps.gstatic.com/cat_js/intl/zh_CN/mapfiles/api-3/17/2/main.js(第53行)

有人知道如何解决此错误吗?

这是一个JSFiddle对其进行测试:http : //jsfiddle.net/sTLY8/7/

Nebrot

将Firefox更新到版本30之后,我的Google Maps应用程序也遇到了同样的问题:

ReferenceError:未定义xd https://maps.gstatic.com/intl/de_ALL/mapfiles/api-3/16/13/main.js第54行> eval`

似乎Firebug导致了这些错误,并且为此已经存在一个问题在Firebug中禁用了“脚本”面板,现在在Firefox中又可以使用了。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google Maps集成中的“未定义rd”错误

来自分类Dev

很难让Google Maps在Ionic中显示-“未定义Google”

来自分类Dev

Google Maps API 3-类型错误:a未定义

来自分类Dev

Google Maps api标记未定义错误

来自分类Dev

google脚本中未定义google-错误

来自分类Dev

google.maps.places未定义

来自分类Dev

Google Maps Geocoder未定义

来自分类Dev

未定义Google Maps功能

来自分类Dev

Google Maps Geocoder未定义

来自分类Dev

Google Maps API返回“未定义”

来自分类Dev

为什么Google Maps API中未定义我的Maps对象

来自分类Dev

Android Phonegap错误:未定义google

来自分类Dev

Android Phonegap错误:未定义google

来自分类Dev

Google Maps API v3 Heatmaps错误:“无法读取未定义的属性'HeatmapLayer'”

来自分类Dev

Google Maps JS API(v3)InfoWindow脚本错误-JSON未定义

来自分类Dev

Google Maps api V3,添加ajax后,这在getCenter()上是未定义的错误

来自分类Dev

Google Maps API 3中未定义标记的javascript数组

来自分类Dev

Google Maps中的自动完成功能会引发错误TypeError:未定义不是函数(正在评估'a [zG](“ placeholder”)')

来自分类Dev

ReferenceError:未定义google-Mozilla firefox中的Google Apps脚本错误

来自分类Dev

Google图表对象错误:未定义Google

来自分类Dev

ReferenceError:使用angular-google-maps时未定义_

来自分类Dev

Google Maps API gm_bindings_未定义

来自分类Dev

带有Dart的Google Maps:保留功能未定义

来自分类Dev

Google Maps API gm_bindings_未定义

来自分类Dev

Google Maps-从未定义的函数返回getPosition

来自分类Dev

使用google.maps.geometry.spherical.computeOffset时,如何解决JavaScript错误“未定义”不是对象?

来自分类Dev

未定义的服务器变量错误(在Google缓存中)

来自分类Dev

无法从未定义中读取属性“ 0”。错误的Google Apps脚本

来自分类Dev

类型错误:a 在 Google 地图地理编码器中未定义

Related 相关文章

  1. 1

    Google Maps集成中的“未定义rd”错误

  2. 2

    很难让Google Maps在Ionic中显示-“未定义Google”

  3. 3

    Google Maps API 3-类型错误:a未定义

  4. 4

    Google Maps api标记未定义错误

  5. 5

    google脚本中未定义google-错误

  6. 6

    google.maps.places未定义

  7. 7

    Google Maps Geocoder未定义

  8. 8

    未定义Google Maps功能

  9. 9

    Google Maps Geocoder未定义

  10. 10

    Google Maps API返回“未定义”

  11. 11

    为什么Google Maps API中未定义我的Maps对象

  12. 12

    Android Phonegap错误:未定义google

  13. 13

    Android Phonegap错误:未定义google

  14. 14

    Google Maps API v3 Heatmaps错误:“无法读取未定义的属性'HeatmapLayer'”

  15. 15

    Google Maps JS API(v3)InfoWindow脚本错误-JSON未定义

  16. 16

    Google Maps api V3,添加ajax后,这在getCenter()上是未定义的错误

  17. 17

    Google Maps API 3中未定义标记的javascript数组

  18. 18

    Google Maps中的自动完成功能会引发错误TypeError:未定义不是函数(正在评估'a [zG](“ placeholder”)')

  19. 19

    ReferenceError:未定义google-Mozilla firefox中的Google Apps脚本错误

  20. 20

    Google图表对象错误:未定义Google

  21. 21

    ReferenceError:使用angular-google-maps时未定义_

  22. 22

    Google Maps API gm_bindings_未定义

  23. 23

    带有Dart的Google Maps:保留功能未定义

  24. 24

    Google Maps API gm_bindings_未定义

  25. 25

    Google Maps-从未定义的函数返回getPosition

  26. 26

    使用google.maps.geometry.spherical.computeOffset时,如何解决JavaScript错误“未定义”不是对象?

  27. 27

    未定义的服务器变量错误(在Google缓存中)

  28. 28

    无法从未定义中读取属性“ 0”。错误的Google Apps脚本

  29. 29

    类型错误:a 在 Google 地图地理编码器中未定义

热门标签

归档