Support shareControl option on map. Fixes #559