Annotation Interface LeafletArgument


@Retention(RUNTIME) @Target(FIELD) @Documented public @interface LeafletArgument
Most Leaflet classes have constructor with custom arguments. The fields in the @Layer classes marked with this annotation will be injected as constructor arguments on client-side during the layer instantiation. You can change the argument orders with index parameter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The position of the annotated field in the client-side constructor argument list.
  • Element Details

    • index

      int index
      The position of the annotated field in the client-side constructor argument list.
      Returns:
      the argument index
      Default:
      0