Skip to content
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

Merged
merged 2 commits into from
May 30, 2018
Merged

Expose icon scale option #543

merged 2 commits into from
May 30, 2018

Conversation

LukasPaczos
Copy link
Contributor

Closes #530. I targeted this changes at v0.6.0, let me know if you'd rather see it as v0.5.4.
This PR also modifies LocationLayerMapChangeActivity to use internal LocationEngine.

@LukasPaczos LukasPaczos added the location-layer-plugin Issues that deal with the location layer module label May 29, 2018
@LukasPaczos LukasPaczos added this to the location-layer-0.6.0 milestone May 29, 2018
@LukasPaczos LukasPaczos requested a review from cammace May 29, 2018 12:10
Copy link
Member

@tobrun tobrun left a 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"/>
Copy link

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.
Copy link

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

@LukasPaczos LukasPaczos force-pushed the 530-expose-scale-option branch from 9ed99f7 to 4a3aee3 Compare May 30, 2018 15:07
@LukasPaczos
Copy link
Contributor Author

Ready for another round @cammace.

Copy link

@cammace cammace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙇

@LukasPaczos LukasPaczos merged commit 9c208bd into master May 30, 2018
@LukasPaczos LukasPaczos deleted the 530-expose-scale-option branch May 30, 2018 15:30
@danesfeder danesfeder mentioned this pull request Jul 9, 2018
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
location-layer-plugin Issues that deal with the location layer module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants