Documentation ¶
Index ¶
- Constants
- func AppendLeafletFlags(fs *flag.FlagSet) error
- func AppendProtomapsProviderFlags(fs *flag.FlagSet) error
- func AppendProviderFlags(fs *flag.FlagSet) error
- func AppendTangramProviderFlags(fs *flag.FlagSet) error
- func LeafletOptionsFromURL(u *url.URL) (*leaflet.LeafletOptions, error)
- func ProtomapsOptionsFromURL(u *url.URL) (*protomaps.ProtomapsOptions, error)
- func ProviderURIFromFlagSet(fs *flag.FlagSet) (string, error)
- func RegisterProvider(ctx context.Context, scheme string, init_func ProviderInitializationFunc) error
- func Schemes() []string
- func TangramJSOptionsFromURL(u *url.URL) (*tangramjs.TangramJSOptions, error)
- type LeafletProvider
- type NullProvider
- type ProtomapsProvider
- type Provider
- func NewLeafletProvider(ctx context.Context, uri string) (Provider, error)
- func NewNullProvider(ctx context.Context, uri string) (Provider, error)
- func NewProtomapsProvider(ctx context.Context, uri string) (Provider, error)
- func NewProvider(ctx context.Context, uri string) (Provider, error)
- func NewTangramProvider(ctx context.Context, uri string) (Provider, error)
- type ProviderInitializationFunc
- type TangramProvider
- type TilezenOptions
Constants ¶
const JavaScriptAtEOFFlag string = "javascript-at-eof"
The names of the commandline flag or query parameter used to assign the `javascript_at_eof` variable.
const LEAFLET_SCHEME string = "leaflet"
const LeafletEnableDrawFlag string = "leaflet-enable-draw"
The name of the commandline flag or query parameter used to assign the `leaflet_enable_draw` variable.
const LeafletEnableFullscreenFlag string = "leaflet-enable-fullscreen"
The name of the commandline flag or query parameter used to assign the `leaflet_enable_fullscreen` variable.
const LeafletEnableHashFlag string = "leaflet-enable-hash"
The name of the commandline flag or query parameter used to assign the `leaflet_enable_hash` variable.
const LeafletTileURLFlag string = "leaflet-tile-url"
The name of the commandline flag or query parameter used to assign the `leaflet_tile_url` variable.
const MapPrefixFlag string = "map-prefix"
const MapProviderFlag string = "map-provider"
The name of the commandline flag or query parameter used to assign the `map_provider` variable.
const NULL_SCHEME string = "null"
const NextzenAPIKeyFlag string = "nextzen-apikey"
The name of the commandline flag or query parameter used to assign the `nextzen_apikey` variable.
const NextzenStyleURLFlag string = "nextzen-style-url"
The name of the commandline flag or query parameter used to assign the `nextzen_style_url` variable.
const NextzenTileURLFlag string = "nextzen-tile-url"
The name of the commandline flag or query parameter used to assign the `nextzen_tile_url` variable.
const PROTOMAPS_SCHEME string = "protomaps"
const ProtomapsBucketURIFlag string = "protomaps-bucket-uri"
The name of the commandline flag or query parameter used to assign the `protomaps_bucket_uri` variable.
const ProtomapsCacheSizeFlag string = "protomaps-caches-size"
The name of the commandline flag or query parameter used to assign the `protomaps_cache_size` variable.
const ProtomapsDatabaseFlag string = "protomaps-database"
The name of the commandline flag or query parameter used to assign the `protomaps_database` variable.
const ProtomapsLabelRulesURIFlag string = "protomaps-label-rules-uri"
The names of the commandline flag or query parameter used to assign the `protomaps_paint_rules_uri` variable.
const ProtomapsPaintRulesURIFlag string = "protomaps-paint-rules-uri"
The names of the commandline flag or query parameter used to assign the `protomaps_paint_rules_uri` variable.
const ProtomapsServeTilesFlag string = "protomaps-serve-tiles"
The name of the commandline flag or query parameter used to assign the `protomaps_serve_tiles` variable.
const ProtomapsTileURLFlag string = "protomaps-tile-url"
The name of the commandline flag or query parameter used to assign the `protomaps_tile_url` variable.
const RollupAssetsFlag string = "rollup-assets"
The names of the commandline flag or query parameter used to assign the `rollup_assets` variable.
const TANGRAM_SCHEME string = "tangram"
const TilezenEnableTilepack string = "tilezen-enable-tilepack"
The name of the commandline flag or query parameter used to assign the `tilezen_enable_tilepack` variable.
const TilezenTilepackPath string = "tilezen-tilepack-path"
The name of the commandline flag or query parameter used to assign the `tilezen_tilepack_path` variable.
Variables ¶
This section is empty.
Functions ¶
func AppendLeafletFlags ¶ added in v0.0.3
func AppendProtomapsProviderFlags ¶ added in v0.0.3
func AppendProviderFlags ¶
func AppendTangramProviderFlags ¶ added in v0.0.3
func LeafletOptionsFromURL ¶ added in v0.0.3
func ProtomapsOptionsFromURL ¶ added in v0.0.3
func ProviderURIFromFlagSet ¶ added in v0.0.3
func RegisterProvider ¶ added in v0.0.3
func RegisterProvider(ctx context.Context, scheme string, init_func ProviderInitializationFunc) error
RegisterProvider registers 'scheme' as a key pointing to 'init_func' in an internal lookup table used to create new `Provider` instances by the `NewProvider` method.
func Schemes ¶ added in v0.0.3
func Schemes() []string
Schemes returns the list of schemes that have been registered.
func TangramJSOptionsFromURL ¶ added in v0.0.3
Types ¶
type LeafletProvider ¶ added in v0.0.6
type LeafletProvider struct { Provider // contains filtered or unexported fields }
func (*LeafletProvider) AppendAssetHandlers ¶ added in v0.0.6
func (p *LeafletProvider) AppendAssetHandlers(mux *http.ServeMux) error
func (*LeafletProvider) AppendResourcesHandler ¶ added in v0.0.6
func (p *LeafletProvider) AppendResourcesHandler(handler http.Handler) http.Handler
func (*LeafletProvider) Scheme ¶ added in v0.0.6
func (p *LeafletProvider) Scheme() string
type NullProvider ¶ added in v0.3.2
type NullProvider struct { Provider // contains filtered or unexported fields }
func (*NullProvider) AppendAssetHandlers ¶ added in v0.3.2
func (p *NullProvider) AppendAssetHandlers(mux *http.ServeMux) error
func (*NullProvider) AppendResourcesHandler ¶ added in v0.3.2
func (p *NullProvider) AppendResourcesHandler(handler http.Handler) http.Handler
func (*NullProvider) Scheme ¶ added in v0.3.2
func (p *NullProvider) Scheme() string
type ProtomapsProvider ¶
type ProtomapsProvider struct { Provider // contains filtered or unexported fields }
func (*ProtomapsProvider) AppendAssetHandlers ¶ added in v0.0.3
func (p *ProtomapsProvider) AppendAssetHandlers(mux *http.ServeMux) error
func (*ProtomapsProvider) AppendResourcesHandler ¶ added in v0.0.3
func (p *ProtomapsProvider) AppendResourcesHandler(handler http.Handler) http.Handler
func (*ProtomapsProvider) Scheme ¶ added in v0.0.3
func (p *ProtomapsProvider) Scheme() string
type Provider ¶
type Provider interface { Scheme() string AppendResourcesHandler(handler http.Handler) http.Handler AppendAssetHandlers(mux *http.ServeMux) error SetLogger(*log.Logger) error }
func NewLeafletProvider ¶ added in v0.0.6
func NewNullProvider ¶ added in v0.3.2
func NewProtomapsProvider ¶ added in v0.0.3
func NewProvider ¶ added in v0.0.3
NewProvider returns a new `Provider` instance configured by 'uri'. The value of 'uri' is parsed as a `url.URL` and its scheme is used as the key for a corresponding `ProviderInitializationFunc` function used to instantiate the new `Provider`. It is assumed that the scheme (and initialization function) have been registered by the `RegisterProvider` method.
type ProviderInitializationFunc ¶ added in v0.0.3
ProviderInitializationFunc is a function defined by individual provider package and used to create an instance of that provider
type TangramProvider ¶ added in v0.0.3
type TangramProvider struct { Provider // contains filtered or unexported fields }
func (*TangramProvider) AppendAssetHandlers ¶ added in v0.0.3
func (p *TangramProvider) AppendAssetHandlers(mux *http.ServeMux) error
func (*TangramProvider) AppendResourcesHandler ¶ added in v0.0.3
func (p *TangramProvider) AppendResourcesHandler(handler http.Handler) http.Handler
func (*TangramProvider) Scheme ¶ added in v0.0.3
func (p *TangramProvider) Scheme() string
type TilezenOptions ¶ added in v0.0.3
func TilezenOptionsFromURL ¶ added in v0.0.3
func TilezenOptionsFromURL(u *url.URL) (*TilezenOptions, error)