Link to home
Start Free TrialLog in
Avatar of Nico2011
Nico2011Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Google Map Not Showing

Hello,

I have a page that I believe should be displaying a Google map but isn't.  I believe the XML data is in place, but I've obviously done something wrong...!

Please take a look at www.villasdirect.com/top-destinations.asp

Thanks in advance!
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Well, according to my javascript console, your XML file is invalid. Having a closer look at the XML, it appears to be all of the " " values in there that are causing the issue.

How are you generating the XML?
Avatar of Nico2011

ASKER

Hi Carl,

Thanks for your help - not quite there yet though.

I have cleaned up the XML - the  's were there as the town attribute was empty, so I did that intentionally, but now I have removed anything not necessary (including town), but it still doesn't quite click...

Best wishes/Nico
It appears you also have an encoding issue. You don't have an XML declaration in your document so it is using the default UTF-8 character set - and some of you data must be using something not included in the set.

Try adding this to the start of you XML:

<?xml version="1.0" encoding="iso-8859-1"?>

Open in new window

nope - didn't do it either...

I have now tried to minimise all the other data on the page so we can get to the root of the issue.  

This simplified page can be seen here: http://www.villasdirect.com/deps/country-map.asp?country=greece

I'm sure I've done something stupid though...
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks so much Carl - it was the autolng/autolat causing a javascript error that stopped it working...!