support both geojson and topojson polygon layers