Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Map not showing the right location
New Landing › How can we help? › Themeforest Theme Support › Flexform › Map not showing the right location
Tagged: anything, block, builder, change, example, idea, new, noticed, page, place, right, show, showing, Swift, used, widget
- This topic has 44 replies, 11 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Flexform
-
June 28, 2013 at 9:18 am #9452
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
June 28, 2013 at 3:17 pm #9468Hi.
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?June 28, 2013 at 3:35 pm #9469I also have this problem?
June 28, 2013 at 8:16 pm #9489This is a known issue we’re getting Ed onto it asap.
Hopefully have a fix soon.
Thanks
BenJune 29, 2013 at 11:54 am #9529Hi 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
July 1, 2013 at 9:05 am #9680This does not work for me. I changed the function. But I still have this problem. Any other ideas?
July 1, 2013 at 9:07 am #9681Worked fine for me, be sure to copy the entire code in the map section.
July 1, 2013 at 11:30 am #9697I changed code in the file “/web/wp-content/themes/flexform/functions.php”.
July 1, 2013 at 11:34 am #9699But I still have this problem, although calculated coordinates correct. What can it be?
July 1, 2013 at 2:14 pm #9737Hey 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
July 1, 2013 at 6:22 pm #9768Thanks. Where can i find this hotfix in the dashboard?
July 1, 2013 at 6:54 pm #9770Hi,
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
July 1, 2013 at 11:04 pm #9800Hey guys,
Update has been uploaded, should be in your dashboard shortly.
– Ed
July 2, 2013 at 10:11 am #9835Hi 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
July 2, 2013 at 4:39 pm #9853I can not update it, it hangs after some time. I do it in dashboard. Exist any way for update? Thanks.
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.