Skip to content

feat: Implemented map feature functions (i.e. GeoJSON support)#19

Open
AE1NS wants to merge 1 commit intoionic-team:mainfrom
AE1NS:add-feature
Open

feat: Implemented map feature functions (i.e. GeoJSON support)#19
AE1NS wants to merge 1 commit intoionic-team:mainfrom
AE1NS:add-feature

Conversation

@AE1NS
Copy link
Contributor

@AE1NS AE1NS commented Jun 18, 2024

This PR adds support (first implementation scoped to geoJson) for map features.

Examples

addFeatures(type: FeatureType, data: any, idPropertyName: string, styles: FeatureStyles): string[]

await map.addFeatures(
    FeatureType.GeoJSON,
    {
        type: 'Feature',
        geometry: GeoJSONData,
        properties: {
            id: 'my-identifier',
        },
    },
    'id',
    {
        ['my-identifier']: {
            strokeColor: '#123456',
            strokeOpacity: 0.8,
            strokeWeight: 1,
            fillColor: '#654321',
            fillOpacity: 0.1,
            geodesic: true,
        }
    }
)

getFeatureBounds(featureId: string)

map.getFeatureBounds('my-identifier')

removeFeature(featureId: string)

map.removeFeature('my-identifier')

Closes #20

@AE1NS AE1NS changed the title feat(google-maps): Implemented map feature functions (i.e. GeoJSON support) feat: Implemented map feature functions (i.e. GeoJSON support) Jun 18, 2024
@AE1NS
Copy link
Contributor Author

AE1NS commented Nov 20, 2025

Rebased on the latest commit

@AE1NS AE1NS force-pushed the add-feature branch 2 times, most recently from 574a789 to f736a83 Compare December 3, 2025 10:05
@A1Jan
Copy link
Contributor

A1Jan commented Feb 20, 2026

Rebased to latest and checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data layer support

2 participants