add On Map Type Changed
Add an action to be called when mapType changes.
The callback fires once the new style has finished loading and existing markers and overlays have been re-attached — i.e. when the map is in its post-swap steady state. If mapType is changed several times in quick succession, only the final value is delivered (intermediate, superseded loads are dropped).
Parameters
action
a function called with the newly-set MapType.