[英]How do I add the Google Maps Visualization Library when using the dburles:google-maps Meteor package?
I wish to use Google Map's Visualization library to make a heatmap . 我希望使用Google Map的可视化库制作一个hotmap 。 However, I'm using the dburles:google-maps Meteor package, and am unsure how I should include the Google Maps API.
但是,我使用的是dburles:google-maps流星包,不确定如何添加Google Maps API。 The Google Maps documentation suggest this:
Google Maps文档建议这样做:
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=visualization&sensor=true_or_false">
</script>
How do I do this in Meteor? 如何在流星中做到这一点? I know that this should be possible, because someone was able to do this before .
我知道这应该可行,因为以前有人可以做到这一点。
Thank you for your time! 感谢您的时间!
Oops, super simple fix. 糟糕,修复起来非常简单。 The dburles:google-maps package actually takes care of this!
dburles:google-maps包实际上可以解决这个问题!
GoogleMaps.load({
key: myKey,
libraries: 'places,visualization'
});
as opposed to just loading the places library: 与仅加载地方信息库相反:
libraries: 'places'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.