Closed galinelle closed 4 years ago
High level, this looks good to me too. Thanks @galinelle!
@LukasPaczos @galinelle In symbol layer implementation refs, we support the following configuration options:
<!-- Location pulsing circle -->
<item name="mapbox_pulsingLocationCircleEnabled">false</item>
<item name="mapbox_pulsingLocationCircleFadeEnabled">true</item>
<item name="mapbox_pulsingLocationCircleColor">@color/mapbox_location_layer_blue</item>
<item name="mapbox_pulsingLocationCircleDuration">2300</item>
<item name="mapbox_pulsingLocationCircleRadius">35</item>
<item name="mapbox_pulsingLocationCircleAlpha">0.4</item>
<item name="mapbox_pulsingLocationCircleInterpolator">decelerate</item>
Shall we consider exposing these options for the location-indicator layer?
@pengdev ultimately, the layer should only expose radius, color, and alpha (or alpha baked into color). The transitions are platform-driven so the rest of the arguments should be handled on the platform side.
@pengdev ultimately, the layer should only expose radius, color, and alpha (or alpha baked into color). The transitions are platform-driven so the rest of the arguments should be handled on the platform side.
Sounds good.
ping
This PR adds the ability to draw an additional circle in the location-indicator layer, called emphasis-circle. This can be used to draw a pulsating circle to attract attention. Example usage included in the glfw app.
Launch Checklist
@mapbox/maps-android @mapbox/maps-ios @mapbox/core-sdk
if this PR adds or updates a public API@mapbox/gl-js
if this PR includes shader changes or needs a js portneeds changelog
label if a changelog is needed (remove label when added)