After a modal is opened while having an inicialized map, the map will not work anymore, the map area becomes scrollable and the only way to fix is app restart.
You will need an API key to be able to run the app on iOS.
Go to /src/components/BaseMap.vue
and insert the api key into the <GOOGLE_MAPS_API_KEY>
area of createMap
function.
For more information on setup check out the docs.
The app is installed with ionic start
with locally installed ionic version 7.2.0
. The following options was chosen:
- Framework: Vue
- Starter template: sidemenu
Then added capacitor google maps following the docs
After cloning run:
npm install
then go to /ios/App
run:
pod install
then run build, sync and open xcode:
npm run build && ionic cap sync && ionic cap open ios
(The app should open by default on /
route, but if not navigate to /
route)
-
In XCode, select signing, and run the app (I was running it on iPhone 15 with iOS version 17.4)
-
Click on the button
Open map
, the map will appear. -
Then click on button
Modal
, the modal will open. -
After closing the modal, the map is unusable.