• Thanks for this plugin. It is working very well for me. I wanted the change the default zoom and add a pin at the map center location. In mk-google-directions.php, I changed line 64 to say "zoom: 16". At line 69 I inserted the following:

    var marker = new google.maps.Marker( {
    		  position: chicago,
    		  map: map,
    		  title: 'Business Name'
              })

    If I was going to change the code and make it generally available, I would make the initial zoom a configuration option and I would add a configuration field for the pin title and only place the pin if the title wasn’t blank.

    https://www.ads-software.com/plugins/google-distance-calculator/

  • The topic ‘Suggested change – zoom and pin’ is closed to new replies.