Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. <!-- Budowla ziemna --!>
  2. var BUZM_L = L.geoJson(BUZM_L,{style: styl_BUZM_L,onEachFeature:function onEachFeature(feature, layer) {
  3. if (feature.properties && feature.properties.gml_id) {
  4. layer.bindPopup('<b>wersjaId:</b> ' + feature.properties.wersjaId + '<br >' +
  5. '<b>x_kod:</b> ' + feature.properties.x_kod + '<br >' +
  6. '<b>x_zrodloDa:</b> ' + feature.properties.x_zrodloDa + '<br >' +
  7. '<b>x_kodKarto:</b> ' + feature.properties.x_kodKarto);
  8. }}}).addTo(map);
  9.  
  10. function styl_BUZM_L (feature) {
  11. if("0010_808" == feature.properties.x_kodKarto){
  12. return {
  13. weight:9.15,
  14. opacity: 1,
  15. color: '#8c8c8c',
  16. lineCap: 'square',
  17. };
  18. }
  19. else {
  20. return {
  21. weight:3.779528,
  22. opacity: 1,
  23. color: 'transparent',
  24. fill: 'transparent',
  25. fillOpacity: 0.5
  26. };
  27. }
  28. };
  29.  
  30. var BUZM_L_1 = L.geoJson(BUZM_L_1,{style: styl_BUZM_L_1}).addTo(map);
  31. function styl_BUZM_L_1 (feature) {
  32. if("0010_808" == feature.properties.x_kodKarto){
  33. return {
  34. weight:7.85,
  35. opacity: 1,
  36. color:'white',
  37. dashArray: '2,9',
  38. lineCap: 'square',
  39.  
  40. };
  41. }
  42. else {
  43. return {
  44. weight:3.779528,
  45. opacity: 1,
  46. color: 'transparent',
  47. fill: 'transparent',
  48. fillOpacity: 0.5
  49. };
  50. }
  51. };
  52.  
  53. var BUZM_L_2 = L.geoJson(BUZM_L_2,{style: styl_BUZM_L_2}).addTo(map);
  54. function styl_BUZM_L_2 (feature) {
  55. if("0010_808" == feature.properties.x_kodKarto){
  56. return {
  57. weight:3,
  58. opacity: 1,
  59. color:'white',
  60. lineCap: 'square',
  61. };
  62. }
  63. else {
  64. return {
  65. weight:3.779528,
  66. opacity: 1,
  67. color: 'transparent',
  68. fill: 'transparent',
  69. fillOpacity: 0.5
  70. };
  71. }
  72. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement