Targets are displayed in instinct view and on the map based on the repo id, if the objective lists them as target and is not hidden.
I don't know what marked targets you refer to is. Maybe you refer to the objective id. The objective id is only needed when objectives refer to each other, for example if an objective becomes visible when another objective is completed. You can generate new objective ids with any uuid generator.