Documentation
¶
Index ¶
- Variables
- type Builder
- type CesiumResourceProps
- type ID
- type List
- type Resource
- type ResourceID
- type ResourceList
- type ResourceType
- type TerrainResource
- type TerrainType
- type TileResource
- type TileType
- type UrlResourceProps
- type WorkspaceSettings
- func (ws *WorkspaceSettings) Clone() *WorkspaceSettings
- func (ws *WorkspaceSettings) ID() ID
- func (ws *WorkspaceSettings) SetTerrains(wl *ResourceList)
- func (ws *WorkspaceSettings) SetTiles(wl *ResourceList)
- func (ws *WorkspaceSettings) Terrains() *ResourceList
- func (ws *WorkspaceSettings) Tiles() *ResourceList
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = accountdomain.WorkspaceIDFrom
View Source
var IDFromRef = accountdomain.WorkspaceIDFromRef
View Source
var MustID = accountdomain.MustWorkspaceID
View Source
var MustResourceID = id.MustResourceID
View Source
var NewID = accountdomain.NewWorkspaceID
View Source
var NewResourceID = id.NewResourceID
View Source
var ResourceIDFrom = id.ResourceIDFrom
View Source
var ResourceIDFromRef = id.ResourceIDFromRef
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Build ¶
func (b *Builder) Build() (*WorkspaceSettings, error)
func (*Builder) MustBuild ¶
func (b *Builder) MustBuild() *WorkspaceSettings
func (*Builder) Terrains ¶
func (b *Builder) Terrains(wr *ResourceList) *Builder
func (*Builder) Tiles ¶
func (b *Builder) Tiles(wr *ResourceList) *Builder
type CesiumResourceProps ¶
type CesiumResourceProps struct {
// contains filtered or unexported fields
}
func NewCesiumResourceProps ¶
func NewCesiumResourceProps(name, url, image, cesiumIonAssetId, cesiumIonAccessToken string) CesiumResourceProps
func (CesiumResourceProps) CesiumIonAccessToken ¶
func (p CesiumResourceProps) CesiumIonAccessToken() string
func (CesiumResourceProps) CesiumIonAssetID ¶
func (p CesiumResourceProps) CesiumIonAssetID() string
func (CesiumResourceProps) Image ¶
func (p CesiumResourceProps) Image() string
func (CesiumResourceProps) Name ¶
func (p CesiumResourceProps) Name() string
func (CesiumResourceProps) URL ¶
func (p CesiumResourceProps) URL() string
type ID ¶
type ID = accountdomain.WorkspaceID
type List ¶
type List []*WorkspaceSettings
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func NewResource(resourceType ResourceType, tile *TileResource, terrain *TerrainResource) *Resource
func (*Resource) ResourceType ¶
func (r *Resource) ResourceType() ResourceType
func (*Resource) SetResourceType ¶
func (r *Resource) SetResourceType(n ResourceType)
func (*Resource) SetTerrain ¶
func (r *Resource) SetTerrain(n *TerrainResource)
func (*Resource) SetTile ¶
func (r *Resource) SetTile(n *TileResource)
func (*Resource) Terrain ¶
func (r *Resource) Terrain() *TerrainResource
func (*Resource) Tile ¶
func (r *Resource) Tile() *TileResource
type ResourceID ¶
type ResourceID = id.ResourceID
type ResourceList ¶
type ResourceList struct {
// contains filtered or unexported fields
}
func NewResourceList ¶
func NewResourceList(resources []*Resource, selectedResource *ResourceID, enabled *bool) *ResourceList
func (*ResourceList) Enabled ¶
func (wr *ResourceList) Enabled() *bool
func (*ResourceList) Resources ¶
func (wr *ResourceList) Resources() []*Resource
func (*ResourceList) SelectedResource ¶
func (wr *ResourceList) SelectedResource() *ResourceID
func (*ResourceList) SetEnabled ¶
func (wr *ResourceList) SetEnabled(s *bool)
func (*ResourceList) SetResources ¶
func (wr *ResourceList) SetResources(r []*Resource)
func (*ResourceList) SetSelectedResource ¶
func (wr *ResourceList) SetSelectedResource(rid *ResourceID)
type ResourceType ¶
type ResourceType string
const ( ResourceTypeTile ResourceType = "TILE" ResourceTypeTerrain ResourceType = "TERRAIN" )
type TerrainResource ¶
type TerrainResource struct {
// contains filtered or unexported fields
}
func NewTerrainResource ¶
func NewTerrainResource(id ResourceID, rtype TerrainType, props CesiumResourceProps) *TerrainResource
func (*TerrainResource) ID ¶
func (r *TerrainResource) ID() ResourceID
func (*TerrainResource) Props ¶
func (r *TerrainResource) Props() CesiumResourceProps
func (*TerrainResource) Type ¶
func (r *TerrainResource) Type() TerrainType
type TerrainType ¶
type TerrainType string
const ( TerrainTypeCesiumWorldTerrain TerrainType = "CESIUM_WORLD_TERRAIN" TerrainTypeArcGISTerrain TerrainType = "ARC_GIS_TERRAIN" TerrainTypeCesiumIon TerrainType = "CESIUM_ION" )
type TileResource ¶
type TileResource struct {
// contains filtered or unexported fields
}
func NewTileResource ¶
func NewTileResource(id ResourceID, rtype TileType, props UrlResourceProps) *TileResource
func (*TileResource) ID ¶
func (r *TileResource) ID() ResourceID
func (*TileResource) Props ¶
func (r *TileResource) Props() UrlResourceProps
func (*TileResource) Type ¶
func (r *TileResource) Type() TileType
type TileType ¶
type TileType string
const ( TileTypeDefault TileType = "DEFAULT" TileTypeLabelled TileType = "LABELLED" TileTypeRoadMap TileType = "ROAD_MAP" TileTypeOpenStreetMap TileType = "OPEN_STREET_MAP" TileTypeESRITopography TileType = "ESRI_TOPOGRAPHY" TileTypeEarthAtNight TileType = "EARTH_AT_NIGHT" TileTypeJapanGSIStandardMap TileType = "JAPAN_GSI_STANDARD_MAP" TileTypeURL TileType = "URL" )
type UrlResourceProps ¶
type UrlResourceProps struct {
// contains filtered or unexported fields
}
func NewURLResourceProps ¶
func NewURLResourceProps(name, url, image string) UrlResourceProps
func (UrlResourceProps) Image ¶
func (p UrlResourceProps) Image() string
func (UrlResourceProps) Name ¶
func (p UrlResourceProps) Name() string
func (UrlResourceProps) URL ¶
func (p UrlResourceProps) URL() string
type WorkspaceSettings ¶
type WorkspaceSettings struct {
// contains filtered or unexported fields
}
func (*WorkspaceSettings) Clone ¶
func (ws *WorkspaceSettings) Clone() *WorkspaceSettings
func (*WorkspaceSettings) ID ¶
func (ws *WorkspaceSettings) ID() ID
func (*WorkspaceSettings) SetTerrains ¶
func (ws *WorkspaceSettings) SetTerrains(wl *ResourceList)
func (*WorkspaceSettings) SetTiles ¶
func (ws *WorkspaceSettings) SetTiles(wl *ResourceList)
func (*WorkspaceSettings) Terrains ¶
func (ws *WorkspaceSettings) Terrains() *ResourceList
func (*WorkspaceSettings) Tiles ¶
func (ws *WorkspaceSettings) Tiles() *ResourceList
Click to show internal directories.
Click to hide internal directories.