সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এই টিউটোরিয়ালে, আপনি ম্যাপ জাভাস্ক্রিপ্টে ফটোরিয়ালিস্টিক 3D মানচিত্র ব্যবহার করে আপনার প্রথম জাভাস্ক্রিপ্ট অ্যাপ্লিকেশন তৈরি করার মাধ্যমে নিজেকে গাইড করবেন: একটি মৌলিক উইন্ডো যা ব্যাকগ্রাউন্ডে মেরিন হেডল্যান্ডস সহ গোল্ডেন গেট ব্রিজের ওভারহেড ভিউ প্রদর্শন করে।
টিউটোরিয়ালটি শেষ করার পরে, আপনার উন্নয়ন পরিবেশে নিম্নলিখিত মানচিত্রটি দেখতে হবে:
আপনার পরিবেশ সেট আপ করুন
আপনি কোড লেখা শুরু করার আগে, আপনাকে অবশ্যই একটি পরিবেশ সেট আপ করতে হবে যা জাভাস্ক্রিপ্ট চালায়। এই টিউটোরিয়ালের জন্য, আপনি আপনার পরিবেশ হিসাবে একটি ওয়েব ব্রাউজার ব্যবহার করবেন। সমস্ত আধুনিক ওয়েব ব্রাউজারে জাভাস্ক্রিপ্টের জন্য অন্তর্নির্মিত সমর্থন রয়েছে, তাই আপনাকে কোনও অতিরিক্ত সফ্টওয়্যার ইনস্টল করতে হবে না।
আপনার পছন্দের একটি পাঠ্য সম্পাদক খুলুন।
একটি নতুন ফাইল তৈরি করুন এবং একটি .html এক্সটেনশন (যেমন, hello-p3djs.html ) দিয়ে সংরক্ষণ করুন।
একটি HTML পৃষ্ঠা লিখুন
শুরু করার জন্য, আপনি একটি মৌলিক HTML গঠন সহ একটি ওয়েব পৃষ্ঠা তৈরি করবেন:
<!DOCTYPE html> <html> <head> <title>Hello Photorealistic 3D Maps in Maps JavaScript</title> </head> <body> <!-- Your JavaScript code will go here --> </body> </html>
জাভাস্ক্রিপ্ট যোগ করুন
এর পরে, আপনি মানচিত্র লোড করতে একটি কাস্টম HTML উপাদান যোগ করবেন। কোড দুটি উপাদান রয়েছে:
gmp-map-3d প্রারম্ভিক ক্যামেরার অবস্থান এবং দৃশ্য শুরু করার জন্য ব্যবহৃত প্যারামিটার রয়েছে।
script মানচিত্র জাভাস্ক্রিপ্ট API লোড করার কল রয়েছে। আপনার API কী দিয়ে YOUR_KEY প্রতিস্থাপন করতে ভুলবেন না।
অ্যাপ্লিকেশনটি চালাতে এবং আউটপুট দেখতে, এই পদক্ষেপগুলি অনুসরণ করুন:
আপনার তৈরি করা HTML ফাইলটি সংরক্ষণ করুন।
একটি ওয়েব ব্রাউজারে ফাইলটি খুলুন (আপনি ফাইলটিকে ডাবল-ক্লিক করতে পারেন, এটিকে একটি ব্রাউজার উইন্ডোতে টেনে আনতে পারেন, অথবা ডান-ক্লিক করে "ওপেন উইথ" ব্যবহার করতে পারেন)।
আপনি আপনার ব্রাউজার উইন্ডোতে মানচিত্র দেখতে হবে.
অভিনন্দন! আপনি ম্যাপ জাভাস্ক্রিপ্ট এপিআই-এ Google এর ফটোরিয়ালিস্টিক 3D মানচিত্র ব্যবহার করে একটি অ্যাপ্লিকেশন লিখেছেন।
পরবর্তী পদক্ষেপ
Google-এর বিদ্যমান নমুনাগুলি ব্যবহার করে আরও জটিল 3D মানচিত্রের অভিজ্ঞতা তৈরি করুন৷
রেফারেন্স ডকুমেন্টেশন পড়ে Maps JavaScript API-এ ফটোরিয়ালিস্টিক 3D মানচিত্রের সম্পূর্ণ সম্ভাবনা আবিষ্কার করুন।
[[["সহজে বোঝা যায়","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-04-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Get started\n\n\u003cbr /\u003e\n\n| This product or feature is in Preview (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\n| descriptions](/maps/launch-stages).\n\n\u003cbr /\u003e\n\nSelect platform: [Android](/maps/documentation/maps-3d/android-sdk/add-a-3d-map \"View this page for the Android platform docs.\") [iOS](/maps/documentation/maps-3d/ios-sdk/add-a-3d-map \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/3d/get-started \"View this page for the JavaScript platform docs.\")\n\n\u003cbr /\u003e\n\nIn this tutorial, you'll guide yourself through creating your first JavaScript\napplication using Photorealistic 3D Maps in Maps JavaScript: a basic window that displays\nan overhead view of the Golden Gate Bridge with the Marin Headlands in the\nbackground.\n\nUpon completing the tutorial, you should see the following map in your\ndevelopment environment:\n\nSet up your environment\n-----------------------\n\nBefore you begin writing code, you must set up an environment that runs\nJavaScript. For this tutorial, you'll use a web browser as your environment. All\nmodern web browsers have built-in support for JavaScript, so you don't need to\ninstall any additional software.\n\n1. Open a text editor of your choosing.\n2. Create a new file and save it with an `.html` extension (e.g., `hello-p3djs.html`).\n\nWrite an HTML page\n------------------\n\nTo start, you'll create a web page with a basic HTML structure: \n\n \u003c!DOCTYPE html\u003e\n \u003chtml\u003e\n \u003chead\u003e\n \u003ctitle\u003eHello Photorealistic 3D Maps in Maps JavaScript\u003c/title\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003c!-- Your JavaScript code will go here --\u003e\n \u003c/body\u003e\n \u003c/html\u003e\n\nAdd JavaScript\n--------------\n\nNext, you'll add a custom HTML element to load the map. The code contains two\nelements:\n\n- `gmp-map-3d` contains the parameters used for initializing the starting camera position and view.\n- `script` contains the call to load the Maps JavaScript API. Be sure to replace `YOUR_KEY` with your API key.\n\n \u003c!DOCTYPE html\u003e\n \u003chtml\u003e\n \u003chead\u003e\n \u003ctitle\u003eHello Photorealistic 3D Maps in Maps JavaScript\u003c/title\u003e\n\n \u003cstyle\u003e\n html,\n body {\n height:100%;\n margin: 0;\n padding: 0;\n }\n \u003c/style\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003cgmp-map-3d mode=\"hybrid\" center=\"37.841157, -122.551679\" range=\"2000\" tilt=\"75\" heading=\"330\"\u003e\u003c/gmp-map-3d\u003e\n \u003cscript async src=\"https://maps.googleapis.com/maps/api/js?key=\u003cYOUR_KEY\u003e&v=beta&libraries=maps3d\"\u003e\u003c/script\u003e\n \u003c/body\u003e\n \u003c/html\u003e\n\nRun the application\n-------------------\n\nTo run the application and see the output, follow these steps:\n\n1. Save the HTML file you created.\n2. Open the file in a web browser (you can double-click the file, drag it into a browser window, or right-click and use \"Open with\").\n3. You should see the map in your browser window.\n\nCongratulations! You've just written an application using Google's\nPhotorealistic 3D Maps in Maps JavaScript API.\n\nNext steps\n----------\n\n- Build more complicated 3D map experiences using Google's existing [samples](/maps/documentation/javascript/examples/3d/simple-map).\n- Discover the full potential of the Photorealistic 3D Maps in Maps JavaScript API by reading the [reference documentation](/maps/documentation/javascript/reference/3d-map)."]]