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 8777893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:23:25+00:00 2026-06-13T19:23:25+00:00

i have got Geo locations. i am trying to mark this location into Google

  • 0

i have got Geo locations. i am trying to mark this location into Google map. please suggest me the best method. I have all locations in array that i want to use in the Google map

        Array
        (
            [0] => 51.508742, -0.134583
        )
        Array
        (
            [0] => 38.410558, 17.314453
        )
  • 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-06-13T19:23:27+00:00Added an answer on June 13, 2026 at 7:23 pm

    https://developers.google.com/maps/documentation/javascript/overlays#Markers

    //var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
    var myLatLng = new google.maps.LatLng(yourArrayName[0][0], yourArrayName[0][1]);
    var mapOptions = {
        zoom: 4,
        center: myLatlng,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
    
    var marker = new google.maps.Marker({
        position: myLatlng,
        map: map,
        title:"Hello World!"
    });
    

    It would probably be easier to set up your array to contain an array with latitudes and longitudes in different elements rather than one string as it seems you may have.

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

Sidebar

Related Questions

I have got 2 sets google maps geo coordinates. Like 51.2, 6.1 and 50.3
I have got this code: function init(){ if (typeof window.jQuery !== 'function') { var
I have got a form into which information is entered, and a drop down
I have got two pages. example.com/php.com and example.com. I use this function to set
I have got a few tables which I am trying to join. I just
I'm working on a product which heavily relies on Geo-Data to map locations of
I have got this function : function getTitle(){ $crawler = new DOM_Crawler($this->url); try{ if
I tried searching on google, and got literally no results when trying to figure
Is Yahoo the best option? http://developer.yahoo.com/geo/placefinder/ It says 50,000 requests per day. Does this
have got a problem with do this kind of code , can't figure how

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.