Repository navigation
Building plugin - #26
Conversation
78020b1 to
04ccb4e
Compare
|
I finished the initial stab and this PR is ready for review. Possible API to add:
|
|
@tobrun Agreed. I think an API for the three different values you set on https://github.com/mapbox/mapbox-plugins-android/pull/26/files#diff-a1a6e9c8cc422ca880b018bba0a5741cR101 ( |
2f63028 to
f994a2c
Compare
|
I have added the API and reworked the code to reflect this. This PR is ready for review, though we should maybe wait with merging until v5.1.0 final is released? |
👍 Makes sense to me to wait until the underlying API gets stable and published to release 0.1.0. Meanwhile, I suggest we start publishing SNAPSHOTs of the plugin so that interested devs can start playing with it. |
|
This PR has been updated with latest SDK release and adds Light integration (just a setter for now) |
dbf9674 to
662f33d
Compare
Checkstyle strikes again 😆 |
| @BindView(R.id.fabBuilding) | ||
| View fab; | ||
|
|
||
| @BindView(R.id.seekbar_light_radialCoordinate) |
There was a problem hiding this comment.
half resources use camel casing, the rest use snake
| @@ -0,0 +1,4 @@ | |||
| POM_ARTIFACT_ID=mapbox-android-building-plugin | |||
There was a problem hiding this comment.
To keep consistency around plugins, the artifact id should be mapbox-android-plugin-building
| @@ -0,0 +1,4 @@ | |||
| POM_ARTIFACT_ID=mapbox-android-building-plugin | |||
| POM_NAME=Mapbox Android Plugins | |||
| POM_DESCRIPTION=Mapbox Android Plugins (Building) | |||
| @@ -0,0 +1,25 @@ | |||
| # Add project specific ProGuard rules here. | |||
|
Went ahead and fixed the issues I raised previously. One thing I noticed is that we use Another addition that should be made in this PR would be the zoom function modifies the building height so they don't just pop in. |
|
If this is supported across different styles, we should make sure everything is being redrawn correctly when styles change. |
| allprojects { | ||
| repositories { | ||
| jcenter() | ||
| maven { url "http://oss.sonatype.org/content/repositories/snapshots/" } |
There was a problem hiding this comment.
leftover from when we were using map SDK snapshot I think. I removed it.
| } | ||
|
|
||
| private void initLightSeekbar() { | ||
| seekbarRadialCoordinate.setMax(24); // unknown? |
There was a problem hiding this comment.
What does unknown mean in this context?
There was a problem hiding this comment.
@tobrun could speak more on this, I'm not sure either.
There was a problem hiding this comment.
I'm not sure what the maximum radius is for a light source, refs https://en.wikipedia.org/wiki/Spherical_coordinate_system
There was a problem hiding this comment.
Could we add a note on code mentioning this?
|
|
||
| @Override | ||
| public void onStartTrackingTouch(SeekBar seekBar) { | ||
|
|
There was a problem hiding this comment.
Could we add a comment or a Timber call in the unused methods to explicitly note they aren't used on purpose?
# This is the 1st commit message: add Building plugin # The commit message #2 will be skipped: # fixed issues reviewed by me # The commit message #3 will be skipped: # fixed bitrise script # The commit message #4 will be skipped: # added DDS for building height # The commit message #5 will be skipped: # removed commented out code
33ca38c to
a689a33
Compare
| } | ||
|
|
||
| private void initLightSeekbar() { | ||
| seekbarRadialCoordinate.setMax(24); // unknown? |
There was a problem hiding this comment.
Could we add a note on code mentioning this?
This PR adds a Building plugin, this plugin API matches Traffic plugin API.