@evergis/react 2.0.177 → 2.0.178
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/react.cjs.development.js +20 -0
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +20 -1
- package/dist/react.esm.js.map +1 -1
- package/dist/symbols/guards.d.ts +2 -0
- package/dist/symbols/mockFeatures.d.ts +2 -0
- package/package.json +5 -5
|
@@ -46,6 +46,7 @@ var Square = require('@evergis/sgis/es/symbols/point/Square');
|
|
|
46
46
|
var MaskedImage = require('@evergis/sgis/es/symbols/point/MaskedImage');
|
|
47
47
|
var H3Symbol = require('@evergis/sgis/es/symbols/H3Symbol');
|
|
48
48
|
var H3Feature = require('@evergis/sgis/es/features/H3Feature');
|
|
49
|
+
var CombinedPolylineSymbol = require('@evergis/sgis/es/symbols/CombinedPolylineSymbol');
|
|
49
50
|
var Canvas = require('@evergis/sgis/es/painters/DomPainter/Canvas');
|
|
50
51
|
var commonEvents = require('@evergis/sgis/es/commonEvents');
|
|
51
52
|
var ClusterLayer$1 = require('@evergis/sgis/es/layers/ClusterLayer');
|
|
@@ -1661,11 +1662,14 @@ let EvergisFeature = /*#__PURE__*/function () {
|
|
|
1661
1662
|
this.layerName = feature.layer;
|
|
1662
1663
|
this.layerAlias = feature.layer;
|
|
1663
1664
|
this.attributes = getFeatureAttributes(feature.attributes);
|
|
1665
|
+
console.info("EvergisFeature-0", this);
|
|
1664
1666
|
}
|
|
1665
1667
|
|
|
1666
1668
|
_createClass(EvergisFeature, [{
|
|
1667
1669
|
key: "sGisFeature",
|
|
1668
1670
|
value: function sGisFeature() {
|
|
1671
|
+
console.info("EvergisFeature-1", this);
|
|
1672
|
+
|
|
1669
1673
|
if (!this.geometry || !this.symbol) {
|
|
1670
1674
|
return null;
|
|
1671
1675
|
} // @ts-ignore
|
|
@@ -1677,6 +1681,7 @@ let EvergisFeature = /*#__PURE__*/function () {
|
|
|
1677
1681
|
sr
|
|
1678
1682
|
} = this.geometry;
|
|
1679
1683
|
const crs = CRS_MAP[sr];
|
|
1684
|
+
console.info("EvergisFeature-2", crs, type);
|
|
1680
1685
|
|
|
1681
1686
|
if (!crs) {
|
|
1682
1687
|
return null;
|
|
@@ -4153,6 +4158,9 @@ function isSGisPolylineSymbol(symbol) {
|
|
|
4153
4158
|
function isSGisH3Symbol(symbol) {
|
|
4154
4159
|
return symbol instanceof H3Symbol.H3Symbol;
|
|
4155
4160
|
}
|
|
4161
|
+
function isSGisCombinedPolylineSymbol(symbol) {
|
|
4162
|
+
return symbol.type === "combinedPolylineSymbol";
|
|
4163
|
+
}
|
|
4156
4164
|
function isSGisClusterSymbol(symbol) {
|
|
4157
4165
|
return !!symbol.singleObjectSymbol;
|
|
4158
4166
|
}
|
|
@@ -4190,12 +4198,14 @@ const MAP_LEGEND_FEATURES = {
|
|
|
4190
4198
|
const LEGEND_FEATURES = {
|
|
4191
4199
|
point: pointFeature,
|
|
4192
4200
|
polyline: lineLegendFeature,
|
|
4201
|
+
combinedPolyline: lineLegendFeature,
|
|
4193
4202
|
polygon: polygonLegendFeature,
|
|
4194
4203
|
h3grid: h3gridFeature
|
|
4195
4204
|
};
|
|
4196
4205
|
const MOCK_FEATURES = {
|
|
4197
4206
|
point: pointFeature,
|
|
4198
4207
|
polyline: lineFeature,
|
|
4208
|
+
combinedPolyline: lineFeature,
|
|
4199
4209
|
polygon: polygonFeature,
|
|
4200
4210
|
h3grid: h3gridFeature
|
|
4201
4211
|
};
|
|
@@ -4225,6 +4235,12 @@ function getSymbolRenders(symbol, size, features) {
|
|
|
4225
4235
|
return symbol.renderFunctionAsync(featuresToRender.h3grid, resolution, Crs.plain);
|
|
4226
4236
|
}
|
|
4227
4237
|
|
|
4238
|
+
console.info("symbol", symbol, symbol instanceof CombinedPolylineSymbol.CombinedPolylineSymbol, isSGisCombinedPolylineSymbol(symbol));
|
|
4239
|
+
|
|
4240
|
+
if (isSGisCombinedPolylineSymbol(symbol)) {
|
|
4241
|
+
return symbol.renderFunctionAsync(featuresToRender.combinedPolyline, resolution, Crs.plain);
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4228
4244
|
return symbol.renderFunctionAsync(featuresToRender.point, resolution, Crs.plain);
|
|
4229
4245
|
}
|
|
4230
4246
|
const getMapLegendSymbolRenders = function getMapLegendSymbolRenders(symbol, size) {
|
|
@@ -4232,6 +4248,7 @@ const getMapLegendSymbolRenders = function getMapLegendSymbolRenders(symbol, siz
|
|
|
4232
4248
|
size = viewBoxSize;
|
|
4233
4249
|
}
|
|
4234
4250
|
|
|
4251
|
+
console.info("getMapLegendSymbolRenders", symbol);
|
|
4235
4252
|
return getSymbolRenders(symbol, size, MAP_LEGEND_FEATURES);
|
|
4236
4253
|
};
|
|
4237
4254
|
const getLegendSymbolRenders = function getLegendSymbolRenders(symbol, size) {
|
|
@@ -4239,6 +4256,7 @@ const getLegendSymbolRenders = function getLegendSymbolRenders(symbol, size) {
|
|
|
4239
4256
|
size = viewBoxSize;
|
|
4240
4257
|
}
|
|
4241
4258
|
|
|
4259
|
+
console.info("getLegendSymbolRenders", symbol);
|
|
4242
4260
|
return getSymbolRenders(symbol, size, LEGEND_FEATURES);
|
|
4243
4261
|
};
|
|
4244
4262
|
|
|
@@ -4459,6 +4477,7 @@ function useSymbol(_ref, canvasRef) {
|
|
|
4459
4477
|
if (canvasRef.current !== null && symbol !== undefined) {
|
|
4460
4478
|
const canvas = canvasRef.current;
|
|
4461
4479
|
setCanvasSize(canvas, size, maxWidth);
|
|
4480
|
+
console.info("useSymbol", symbol, size, render);
|
|
4462
4481
|
render(symbol, size).then(renders => {
|
|
4463
4482
|
renderSymbolToCanvas(renders, canvas);
|
|
4464
4483
|
});
|
|
@@ -7076,6 +7095,7 @@ exports.isRangeCondition = isRangeCondition;
|
|
|
7076
7095
|
exports.isRasterSymbol = isRasterSymbol;
|
|
7077
7096
|
exports.isRequisiteNumbers = isRequisiteNumbers;
|
|
7078
7097
|
exports.isSGisClusterSymbol = isSGisClusterSymbol;
|
|
7098
|
+
exports.isSGisCombinedPolylineSymbol = isSGisCombinedPolylineSymbol;
|
|
7079
7099
|
exports.isSGisH3Symbol = isSGisH3Symbol;
|
|
7080
7100
|
exports.isSGisImageSymbol = isSGisImageSymbol;
|
|
7081
7101
|
exports.isSGisPointSymbol = isSGisPointSymbol;
|