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

  • SEARCH
  • Home
  • 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 3667842
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:03:03+00:00 2026-05-19T02:03:03+00:00

I need to let the user input a geocode (LatLng ) of an arbitrary

  • 0

I need to let the user input a geocode (LatLng ) of an arbitrary point of the map, for store in the DB and later use.

Before embracing the duty, Do you know a jQuery plug-in or javascript that:

  • Pop-ups a Google map
  • The user navigate the map
  • The user click on a point
  • It places the selected LatLng in a textbox
  • Close the pop-up

(or something along the lines)

  • 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-19T02:03:04+00:00Added an answer on May 19, 2026 at 2:03 am

    I strongly recommend to use the v3 api since it is equally easy to use and fast to learn as a plugin.Also a plugin won’t offer you the popup.

    So here is my solution:

    1. Import

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

    2. Place a div in your html
    <div class="mapClass" id="mapDiv" ></div>

    3. Initialize your map

    var map;

    var greece = new google.maps.LatLng(38.822590,24.653320);

    //Map options
    var mapOptions = {
        zoom: 6,
        center: greece,
        mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    //Make a new map
    map = new google.maps.Map(document.getElementById("mapDiv"),mapOptions);
    

    Voila,you get your map and the navigation controls

    4.Bind onclick event
    google.maps.event.addListener(map, "click",yourFunction);

    And implement your function to get the coords from the click and fill some textfields or something plus add a marker

    function getCoordinates(event){
      if (event.latLng) {
           var marker;
           //Fill your textfields
           document.getElementById('yourLngTextfield').value=event.latLng.lng();
           document.getElementById('yourLatTextfield').value=event.latLng.lat();
    
           //Remove any previously added marker and add a marker to that spot
           if(marker!=null){
                marker.setMap(null);
           }
    
           var latlng = event.latLng;
           marker = new google.maps.Marker({
                 position: latlng
                 map: map
            });
      }
    }
    

    That’s it.It is not tested though.

    Now if you want to add all this in popup use colorbox

    If you still want to use plugins check here

    Cheers

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

Sidebar

Related Questions

I have a simple application in which I need to let the user select
I have a C# project using windows forms. I need to let the user
I wrote a simple web app to let user input data as they walk
I have a program where I need the user to input data in a
I need help figuring out the best, cross-browser compatible way to SAVE user input
I need to let the user specify a custom format for a function which
For Javascript application I need to be able to let the user save the
I need to let the user open a specific album from their gallery, and
Problem Reusables@common.com £1,000,000 www.inventing-a-wheel.ee Action Shortcut: C I need to let the user enter
Basically in order to have a profile Block u need - let's say profile

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.