Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4538362
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:48:05+00:00 2026-05-21T14:48:05+00:00

So i checked out all the relating posts. I was wondering, which i have

  • 0

So i checked out all the relating posts. I was wondering, which i have yet to be able to find with about 20 google searches and about 45 website visits, if it is possible, based on users information that i could load a google map to display the users desired location.

Your probably asking, “Give me more details, that could mean anything!”

Your right, it could. So say i have a user that gives me (i got it from the database)

var stuffIGotFromMyWebServerWithPHPandMySQL = {
myComment: "Hey Everyone, party at my place!",
country: "US",
state: "MT",
city: "Bozeman",
address: "Emerson Cultural Center"
};

Now that i have the information of what city/state/country the event is in, and the name of a place, The Emerson is a real place in bozeman that google maps will recognize, is there a way to load a map with a marker at that location? I have the latitude/longitude for bozeman, MT, but i do not have such information about the Emerson. Is there a way i could provide the just the words, and have it bring up the place with a marker, on a static, no user interaction allowed map?

and i would probably want to load it through js

Thanks,

Michael B Paulson

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:48:06+00:00Added an answer on May 21, 2026 at 2:48 pm
    <script src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script>
      var marker;
    
      function initialize() {
        var geocoder = new google.maps.Geocoder();
        geocoder.geocode(
          {
            'address': 'Emerson Cultural Center, Bozeman, MT'
          },
          function(results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
              var myOptions = {
                zoom: 6,
                center: results[0].geometry.location,
                mapTypeId: google.maps.MapTypeId.ROADMAP
              }
              var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    
              marker = new google.maps.Marker({
                map:map,
                draggable:false,
                animation: google.maps.Animation.BOUNCE,
                position: results[0].geometry.location
              });
            }
          }
        );
      }
    </script>
    <div id="map_canvas" style="height:300px;width:300px"></div>
    

    try this code and see if helps, you can use the Geocoder fro the google maps api to convert text to latlang.

    you can see the following example from the documentation here http://code.google.com/apis/maps/documentation/javascript/examples/geocoding-simple.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have checked out the OpenCV SVN repo, installed all necessary libraries, compiled it
I want a list of all the checked out files, by all users, in
Hey all, I'm pulling my hair out on this one. I've checked all my
I have a folder checked out using TortoiseSVN. If I copy a newer version
I have multiple branches of a project checked out, each under their own directory
I'd sooner not just permanently have a bunch of files checked out to me,
I've checked out the block UI plugin in Jquery which puts an overlay over
I have a number of files checked out with changes ready to submit. I
I've recently started a Rails 3 project which I checked out from github. The
I checked out a project from SVN and did not specify the project type,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.