Garthanos / geoxml

Automatically exported from code.google.com/p/geoxml
1 stars 0 forks source link

Uncaught ReferenceError: exml is not defined #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the XML onto a map.
2. Open Chrome's Javascript Console.
3. Click a map marker and the error is generated.

What is the expected output? What do you see instead?

Expected output was the actual infowindow with the description 
information.

What version of the product are you using? On what operating system?

Loaded the latest to ensure it wasn't a version issue.  I'm on OSX in Google 
Chrome.

Please provide any additional information below.

You can see the error at http://maps.wbu.com

Original issue reported on code.google.com by d...@douglaskarr.com on 18 Jan 2010 at 8:36

GoogleCodeExporter commented 9 years ago
The variable associated with the parser in your case exml needs to be in a 
global
context.

Original comment by lanceala...@gmail.com on 18 Jan 2010 at 8:44

GoogleCodeExporter commented 9 years ago
Can you provide a bit more detail?  What's the solution?

Original comment by d...@douglaskarr.com on 18 Jan 2010 at 8:46

GoogleCodeExporter commented 9 years ago
Read about scope,

http://econym.org.uk/gmap/scope.htm

when somebody says make your variable global.
outside of your function.
var exml;

inside your function
exml = new GeoXml(etc...);

Original comment by lanceala...@gmail.com on 18 Jan 2010 at 9:47