Open address links in native map apps

javascript


simplegmaps.init({
  container: '#simplegmaps-1',
  onDrawMap: function () {
    simplegmaps.getMarkerAddress(simplegmaps.Markers.get()[0], function(address) {
      document.querySelector('.getGoogleMapLink').href = simplegmaps.getURL.Android(address);
      document.querySelector('.getAppleMapsLink').href = simplegmaps.getURL.ios(address);
      document.querySelector('.getWindowsPhone7MapLink').href = simplegmaps.getURL.WindowsPhone(address);
      document.querySelector('.getDesktopMapLink').href = simplegmaps.getURL.Desktop(address);
      document.querySelector('.getNativeMapLink').href = simplegmaps.getURL.Native(address);
    })
  }
});

html