Skip to content

Interface: BasemapLayers ​

The basemap of one resolution and scope, decoded to GeoJSON in degrees (ADR-024). Polygons are wound the way d3-geo expects (clockwise outer rings on the sphere), so they stream without a rewind. A layer that failed to load, or was not asked for, is absent.

Properties ​

PropertyTypeDescription
borders?MultiLineStringBorders between countries, without the coastlines (showcountries).
coastlines?MultiLineStringCoastlines: the outline of land (showcoastlines).
countries?Feature<Polygon | MultiPolygon, CountryProperties>[]Country features; id is the ISO 3166-1 alpha-3 code (locationmode: 'ISO-3').
lakes?MultiPolygonshowlakes.
land?MultiPolygonAll land of the scope as one geometry (showland).
rivers?MultiLineStringshowrivers.
subunitBorders?MultiLineStringBorders between subunits, without country borders and coastlines (showsubunits).
subunits?Feature<Polygon | MultiPolygon, SubunitProperties>[]Subunit features; id is the postal code, e.g. 'CA' (locationmode: 'USA-states').

Released under the MIT License.