Package globus.glmap

Class GLMapVectorLayer

    • Constructor Detail

      • GLMapVectorLayer

        public GLMapVectorLayer​(int drawOrder)
        Creates new empty image with given draw order
        Parameters:
        drawOrder - Draw order used to sort objects on map
      • GLMapVectorLayer

        public GLMapVectorLayer()
        Creates new empty image that will be injected to map
    • Method Detail

      • setVectorObject

        public void setVectorObject​(@NonNull
                                    GLMapVectorObject object,
                                    @NonNull
                                    GLMapVectorCascadeStyle style,
                                    @Nullable
                                    java.lang.Runnable onReadyToDraw)
        Sets vector object to draw
        Parameters:
        object - object to draw
        style - style of object
        onReadyToDraw - optional runnable that called when object is ready to draw
      • setVectorObjects

        public void setVectorObjects​(@NonNull
                                     GLMapVectorObjectList objects,
                                     @NonNull
                                     GLMapVectorCascadeStyle style,
                                     @Nullable
                                     java.lang.Runnable onReadyToDraw)
        Sets vector objects to draw
        Parameters:
        objects - objects to draw
        style - style of object
        onReadyToDraw - optional runnable that called when object is ready to draw