Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    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

    (@danielhpmd)

    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 1.0
    * @param {object} infoWindowData The data that is shown in the infowindow (address, url, phone etc)
    * @param {number} storeId The ID of the store
    * @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

    (@danielhpmd)

    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.