modified the publisher for dynamic map