Switch to turn on / off edit mode for code generation. Clicking marker in edit mode autoopens map editor only when switch for edit mode is checked.