Package 

Class PTRMapMarker

    • Constructor Detail

      • PTRMapMarker

        PTRMapMarker(String id, Double latitude, Double longitude, Double maxZoomLevel, Double minZoomLevel, Level level, View view, Float offsetX, Float offsetY)
        Parameters:
        id -
        • required to set the marker identifier, random UUID is generated by default

        latitude -
        • latitude of the marker where it should be shown on the map

        longitude -
        • longitude of the marker where it should be shown on the map

        maxZoomLevel -
        minZoomLevel -
        • minimum zoom level allowed for view to be visible, 0 by default.

        level -
        • level on which marker has to be shown, null by default which means visible on all levels.

        view -
        • view to be display on the pointed location

        offsetX -
        • the offset value in dp of which the marker will be shifted on the x-axis. When the marker is added, it is anchored from the top left corner to the given location. e.g. if the marker should shift to the left by 50dp, this should be -50.

        offsetY -
        • the offset value in dp of which the marker will be shifted on the y-axis. When the marker is added, it is anchored from the top left corner to the given location. e.g. if the marker should shift up by 160dp, this should be -160.