implemented dynamic map loading