New Landing How can we help? Themeforest Theme Support Flexform Map not showing the right location

Viewing 15 posts - 1 through 15 (of 45 total)
  • Posted in: Flexform
  • #9452
    mediafactory
    Member
    Post count: 9

    Hi,

    I switched to a new server and had all data transferred. Just noticed that my map isn;t showing the right location. In the widget I didn’t change anything, so for example it is saying Rotterdam, but all active maps used via the swift page builder now show a place in the middle of the ocean next to Africa.

    Creating a new page with a fresh map block gives the same result.

    Any idea what this could be?

    Thanks

    #9468
    skarpov
    Member
    Post count: 26

    Hi.
    I have the same problem. The map showing the wrong direction. All my addresses shown in the place in the middle of the ocean next to Africa. How tu fix it?

    #9469
    leight
    Member
    Post count: 1

    I also have this problem?

    #9489
    Ben – SUPPORT
    Member
    Post count: 690

    This is a known issue we’re getting Ed onto it asap.

    Hopefully have a fix soon.

    Thanks
    Ben

    #9529
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi guys,

    To fix this, open up functions.php and change the function on line 949 with the following:

    function map_embed($address) {
            if (!is_string($address))die("All Addresses must be passed as a string");
    
            $address = str_replace(" ", "+", $address); // replcae all the white space with "+" sign to match with google search pattern
    
            $url = "http://maps.google.com/maps/api/geocode/json?sensor=false&address=$address";
    
            $response = file_get_contents($url);
    
            $json = json_decode($response,TRUE); //generate array object from the response from the web
    
            $_coords['lat'] = $json['results'][0]['geometry']['location']['lat'];
            $_coords['long'] = $json['results'][0]['geometry']['location']['lng'];
    
            return $_coords;
        }
    

    This will be in the next update.

    – Ed

    #9680
    skarpov
    Member
    Post count: 26

    This does not work for me. I changed the function. But I still have this problem. Any other ideas?

    #9681
    mediafactory
    Member
    Post count: 9

    Worked fine for me, be sure to copy the entire code in the map section.

    #9697
    skarpov
    Member
    Post count: 26

    I changed code in the file “/web/wp-content/themes/flexform/functions.php”.

    #9699
    skarpov
    Member
    Post count: 26

    But I still have this problem, although calculated coordinates correct. What can it be?

    #9737
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hey guys,

    Im hoping to get this into a hotfix update this evening, that you’ll be able to update too via the dashboard.

    Im not sure where you’re going wrong, as I’ve tested this personally. Could you try with a new maps asset and cleared cache?

    – Ed

    #9768
    skarpov
    Member
    Post count: 26

    Thanks. Where can i find this hotfix in the dashboard?

    #9770
    flintops
    Member
    Post count: 16

    Hi,

    I made the change to the functions.php file and it worked but now it’s reverted back to ‘Chalet Sunset’ i.e. it’s not working again.

    Nothing else was changed on the site so I’m confused.

    Any ideas?

    Thanbs,

    Paul

    #9800
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hey guys,

    Update has been uploaded, should be in your dashboard shortly.

    – Ed

    #9835
    flintops
    Member
    Post count: 16

    Hi Ed,

    All works now thanks.

    Just a note – the map cuts off at each end when used in the box layout. I can’t seem to locate the file where I can edit this and I think it’s part of the overall site CSS.

    Is there a fix for this?

    Thanks,

    Paul

    #9853
    skarpov
    Member
    Post count: 26

    I can not update it, it hangs after some time. I do it in dashboard. Exist any way for update? Thanks.

Viewing 15 posts - 1 through 15 (of 45 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register