সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Maps JavaScript API-এর জন্য WebGL-চালিত বৈশিষ্ট্যগুলি আপনাকে কাত এবং ঘূর্ণন নিয়ন্ত্রণ করতে, মানচিত্রে সরাসরি 3D বস্তু যোগ করতে এবং আরও অনেক কিছু করতে দেয়৷ নিম্নলিখিত বৈশিষ্ট্য অন্তর্ভুক্ত করা হয়:
WebGL ওভারলে ভিউ আপনাকে আপনার মানচিত্রে কাস্টম 2D এবং 3D গ্রাফিক্স এবং অ্যানিমেটেড সামগ্রী যোগ করতে দেয়৷
কাত এবং শিরোনাম এখন প্রোগ্রামগতভাবে সামঞ্জস্য করা যেতে পারে, এবং মাউস এবং কীবোর্ড অঙ্গভঙ্গি ব্যবহার করে।
map.moveCamera() আপনাকে একই সাথে একাধিক ক্যামেরা বৈশিষ্ট্য পরিবর্তন করতে দেয়।
renderingType বিকল্পটি মানচিত্র আইডি কনফিগার করে তৈরি যেকোন রেন্ডারিং টাইপ সেটিংসকে ওভাররাইড করে।
কাত এবং ঘূর্ণন সক্ষম করতে, tiltInteractionEnabled মানচিত্র বিকল্পটিকে সত্যে সেট করুন বা map.setTiltInteractionEnabled কল করুন।
প্যানিং সক্ষম করতে, headingInteractionEnabled মানচিত্র বিকল্পটিকে true সেট করুন বা map.setHeadingInteractionEnabled কল করুন।
রেন্ডারিং টাইপ সেট করতে একটি মানচিত্র আইডি ব্যবহার করুন
আপনি একটি মানচিত্র আইডি ব্যবহার করে রেন্ডারিং টাইপও নির্দিষ্ট করতে পারেন। একটি নতুন মানচিত্র আইডি তৈরি করতে, ক্লাউড-ভিত্তিক মানচিত্র স্টাইলিং-এর ধাপগুলি অনুসরণ করুন - একটি মানচিত্র আইডি পান । মানচিত্র প্রকারটি JavaScript- এ সেট করতে ভুলবেন না এবং ভেক্টর বিকল্পটি নির্বাচন করুন। মানচিত্রে কাত এবং ঘূর্ণন সক্ষম করতে টিল্ট বা ঘূর্ণন পরীক্ষা করুন। এটি করার ফলে আপনি প্রোগ্রামগতভাবে এই মানগুলিকে সামঞ্জস্য করতে পারবেন এবং ব্যবহারকারীদের সরাসরি মানচিত্রে কাত এবং শিরোনাম সামঞ্জস্য করতে পারবেন৷ যদি টিল্ট বা শিরোনামের ব্যবহার আপনার অ্যাপকে বিরূপভাবে প্রভাবিত করে, তাহলে টিল্ট এবং রোটেশন চেক না করে রাখুন যাতে ব্যবহারকারীরা কাত এবং ঘূর্ণন সামঞ্জস্য করতে না পারে।
এরপরে, আপনার তৈরি করা মানচিত্র ID দিয়ে আপনার মানচিত্র আরম্ভ করার কোড আপডেট করুন। আপনি মানচিত্র ব্যবস্থাপনা পৃষ্ঠায় আপনার মানচিত্র IDs খুঁজে পেতে পারেন. এখানে দেখানো হিসাবে mapId প্রপার্টি ব্যবহার করে ম্যাপ ইনস্ট্যান্টিয়েট করার সময় একটি ম্যাপ আইডি প্রদান করুন:
তিনি <gmp-map> উপাদান ব্যবহার করার সময় ভেক্টর মানচিত্র, টিল্ট এবং শিরোনাম ডিফল্টরূপে সক্রিয় থাকে, যা আপনাকে HTML ব্যবহার করে আপনার পৃষ্ঠায় একটি মানচিত্র যোগ করতে দেয়। আরও জানুন
উদাহরণ
এই বৈশিষ্ট্যগুলি প্রদর্শন করার জন্য উদাহরণ প্রদান করা হয়েছে:
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-08-12 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eWebGL-powered features for Maps JavaScript API enable control over tilt and rotation, addition of 3D objects, and custom 2D/3D graphics with WebGL Overlay View.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize WebGL features, use a vector map by specifying \u003ccode\u003erenderingType: RenderingType.VECTOR\u003c/code\u003e during map initialization or by using a map ID with the vector option enabled.\u003c/p\u003e\n"],["\u003cp\u003eTilt and rotation can be controlled programmatically or through user interaction by enabling \u003ccode\u003etiltInteractionEnabled\u003c/code\u003e and \u003ccode\u003eheadingInteractionEnabled\u003c/code\u003e map options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e<gmp-map>\u003c/code\u003e element automatically enables vector maps, tilt, and heading by default, simplifying integration.\u003c/p\u003e\n"],["\u003cp\u003eSeveral examples and demos are available to explore the capabilities and implementation of WebGL features in Maps JavaScript API.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\nWebGL-powered features for Maps JavaScript API let you\ncontrol tilt and rotation, add 3D objects directly to the map, and more. The\nfollowing features are included:\n\n- [WebGL Overlay View](/maps/documentation/javascript/webgl/webgl-overlay-view) lets you add custom 2D and 3D graphics and animated content to your maps.\n- [Tilt and heading](/maps/documentation/javascript/vector-map#tilt-rotation) can now be adjusted programmatically, and by using mouse and keyboard gestures.\n- [map.moveCamera()](/maps/documentation/javascript/vector-map#control-camera) lets you simultaneously change multiple camera properties.\n- Zoom now supports [fractional values](/maps/documentation/javascript/vector-map#fractional-zoom).\n\nGet started\n\nIn order to use the new WebGL features, you must use a vector map. This section\nshows you how.\n\nSpecify the `renderingType` option\n\nUse the `renderingType` option to specify either the raster or vector\nrendering type for your map (no map ID required):\n\n1. Load the `RenderingType` library; this can be done when loading the Maps\n library:\n\n const { Map, RenderingType } = await google.maps.importLibrary(\"maps\") as google.maps.MapsLibrary;\n\n2. When initializing the map, use the `renderingType` option to specify either\n `RenderingType.VECTOR` or `RenderingType.RASTER`:\n\n map = new Map(\n document.getElementById('map') as HTMLElement,\n {\n zoom: 4,\n center: position,\n renderingType: RenderingType.VECTOR,\n }\n );\n\nThe `renderingType` option overrides any rendering type settings made by\nconfiguring a map ID.\n\n- To enable tilt and rotation, set the `tiltInteractionEnabled` map option to true or call `map.setTiltInteractionEnabled`.\n- To enable panning, set the `headingInteractionEnabled` map option to `true` or call `map.setHeadingInteractionEnabled`.\n\nUse a map ID to set rendering type\n\nYou can also specify the rendering type by using a map ID. To create a new map\nID, follow the steps in [Using Cloud-based Map Styling - Get a map ID](/maps/documentation/javascript/styling#creating-map-ids).\nBe sure to set the Map type to **JavaScript** , and select the **Vector**\noption. Check **Tilt** or **Rotation** to enable tilt and rotation on the\nmap. Doing so lets you programmatically adjust these values, and also\nlets users adjust tilt and heading directly on the map. If the use of tilt or\nheading will adversely affect your app, leave **Tilt** and **Rotation** un-\nchecked so users cannot adjust tilt and rotation.\n\nNext, update your map initialization code with the map ID you created. You can\nfind your map IDs on the\n[Maps\nManagement](https://console.cloud.google.com/google/maps-apis/studio/maps) page. Provide a map ID when you instantiate the map using the\n`mapId` property as shown here: \n\n```javascript\nmap = new google.maps.Map(document.getElementById('map'), {\n center: {lat: -34.397, lng: 150.644},\n zoom: 8,\n mapId: '\u003cvar translate=\"no\"\u003eMAP_ID\u003c/var\u003e'\n});\n```\n| **Important:** It is recommended to associate your map ID and API key with the same Google Cloud console project.\n\nUse the `\u003cgmp-map\u003e` element\n\nVector maps, tilt, and heading are enabled by default when using he `\u003cgmp-map\u003e`\nelement, which lets you add a map to your page using HTML. [Learn more](/maps/documentation/javascript/add-google-map-wc-tut).\n\nExamples\n\nExamples have been provided to demonstrate these features:\n\n- [WebGL Overlay View](/maps/documentation/javascript/examples/webgl/webgl-overlay-simple)\n- [WebGL Tilt and Rotation](/maps/documentation/javascript/examples/webgl/webgl-tilt-rotation)\n- [WebGL Feature Tour](https://goo.gle/maps-platform-webgl-tour)\n- [WebGL Travel App Demo](https://goo.gle/maps-platform-webgl-travel-demo)"]]