diff --git a/.gitignore b/.gitignore index 259914eda2be6090573b2fdd53f650879132da7c..3aeb7b4cfdd3c03331af284813bfa9ac1dd5ad91 100755 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ classes/ .settings/ *.iml /.idea/ +.vscode/settings.json diff --git a/src/main/webapp/map_applications/fireblight/icons/plant-clipart.png b/src/main/webapp/map_applications/fireblight/icons/plant-clipart.png new file mode 100644 index 0000000000000000000000000000000000000000..0092966ba2df2b2a60297d3644b7fa713928221c Binary files /dev/null and b/src/main/webapp/map_applications/fireblight/icons/plant-clipart.png differ diff --git a/src/main/webapp/map_applications/fireblight/js/map.js b/src/main/webapp/map_applications/fireblight/js/map.js index 50b991438dbe1f0ecb34351915519c8a2fe8cc37..aacf48e3ada2a5ca787f3218fbb9014cf5e53529 100755 --- a/src/main/webapp/map_applications/fireblight/js/map.js +++ b/src/main/webapp/map_applications/fireblight/js/map.js @@ -324,8 +324,14 @@ function diseaseSpreadingPoiStyle(feature, resolution) radius: radiusInMeters / (resolution / viewProjection.getMetersPerUnit() * Math.cos(latitude_rad)) }) }); + const icon = new ol.style.Style({ + image: new ol.style.Icon({ + src: 'icons/plant-clipart.png', + scale: 0.25 + }) + }); - return [circle]; + return [circle, icon]; } } else if(feature.getProperties()["pointOfInterestTypeId"] == "6") // Apiary site