Select to view content in your preferred language

fillopacity for featurelayer

1250
1
Jump to solution
03-10-2022 03:49 PM
Labels (1)
BradSkopyk
Occasional Contributor

I am learning leaflet, using esri featurelayers and basemaps. So far, so good, until now: I cannot get leaflet to change the fillopacity of my featurelayer. It will change color just fine, and I have succeeded at turning the outlines on or off, or changing the opacity and line width of the outlines. But the opacity of the polygon fill will not be altered from the default. Here is the relevant bit of the script:

L.esri.featureLayer({
  }).addTo(map);
 
Is there something wrong with the script?
 
Thanks in advance.
0 Kudos
1 Solution

Accepted Solutions
BradSkopyk
Occasional Contributor

argh ... fillopacity needs to be properly capitalized as fillOpacity:

L.esri.featureLayer({
  }).addTo(map);

View solution in original post

0 Kudos
1 Reply
BradSkopyk
Occasional Contributor

argh ... fillopacity needs to be properly capitalized as fillOpacity:

L.esri.featureLayer({
  }).addTo(map);
0 Kudos