GWT-657: javascript implementation of measure distance info controller

GWT-657: cache location