Leaflet和Leaflet MarkerCluster导入不起作用

时间:2019-01-24 08:24:44

标签: leaflet salesforce salesforce-lightning leaflet.markercluster aura.js

<ltng:require styles="/resource/leaflet/leaflet.css"/>
    <ltng:require styles="/resource/leafletMarkerCluster/Leaflet.markercluster-1.4.1/dist/MarkerCluster.css"/>
    <ltng:require scripts="{!join(',',$Resource.leaflet +'/leaflet.js' ,$Resource.leafletMarkerCluster +'leaflet.markercluster
.js')}" 
                  afterScriptsLoaded="{!c.jsLoaded}" />

我添加了静态资源,并尝试从aura组件中像这样导入它,但是它没有显示任何内容。有什么想法吗?

0 个答案:

没有答案