-
My current use case of the maps integration is a page, where the map is combined with a draggable sheet at the bottom (I am using cupertiono pane here). When I move the sheet, the map moves with it, but with half of the dragged way, means that the map always stays in center. All this is currently working with the javascript maps integration. As I want to profit from alle the benefits of the native maps integration (performance, costs, ...), I am wondering how I could achieve this use case with @capacitor/google-maps. I played around with the padding method, but I think this approach will not work. In the current implementation I need to:
Does someone have the same issue or are there any ideas how to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I tried to update the wrapper container of the map when dragging the sheet and call |
Beta Was this translation helpful? Give feedback.
I tried to update the wrapper container of the map when dragging the sheet and call
updateMapBounds
(private method that can be called on the plugin instance, could also be triggered withwindow.dispatchEvent(new CustomEvent('resize'))
). This works really well and fluid, but there is another issue with the plugin, because only the x and y values are updated but not the size of the map.ionic-team/capacitor-plugins#1557
When its resolved, it should work on this way.