XYZ Maps Documentation
    Preparing search index...

    Variable featuresConst

    features: {
        [k: string]: {
            prototype: Feature;
            (id: any, coords: any, properties: any): void;
        };
    } = ...

    Type Declaration

    • [k: string]: { prototype: Feature; (id: any, coords: any, properties: any): void }

    Use editor.addFeature(geojson) with a GeoJSON Feature instead, e.g. editor.addFeature({type: 'Feature', properties: {featureClass: 'NAVLINK'}, geometry: {type: 'LineString', coordinates: [[lon, lat], [lon, lat]]}}).