স্থানের আইকনগুলি বিভিন্ন ধরণের স্থান নির্দেশ করে (উদাহরণস্বরূপ কফি শপ, লাইব্রেরি এবং জাদুঘর)। আপনি PNG ফর্ম্যাটে আইকনগুলির জন্য URL-এর জন্য অনুরোধ করতে পারেন, সেইসাথে সংশ্লিষ্ট আইকনের পটভূমির রঙ, বর্তমান স্থান এবং স্থানের বিবরণ (নতুন) অনুরোধ সহ।
একটি স্থানের জন্য একটি আইকন চিত্র এবং পটভূমির রঙের অনুরোধ করতে, আপনার অনুরোধে নিম্নলিখিত ক্ষেত্রগুলি অন্তর্ভুক্ত করুন:
Place.Field.ICON_MASK_URL
Place.Field.ICON_BACKGROUND_COLOR
নিম্নলিখিত উদাহরণগুলি একটি বর্তমান স্থান বা স্থানের বিবরণ অনুরোধ থেকে আইকন চিত্র এবং পটভূমির রঙ ব্যবহার করে প্রদর্শন করে:
কোটলিন
// Set the image view's background color to match the place's icon background colorimageView.setBackgroundColor(place.iconBackgroundColor)// Fetch the icon using Glide and set the result in the image viewGlide.with(this).load(place.iconUrl).into(imageView)
জাভা
// Set the image view's background color to match the place's icon background colorimageView.setBackgroundColor(place.getIconBackgroundColor());// Fetch the icon using Glide and set the result in the image viewGlide.with(this).load(place.getIconUrl()).into(imageView);
এই উদাহরণটি গ্লাইড ইমেজ লোডিং লাইব্রেরি ব্যবহার করে, কিন্তু আপনি আপনার পছন্দের ইমেজ লোডিং লাইব্রেরি ব্যবহার করতে পারেন।
ক্ষেত্র
প্রতিটি স্থান আইকনে এই ক্ষেত্রগুলি রয়েছে:
ICON_MASK_URL একটি অ-রঙ্গিন PNG আইকনের জন্য ভিত্তি URL প্রদান করে৷
ICON_BACKGROUND_COLOR স্থানের বিভাগের জন্য ডিফল্ট রঙের কোড প্রদান করে।
আইকন এবং পটভূমির রঙের অনুরোধ রাখুন
নিম্নলিখিত সারণীগুলি বিভাগ অনুসারে সমস্ত উপলব্ধ স্থান আইকন দেখায়। ডিফল্টরূপে এই ডিসপ্লেটি একটি কালো গ্লাইফ সহ। আইকনের পটভূমির রঙ স্থানের বিভাগ দ্বারা নির্ধারিত হয়।
স্থান বিভাগ: খাদ্য এবং পানীয় (আইকন পটভূমির রঙ #FF9E67)
[[["সহজে বোঝা যায়","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-02-28 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Place icons, available in PNG format, represent various place types like restaurants and libraries, accessible through Current Place and Place Details requests."],["You can retrieve the icon URL using `Place.Field.ICON_MASK_URL` and the background color using `Place.Field.ICON_BACKGROUND_COLOR`."],["The icon URL is a base URL for a non-colored PNG that is overlaid on a background color representing the place's category, like #FF9E67 for food and drink."],["Code examples are provided in Kotlin and Java to demonstrate fetching and displaying the icon and background color using an image loading library like Glide."],["A comprehensive table showcases available place icons categorized by type, along with their corresponding background colors."]]],["Place icons, indicating different types of locations, can be accessed via URLs in PNG format along with their background colors. Requests for icons and colors require the `ICON_MASK_URL` and `ICON_BACKGROUND_COLOR` fields. The icon URL, obtained through `Place.Field.ICON_MASK_URL`, should be consistently referenced due to potential changes. `ICON_BACKGROUND_COLOR` returns the category's default color. The document then details various place categories and their associated icons and background colors. For example food and drink has the background color #FF9E67.\n"]]