Skip to content

Interface: LocatedFeature ​

A feature that locations name. One object per feature and source, shared by its locations.

Properties ​

PropertyModifierTypeDescription
customreadonlybooleantrue for a feature of the trace's geojson: events and hovertemplate then carry its properties, as in Plotly. false for a feature of the basemap.
featurereadonlyFeature<Polygon | MultiPolygon, GeoJsonProperties>The feature as the basemap or the trace's geojson has it; its geometry is in degrees.
idreadonlystringWhat the location resolved to: the ISO-3 code, the postal code, or the feature's value at featureidkey as a string.
pointreadonlyreadonly [number, number]Where the location is drawn and labelled, [lon, lat]. Both NaN for a geojson feature without a polygon that has an area.

Released under the MIT License.