Open caver456 opened 1 week ago
Probably best to allow mode specification too. Default should be recreation, in case a non-SAR user is trying to make a map. Maybe the format of the openMap argument could be '[NEW]'[[
[NEW] - just make a new map, recreation mode, title='new' [NEW]myMap - make a new map, recreation mode, title='myMap' [NEW]SAR:mySARMap - make a new map, SAR mode, title='mySARMap'
While shoving all these arguments into the mapID argument as a string seems odd, it does get rid of the need to change upstream calls to openMap or init.
Right now, the new map title is hardcoded to 'new':
Change this to allow mapID to be a longer strong, and whatever text follows [NEW] can be used as the value of the 'title' key. Also update the docstring.