Nowy styl mapy będzie wkrótce dostępny w Google Maps Platform. Ta aktualizacja stylu mapy obejmuje nową domyślną paletę kolorów oraz ulepszenia ułatwiające obsługę i łatwość obsługi map. Wszystkie style mapy zostaną automatycznie zaktualizowane w marcu 2025 r. Więcej informacji o dostępności i sposobie włączania tej funkcji znajdziesz w artykule Nowy styl mapy w Google Maps Platform.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Połącz to
udostępnia platformę obsługi zdarzeń asynchronicznych przez łączenie operatorów przetwarzania zdarzeń.
Kombinacja ułatwia odczyt i obsługę kodu dzięki scentralizowaniu kodu przetwarzania zdarzeń.
Zobacz bibliotekę GoogleMapsPlatformPołącz
dokumentacji w serwisie GitHub zawierającej najnowsze wymagania systemowe i instrukcje instalacji.
Przykład użycia
Biblioteka GoogleMapsPlatformPołącz z komponentami
GMSMapViewPublisher zajęcia
, który zawiera właściwości wydawcy umożliwiające subskrybowanie zdarzeń generowanych przez mapę.
Ten przykład pozwala skonfigurować instancję GMSMapViewPublisher do subskrybowania
zdarzenia zmiany kamery:
let publisher = GMSMapViewPublisher(mapView:mapView)publisher.didChangeCameraPosition.sink { cameraPosition inprint("Camera position at \(cameraPosition.target)")}
[[["Ł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: 2024-09-13 UTC."],[[["GoogleMapsPlatformCombine is a Swift library that integrates the Maps SDK for iOS and Places SDK for iOS with Apple's Combine framework."],["This library provides Publishers for various SDK functionalities, allowing developers to leverage Combine's features for asynchronous event handling."],["By using GoogleMapsPlatformCombine, developers can simplify their code and centralize event-processing logic for Google Maps and Places SDKs within their applications."],["A practical example demonstrates subscribing to camera change events on a `GMSMapView` using the `GMSMapViewPublisher` and Combine's `sink` operator."]]],["The content introduces the GoogleMapsPlatformCombine library, which utilizes Apple's Combine framework for handling asynchronous events within the Google Maps and Places SDKs for iOS. It leverages `Publishers` to manage events. A key action is demonstrated through the `GMSMapViewPublisher` class, allowing users to subscribe to map events. An example illustrates how to monitor camera position changes using the `didChangeCameraPosition` publisher. Installation instructions and further details are available on the library's GitHub page.\n"]]