Added select SQL for poligon and basic js for view action of area