• Resolved joschi777

    (@joschi777)


    Hi There,
    is there a chance to enter a specific shortcode into the form shortcode to show individual LAT+LNG?

    For example [wpgsv id=”21632″ LAT=2.0000 LNG=30.000]

    We would like to use it for a landing page of ours. In the past, we’ve been able to enter LAT / LNG dynamically at the General Settings tab in the coordinates field. But this does not work anymore and we are stuck.

    THank you for your support.

    Best Regards,
    Joschi777

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sajjad Ali

    (@the-rock)

    Hi @joschi777

    In the latest WP Google Street View v1.1.0, You can create dynamic maps with this new shortcode. There is no need to create a Map post.

    [wpgsv_map lat=”value” lng=”value”]

    This is the full example of shortcode with additional optional parameters.

    [wpgsv_map lat=“value” lng=“value” width=“90%” height=“500px” zoom=“10” type=“street”]

    Let us know, if that solves your problem.

    Thread Starter joschi777

    (@joschi777)

    Dear Ali,
    Thanks a lot for your response. I am glad someone from support is coming back to me on how to use the PRO version I purchased.

    I tried your suggested shortcode and it does work with fixed LAT and LNG values.

    However, we are using dynamically created coordinates from a plugin called Multiple-Page-Generator and IMHO the code should look the following:

    [wpgsv_map id=”21632″ lat=”{{mpg_lat}}” lng=”{{mpg_lng}}”]

    But this brings up a wrong view and not the required streetview we would need.

    Could you provide a hint on how this could be solved, please?

    THANK YOU!

    Plugin Author Sajjad Ali

    (@the-rock)

    @joschi777

    1. You don’t need ID parameter in this shortcode.

    2. [wpgsv_map lat=”{{mpg_lat}}” lng=”{{mpg_lng}}”] should be sufficient. Also, make sure the commas are correct. It should not be a punctuation mark “”. In my full shortcode example, the commas are not correct.

    3. Make sure that the MPG plugin is actually adding the correct lat and lng values inside those parameters. One way to test is to output them after the shortcode like this.

    [wpgsv_map lat=”{{mpg_lat}}” lng=”{{mpg_lng}}”]
    {{mpg_lat}}
    {{mpg_lng}}

    If the map location is incorrect, check mpg_lat and mpg_lng values and test them on Google Maps. If both values are correct then try it directly with the shortcode. for example, [wpgsv_map lat=”40.758896″ lng=”-73.985130″] (new york times square) and then check if that outputs the correct map. If that is working then it means {{mpg_lat}} and {{mpg_lng}} are not adding the valid values for some reason inside the shortcode. But If there is still an issue. Let us know.

    Thread Starter joschi777

    (@joschi777)

    Dear Ali,
    you are a star!! Thanks to your hints I found the problem with the shortcodes. I found, that the separator of the LAT/LNG was not converted correctly, thus it was missing.

    Your shortcode works wonderfully and it was a problem of the separator! After I corrected and test it all was working well.
    Thanks again! You made my day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode for LAT+LNG’ is closed to new replies.