Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I use this with an apikey I don't know til lots later than app.use() #98

Open
sdetweil opened this issue Jun 6, 2024 · 0 comments

Comments

@sdetweil
Copy link

sdetweil commented Jun 6, 2024

our app is used my thousands of users. they each have to get their own api key (so I don't have to pay for it)
currently on our ionic vue app, I prompt for the apikey and save it locally.. (ios)

how can I do that here?

are there apis I can use, like the capacitor plugin

            this.newMap = await GoogleMap.create({
                /* eslint-enable */
                id: 'my-map', // Unique identifier for this map instance
                element: mapRef, // reference to the capacitor-google-map element
                apiKey: API_KEY, // Your Google Maps API Key
                config: {
                    center: {
                        // The initial position to be rendered by the map
                        lat: this.currentMapCenter.lat,
                        lng: this.currentMapCenter.lng
                        ,
                        },
                        zoom: this.zoomLevel, // The initial zoom level to be rendered by the map
                    }

                })

maybe I can set the apikey in created()

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

No branches or pull requests

1 participant