Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var PTLZ_A = L.geoJson(PTLZ_A,{style: styl_OT_PTLZ_A, onEachFeature:function onEachFeature(feature, layer) {
- if (feature.properties && feature.properties.gml_id) {
- layer.bindPopup('<b>GML ID:</b> ' + feature.properties.gml_id + '<br >' +
- '<b>rodzaj:</b> ' + feature.properties.rodzaj + '<br >' +
- '<b>kategoria:</b> ' + feature.properties.kategoria + '<br >' +
- '<b>gatunekDrz:</b> ' + feature.properties.gatunekDrz + '<br >' +
- '<b>x_kod:</b> ' + feature.properties.x_kod + '<br >' +
- '<b>x_zrodloDa:</b> ' + feature.properties.x_zrodloDa + '<br >' +
- '<b>x_kodKarto:</b> ' + feature.properties.x_kodKarto + '<br >' +
- '<b>x_informDo:</b> ' + feature.properties.x_informDo);
- }}}).addTo(map); <!--Definiowanie warstwy i dodanie do mapy razem z popupem zasysającym kolumny z geojson--!>
- function styl_OT_PTLZ_A (feature) {
- if ("0010_703" == feature.properties.x_kodKarto) {
- return {
- weight:2.267717,
- opacity: 0,
- color: '#C9FFA1',
- fill: 'url(./SVG/0010_703.svg)',
- fillOpacity: 1
- };
- }
- else if ("0010_704" == feature.properties.x_kodKarto) {
- return {
- weight:2.267717,
- opacity: 0,
- color: '#C9FFA1',
- fill: 'url(./SVG/0010_704.svg)',
- fillOpacity: 1
- };
- }
- else if("0010_705" == feature.properties.x_kodKarto){
- return {
- weight:3.023622,
- opacity: 0,
- color: 'green',
- fill: 'url(./SVG/0010_705.svg)',
- fillOpacity: 1
- };
- }
- else if ("0010_706" == feature.properties.x_kodKarto) {
- return {
- weight:2.267717,
- opacity: 0,
- color: '#c9ffa1',
- fill: '#c9ffa1',
- fillOpacity: 1
- };
- }
- else if ("0010_709" == feature.properties.x_kodKarto) {
- return {
- weight:2.267717,
- opacity:0,
- color: '#C9FFA1',
- fill: 'url(./SVG/0010_709.svg)',
- fillOpacity: 1
- };
- }
- else if ("0010_710" == feature.properties.x_kodKarto) {
- return {
- weight:2.267717,
- opacity: 0,
- color: '#C9FFA1',
- fill: 'url(./SVG/0010_710.svg)',
- fillOpacity: 1
- };
- }
- else {
- return {
- weight:3.779528,
- opacity: 1,
- color: 'transparent',
- fill: 'transparent',
- fillOpacity: 0.5
- };
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement