using the polygons area to calculate zindex