ArcGIS Blog

Mapping

ArcGIS Maps SDK for JavaScript

How to add an inner glow to polygons with the ArcGIS API for JavaScript

By John Nelson and Anne Fitz

So you want a super slick inner glow effect for some polygons in your app, to no avail. Sure, an “inner glow” effect isn’t yet supported in the JavaScript API, nor is a buffer fill.  But Picture strokes are supported, and you can bake all manner of visual shenanigans into those things…

You can use these graphics as picture fills in ArcGIS Pro, as well. Here are some examples…

A picture stroke in ArcGIS Pro resembling an inner glow
A picture stroke in ArcGIS Pro resembling an inner glow

Thanks to Anne Fitz for the collaboration, and setting up the CodePen!

Happy inner-glowing!

Share this article

Subscribe
Notify of
1 Comment
Oldest
Newest
Inline Feedbacks
View all comments