Interface Source.HasProjection
- All Known Subinterfaces:
- Source.HasSourceOptions
- All Known Implementing Classes:
- ImageStaticSource,- ImageWmsSource,- NoOpImageStaticSource,- NoOpImageWmsSource,- NoOpTileWmsSource,- NoOpXyzSource,- TileWmsSource,- XyzSource
- Enclosing class:
- Source
public static interface Source.HasProjection
Interface to be implemented by sources that should provide projection management.
 
For more details see: Source docs
- 
Method Summary
- 
Method Details- 
getProjectionCRS getProjection()- Returns:
- projection or nullif not set
 
- 
setProjectionSets the projection. There are available two options:- 
         CRSvalue - sets value as CRS constant, e.g.CRS.EPSG_4326or as anonymous implementation, e.g.setProjection(() -> "EPSG:4326");.
- 
         Projectionvalue - sets custom projection.
 MapViewprojection.Note, projection attribute is set only at creation time and cannot be changed at runtime. For more details see: Source docs - Parameters:
- projection- projection to set
 
- 
         
 
-