Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Budowla ziemna --!>
- var BUZM_L = L.geoJson(BUZM_L,{style: styl_BUZM_L,onEachFeature:function onEachFeature(feature, layer) {
- if (feature.properties && feature.properties.gml_id) {
- layer.bindPopup('<b>wersjaId:</b> ' + feature.properties.wersjaId + '<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);
- }}}).addTo(map);
- function styl_BUZM_L (feature) {
- if("0010_808" == feature.properties.x_kodKarto){
- return {
- weight:9.15,
- opacity: 1,
- color: '#8c8c8c',
- lineCap: 'square',
- };
- }
- else {
- return {
- weight:3.779528,
- opacity: 1,
- color: 'transparent',
- fill: 'transparent',
- fillOpacity: 0.5
- };
- }
- };
- var BUZM_L_1 = L.geoJson(BUZM_L_1,{style: styl_BUZM_L_1}).addTo(map);
- function styl_BUZM_L_1 (feature) {
- if("0010_808" == feature.properties.x_kodKarto){
- return {
- weight:7.85,
- opacity: 1,
- color:'white',
- dashArray: '2,9',
- lineCap: 'square',
- };
- }
- else {
- return {
- weight:3.779528,
- opacity: 1,
- color: 'transparent',
- fill: 'transparent',
- fillOpacity: 0.5
- };
- }
- };
- var BUZM_L_2 = L.geoJson(BUZM_L_2,{style: styl_BUZM_L_2}).addTo(map);
- function styl_BUZM_L_2 (feature) {
- if("0010_808" == feature.properties.x_kodKarto){
- return {
- weight:3,
- opacity: 1,
- color:'white',
- lineCap: 'square',
- };
- }
- else {
- return {
- weight:3.779528,
- opacity: 1,
- color: 'transparent',
- fill: 'transparent',
- fillOpacity: 0.5
- };
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement