Scale SVGPath proportionally - and automatically
921640Jun 8 2012 — edited Jun 12 2012Hello,
I'm trying to use an SVG path to create a map/outline of a territory (country) on top of which some other nodes will be placed, to represent cities.
I've tried styling Region to take desired shape, but while resizing the Stage, it looses it's proportions. So, my country gets all distorted. :) Is there any way to force a Region to retain it's proportions upon scaling?
Also, I've tried with good old SVGPath, but Shapes are not auto-resizable (bummer), so I'd had to use scaleX and scaleY, but still don't know how to relate those two to parent StackPane's dimensions.
Any ideas on how to achieve this?
Edited by: scekics on 08.06.2012. 12.11