@abi-software/flatmap-viewer - v4.2.5
    Preparing search index...

    Class MapViewer

    A viewer for FlatMaps.

    const viewer = new MapViewer('https://mapcore-demo.org/flatmaps/', {container: 'container-id'})
    
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    version: string = VIEWER_VERSION

    The released version of the viewer

    mapServerUrl: string

    Accessors

    Methods

    • Load and display a FlatMap.

      Parameters

      • identifier: MapIdentifier

        A string or object identifying the map to load. If a string its value can be either the map's uuid, assigned at generation time, or taxon and biological sex identifiers of the species that the map represents. The latest version of a map is loaded unless it has been identified using a uuid (see below).

      • callback: FlatMapCallback

        A callback function, invoked when events occur with the map. The first parameter gives the type of event, the second provides details about the event.

      • options: FlatMapOptions = {}

        Configurable options for the map.

      Returns Promise<FlatMap>

      const humanMap1 = mapManager.loadMap('humanV1', 'div-1')

      const humanMap2 = mapManager.loadMap('NCBITaxon:9606', 'div-2')

      const humanMap3 = mapManager.loadMap({taxon: 'NCBITaxon:9606'}, 'div-3')

      const humanMap4 = mapManager.loadMap(
      {uuid: 'a563be90-9225-51c1-a84d-00ed2d03b7dc'},
      'div-4')