gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
304 stars 99 forks source link

Positioning of scaled mesh layer is not inline with scaled species layer #3935

Closed hqnghi88 closed 10 months ago

hqnghi88 commented 11 months ago

Describe the bug Using the size and position facet on mesh layer and species layer return unmatched location on display To Reproduce Steps to reproduce the behavior:

  1. Go to model: Building Heatmap.gaml

  2. In display "Instant heatmap with palette", add this line after mesh layer: species people size:{0.5,0.5} position:{0,0};

  3. add same facet to mesh layer: mesh instant_heatmap scale: 0 color: palette([ #black, #black, #orange, #orange, #red, #red, #red]) smooth: 2 size:{0.5,0.5} position:{0,0};

  4. Launch Experiment "Show heatmap", See that 2 layer are match.

    image
  5. Return to editor, change the position facet to {0,400} mesh instant_heatmap scale: 0 color: palette([ #black, #black, #orange, #orange, #red, #red, #red]) smooth: 2 size:{0.5,0.5} position:{0,400}; species people size:{0.5,0.5} position:{0,400};

  6. Launch Experiment "Show heatmap", See that 2 layer are unmatch.

    image

Expected behavior Match mesh layer with species layer when using customized size and position facet

git version, Win and Mac OS

hqnghi88 commented 10 months ago

Thank you, it works (seems not very complicated at all, the fix)