Skip to content

Commit

Permalink
Opencharts : Symbol Plotting by property
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvielamythepaut committed Nov 21, 2023
1 parent e6b7dea commit 04dcb88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/visualisers/SymbolPlotting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ void SymbolPlotting::by_property(Data& data, BasicGraphicsObjectContainer& out)
height = height*property_height_scaling_factor_*factor;

symbol->setHeight(height);

PaperPoint xy = transformation(UserPoint(point->longitude(), point->latitude()));

symbol->push_back(transformation(PaperPoint(point->longitude(), point->latitude())));
symbol->push_back(xy);

out.push_back(symbol);

Expand Down Expand Up @@ -251,7 +253,7 @@ void SymbolPlotting::operator()(Data& data, BasicGraphicsObjectContainer& out) {


try {
const Transformation& transformation = out.transformation();


// If we need to connect the symbols with a line, we need all the poinst
// to enable proper clipping of the line! Othewise wee just nedde to get the point
Expand All @@ -267,6 +269,7 @@ void SymbolPlotting::operator()(Data& data, BasicGraphicsObjectContainer& out) {

points.setToFirst();
while (points.more()) {

PaperPoint xy = transformation(points.current());
(*this)(xy, out);
points.advance();
Expand Down

0 comments on commit 04dcb88

Please sign in to comment.