Title: another map plugin
Last modified: June 5, 2021

---

# another map plugin

 *  Resolved [Fabricio10](https://wordpress.org/support/users/fabriciobarros10/)
 * (@fabriciobarros10)
 * [5 years ago](https://wordpress.org/support/topic/another-map-plugin/)
 * hello, can you help me with this plugin? the developer has not responded for 
   11 months.
 * He has a bug on his cell phone. When I drag the bookmark to an address it automatically
   returns itself to my current location. On the desktop this does not happen.
 * This plugin serves to share the current location for delivery delivery on woocomerce’s
   ckekolt.
 * “use strict”;
    if(lat==” || lat==null ) { var lat=”51.508742″; } if(long==” |
   | long==null) { var long=”-0.120850″; }
 *  var supportGeolocation = false;
 *  if (‘geolocation’ in navigator) {
    navigator.geolocation.getCurrentPosition(
   function (position) { lat = position.coords.latitude; long = position.coords.
   longitude }); supportGeolocation = true; } else { console.log(‘geolocation IS
   NOT available’); }
 *  var myCenter=new google.maps.LatLng(lat,long);
    function initialize() { var 
   mapProp = { center: myCenter, zoom:parseInt(zoom), mapTypeId: google.maps.MapTypeId.
   ROADMAP };
 *  var map = new google.maps.Map(document.getElementById(“dlmmapdiv”),mapProp);
   
   var marker = new google.maps.Marker({ position: myCenter, draggable: true, title:’
   Click to zoom’ });
 *  if (supportGeolocation)
    { navigator.geolocation.watchPosition(function (position){
   if (marker) { marker.setMap(null); } var center = new google.maps.LatLng(position.
   coords.latitude, position.coords.longitude); map.panTo(center); marker = new 
   google.maps.Marker({ position: center, draggable: true, zoom: 15, map: map, })
 *  marker.setMap(map);
    google.maps.event.addListener(marker, ‘click’, function(
   event) { document.getElementById(“delivery_location”).value = event.latLng.lat()
   +’,’+event.latLng.lng();
 *  });
 *  google.maps.event.addListener(marker, ‘click’, function (event) {
    document.
   getElementById(“delivery_location”).value = this.getPosition().lat()+’,’+this.
   getPosition().lng();
 *  });
 *  google.maps.event.addListener(marker, ‘dragend’, function (event) {
    document.
   getElementById(“delivery_location”).value = this.getPosition().lat()+’,’+this.
   getPosition().lng();
 *  });
 *  });
    } else { marker.setMap(map); google.maps.event.addListener(marker, ‘click’,
   function (event) { document.getElementById(“delivery_location”).value = event.
   latLng.lat()+’,’+event.latLng.lng();
 *  });
 *  google.maps.event.addListener(marker, ‘click’, function (event) {
    document.
   getElementById(“delivery_location”).value = this.getPosition().lat()+’,’+this.
   getPosition().lng();
 *  });
 *  google.maps.event.addListener(marker, ‘dragend’, function (event) {
    document.
   getElementById(“delivery_location”).value = this.getPosition().lat()+’,’+this.
   getPosition().lng();
 *  });
 *  }
 *  }
    google.maps.event.addDomListener(window, ‘load’, initialize);

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Fabricio10](https://wordpress.org/support/users/fabriciobarros10/)
 * (@fabriciobarros10)
 * [5 years ago](https://wordpress.org/support/topic/another-map-plugin/#post-14527008)
 * [https://wordpress.org/plugins/delivery-location-map/](https://wordpress.org/plugins/delivery-location-map/)
 *  [stevendebeer](https://wordpress.org/support/users/stevendebeer/)
 * (@stevendebeer)
 * [5 years ago](https://wordpress.org/support/topic/another-map-plugin/#post-14528535)
 * Hi [@fabriciobarros10](https://wordpress.org/support/users/fabriciobarros10/),
 * Thank you so much for getting in touch, we really appreciate your time.
 * Unfortunately, these forums are reserved for support to users of our base plugin
   only(WP Google Maps), meaning we are not able to provide any alternative support
   here.
 * Note: This support query will be marked as resolved as it does not pertain to
   WP Google Maps.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘another map plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-maps/assets/icon-256x256.png?rev=3058363)
 * [WP Go Maps - Google Maps, OpenStreetMap, Leaflet Map](https://wordpress.org/plugins/wp-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-maps/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [stevendebeer](https://wordpress.org/support/users/stevendebeer/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/another-map-plugin/#post-14528535)
 * Status: resolved