moving geojson instantiation into callback function