iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.08k stars 293 forks source link

[feat] Draw polygon edges into canevas using image pattern. #2210

Open ftoromanoff opened 9 months ago

ftoromanoff commented 9 months ago

Context:

The PR #2135 moves 2 functions aiming at drawing Polygon into Canevas based on style, from Feature2Texture.js.to Style.js. The function Feature2Texture.strokeStyle() changed as Style.drawPolygon() draws polygon edges using the style.

Proposal:

Currently to draw polygon edges into canevas, only color and width are supported. The possibility to use a defined pattern using an image still need to be implemented.