Add ol.source.MapGuide.getScale function