Rewrite Polygon Selection to leaflet