Documentation ¶
Index ¶
- Constants
- type CustomBasicStyle
- func (*CustomBasicStyle) GetBackground() color.Color
- func (*CustomBasicStyle) GetNodeStyle(node *ownmap.OSMNode, zoomLevel ownmap.ZoomLevel) (*NodeStyle, errorsx.Error)
- func (s *CustomBasicStyle) GetRelationStyle(relationData *ownmap.RelationData, zoomLevel ownmap.ZoomLevel) (*RelationStyle, errorsx.Error)
- func (*CustomBasicStyle) GetStyleID() string
- func (*CustomBasicStyle) GetWantedObjects(zoomLevel ownmap.ZoomLevel) []*ownmapdal.TagKeyWithType
- func (*CustomBasicStyle) GetWayStyle(tags []*ownmap.OSMTag, zoomLevel ownmap.ZoomLevel) (*WayStyle, errorsx.Error)
- type ItemStyle
- type NodeStyle
- type RelationStyle
- type Style
- type StyleSet
- type WayStyle
Constants ¶
View Source
const BUILTIN_STYLEID = "__ownmap_builtin"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomBasicStyle ¶
type CustomBasicStyle struct{}
func (*CustomBasicStyle) GetBackground ¶
func (*CustomBasicStyle) GetBackground() color.Color
func (*CustomBasicStyle) GetNodeStyle ¶
func (*CustomBasicStyle) GetRelationStyle ¶
func (s *CustomBasicStyle) GetRelationStyle(relationData *ownmap.RelationData, zoomLevel ownmap.ZoomLevel) (*RelationStyle, errorsx.Error)
func (*CustomBasicStyle) GetStyleID ¶
func (*CustomBasicStyle) GetStyleID() string
func (*CustomBasicStyle) GetWantedObjects ¶
func (*CustomBasicStyle) GetWantedObjects(zoomLevel ownmap.ZoomLevel) []*ownmapdal.TagKeyWithType
func (*CustomBasicStyle) GetWayStyle ¶
type RelationStyle ¶
type RelationStyle struct {
ZIndex int
}
func (*RelationStyle) GetZIndex ¶
func (rs *RelationStyle) GetZIndex() int
type Style ¶
type Style interface { GetNodeStyle(node *ownmap.OSMNode, zoomLevel ownmap.ZoomLevel) (*NodeStyle, errorsx.Error) GetWayStyle(tags []*ownmap.OSMTag, zoomLevel ownmap.ZoomLevel) (*WayStyle, errorsx.Error) GetRelationStyle(relationData *ownmap.RelationData, zoomLevel ownmap.ZoomLevel) (*RelationStyle, errorsx.Error) GetBackground() color.Color GetStyleID() string GetWantedObjects(zoomLevel ownmap.ZoomLevel) []*ownmapdal.TagKeyWithType }
type StyleSet ¶
type StyleSet struct {
// contains filtered or unexported fields
}
func NewStyleSet ¶
func (*StyleSet) GetAllStyleIDs ¶
func (*StyleSet) GetDefaultStyle ¶
func (*StyleSet) GetStyleByID ¶
Click to show internal directories.
Click to hide internal directories.