Support » Plugin: Ventus - Weather Map Widget & Shortcode » Problem – the centre of the map that is displaying is not with the desired city

  • Resolved sirtak

    (@sirtak)


    Hello
    I am happy with your plugin – there are many possibilities, but only one thing is not that I want to be.
    I set the right latitude and longitude of the destination (a city in Bulgaria), but unfortunately, the centre of the map that is showing is much moved in the north ( to another country – Romania).
    I am sure that the destination is set correctly because it is in white flashing light when I move the map to it. How can I fix this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Matthew

    (@davidmatthew)

    Hi sirtak,

    Glad to hear you’re happy overall with the plugin! 🙂 In order to help you with the location issue, I just have a few questions.

    • What’s the name of the city you’re trying to centre it over?
    • Can you link me to a page where this is happening?
    • What version of Ventus are you using?
    • Are you using the widget or shortcode?

    I look forward to hearing back!

    Regards,
    David

    Hello again, thanks for the attention

    I tried a couple of cities, and I saw that the centre every time is moved to the North and finally, I chose Kardzhali.
    The exact code, that I placed is :

    [ventus width=”100%” height=”500px” radius=”20px” lat=”42.136097 ” lon=”24.742168″ zoom=”6″ layer=”clouds” scale=”C” units=”km/h” pressure=”true” marker=”true” forecast=”true” time=”12″].

    The exact page is: https://bgnaturetrip.com/%D0%BF%D1%80%D0%BE%D0%B3%D0%BD%D0%BE%D0%B7%D0%B0-%D0%B7%D0%B0-%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D1%82%D0%BE

    I am using the final version of the app. Now I see that the problem does not appears every time, but if I load the page in incognito mode, for sure the problem appears
    I will be waiting for your answer
    Best regards

    Plugin Author David Matthew

    (@davidmatthew)

    Hi sirtak,

    Thanks for the info! What seems to be the issue here is the formatting of the shortcode values. The value actually displaying for you is the default latitude value (if you drag the map to the left, you’ll eventually land on Ireland).

    I was able to replicate the issue on my own site by pasting your code in, and then noticed there was some spacing and mixed quote marks.

    You can see the fixed version here.

    The code to copy and paste that should fix this for you is:

    [ventus width="100%" height="500px" radius="20px" lat="42.136" lon="24.742" zoom="6" layer="clouds" scale="C" units="km/h" pressure="true" marker="true" forecast="true" time="12"]

    Hope this resolves it for you!

    Thanks,
    David

    Thank you very much for the attentions
    I checked your site and I see it works. I placed the code on my site.
    But unfortunately on my site, it does not work. When I load it on incognito mode, again I see another country ( Romania, Slovakia and others)
    I think the reason for that is because on my site there are settings for making cache. The cache is the reason for these movements. I am not good at these issues, and I don’t have enough knowledge to understand how to change these settings. I see that every time when I change the town, the map change the centre in the northwest, but it depends on the scale. So I did something other to make the things a little bit better – I changed the town to be one of the most south in Bulgaria, and I changed the scale.
    So when I load the page again in incognito – I see some known north towns in Bulgaria.
    If you know something about these caches issues, or if you have any other idea, how can I change this – please let me know.
    Best regards

    Plugin Author David Matthew

    (@davidmatthew)

    Hi sirtak,

    Sorry to read about the issues with your site’s caching. I know a little about caching, but not enough to know what kind of conflict is at play here. There could be a number of different factors interferring with the widget output, it’s hard to say.

    What I would do myself in a case like this is copy the site to a test area (your host may be able to advise further here), and deactivate any caching plugins and use a default theme (like twentytwenty). This should help you get closer to figuring out the underlying issue here.

    Hope this helps.

    Thanks,
    David

    sirtak

    (@sirtak)

    Thank you, David
    I will get in contact with the hosting company, for advice on how to proceed. If there is any solution, I will write here.
    Best regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.