Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirli gelişmiş işaretçi özellikleri ayarlandığında dokunma ve hareketler gibi işaretçi etkinliklerini izleyebilirsiniz.
Bir işaretçiye dokunulduğunda işaretçi başlığı veya snippet gibi ek bilgiler görülebilir. Sürükleyebileceğiniz işaretçileri uzun basma hareketiyle de taşıyabilirsiniz.
İşaretçi etkinliklerini izlemek için GMSMapViewDelegate
öğesini view öğenize ekleyin.
İşaretçiyi sürüklenebilir hale getirmek için GMSMarker.draggable özelliğini ayarlayın.
Bir işaretçi için açıklayıcı metin ayarlamak üzere GMSMarker.title özelliğini kullanın.
İşaretçi etkinliklerine yanıt verme
Görünümünüze işaretleyici etkinlikleri ekleyerek GMSMapViewDelegate protokolünü ekleyip ilgili geri aramayı uygulayarak yanıt verebilirsiniz. Bu örnekte, seçili bir işaretçi için title ve snippet tanımlanmaktadır.
draggable özelliğini etkinleştirdiğinizde kullanıcılar, uzun basma hareketiyle haritadaki işaretçileri sürükleyebilir. İşaretçinin sürüklenebilir olması için GMSMarker.draggable özelliğini doğru olarak ayarlayın.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-09-10 UTC."],[[["\u003cp\u003eGoogle Maps SDK for iOS allows you to monitor marker events like taps and gestures, displaying information like title and snippet when tapped.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable marker dragging using a long press gesture by setting the \u003ccode\u003eGMSMarker.draggable\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eMarker visibility can be controlled based on the map's zoom level using the \u003ccode\u003eGMSMapViewDelegate\u003c/code\u003e and setting the \u003ccode\u003eGMSMarker.map\u003c/code\u003e property conditionally.\u003c/p\u003e\n"],["\u003cp\u003eTo respond to marker events and access details like title and snippet, implement the \u003ccode\u003eGMSMapViewDelegate\u003c/code\u003e protocol and its corresponding callback methods.\u003c/p\u003e\n"]]],["Markers' events, like taps and gestures, can be monitored by adding `GMSMapViewDelegate`. Tapped markers reveal their title and snippet, set using `GMSMarker.title`. Markers can be made draggable with `GMSMarker.draggable`, allowing movement via long press. You can control marker visibility based on zoom level by setting `GMSMarker.map` within the `GMSMapViewDelegate` callback. Implementing the delegate protocol also allows for handling custom responses to specific marker interactions.\n"],null,[]]