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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:47:58+00:00 2026-06-06T01:47:58+00:00

I have a panto marker function which requires the longitude and latitude variables. I

  • 0

I have a panto marker function which requires the longitude and latitude variables. I have the ability to send the contact name as a variable.

The contact name is the tag for the marker i want to pan to. Is it possible for me to get the longitude and latitude of the marker by tag?

Here is my panto function

 function pantoUser(lati,longi,i)
{
    jQuery("#dispatcher").gmap3({
        action: 'panTo',
        args:[new google.maps.LatLng(lati,longi)],
        zoom: 7
               });
               currentPoint = i;
                jQuery("#dispatcher").css({
                    cursor: 'pointer'
                });
                jQuery('#markerTitle' + i + '').fadeIn({
                    duration: 200,
                    queue: false
                }).animate({
                    bottom: "32px"
                }, {
                    duration: 200,
                    queue: false
                });
            jQuery("#target").stop(true, true).fadeIn(1200).delay(500).fadeOut(1200);
                jQuery("#dispatcher").css({
                    cursor: 'default'
                });
                jQuery('#markerTitle' + i + '').stop(true, true).fadeOut(2000, function() {
                    jQuery("#dispatcher").css({
                        bottom: "0"
                    })
                jQuery("#target").stop(true, true).fadeIn(1200).delay(500).fadeOut(1200);
                });

}

I was thinking of something like this?

 function locateLastSpeaker(name) {
var lati = SOMEHOW GET IT
var longi = SOMEHOW GET IT
pantoUser(lati,longi,1)

}

EDIT after trying duncans solution!!

var stuMarkers = {};

function addMarker(i, lati, longi, id, name, state, datestring) {
 var placename = name;
 stuMarkers[placename].lat = lati;
 stuMarkers[placename].lng = longi;
    $('#dispatcher').gmap3(
      { action: 'addMarker', ....etc
  • 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-06T01:48:00+00:00Added an answer on June 6, 2026 at 1:48 am

    Instead of an array as barry suggests, what about an object, keyed on the name. That way you won’t even have to loop.

    var stuMarkers = {};  // global variable outside of any function
    
    // loop creating your markers
    
    function addMarker(i, lati, longi, id, name, state, datestring) {
     var placename = name;
     stuMarkers[placename] = {};
     stuMarkers[placename].lat = lati;
     stuMarkers[placename].lng = longi;
     stuMarkers[placename].i = i;
     ...
    }
    
    
    function locateLastSpeaker(name) {
      pantoUser(stuMarkers[name].lat,stuMarkers[name].lng,stuMarkers[name].i);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div called target which is centred and displayed over a google
I am trying to reverse geocode the latitude and longitude of my google maps
i'm using map.panTo() to have a nice smooth transition between the markers, when i
I have the following condensed form <form name=thecars> <select name=cars> <option value=mustang>Mustang</option> <option value=pinto>Pinto</option>
I have basically the following table, Categories id name categories_id_categories 1 Clothes null 2
Say I have a 'Car' object which contains a 'color' column. I want in
I've 2 function as below: function addMarker() { marker = new google.maps.Marker({ position: Gpoint,
Lets say I have a function: void split_path_file(char** p, char** f, char *pf) {
I'm panning to a nearby location but the panTo function often jumps there since
I have a click listener for each of my markers calling the function displayInfo

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.