Skip to content

Commit

Permalink
Coloring of Non Observation Points with Direct Updating (#1337)
Browse files Browse the repository at this point in the history
* uses leaflet path method to set color so that it will update when group is not re drawn closes 1319

* close #1320, addes check for catnum
  • Loading branch information
MuchQuak authored May 17, 2024
1 parent 7f91afe commit b19d741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collections/map/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ class LeafletMapGroup {
if(marker.options.icon && marker.options.icon.options.observation) {
marker.setIcon(getObservationSvg({color: `#${color}`, size:30 }))
} else {
marker.options.fillColor =`#${color}`
marker.setStyle({fillColor: `#${color}`})
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion js/symb/collections.map.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ function verifyCollForm(f) {
break;
}
}

if (!formVerified) {
alert("Please choose at least one collection!");
return false;
Expand Down Expand Up @@ -246,7 +247,8 @@ function verifyCollForm(f) {
f.polycoords.value == "" &&
f.collector.value == "" &&
f.collnum.value == "" &&
f.eventdate1.value == ""
f.eventdate1.value == "" &&
f.catnum.value == ""
) {
alert("Please fill in at least one search parameter!");
return false;
Expand Down

0 comments on commit b19d741

Please sign in to comment.