@evergis/sgis
Advanced tools
Comparing version 0.5.0-alpha.52 to 0.5.0-alpha.53
@@ -65,3 +65,3 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.51"; | ||
export declare const version = "0.5.0-alpha.53"; | ||
export declare const releaseDate = "06.10.2023"; | ||
@@ -68,0 +68,0 @@ export declare const controls: { |
@@ -65,3 +65,3 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.51"; | ||
export declare const version = "0.5.0-alpha.53"; | ||
export declare const releaseDate = "06.10.2023"; | ||
@@ -68,0 +68,0 @@ export declare const controls: { |
@@ -67,3 +67,3 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export const version = "0.5.0-alpha.51"; | ||
export const version = "0.5.0-alpha.53"; | ||
export const releaseDate = "06.10.2023"; | ||
@@ -70,0 +70,0 @@ let utilsModulesExt = {}; |
import { Action } from '../features/Poly'; | ||
import { PolyRender } from '../renders/Poly'; | ||
import { FillStyle, PolyRender } from '../renders/Poly'; | ||
import { registerSymbol } from '../serializers/symbolSerializer'; | ||
import { getRenderedPolygonCoordinates, simplifyCoordinates } from '../utils/math'; | ||
import { Symbol } from './Symbol'; | ||
import { CombinedPolyline } from "../features/CombinedPolyline"; | ||
/** | ||
@@ -23,8 +24,29 @@ * Symbol of polyline drawn as simple line. | ||
console.info("renderFunction-0", feature, this.values); | ||
// if (!(feature instanceof CombinedPolyline)) return []; | ||
const result = []; | ||
if (!(feature instanceof CombinedPolyline)) | ||
return result; | ||
const coordinates = this.getRenderedCoordinates(feature, resolution, crs); | ||
this.values.forEach(polyline => { | ||
console.info("renderFunction-1", polyline, coordinates); | ||
result.push(new PolyRender(coordinates, polyline)); | ||
console.info("renderFunction-1", polyline, coordinates, { | ||
fillStyle: FillStyle.Color, | ||
enclosed: false, | ||
strokeColor: polyline.stroke.color, | ||
strokeWidth: polyline.stroke.width, | ||
lineDash: null, | ||
shadow: null, | ||
lineCap: polyline.lineCap, | ||
lineJoin: polyline.lineJoin, | ||
miterLimit: polyline.miterLimit, | ||
}); | ||
result.push(new PolyRender(coordinates, { | ||
fillStyle: FillStyle.Color, | ||
enclosed: false, | ||
strokeColor: polyline.stroke.color, | ||
strokeWidth: polyline.stroke.width, | ||
lineDash: null, | ||
shadow: null, | ||
lineCap: polyline.lineCap, | ||
lineJoin: polyline.lineJoin, | ||
miterLimit: polyline.miterLimit, | ||
})); | ||
console.info("renderFunction-2", new PolyRender(coordinates, polyline)); | ||
@@ -31,0 +53,0 @@ }); |
{ | ||
"name": "@evergis/sgis", | ||
"version": "0.5.0-alpha.52", | ||
"version": "0.5.0-alpha.53", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/sGis_bundle.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3178659
38582