leaflet.js地图未在wordpress中显示

时间:2019-05-13 09:40:57

标签: javascript wordpress google-maps

我遇到leaflet.js地图的问题。在控制台中显示以下错误:

  

InvalidValueError:不是HTMLInputElement的实例

地图仅显示灰色,仅此而已。我在WordPress中使用了内置主题。

uncaught Error: Invalid LatLng object: (NaN, NaN)
  at new o.LatLng (leaflet.js?ver=0.7.7:6)
  at Object.o.latLng (leaflet.js?ver=0.7.7:6)
  at e.setView (leaflet.js?ver=0.7.7:89)
  at ApusThemeCore.mapInit (listing.js?ver=0.7.7:828)
  at ApusThemeCore.listing_init (listing.js?ver=0.7.7:40)
  at ApusThemeCore.loadExtension (functions.js?ver=20150330:92)
  at ApusThemeCore.init (functions.js?ver=20150330:51)
  at new ApusThemeCore (functions.js?ver=20150330:9)
  at HTMLDocument.<anonymous> (functions.js?ver=20150330:660)
  at i (jquery.js?ver=1.12.4:2)

0 个答案:

没有答案