Class MapResources
All paths are absolute classpath references beginning with / so
they work correctly when passed to
Class.getResourceAsStream(String). The leading slash is required;
without it the resource lookup is relative to the class's own package and
will silently fail to locate top-level resources.
GeoJSON data files are sourced from Natural Earth 10m cultural vectors.
This class is not instantiable.
-
Field Details
-
COUNTRIES_GEOJSON
Absolute classpath path to the country-boundary GeoJSON file.Expected format: a
FeatureCollectionwhose features carryPolygonorMultiPolygongeometries and at minimum the propertiesADMIN(country name) andISO_A3(alpha-3 code). Parsed byGeoJsonCountryLoader.- See Also:
-
CITIES_GEOJSON
Absolute classpath path to the populated-places (city) GeoJSON file.Expected format: a
FeatureCollectionofPointfeatures with properties includingNAME,ADM0NAME,POP_MAX, andSCALERANK. Parsed byGeoJsonCityLoader.- See Also:
-