tonyduanesmith / react-apple-mapkitjs

React wrapper for Apple MapkitJS
MIT License
22 stars 10 forks source link

Allow specifying the maptype to be shown #18

Open Zandor300 opened 3 years ago

Zandor300 commented 3 years ago

I would love to be able to set the maptypes through props:

<AppleMaps
    mapType="hybrid" // standard | mutedStandard | hybrid | satellite
/>

Or specify a default one that should be shown on startup, while still allowing the user to cycle through them:

<AppleMaps
    defaultMapType="hybrid" // standard | mutedStandard | hybrid | satellite
/>

See:

tonyduanesmith commented 3 years ago

Definitely seems useful, ill have a look at adding it