Package io.jmix.mapsui.component.layer
Class GeoImage
java.lang.Object
io.jmix.mapsui.component.layer.GeoImage
An image which can be used in
ImageLayer
.
Encapsulates an image Resource
.
-
Constructor Summary
ConstructorDescriptionGeoImage
(com.vaadin.server.Resource imageResource) Creates a geo-image using the givenResource
. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoImage
fromClasspath
(String imagePath) Creates a geo-image using the image from classpath.static GeoImage
Creates a geo-image using the image from file system.static GeoImage
Creates a geo-image using the given path.static GeoImage
Creates a geo-image using the image from the current theme directory.static GeoImage
Creates a geo-image using the image located at the given URL.com.vaadin.server.Resource
Returns an image resource.
-
Constructor Details
-
GeoImage
public GeoImage(com.vaadin.server.Resource imageResource) Creates a geo-image using the givenResource
.
-
-
Method Details
-
fromPath
Creates a geo-image using the given path.Path should start with one of the following prefixes:
"file:", "classpath:", "theme:", "url:"
, which define the source of an image. The remaining part of the path specifies the actual location of an image in the given source. For example:"classpath:/com/company/demo/web/image.png"
. -
fromFile
Creates a geo-image using the image from file system. -
fromClasspath
Creates a geo-image using the image from classpath.For example:
"/com/company/demo/web/image.png"
. -
fromTheme
Creates a geo-image using the image from the current theme directory.For example:
"awesomeFolder/image.png"
. -
fromUrl
Creates a geo-image using the image located at the given URL. -
getImageResource
public com.vaadin.server.Resource getImageResource()Returns an image resource.
-