mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 918 forks source link

Can I load only the classes I use? #2829

Open CodeWithOz opened 4 years ago

CodeWithOz commented 4 years ago

I'm submitting a ... (check one with "x")

OS: (check one with "x")

Is it possible to install this plugin only with the features I need in the app? For example, I don't use features like Polygon and GroundOverlay, but they're always included in the app. Is it possible to install the plugin in a way that excludes them? The use-case is for improving my app's load time. Currently this plugin injects the most scripts (~38) into the webview, and in my app this is causing a bottleneck that causes deviceready to fire late. So I'd like to reduce the number of scripts that this plugin injects into the app. Thank you.

wf9a5m75 commented 4 years ago

Sorry, impossible.