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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:14:33+00:00 2026-06-12T11:14:33+00:00

I have a marker in a google maps . I use this marker to

  • 0

I have a marker in a google maps. I use this marker to retrieve the coordinate and update the lat and long in a form. When the user drops the marker I read the coordinates. My code is as follows:

    $wnd.marker = new google.maps.Marker(
            {
                map : $wnd.map,
                draggable : true,
                icon : "/gmapsMarker.png",
                iconShadow : "/gmapsMarkerShadow.png",
                position : defaultPosition,
                clickable : true
            });

    var toggleBounce = function(e) {
        var lat = $wnd.marker.position.lat();
        var lng = $wnd.marker.position.lng();
        update(lat,lng,false);
    }.bind(this);

    google.maps.event.addListener($wnd.marker, 'dragend', toggleBounce);

What is the problem?

Weirdly there is no problem in Internet Explorer 7,8 and 9.

In chrome and firefox I get some problems while I have the marker dragged. If I move the mouse too fast that the pointer gets outsie of the marker’s bounding box, the marker stucks. I need to release the mouse click, drag again de marker and drop it in my favourite position slowly.

Any recommendation?

I tried with the event “mouseup” with similar results.

  • 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-12T11:14:34+00:00Added an answer on June 12, 2026 at 11:14 am

    This may help you

    google.maps.event.addListener($wnd.marker, 'dragend', function() {
        // Get the Current position, where the pointer was dropped
        var point = $wnd.marker.getPosition();
        // Center the map at given point
        $wnd.map.panTo(point);
        // Update
        update(point.lat(), point.lng(),false);
    });
    

    You may like this (You can download the demo, only 8kb, direct download link).

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

Sidebar

Related Questions

I have a marker on google maps on my website. I want the marker
I use google maps API to display markers on a map. Each marker points
GOOGLE MAPS API V3 is what i'm trying to use. I have all the
I have problem with add new row to the table. I use Google Maps,
So, i have the following script to use the google maps API, its all
I use a google maps v3 with marker clusterer v3 to display 1000's of
I have added a click listener to all my Markers in google maps. I
I'm having an issue with multiple markers on google maps - I currently have
I have a list of Google Maps API markers in a dictionary called markerList
I have a odd problem with Google Maps APIv2 markers. I'm making a site

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.