Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Giới thiệu
Với gói Google Maps cho Flutter, bạn có thể thêm bản đồ dựa trên dữ liệu của Google Maps vào ứng dụng iOS hoặc Android. SDK này tự động xử lý quyền truy cập vào máy chủ Google Maps, màn hình bản đồ và phản hồi các cử chỉ của người dùng, chẳng hạn như thao tác nhấp và kéo. Bạn cũng có thể thêm điểm đánh dấu, đường nhiều đoạn, lớp phủ mặt đất và cửa sổ thông tin vào bản đồ. Các đối tượng này cung cấp thông tin bổ sung cho các vị trí trên bản đồ và cho phép người dùng tương tác với bản đồ.
Các trình bổ trợ Flutter sử dụng các kênh Dart để gọi API dành riêng cho từng nền tảng. Nhà phát triển Flutter tương tác với một gói duy nhất hướng đến ứng dụng. Gói này nhận dạng nền tảng mà ứng dụng đang chạy và liên kết các lệnh gọi API với mã gốc thích hợp
Đối tượng
Tài liệu này dành cho những người đã quen thuộc với các khái niệm về phát triển Flutter. Bạn cũng nên nắm rõ về Google Maps theo quan điểm của người dùng. Với hướng dẫn này, bạn có thể bắt đầu khám phá và phát triển các ứng dụng bằng gói Google Maps cho Flutter. Để tìm hiểu thông tin cụ thể về các lớp và phương thức, hãy xem tài liệu tham khảo.
Yêu cầu về việc ghi công
Nếu sử dụng gói Google Maps cho Flutter trong ứng dụng, bạn phải thêm văn bản ghi nhận quyền tác giả vào phần thông báo pháp lý trong ứng dụng. Google đề xuất bạn đưa thông báo pháp lý vào một mục riêng trong trình đơn hoặc trong mục "Giới thiệu" của trình đơn.
Để lấy văn bản ghi nhận quyền tác giả, hãy gọi điểm cuối showLicensePage.
Nền tảng được hỗ trợ
Với gói Google Maps cho Flutter, bạn có thể tạo các ứng dụng nhắm đến iOS, Android và Web.
Hãy tham khảo tài liệu Flutter để biết các yêu cầu về môi trường phát triển và phiên bản hiện tại của các nền tảng mục tiêu.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[[["\u003cp\u003eThe Google Maps for Flutter package enables developers to integrate Google Maps into their iOS, Android, and web applications, offering features like markers, polylines, and interactive elements.\u003c/p\u003e\n"],["\u003cp\u003eBefore utilizing the package, ensure you have a project with a billing account and the necessary SDKs and API keys enabled, along with designated Project Owners and Billing Administrators.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers using the package should be familiar with Flutter development and Google Maps from a user perspective, adhering to the Google Maps Platform Terms of Service and applicable laws.\u003c/p\u003e\n"],["\u003cp\u003eApplications incorporating the Google Maps for Flutter package must include attribution text in a legal notices section, accessible through a dedicated menu item or an "About" section.\u003c/p\u003e\n"],["\u003cp\u003eThe package supports iOS, Android, and web platforms; for Maps URLs functionality, the target device requires the installation of the relevant Google Maps app.\u003c/p\u003e\n"]]],[],null,["# Before you begin\n\n| Before using the Google Maps for Flutter package, you need a project with a billing account and the Maps SDK for Android, Maps SDK for iOS, and Maps JavaScript API enabled, depending on the platform(s) you are targeting. You also need an API key. Google recommends creating multiple Project Owners and Billing Administrators, so that you'll always have someone with these roles available to your team. For instructions, see [Getting started with Google Maps Platform](/maps/get-started) and [Grant roles in the Google Cloud console](https://cloud.google.com/iam/docs/grant-role-console).\n\nIntroduction\n------------\n\nWith the Google Maps for Flutter package, you can add maps based on Google maps\ndata to your iOS or Android application. The SDK automatically handles access to\nthe Google Maps servers, map display, and response to user gestures such as\nclicks and drags. You can also add markers, polylines, ground overlays, and info\nwindows to your map. These objects provide additional information for map\nlocations, and allow user interaction with the map.\n\nWhen using the SDK you need to comply with the [Google Maps Platform Terms of\nService](https://cloud.google.com/maps-platform/terms) and ensure that your app\ncomplies with applicable laws.\n\nFlutter plugins use Dart channels to call platform-specific APIs. Flutter\ndevelopers interact with a single, app-facing package. This package recognizes\nthe platform that the app is running on and federates the API calls to the\nappropriate native code\n\nAudience\n--------\n\nThis documentation is designed for people familiar with [Flutter\ndevelopment](https://flutter.dev/?utm_source=devsite&utm_medium=maps_docs&utm_campaign=maps_docs) concepts. You should also be\nfamiliar with [Google Maps](https://maps.google.com/) from a user's point of\nview. With this guide, you can start exploring and developing applications with\nthe Google Maps for Flutter package. To learn about specific details of classes and\nmethods, check out the [reference\ndocumentation](https://api.flutter.dev/index.html?utm_source=devsite&utm_medium=maps_docs&utm_campaign=maps_docs).\n\nAttribution requirements\n------------------------\n\nIf you use the Google Maps for Flutter package in your application, you must\ninclude the attribution text as part of a legal notices section in your\napplication. Google recommend including legal notices as an independent menu\nitem, or as part of an \"About\" menu item.\n\nTo get the attribution text, call the [`showLicensePage`](https://api.flutter.dev/flutter/material/showLicensePage.html?utm_source=devsite&utm_medium=maps_docs&utm_campaign=maps_docs)\nendpoint.\n\nSupported platforms\n-------------------\n\nWith the Google Maps for Flutter package, you can build apps that target iOS,\nAndroid and the Web.\n\nRefer to the Flutter documentation for the development environments requirements\nand current versions of [target\nplatforms](https://docs.flutter.dev/reference/supported-platforms%0A?utm_source=devsite&utm_medium=maps_docs&utm_campaign=maps_docs).\n\nTo use [Maps\nURLs](https://developers.google.com/maps/documentation/ios-sdk/urlscheme), your\ntarget device needs the appropriate Google Maps app installed. For mobile\ndevices, this includes [Google Maps for\niOS](https://itunes.apple.com/app/id585027354) or\n[Google Maps for Android](https://play.google.com/store/apps/details?id=com.google.android.apps.maps&hl=en_US&gl=US&pli=1)."]]