স্তরসমূহ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্ল্যাটফর্ম নির্বাচন করুন: অ্যান্ড্রয়েড জাভাস্ক্রিপ্ট স্তরগুলি হল মানচিত্রের বস্তু যা এক বা একাধিক পৃথক আইটেম নিয়ে গঠিত, কিন্তু একটি একক হিসাবে ব্যবহার করা হয়। স্তরগুলি সাধারণত বস্তুর সংগ্রহগুলিকে প্রতিফলিত করে যা আপনি একটি সাধারণ সমিতিকে মনোনীত করতে মানচিত্রের উপরে যুক্ত করেন। মানচিত্র জাভাস্ক্রিপ্ট এপিআই স্তরগুলির মধ্যে বস্তুর উপস্থাপনা পরিচালনা করে তাদের উপাদান আইটেমগুলিকে একটি বস্তুতে (সাধারণত একটি টাইল ওভারলে) রেন্ডার করে এবং মানচিত্রের ভিউপোর্ট পরিবর্তনের সাথে সাথে প্রদর্শন করে। স্তরগুলি মানচিত্রটির উপস্থাপনা স্তরকেও পরিবর্তন করতে পারে, স্তরের সাথে সামঞ্জস্যপূর্ণ একটি ফ্যাশনে বেস টাইলগুলিকে সামান্য পরিবর্তন করে৷ মনে রাখবেন যে বেশিরভাগ স্তরগুলি, নকশা অনুসারে, তাদের পৃথক বস্তুর মাধ্যমে অ্যাক্সেস করা যাবে না, তবে শুধুমাত্র একটি ইউনিট হিসাবে ব্যবহার করা যেতে পারে।
স্তর ওভারভিউ
মানচিত্র জাভাস্ক্রিপ্ট API-এর বিভিন্ন ধরনের স্তর রয়েছে:
- Google মানচিত্র ডেটা স্তর নির্বিচারে ভূ-স্থানিক ডেটার জন্য একটি ধারক সরবরাহ করে। আপনি আপনার কাস্টম ডেটা সঞ্চয় করতে বা Google মানচিত্রে GeoJSON ডেটা প্রদর্শন করতে ডেটা স্তর ব্যবহার করতে পারেন৷
- হিটম্যাপ লেয়ার হিটম্যাপ ভিজ্যুয়ালাইজেশন ব্যবহার করে ভৌগলিক ডেটা রেন্ডার করে।
- KML স্তর KML এবং GeoRSS উপাদানগুলিকে একটি মানচিত্র জাভাস্ক্রিপ্ট API টাইল ওভারলেতে রেন্ডার করে।
- ট্র্যাফিক স্তর মানচিত্রে ট্র্যাফিক অবস্থা প্রদর্শন করে।
- ট্রানজিট স্তর মানচিত্রে আপনার শহরের পাবলিক ট্রান্সপোর্ট নেটওয়ার্ক প্রদর্শন করে।
- সাইকেল লেয়ার অবজেক্ট বাইক পাথের একটি স্তর এবং/অথবা সাইকেল-নির্দিষ্ট ওভারলেকে একটি সাধারণ স্তরে রেন্ডার করে। ভ্রমণ মোড সাইকেল চালানোর দিকনির্দেশের অনুরোধ করার সময় এই স্তরটি ডিফল্টরূপে নির্দেশিকা রেন্ডারারের মধ্যে ফেরত দেওয়া হয়।
একটি স্তর যোগ করুন
একটি মানচিত্রে একটি স্তর যোগ করার জন্য, আপনাকে শুধুমাত্র setMap()
কল করতে হবে, এটিকে মানচিত্র বস্তুটি পাস করতে হবে যার উপর স্তরটি প্রদর্শন করা হবে। একইভাবে, একটি স্তর লুকানোর জন্য, setMap()
, পাসিং null
কল করুন।
নীচের স্নিপেটটি লন্ডন, যুক্তরাজ্যের মানচিত্রটিকে কেন্দ্র করে এবং ট্রানজিট স্তর যুক্ত করে।
var mapOptions = {
zoom: 13,
center: new google.maps.LatLng(51.5,-0.11)
}
var map = new google.maps.Map(document.getElementById("map"), mapOptions);
var transitLayer = new google.maps.TransitLayer();
transitLayer.setMap(map);
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-06 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-06 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eLayers in Maps JavaScript API are objects consisting of multiple items that are treated as a single unit and often represent collections of objects on the map.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides various layer types, including Data, Heatmap, KML, Traffic, Transit, and Bicycling layers, each serving a distinct purpose for displaying geospatial data.\u003c/p\u003e\n"],["\u003cp\u003eYou can easily add or hide a layer by calling the \u003ccode\u003esetMap()\u003c/code\u003e method, providing the map object or \u003ccode\u003enull\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe example code demonstrates adding a Transit layer to a map centered on London.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/maps/documentation/android-sdk/utility/multilayer \"View this page for the Android platform docs.\") [JavaScript](/maps/documentation/javascript/layers \"View this page for the JavaScript platform docs.\")\n\nLayers are objects on the map that consist of one or more separate items,\nbut are manipulated as a single unit. Layers generally reflect collections of\nobjects that you add on top of the map to designate a common association. The\nMaps JavaScript API manages the presentation of objects within layers\nby rendering their constituent items into one object (typically a tile overlay) and\ndisplaying them as the map's viewport changes. Layers may also alter the presentation\nlayer of the map itself, slightly altering the base tiles in a fashion\nconsistent with the layer. Note that most layers, by design, may not be\naccessed via their individual objects, but may only be manipulated as a\nunit.\n\nLayers Overview\n\nThe Maps JavaScript API has several types of layers:\n\n- The [**Google Maps Data\n layer**](/maps/documentation/javascript/datalayer) provides a container for arbitrary geospatial data. You can use the Data layer to store your custom data, or to display GeoJSON data on a Google map.\n- The [**Heatmap layer**](/maps/documentation/javascript/heatmaplayer) renders geographic data using a *Heatmap* visualization.\n- The [**KML layer**](/maps/documentation/javascript/kmllayer) renders KML and GeoRSS elements into a Maps JavaScript API tile overlay.\n- The [**Traffic layer**](/maps/documentation/javascript/trafficlayer#traffic_layer) displays traffic conditions on the map.\n- The [**Transit layer**](/maps/documentation/javascript/trafficlayer#transit_layer) displays the public transport network of your city on the map.\n- The [**Bicycling layer**](/maps/documentation/javascript/trafficlayer#bicycling_layer) object renders a layer of bike paths and/or bicycle-specific overlays into a common layer. This layer is returned by default within the **DirectionsRenderer** when requesting directions of travel mode **BICYCLING**.\n\nAdd a layer\n\nTo add a layer to a map, you only need to call `setMap()`,\npassing it the map object on which to display the layer. Similarly, to hide a\nlayer, call `setMap()`, passing `null`.\n\nThe below snippet centers the map on London, UK, and adds the [Transit\nlayer](/maps/documentation/javascript/trafficlayer#transit_layer). \n\n```javascript\nvar mapOptions = {\n zoom: 13,\n center: new google.maps.LatLng(51.5,-0.11)\n}\n\nvar map = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n\nvar transitLayer = new google.maps.TransitLayer();\ntransitLayer.setMap(map);\n```"]]