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.
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!
@joschi777
- 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.
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!