• JMap.MapContext.applyContextById

    Apples the map context for a given id.

    Parameters

    • contextId: JId

      the JMap map context id

    Returns Promise<void>

    Throws

    if map-context not found

    Example

    // load the map-context id=3 on screen
    JMap.MapContext.applyContextById(3)
    .then(() => console.info("Map context applied"))
    .catch(error => console.error(error))