Styling only one element in an array, in Leaflet's pointToLayer
问题 I'm trying to only style one element in an array and apply it to pointToLayer , while the other elements in the array stay at a default parameter. Specifically, I'm trying to have the most recent earthquake point to have a radius weight of 3 while leaving the remainder earthquake points with a radius weight of 1. Here is a picture of my legend/points on the map. As you can see Recent is identified with a larger radius weight. I thought the best way to do this was to create a function and call