From 8a02ec8dc5e15241953b966ef2113406fd1cef45 Mon Sep 17 00:00:00 2001
From: Logaritmisk <Logaritmisk@855656.no-reply.drupal.org>
Date: Wed, 30 Jan 2013 19:11:47 +0200
Subject: [PATCH] Issue #1847676 by logaritmisk: Fixed No initial marker when
 using locpick.

---
 js/locpick.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/js/locpick.js b/js/locpick.js
index 2eb37f8..bdd80ae 100644
--- a/js/locpick.js
+++ b/js/locpick.js
@@ -11,8 +11,8 @@ Drupal.gmap.addHandler('gmap', function (elem) {
   var obj = this;
 
   var binding = obj.bind("locpickchange", function () {
-    if (obj.locpick_point && obj.locpick_coord) {
-      obj.locpick_point.setPosition(obj.locpick_coord);
+    if (obj.locpick_coord) {
+      google.maps.event.trigger(obj.map, "click", { 'latLng': obj.locpick_coord });
     }
   });
 
@@ -33,7 +33,7 @@ Drupal.gmap.addHandler('gmap', function (elem) {
         if (event) {
           if (!obj.locpick_point) {
             obj.locpick_point = new google.maps.Marker({
-              position: event.latLng, 
+              position: event.latLng,
               map: obj.map,
               draggable: true
             });
-- 
GitLab