Description

Provides the contract for a single superpower implementing service. Every superpower incorporated into the map should implement this interface.

Index

core/modules/map/superpowers/i-superpower.ts

Properties
Methods

Methods

attach
attach(map: IGoogleMap)

Attaches the superpower to the specified map.

Parameters:
Name Type Optional Description
map IGoogleMap No

The map to attach the superpowers to.

Returns: void

Properties

map
map: IGoogleMap
Type: IGoogleMap

The map the superpower is attached to.

import { IGoogleMap } from '../i-google-map';

/**
 * Provides the contract for a single superpower implementing service.
 * Every superpower incorporated into the map should implement this interface.
 */
export interface ISuperpower
{
    /** The map the superpower is attached to. */
    readonly map: IGoogleMap;

    /**
     * Attaches the superpower to the specified map.
     *
     * @param {IGoogleMap} map The map to attach the superpowers to.
     */
    attach(map: IGoogleMap): void;
}

results matching ""

    No results matching ""