• JMap.Map.refreshLayerById

    This method only works with vector layers that are not served via vector tiles

    Refreshes the specified layer data on the Map. Can be called for instance after a feature has been added, deleted, or modified in the layer content server-side

    Parameters

    • layerId: JId

      The JMap layer id

    Returns void

    Throws

    Error if layer is not found

    Example

    // Refreshes layer id 4 on the map
    JMap.Map.refreshLayerById(4)