How to modify points in a Polygon object - Forum

Forum Navigation
Climate strike banner
You need to log in to create posts and topics.

How to modify points in a Polygon object

If you need to transform programmatically a Polygon object just use this code:

BeginJS
  $("#Polygon1 polygon").attr('points', '0,0 50,50 0,50');
EndJS

In the near future there will be more specific actions, like this one, natively implemented into NEO Script language.