Finally got dynamic map work work as expected