Leaflet 传单-一层使用多次?

Leaflet 传单-一层使用多次?,leaflet,layer,Leaflet,Layer,我有一张单张地图,上面有一个日期图层,上面有: <script src="data/Hranicesttu0.js"></script> Function: function pop_Hranicesttu0(feature, layer) { ... map.addLayer(layer_Hranicesttu0); Legend is defined: L.control.layers(baseM

我有一张单张地图,上面有一个日期图层,上面有:

<script src="data/Hranicesttu0.js"></script>

Function: 
        function pop_Hranicesttu0(feature, layer) {
        ...
        map.addLayer(layer_Hranicesttu0);

Legend is defined: 
        L.control.layers(baseMaps,{'<img src="legend/Hranicesttu0.png" /> Hranice státu': layer_Hranicesttu0,}

功能:
功能pop_Hranicesttu0(功能,图层){
...
map.addLayer(layer_Hranicesttu0);
图例定义如下:
图层(底图,{'Hranice státu':图层{u Hranicesttu0,}
我需要这个Hranicesttu0.js在没有新文件something.js的情况下作为另一层(也在图例中)重用。这可能吗


示例:

你的问题很难理解。你能用更多细节重新表述吗?解决方案:(是否可以删除自己的答案?)