-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose icon scale option #543
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, will leave review for @cammace
@@ -34,6 +34,10 @@ | |||
<attr name="mapbox_maxZoom" format="float"/> | |||
<attr name="mapbox_minZoom" format="float"/> | |||
|
|||
<!-- Icon scale based on map zoom levels --> | |||
<attr name="mapbox_maxZoomIconScale" format="float"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These also need to be publically exposed in the public_attrs.xml
file.
*/ | ||
public abstract Builder minZoom(@FloatRange(from = MapboxConstants.MINIMUM_ZOOM, | ||
to = MapboxConstants.MAXIMUM_ZOOM) double minZoom); | ||
|
||
/** | ||
* Sets the scale factor of the location icon when the map is zoomed in. Based on {@link #maxZoom()}. | ||
* Scaling is linear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also worth mentioning the scaling is measured in pixels like the iconSize
property docs mention
9ed99f7
to
4a3aee3
Compare
Ready for another round @cammace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙇
Closes #530. I targeted this changes at
v0.6.0
, let me know if you'd rather see it asv0.5.4
.This PR also modifies
LocationLayerMapChangeActivity
to use internalLocationEngine
.