একটি মানচিত্র আইডি হল একটি অনন্য শনাক্তকারী যা Google ম্যাপ স্টাইলিং এবং কনফিগারেশন সেটিংস উপস্থাপন করে যা Google ক্লাউডে সংরক্ষিত থাকে। আপনি বৈশিষ্ট্যগুলি সক্ষম করতে বা আপনার ওয়েবসাইট এবং আপনার অ্যাপ্লিকেশনগুলিতে মানচিত্র পরিচালনা বা স্টাইল করতে মানচিত্র আইডি ব্যবহার করেন৷ ম্যাপ ম্যানেজমেন্ট পৃষ্ঠায় আপনার Google ক্লাউড কনসোল প্রজেক্টে--জাভাস্ক্রিপ্ট, অ্যান্ড্রয়েড, iOS, বা স্ট্যাটিক ম্যাপ--এর জন্য আপনার প্রয়োজনীয় প্রতিটি প্ল্যাটফর্মের জন্য মানচিত্র আইডি তৈরি করতে পারেন।
মানচিত্র আইডি ব্যবহার করে এমন আরও বিশদ এবং বৈশিষ্ট্যের জন্য, মানচিত্র আইডি ওভারভিউ দেখুন।
প্রয়োজনীয় অনুমতি
আপনার প্রকল্পে যেকোন মানচিত্র আইডি তৈরি বা পরিচালনা করতে, আপনাকে প্রকল্পের জন্য ক্লাউড কনসোল IAM পৃষ্ঠায় উপযুক্ত ভূমিকা-স্তরের অনুমতি, সম্পাদক বা মালিকের সাথে একটি প্রিন্সিপাল ব্যবহার করতে হবে। বিস্তারিত জানার জন্য, IAM মৌলিক এবং পূর্বনির্ধারিত ভূমিকা রেফারেন্স দেখুন।
মানচিত্র আইডি তৈরি করুন
এই পদক্ষেপগুলি অনুসরণ করে ক্লাউড কনসোলে মানচিত্র আইডি তৈরি করুন:
নতুন মানচিত্র আইডি তৈরি করুন পৃষ্ঠায়, নিম্নলিখিতগুলি করুন:
নামের জন্য, মানচিত্র আইডি একটি নাম দিন।
ঐচ্ছিক : বর্ণনার জন্য, মানচিত্র আইডি কিসের জন্য ব্যবহার করা হয় তা বর্ণনা করুন।
মানচিত্রের প্রকারের জন্য, আপনি যে প্ল্যাটফর্মে মানচিত্র ID ব্যবহার করার পরিকল্পনা করছেন সেটি নির্বাচন করুন। আপনি যদি জাভাস্ক্রিপ্ট চয়ন করেন, তবে একটি রাস্টার (ডিফল্ট) বা ভেক্টর মানচিত্রের প্রকারও চয়ন করুন। ভেক্টর মানচিত্র সম্পর্কে আরও তথ্যের জন্য, ভেক্টর মানচিত্র দেখুন।
আপনার নতুন মানচিত্র ID প্রদর্শন করতে সংরক্ষণ করুন ক্লিক করুন.
একটি মানচিত্র শৈলীতে একটি মানচিত্র ID সংযুক্ত করুন৷
আপনি যদি ক্লাউড-ভিত্তিক মানচিত্র স্টাইলিং ব্যবহার করেন, আপনি আপনার মানচিত্র আইডির সাথে একটি মানচিত্র শৈলী যুক্ত করেন। বিশদ বিবরণের জন্য, একটি মানচিত্র ID এর সাথে আপনার শৈলী সংযুক্ত করুন দেখুন।
আপনার অ্যাপে ম্যাপ আইডি যোগ করুন
অ্যান্ড্রয়েড
MapView ক্লাস ব্যবহার করে, অথবা GoogleMapOptions ক্লাস ব্যবহার করে প্রোগ্রাম্যাটিকভাবে কার্যকলাপের লেআউট ফাইলে একটি <fragment> উপাদানের মাধ্যমে আপনার মানচিত্র ID যোগ করুন।
উদাহরণস্বরূপ, ধরে নিন আপনি একটি মানচিত্র আইডি তৈরি করেছেন যা res/values/strings.xml এ map_id নামে একটি স্ট্রিং মান হিসাবে সংরক্ষণ করা হয়েছে :
অ্যাক্টিভিটি লেআউট ফাইলে একটি <fragment> উপাদানের মাধ্যমে যোগ করা মানচিত্রের জন্য, কাস্টম শৈলী থাকা উচিত এমন সমস্ত মানচিত্রের খণ্ডকে অবশ্যই মানচিত্রের আইডি উল্লেখ করতে হবে map:mapId বৈশিষ্ট্য:
অ্যান্ড্রয়েড স্টুডিওতে, আপনার অ্যাপ তৈরি করুন এবং চালান যেভাবে আপনি সাধারণত চান। প্রথম ধাপে কনফিগার করা কাস্টম শৈলীগুলি নির্দিষ্ট মানচিত্র ID সহ সমস্ত মানচিত্রে প্রয়োগ করা হয়৷
iOS
একটি মানচিত্র আইডি ব্যবহার করে একটি মানচিত্র ইনস্ট্যান্ট করতে, নিম্নলিখিতগুলি করুন:
ক্লাউড কনসোল থেকে মানচিত্র আইডি স্ট্রিং সহ একটি GMSMapID তৈরি করুন।
আপনি এইমাত্র তৈরি করা মানচিত্র ID উল্লেখ করে একটি GMSMapView তৈরি করুন।
আপনি যদি নিজের মানচিত্র আইডি ব্যবহার করেন, আপনি ক্লাউড কনসোলে যে কোনো সময় একটি নতুন শৈলী পেতে আপনার মানচিত্র আইডি সেট করতে পারেন, এবং সেই শৈলীটি প্রায় ছয় ঘণ্টার মধ্যে আপনার এবং ব্যবহারকারীদের জন্য স্বয়ংক্রিয়ভাবে আপনার মানচিত্র দৃশ্যে প্রতিফলিত হবে৷
আপনি যদি পরিবর্তনগুলি অবিলম্বে দেখতে চান, আপনি অ্যাপটি বন্ধ করে পুনরায় চালু করতে পারেন, অ্যাপ থেকে প্রস্থান করে, সম্প্রতি-ব্যবহৃত অ্যাপের তালিকা থেকে অ্যাপটি ছেড়ে দিতে বাধ্য করে এবং তারপরে এটি পুনরায় চালু করে। আপডেট করা মানচিত্র তখন দৃশ্যমান হবে।
জাভাস্ক্রিপ্ট
আপনার অ্যাপ্লিকেশন কোডে একটি মানচিত্র ID সহ একটি মানচিত্র তৈরি করতে:
আপনি যদি ইতিমধ্যেই এমবেডেড JSON কোড দিয়ে আপনার মানচিত্র কাস্টমাইজ করে থাকেন, তাহলে আপনার MapOptions অবজেক্ট থেকে styles বৈশিষ্ট্য সরিয়ে দিন; অন্যথায়, এই ধাপটি এড়িয়ে যান।
mapId বৈশিষ্ট্য ব্যবহার করে মানচিত্রে একটি মানচিত্র ID যোগ করুন। যেমন:
আমাদের ওয়েব-সার্ভিস APIগুলির একটি ব্যবহার করে এমন একটি নতুন বা বিদ্যমান মানচিত্রে একটি মানচিত্র ID যোগ করতে, map_id URL প্যারামিটার যোগ করুন এবং এটিকে আপনার মানচিত্র ID-তে সেট করুন। এই উদাহরণটি মানচিত্র স্ট্যাটিক API ব্যবহার করে একটি মানচিত্রে একটি মানচিত্র ID যোগ করা দেখায়।
আপনার মানচিত্র আইডি যোগ করার আগে যদি আপনার মানচিত্র স্ট্যাটিক URL-এ একটি ডিজিটাল স্বাক্ষর থাকে, তাহলে আপনার মানচিত্র ID যোগ করার পরে আপনাকে একটি নতুন ডিজিটাল স্বাক্ষর তৈরি করতে হবে এবং যোগ করতে হবে । আপনার নতুন ইউআরএল সাইনিং সিক্রেট জেনারেট করার সময়, ইউআরএল থেকে আপনার আগের ডিজিটাল স্বাক্ষর মুছে ফেলতে ভুলবেন না।
[[["সহজে বোঝা যায়","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-07-16 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eA map ID is a unique identifier used to represent Google Map styling and configuration settings stored in Google Cloud, allowing you to manage and style maps on websites and in applications.\u003c/p\u003e\n"],["\u003cp\u003eYou can create map IDs for JavaScript, Android, iOS, or Static maps within your Google Cloud console project on the Map Management page, and they require appropriate permissions (Editor or Owner) to manage.\u003c/p\u003e\n"],["\u003cp\u003eAssociating a map ID with a map style, particularly for cloud-based maps, allows for custom styling, and these changes can take up to six hours to be reflected on the map, or can be forced by restarting the app.\u003c/p\u003e\n"],["\u003cp\u003eTo add a map ID to your application, you can use various methods, including through \u003ccode\u003e<fragment>\u003c/code\u003e elements, the \u003ccode\u003eMapView\u003c/code\u003e class, or programmatically via the \u003ccode\u003eGoogleMapOptions\u003c/code\u003e class for Android, or by creating a \u003ccode\u003eGMSMapID\u003c/code\u003e for iOS, or by using the \u003ccode\u003emapId\u003c/code\u003e property in JavaScript.\u003c/p\u003e\n"],["\u003cp\u003eAdding a map ID to web-service APIs, like Maps Static, involves appending the \u003ccode\u003emap_id\u003c/code\u003e URL parameter, which may necessitate creating a new digital signature for the URL if one was previously present.\u003c/p\u003e\n"]]],["Map IDs are unique identifiers for Google Map styling and configurations. To create one, sign in to the Google Cloud console, navigate to the Maps Management page, and click \"Create map ID.\" Name it, optionally add a description, and select the platform (JavaScript, Android, iOS, or Static maps). Add the map ID to your app through platform-specific methods: `\u003cfragment\u003e` or `MapView` class in Android, `GMSMapView` in iOS, `mapId` property in JavaScript, and `map_id` URL parameter in Maps Static.\n"],null,["Select platform: [Android](/maps/documentation/android-sdk/map-ids/get-map-id \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/map-ids/get-map-id \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/map-ids/get-map-id \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/map-ids/get-map-id \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\n| **Paid feature:**\n| Features accessed by adding a [map ID](/maps/documentation/get-map-id) triggers a map\n| load charged against the Dynamic Maps SKU for Android and iOS. See\n| [Google Maps Billing](/maps/billing-and-pricing/sku-details#dynamic-maps-ess-sku) for more information.\n\nA map ID is a unique identifier that represents Google Map styling and configuration settings that are stored in Google Cloud. You use map IDs to enable features or manage or style maps on your websites and in your applications. You can create map IDs for each platform you need--JavaScript, Android, iOS, or Static maps--in your Google Cloud console project on the **Map Management** page.\n\nFor more details and features that use map IDs,\nsee [Map ID overview](/maps/documentation/ios-sdk/map-ids/mapid-over).\n\nRequired permissions\n\nTo create or manage any map IDs in your project, you\nmust use a principal with the appropriate role-level permissions, Editor or\nOwner, on the Cloud console IAM page for the project. For\ndetails, see\n[IAM basic and predefined roles reference](https://cloud.google.com/iam/docs/understanding-roles#role_types).\n\nCreate map IDs\n\nCreate map IDs in the Cloud console following\nthese steps:\n\n1. Sign in to and open a Cloud console project with the\n [required permissions](#permissions).\n\n2. In the Cloud console, go to the\n [Maps Management page](https://console.cloud.google.com/google/maps-apis/studio/maps).\n\n3. Click **Create map ID**.\n\n4. On the **Create new map ID** page, do the following:\n\n 1. For **Name**, give the map ID a name.\n 2. *Optional* : For **Description**, describe what the map ID is used for.\n 3. For **Map type** , select the platform on which you plan to use the map ID. If you choose JavaScript, also choose a **Raster** (the default) or **Vector** map type. For more information on vector maps, see [Vector Maps](/maps/documentation/javascript/vector-map).\n 4. Click **Save** to show your new map ID.\n\nAssociate a map ID to a map style\n\nIf you are using cloud-based maps styling, you associate a map style with your\nmap ID. For details, see [Associate your style to a map ID](../cloud-customization/map-styles-leg#associate-style-with-map-id).\n\nAdd the map ID to your app \n\nAndroid\n\nAdd your map ID through a `\u003cfragment\u003e` element in the\nactivity's layout file, by using the `MapView` class, or programmatically\nusing the `GoogleMapOptions` class.\n\nFor example, assume you created a map ID that is stored as a\nstring value named `map_id` in `res/values/strings.xml`: \n\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003cresources\u003e\n \u003cstring name=\"map_id\"\u003e\u003cvar label=\"map_id\" translate=\"no\"\u003eMAP_ID\u003c/var\u003e\u003c/string\u003e\n \u003c/resources\u003e\n\nFor maps added through a `\u003cfragment\u003e` element in the activity's layout file,\nall map fragments that should have the custom style must specify the\nmap ID in the `map:mapId` attribute: \n\n \u003cfragment xmlns:map=\"http://schemas.android.com/apk/res-auto\"\n map:name=\"com.google.android.gms.maps.SupportMapFragment\"\n ...\n map:mapId=\"@string/map_id\" /\u003e\n\nYou can also use the `map:mapId` attribute of the `MapView` class to specify\na map ID: \n\n \u003ccom.google.android.gms.maps.MapView\n xmlns:map=\"http://schemas.android.com/apk/res-auto\"\n ....\n map:mapId=\"@string/map_id\" /\u003e\n\nTo specify a map ID programmatically, pass it to a\n`MapFragment` instance using the `GoogleMapOptions` class: \n\nJava \n\n MapFragment mapFragment = MapFragment.newInstance(\n new GoogleMapOptions()\n .mapId(getResources().getString(R.string.map_id)));\n\nKotlin \n\n val mapFragment = MapFragment.newInstance(\n GoogleMapOptions()\n .mapId(resources.getString(R.string.map_id))\n )\n\nIn Android Studio, build and run your app as you normally would. Custom\nstyles configured in the first step are applied to all maps with\nthe specified map ID.\n\niOS\n\nTo instantiate a map using a map ID, do the following:\n\n1. Create a `GMSMapID` with the map ID string from Cloud console.\n2. Create a `GMSMapView` specifying the map ID you just created.\n\nSwift \n\n let camera = GMSCameraPosition(latitude: 47.0169, longitude: -122.336471, zoom: 12)\n let mapID = GMSMapID(identifier: \"\u003cvar label=\"map_id\" translate=\"no\"\u003eMAP_ID\u003c/var\u003e\")\n let mapView = GMSMapView(frame: .zero, mapID: mapID, camera: camera)\n self.view = mapView\n\nObjective-C \n\n GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:47.0169\n longitude:-122.336471\n zoom:12];\n GMSMapID *mapID = [GMSMapID mapIDWithIdentifier:@\"\u003cvar label=\"map_id\" translate=\"no\"\u003eMAP_ID\u003c/var\u003e\"];\n GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero mapID:mapID camera:camera];\n self.view = mapView;\n\nIf you are using your own map ID, you can set your\nmap ID in the Cloud console to have a new style\nat any time, and that style will be reflected on your map view automatically\nfor you and users within about six hours.\n\nIf you want to see the changes immediately, you can close out and restart\nyour app by exiting the app, forcing a quit of the app from the recently-used\napps list, and then reopening it. The updated map will then be visible.\n\nJavaScript\n\nTo create a map with a map ID in your application code:\n\n1. If you are already customizing your map with embedded JSON code, remove\n the\n [`styles` property](/maps/documentation/javascript/reference/map#MapOptions.styles)\n from your `MapOptions` object; otherwise, skip this step.\n\n2. Add a map ID to the map using the `mapId` property. For example:\n\n```javascript\nmap = new google.maps.Map(document.getElementById('map'), {\ncenter: {lat: -34.397, lng: 150.644},\nzoom: 8,\nmapId: '\u003cvar translate=\"no\"\u003eMAP_ID\u003c/var\u003e'\n});\n```\n\nMaps Static\n\nTo add a map ID to a new or existing map that uses one of our\nweb-service APIs, append the `map_id` URL parameter and set it to your\nmap ID. This example shows adding a map ID to\na map using Maps Static API. \n\n \u003cimg src=\"https://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318&markers=color:red%7Clabel:C%7C40.718217,-73.998284&key=YOUR_API_KEY&map_id=\u003cvar label=\"map_id\" translate=\"no\"\u003eMAP_ID\u003c/var\u003e&signature=YOUR_SIGNATURE\" /\u003e\n\nIf you have a digital signature in your Maps Static URL before adding your map ID, you will need to [create\nand add a new digital signature](/maps/documentation/maps-static/digital-signature) after adding your map ID. When generating your new URL signing secret, remember to remove your previous digital signature from the URL."]]