mapmaker.sources.shape module

class mapmaker.sources.shape.SHAPE_TYPE(value)[source]

Bases: Enum

An enumeration.

CONNECTION = 1
FEATURE = 2
GROUP = 3
LAYER = 4
class mapmaker.sources.shape.Shape(type: SHAPE_TYPE, id: str, geometry: BaseGeometry, properties=None)[source]

Bases: PropertyMixin

property geojson_id: int
property global_shape: Shape
property kind: str | None
property name: str
property opacity: float
property parent
property shape_name: str
add_parent(parent)[source]
get_metadata(name: str, default: str | None = None) str | None[source]
set_metadata(name: str, value: str)[source]
log_error(msg: str)[source]
log_warning(msg: str)[source]