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
ConstructorsConstructorDescriptionGeoImage(com.vaadin.server.Resource imageResource) Creates a geo-image using the givenResource. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoImagefromClasspath(String imagePath) Creates a geo-image using the image from classpath.static GeoImageCreates a geo-image using the image from file system.static GeoImageCreates a geo-image using the given path.static GeoImageCreates a geo-image using the image from the current theme directory.static GeoImageCreates a geo-image using the image located at the given URL.com.vaadin.server.ResourceReturns 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.
-