Questo esempio mostra i confini della mappa per
GMSFeatureTypeLocality e implementa la funzione
delegate che applica lo stile al poligono
su cui è stato fatto clic. Il risultato mostra una finestra di avviso informativo con i dati dell'evento.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-10 UTC."],[[["\u003cp\u003eThis documentation demonstrates handling click events on map boundaries, specifically using \u003ccode\u003eGMSFeatureTypeLocality\u003c/code\u003e for the example.\u003c/p\u003e\n"],["\u003cp\u003eWhen a boundary is clicked, an info window appears displaying event data, such as the place IDs of the clicked features.\u003c/p\u003e\n"],["\u003cp\u003eIt's crucial to note that map boundaries need a minimum alpha value for click events to register, ensuring they are tappable.\u003c/p\u003e\n"],["\u003cp\u003eSample code snippets in Swift and Objective-C are provided for implementation guidance on setting up and responding to click events on map boundaries.\u003c/p\u003e\n"]]],["The content demonstrates handling map boundary click events for the `GMSFeatureTypeLocality` feature on iOS. Key actions include setting a style for locality features (orange with 50% opacity fill, orange stroke, width of 2) and implementing a delegate function. This function triggers an alert showing the `placeID` of the features that are clicked. The code examples are shown in both Swift and Objective-C. Note that a minimal alpha value is required for the polygon features to be tappable.\n"],null,[]]