mapshader.sources.VectorSource#

class mapshader.sources.VectorSource(name=None, description=None, filepath=None, legend=None, config_path=None, data=None, geometry_type=None, key=None, text=None, fields=None, span=None, route=None, geometry_field='geometry', xfield='geometry', yfield='geometry', zfield=None, agg_func=None, raster_interpolate='linear', shade_how='linear', cmap=mapshader.colors.colors.viridis, color_key=None, dynspread=None, extras=None, raster_padding=0, service_types=None, full_extent=None, storage_options=None, region_of_interest=None, default_extent=None, default_height=256, default_width=256, overviews=None, transforms=None, band=None, attrs=None, preload=False, force_recreate_overviews=False, tiling=None)[source]#

This class represents a vector source object.

Parameters:

MapSource (mapshader.sources.MapSource) – The map source object.

__init__(name=None, description=None, filepath=None, legend=None, config_path=None, data=None, geometry_type=None, key=None, text=None, fields=None, span=None, route=None, geometry_field='geometry', xfield='geometry', yfield='geometry', zfield=None, agg_func=None, raster_interpolate='linear', shade_how='linear', cmap=mapshader.colors.colors.viridis, color_key=None, dynspread=None, extras=None, raster_padding=0, service_types=None, full_extent=None, storage_options=None, region_of_interest=None, default_extent=None, default_height=256, default_width=256, overviews=None, transforms=None, band=None, attrs=None, preload=False, force_recreate_overviews=False, tiling=None)#

Methods

__init__([name, description, filepath, ...])

from_obj(obj)

load()

Load the service data.

Attributes

full_extent

load_func

source_type