@opendata-ai/openchart-engine 8.6.1 → 8.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -14138,16 +14138,17 @@ function compileGeoMap(spec, options) {
|
|
|
14138
14138
|
}
|
|
14139
14139
|
const droppedFeatures = [];
|
|
14140
14140
|
const formatter = buildD3Formatter2(mapSpec.encoding?.color?.format ?? mapSpec.valueFormat) ?? formatNumber4;
|
|
14141
|
-
const neutralFill =
|
|
14141
|
+
const neutralFill = theme.colors.neutral[100];
|
|
14142
14142
|
const noDataPattern = {
|
|
14143
14143
|
type: "diagonal",
|
|
14144
14144
|
base: neutralFill,
|
|
14145
|
-
line:
|
|
14145
|
+
line: theme.colors.neutral[300]
|
|
14146
14146
|
};
|
|
14147
14147
|
let featureMarks;
|
|
14148
14148
|
let continuousLegend = null;
|
|
14149
14149
|
let categoricalLegend = null;
|
|
14150
|
-
|
|
14150
|
+
const isBasemapOnly = !colorEncoding || mapSpec.data.length === 0 && mapSpec.points != null;
|
|
14151
|
+
if (isBasemapOnly) {
|
|
14151
14152
|
featureMarks = buildBasemapMarks({
|
|
14152
14153
|
geoFeatures,
|
|
14153
14154
|
pathGen,
|