We want to declare our own map type, so that we can use a more minimal map than the road map; akin to something created using https://mapstyle.withgoogle.com/
The map mode can be defined in Sitecore:
/sitecore/system/Settings/Feature/Experience Accelerator/Maps/Enums/Map Modes/OurMap
but it looks like
Sitecore.XA.Feature.Maps.Repositories.MapsRepository.MapMode reads it from data source but then casts it to a
MapModes enum. This enum is later ToString'd in
GetJsonDataProperties and this appears to be the only place the enum appears to be used.
It looks like we have to specify our own
MapsRepository and override
MapMode is ToString'd) just to set our own map mode.
Is there another way to reduce the features used on a map without affecting the existing MapModes? Am I missing something?