• JMap.Layer.getVectorLayerIds

    Returns an array with vector JMap layer ids.

    Vector Layers are layers that can be selected on the map and served via Vector Tiles or geoJSON, as opposed to raster layers for instance.

    The array order is not garanteed to be the same as the one in the tree.

    If no project is loaded, returns en empty array.

    This function is equivalent to :

    JMap.Layer.getVectorLayers().map(layer => layer.id)
    

    Returns JId[]

    Example

    // returns all vector JMap layer ids
    JMap.Layer.getVectorLayerIds()