ক্যামেরা পাথ অ্যানিমেশন যোগ করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্ল্যাটফর্ম নির্বাচন করুন: Android iOS আপনার ব্যবহারকারীদের জন্য আরও নিমগ্ন অভিজ্ঞতা প্রদান করতে আপনি আপনার 3D মানচিত্রে ক্যামেরা পাথ অ্যানিমেশন যোগ করতে পারেন। ক্যামেরা পাথ অ্যানিমেশনগুলি মানচিত্রের একটি বিন্দুতে উড়তে বা তার চারপাশে উড়তে পারে।
উড়ে যান
নিচের কোড নমুনাটি দেখায় কিভাবে Map.flyCameraTo
পদ্ধতি ব্যবহার করে ক্যামেরাকে 3D মানচিত্রে একটি নির্দিষ্ট বিন্দুতে উড়তে অ্যানিমেট করতে হয়।
সুইফট
Map(mode: .hybrid)
.flyCameraTo(
camera:Camera = .init(
latitude: 47.6210296,
longitude: -122.3496903,
heading: 149.0,
tilt: 77.0,
roll: 0.0,
range: 4000)
duration: 5,
trigger: animate,
completion: { }
)
চারপাশে উড়ে বেড়াও
নিচের কোড নমুনাটি দেখায় কিভাবে Map.flyCameraAround
পদ্ধতি ব্যবহার করে ক্যামেরাকে 3D মানচিত্রে একটি নির্দিষ্ট বিন্দুর চারপাশে উড়তে অ্যানিমেট করতে হয়।
সুইফট
Map(mode: .hybrid)
.flyCameraAround(
camera:Camera = .init(
latitude: 47.6210296,
longitude: -122.3496903,
heading: 149.0,
tilt: 77.0,
roll: 0.0,
range: 3000)
duration: 90,
rounds: 3,
trigger: flyAround,
callback: { }
)
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["Select platform: [Android](/maps/documentation/maps-3d/android-sdk/custom-camera-paths \"View this page for the Android platform docs.\") [iOS](/maps/documentation/maps-3d/ios-sdk/custom-camera-paths \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\n\n| This product or feature is Experimental (pre-GA). Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the [Google\n| Maps Platform Service Specific Terms](https://cloud.google.com/maps-platform/terms/maps-service-terms). For more information, see the [launch stage descriptions](/maps/launch-stages).\n\n\nYou can add camera paths animations to your 3D map to provide a more immersive\nexperience for your users. Camera path animations can fly to or fly around a point on the map.\n\nFly to\n\n\nThe following code sample demonstrates how to use the [`Map.flyCameraTo`](/maps/documentation/maps-3d/ios-sdk/reference/Extensions/View#flycamerato_:duration:trigger:completion) method to animate the camera to fly to a specific point on\na 3D map. \n\nSwift \n\n```swift\nMap(mode: .hybrid)\n.flyCameraTo(\n camera:Camera = .init(\n latitude: 47.6210296,\n longitude: -122.3496903,\n heading: 149.0,\n tilt: 77.0,\n roll: 0.0,\n range: 4000)\n duration: 5,\n trigger: animate,\n completion: { }\n)\n\n \n```\n\nFly around\n\n\nThe following code sample demonstrates how use the [`Map.flyCameraAround`](/maps/documentation/maps-3d/ios-sdk/reference/Extensions/View#flycameraaround_:duration:rounds:trigger:callback:) method to animate the camera to fly around a specific point on\na 3D map. \n\nSwift \n\n```swift\nMap(mode: .hybrid)\n .flyCameraAround(\n camera:Camera = .init(\n latitude: 47.6210296,\n longitude: -122.3496903,\n heading: 149.0,\n tilt: 77.0,\n roll: 0.0,\n range: 3000)\n duration: 90,\n rounds: 3,\n trigger: flyAround,\n callback: { }\n )\n\n \n```"]]