add_image_layer Subroutine

private subroutine add_image_layer(self, uri, source)

Add an image layer: uri (a URL, URL template or file) of a source kind (LAYER_*; default LAYER_TMS). Layers added later are drawn on top.

Type Bound

TerrainBody

Arguments

Type IntentOptional Attributes Name
class(TerrainBody), intent(inout) :: self
character(len=*), intent(in) :: uri

a URL, URL template or file

integer, intent(in), optional :: source

a LAYER_* constant (default LAYER_TMS)


Calls

proc~~add_image_layer~~CallsGraph proc~add_image_layer TerrainBody%add_image_layer proc~add_layer add_layer proc~add_image_layer->proc~add_layer proc~apply_layer apply_layer proc~add_layer->proc~apply_layer interface~vkf_rocky_add_elevation vkf_rocky_add_elevation proc~apply_layer->interface~vkf_rocky_add_elevation interface~vkf_rocky_add_image vkf_rocky_add_image proc~apply_layer->interface~vkf_rocky_add_image proc~find_data_file find_data_file proc~apply_layer->proc~find_data_file proc~name ReferenceFrame%name proc~apply_layer->proc~name proc~find_in_dirs find_in_dirs proc~find_data_file->proc~find_in_dirs

Source Code

    subroutine add_image_layer(self, uri, source)
        class(TerrainBody), intent(inout) :: self
        character(len=*), intent(in) :: uri             !! a URL, URL template or file
        integer, intent(in), optional :: source         !! a LAYER_* constant (default LAYER_TMS)
        type(MapLayer) :: layer
        layer%uri = uri
        if (present(source)) layer%source = source
        call add_layer(self, layer)
    end subroutine add_image_layer