GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSFeature
@protocol GMSFeature <NSObject>
An interface representing a feature’s metadata.
Do not save a reference to a particular feature object because the reference will not be stable.
-
Declaration
Swift
func featureType() -> FeatureType
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSFeature\u003c/code\u003e is a protocol defining the metadata of a feature on a map.\u003c/p\u003e\n"],["\u003cp\u003eDo not retain references to \u003ccode\u003eGMSFeature\u003c/code\u003e instances as they are not guaranteed to be stable.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003efeatureType\u003c/code\u003e returns the type of the feature.\u003c/p\u003e\n"]]],[],null,["# GoogleMaps Framework Reference\n\nGMSFeature\n==========\n\n @protocol GMSFeature \u003cNSObject\u003e\n\nAn interface representing a feature's metadata.\n\nDo not save a reference to a particular feature object because the reference will not be stable.\n- `\n ``\n ``\n `\n\n ### [-featureType](#/c:objc(pl)GMSFeature(im)featureType)\n\n `\n ` \n Type of this feature. \n\n #### Declaration\n\n Swift \n\n func featureType() -\u003e FeatureType\n\n Objective-C \n\n - (nonnull ../Type-Definitions/GMSFeatureType.html)featureType;"]]