Setting map state dynamically