iOS용 Maps SDK v3.10.0 베타에는 다음과 같은 새로운 기능이 도입되어 사용해 볼 수 있습니다.
클라우드 기반 지도 스타일 지정 지도 맞춤설정
다중선 맞춤설정: 스탬프 처리된 다중선
클라우드 기반 지도 스타일 지정 지도 맞춤설정 (베타)
이제 맞춤 스타일을 만들고 토큰을 사용하여 앱과 웹사이트의 지도에 할당할 수 있습니다. 자세한 내용은 iOS 지도 맞춤설정 개요를 참고하세요.
다중선 맞춤설정: 스탬프 처리된 다중선
GMSTextureStyle를 사용하여 다중선의 모양을 반복되는 비트맵 질감으로 설정할 수 있습니다. 이미지가 선을 완전히 덮지만 끝점과 꼭짓점 주변에서 잘립니다.
스탬프 처리된 다중선을 만들려면 GMSTextureStyle의 GMSStampStyle을 만듭니다.
그런 다음 다음과 같이 stampStyle을 사용하여 도형의 옵션 객체에서 이 속성을 설정합니다.
Swift
letpath=GMSMutablePath()path.addLatitude(-37.81319,longitude:144.96298)path.addLatitude(-31.95285,longitude:115.85734)letpolyline=GMSPolyline(path:path)letredWithStamp=GMSStrokeStyle.solidColor(.red)letimage=UIImage(named:"imageFromBundleOrAsset")!// Image could be from anywhereredWithStamp.stampStyle=GMSTextureStyle(image:image)letspan=GMSStyleSpan(style:redWithStamp)polyline.spans=[span]polyline.map=mapView
Objective-C
GMSMutablePath*path=[GMSMutablePathpath];[pathaddLatitude:-37.81319longitude:144.96298];[pathaddLatitude:-31.95285longitude:115.85734];GMSPolyline*polyline=[GMSPolylinepolylineWithPath:path];GMSStrokeStyle*redWithStamp=[GMSStrokeStylesolidColor:[UIColorredColor]];UIImage*image=[UIImageimageNamed:@"imageFromBundleOrAsset"];// Image could be from anywhereredWithStamp.stampStyle=[GMSTextureStyletextureStyleWithImage:image];GMSStyleSpan*span=[GMSStyleSpanspanWithStyle:redWithStamp];polyline.spans=@[span];polyline.map=mapView;
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[[["\u003cp\u003eThe Beta version of the Maps SDK for iOS is being deprecated and will be decommissioned; features accessed through it will be supported in a future SDK version.\u003c/p\u003e\n"],["\u003cp\u003eThis Beta release (v3.10.0) introduces Cloud-Based Map Styling for customizing maps in apps and websites.\u003c/p\u003e\n"],["\u003cp\u003eThis release also includes Polyline Customization, allowing developers to apply repeating bitmap textures to polylines using \u003ccode\u003eGMSTextureStyle\u003c/code\u003e.\u003c/p\u003e\n"]]],["The Beta SDK is deprecated and unavailable for new use. The Maps SDK for iOS v3.10.0 Beta introduces cloud-based map styling, allowing custom style creation and token assignment. It also introduces stamped polyline customization. To create a stamped polyline, a `GMSStampStyle` of `GMSTextureStyle` must be created and applied to the shape's options using `stampStyle`. Code examples in Swift and Objective-C demonstrate setting a repeating bitmap texture on a polyline.\n"],null,["| **Beta SDK deprecation notice:** The Beta version of the SDK is deprecated and scheduled for decommissioning, and it's no longer available for new usage. The features described in this topic are currently accessed via the Beta SDK. A future version of the SDK will provide similar support for these features. See the [release notes](/maps/documentation/ios-sdk/releases#2021-08-18) for more information.\n\n\u003cbr /\u003e\n\nThe Maps SDK for iOS v3.10.0 Beta introduces the following new\nfeatures for you to try:\n\n- Cloud-Based Map Styling map customization\n- Polyline customization: stamped polylines\n\nCloud-Based Map Styling map customization (beta)\n\nYou can now create custom styles, and use tokens to assign them to maps in your\napps and websites. For more information, see the see the\n[iOS Maps Customization Overview](/maps/documentation/ios-sdk/maps-customization-overview).\n\nPolyline customization: stamped polylines\n\nYou can set the appearance of a polyline to a repeating bitmap texture by using\n`GMSTextureStyle`. The images cover the line completely, but are cut off\naround end points and vertices.\n\nTo create a stamped polyline, create a `GMSStampStyle` of `GMSTextureStyle`.\nThen set this property on the shape's options object by using `stampStyle`, as\nshown here:\n\n\nSwift \n\n```swift\nlet path = GMSMutablePath()\npath.addLatitude(-37.81319, longitude: 144.96298)\npath.addLatitude(-31.95285, longitude: 115.85734)\nlet polyline = GMSPolyline(path: path)\nlet redWithStamp = GMSStrokeStyle.solidColor(.red)\n\nlet image = UIImage(named: \"imageFromBundleOrAsset\")! // Image could be from anywhere\nredWithStamp.stampStyle = GMSTextureStyle(image: image)\n\nlet span = GMSStyleSpan(style: redWithStamp)\npolyline.spans = [span]\npolyline.map = mapView\n \n```\n\nObjective-C \n\n```objective-c\nGMSMutablePath *path = [GMSMutablePath path];\n[path addLatitude:-37.81319 longitude:144.96298];\n[path addLatitude:-31.95285 longitude:115.85734];\nGMSPolyline *polyline = [GMSPolyline polylineWithPath:path];\nGMSStrokeStyle *redWithStamp = [GMSStrokeStyle solidColor:[UIColor redColor]];\n\nUIImage *image = [UIImage imageNamed:@\"imageFromBundleOrAsset\"]; // Image could be from anywhere\nredWithStamp.stampStyle = [GMSTextureStyle textureStyleWithImage:image];\n\nGMSStyleSpan *span = [GMSStyleSpan spanWithStyle:redWithStamp];\npolyline.spans = @[span];\npolyline.map = mapView;\n \n```\n\n\u003cbr /\u003e"]]