Konfigurowanie interfejsu Maps JavaScript API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
W tym dokumencie opisujemy kroki, które należy wykonać, aby zacząć korzystać z interfejsu Maps JavaScript API.
checklist
Upewnij się, że spełniasz wymagania wstępne.
settings
włączyć interfejs API w projekcie Google Cloud,
verified_user
skonfigurować klucz interfejsu API, aby wysyłać uwierzytelnione żądania interfejsu API;
Włącz API
Zanim zaczniesz korzystać z interfejsu Maps JavaScript API, musisz włączyć go w projekcie Google Cloud za pomocą konsoli Google Cloud lub polecenia gcloud.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2026-01-27 UTC."],[],["Google Maps Platform requires API keys for authentication and billing. To create an API key, navigate to the Google Maps Platform Credentials page and select \"Create credentials \\\u003e API key.\" Restricting API keys to specific applications and APIs is strongly recommended for security and to prevent financial abuse. This can be done via the console or Cloud SDK by setting application and API restrictions. Finally, include the API key in every Maps JavaScript API request.\n"]]