宣传单 - 一次使用多次?

时间:2017-05-09 11:38:59

标签: leaflet layer

我有Leaflet地图,其中一个日期图层加入了:

<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,}

我需要将此Hranicesttu0.js重新用作另一个图层(在图例中),而不需要新文件something.js。可能吗?

示例:http://l.kelv.cz/

0 个答案:

没有答案