• JMap.Layer.getVectorLayers

    Returns an array with vector JMap layers.

    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.

    Returns JLayer[]

    Example

    // returns all vector JMap layers
    JMap.Layer.getVectorLayers()