adding geojson definition to inside callback function