Testing My portfolio Site

To change the map to show your address, you'll need to replace the lat and lng values (51.5074, 0.1278) with the latitude and longitude of your actual address. 🔍 Step-by-Step Guide: ✅ Step 1: Find Your Coordinates Use Google Maps: Search for your address. Right-click the location on the map. Click "What's here?" A small box will pop up with latitude and longitude, like: 23.8103, 90.4125. ✅ Step 2: Update the Code Let’s say your address coordinates are 23.8103 (lat), 90.4125 (lng). Then, update your script like this: html Copy Edit ✅ Step 3: Make Sure Google Maps Loads Also make sure you’re loading the Google Maps script with your API key, like this: html Copy Edit Replace YOUR_API_KEY with your actual Google Maps API key. Let me know your address (or city) and I can generate the exact coordinates for you! You said: my address 4°04'18.4"N 89°09'50.6"E ChatGPT said: Thanks! You've provided your location in degrees, minutes, and seconds (DMS) format: 4°04'18.4"N, 89°09'50.6"E To use this in Google Maps (JavaScript), you need to convert it to decimal degrees. ✅ Step 1: Convert to Decimal Degrees Here's how the conversion works: Latitude: 4°04'18.4"N → 4 + (4 / 60) + (18.4 / 3600) = 4.0718 Longitude: 89°09'50.6"E → 89 + (9 / 60) + (50.6 / 3600) = 89.1641 ✅ Step 2: Update Your Script Replace the coordinates in your map code: html Copy Edit ✅ Step 3: Load Google Maps Script Make sure this is also included (with your API key): html Copy Edit Replace YOUR_API_KEY with your actual key. Let me know if you need help getting an API key or embedding this in your site!

No comments:

Post a Comment