使用其他JSON文件中的数据

时间:2014-08-27 16:51:52

标签: javascript json layer

var non_tfl_lines_Chelsea_HackneyviaKings = L.geoJson(non_tfl_lines_Chelsea_HackneyviaKings, {
    style: function(feature) {
        return {color: feature.properties.color,
                dashArray: '20'}
    },
    pointToLayer: function(feature, latlng) {
        return new L.polyline(latlng);
    },
    onEachFeature: popup,
}   
    tfl_stations1, {
        pointToLayer: function(feature, latlng) {
            return new L.Circle(latlng, 400, {
                color: getColor(feature.properties.relief)});
        },
        onEachFeature: function (feature, layer) {
            layer.bindPopup(feature.properties.name);
        }
    })   
).addTo(map);

如何在non_tfl_lines_Chelsea_HackneyviaKings图层中使用GeoJSON tfl_stations1文件中的数据?

0 个答案:

没有答案