Skip to content

Conversation

AE1NS
Copy link
Contributor

@AE1NS AE1NS commented May 25, 2023

This refactorings simplify the map options handling and therefore remove many methods, that can now be set in the instantiation of the map but also be updated with a new method.

Closes #1617

@AE1NS
Copy link
Contributor Author

AE1NS commented May 31, 2023

I also fixed an issue with the padding values in Android, that were used as DP value. I used the getScaledPixels to convert the DP values to screen PX. Now its working fine.

CAP_PLUGIN_METHOD(disableClustering, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(destroy, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(setCamera, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(getMapType, CAPPluginReturnPromise);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change - these should be kept, perhaps marked as deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ac75252#diff-e887271a6e743973df748b0b83f29f5250ad28c088c82e1aacadfbb4ffc3d1b4R460
The method still exists in the map.ts with the same return type and is marked as deprecetd there. It was just removed from the native implementations because its replaced by the new solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you still waiting for an update here or is it 'solved' with my comment? I just want to make sure that I am not the reason why this is on hold.

@AE1NS
Copy link
Contributor Author

AE1NS commented Jun 18, 2024

@AE1NS AE1NS closed this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[@capacitor/google-maps] Refactor options and extend a method to update the map options
3 participants