Skip to content

Add gentle opacity pulse to geocoder zone match - #633

Open
LukeAFullard wants to merge 1 commit into
mainfrom
geocoder-pulse-8339426713462983140
Open

Add gentle opacity pulse to geocoder zone match#633
LukeAFullard wants to merge 1 commit into
mainfrom
geocoder-pulse-8339426713462983140

Conversation

@LukeAFullard

Copy link
Copy Markdown
Owner

Instead of highlighting with a solid color, matching zones found via geocoder search will now have a pulsing opacity effect applied to them.

This uses a lightweight Javascript interval and setOption to dynamically oscillate the itemStyle.opacity between 0.4 and 1.0. The previous opacity state is carefully captured and restored when a new search occurs or the overlay is cleared.

Instead of highlighting with a solid color, matching zones found via geocoder search will now have a pulsing opacity effect applied to them.

This uses a lightweight Javascript interval and `setOption` to dynamically oscillate the `itemStyle.opacity` between 0.4 and 1.0. The previous opacity state is carefully captured and restored when a new search occurs or the overlay is cleared.

Co-authored-by: LukeAFullard <77252754+LukeAFullard@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant