update specialized location layer's docs

This commit updates the docs to make sure that the FOREGROUND_LAYER constant is usable for relative positioning in both normal and specialized location layer rendering modes.
This commit is contained in:
Łukasz Paczos
2020-06-02 16:19:02 +02:00
parent c4f29c0797
commit fccf513c0f
2 changed files with 12 additions and 3 deletions

View File

@@ -127,8 +127,12 @@ public class LocationComponentActivationOptions {
* but since it's not based on the runtime styling,
* it's not fully compatible with the traditional implementation. The incompatibilities are:
* <ul>
* <li> Constants like {@link LocationComponentConstants#FOREGROUND_LAYER}
* <li> Constants like {@link LocationComponentConstants#BACKGROUND_LAYER},
* {@link LocationComponentConstants#ACCURACY_LAYER}
* or {@link LocationComponentConstants#LOCATION_SOURCE} are ignored.
* The only usable and valid for relative positioning layer ID is
* {@link LocationComponentConstants#FOREGROUND_LAYER}.
*
* <li> All options that alter the image ID, like {@link LocationComponentOptions#foregroundName()}, are ignored.
* Use {@link LocationComponentOptions#foregroundDrawable()} to alter the image rendered as the puck.
* <li> The LocationComponent's pulsing effect. Any of the {@link LocationComponentOptions}'
@@ -244,8 +248,12 @@ public class LocationComponentActivationOptions {
* but since it's not based on the runtime styling,
* it's not fully compatible with the traditional implementation. The incompatibilities are:
* <ul>
* <li> Constants like {@link LocationComponentConstants#FOREGROUND_LAYER}
* <li> Constants like {@link LocationComponentConstants#BACKGROUND_LAYER},
* {@link LocationComponentConstants#ACCURACY_LAYER}
* or {@link LocationComponentConstants#LOCATION_SOURCE} are ignored.
* The only usable and valid for relative positioning layer ID is
* {@link LocationComponentConstants#FOREGROUND_LAYER}.
*
* <li> All options that alter the image ID, like {@link LocationComponentOptions#foregroundName()}, are ignored.
* Use {@link LocationComponentOptions#foregroundDrawable()} to alter the image rendered as the puck.
* <li> The LocationComponent's pulsing effect. Any of the {@link LocationComponentOptions}'

View File

@@ -63,7 +63,8 @@ public final class LocationComponentConstants {
public static final String SHADOW_LAYER = "mapbox-location-shadow-layer";
/**
* Layer ID of the location foreground icon.
* Layer ID of the location foreground icon or the only runtime layer added if
* {@link LocationComponentActivationOptions#useSpecializedLocationLayer()} is used.
*/
public static final String FOREGROUND_LAYER = "mapbox-location-foreground-layer";