【发布时间】:2020-08-19 13:53:51
【问题描述】:
我遇到了让我的流星项目显示地图的问题。我使用 dburles 作为我的 googleapi 库。我已按照教程中的说明进行操作,我的 GoogleMaps.load() 返回 undefined,我认为这是根本问题。
Meteor.startup ->
GoogleMaps.load()
console.log GoogleMaps.load()
return
我的玉是这样的
div#search-wrapper
h2 Search for a ATM
div#search-input.input-group
input(for="search" type="text" placeholder="City, State, Zip, ect")
div.input-group-append
button(type="submit" class="btn btn-info " id="search-button")
i.fas.fa-search
button(type="submit" class="btn btn-info" id="find-nearMe") Find Near Me
+map
template(name="map")
div.map-container
googleMap(name="map" options=mapOptions)
我知道coffeescript和jade没有被广泛使用,所以Javascript中的答案也可以接受。
【问题讨论】:
-
请提供您正在使用的库和教程的链接。
标签: google-maps meteor coffeescript pug meteor-accounts