move map-reveal code to appropriate locale