Title: Iphone Maps
Last modified: August 30, 2016

---

# Iphone Maps

 *  Resolved [DanielHPMD](https://wordpress.org/support/users/danielhpmd/)
 * (@danielhpmd)
 * [11 years ago](https://wordpress.org/support/topic/iphone-maps/)
 * Hi,
 * When a person using an iphone clicks on the directions from the maps, is it possible
   to give them the option to go to apple maps, right now it seems to only go to
   google directly.
 * Thanks!
 * Daniel
 * [https://wordpress.org/plugins/wp-store-locator/](https://wordpress.org/plugins/wp-store-locator/)

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

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/iphone-maps/#post-6260156)
 * You want to show two direction urls, on linking to Google Maps and the other 
   one to Apple Maps?
 * If that’s what you want you would have to add it yourself to /js/wpsl-gmap.js
   file.
 * Search for ‘html = “<li data-store-id='” + id + “‘>’ in the /js/wpsl-gmap.js 
   and add whatever you want to that line ( in this case the correct url that takes
   the user to Apple Maps ). That line creates the html for each listing.
 *  Thread Starter [DanielHPMD](https://wordpress.org/support/users/danielhpmd/)
 * (@danielhpmd)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/iphone-maps/#post-6260320)
 * Hi,
 * I’m not sure exacly where to add it in that line… See code below.
 * /**
    * Create the data for the infowindows on Google Maps * * [@since](https://wordpress.org/support/users/since/)
   1.0 * [@param](https://wordpress.org/support/users/param/) {object} infoWindowData
   The data that is shown in the infowindow (address, url, phone etc) * [@param](https://wordpress.org/support/users/param/){
   number} storeId The ID of the store * [@param](https://wordpress.org/support/users/param/){
   boolean} streetViewAvailable Indicates whether or not we should show the streetview
   link * @returns {string} windowContent The html content that is placed in the
   infowindow */ function createInfoWindowHtml( infoWindowData, storeId, streetViewAvailable){
   var storeHeader, url, address2 = “”, newWindow = “”, streetView = “”, zoomTo 
   = “”, windowContent = “<div data-store-id='” + storeId + “‘ class=’wpsl-info-
   window’>”;
 *  Thread Starter [DanielHPMD](https://wordpress.org/support/users/danielhpmd/)
 * (@danielhpmd)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/iphone-maps/#post-6260321)
 * Also, would there be a way to open up either the apple maps **app** or google
   maps **app** via this plugin?
 * Thank you for your help.
 * Daniel

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

The topic ‘Iphone Maps’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

 * [Apple](https://wordpress.org/support/topic-tag/apple/)

 * 3 replies
 * 2 participants
 * Last reply from: [DanielHPMD](https://wordpress.org/support/users/danielhpmd/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/iphone-maps/#post-6260321)
 * Status: resolved