T5 is not defined

21 views
Skip to first unread message

James Hodgson

unread,
Oct 5, 2011, 5:55:07 PM10/5/11
to ti...@googlegroups.com
I can't seem to figure out how to squash this error. I am getting it both in the walmart visualization I am trying to make and in the new file I started in an attempt to just draw a map, any map.

Here's the old version that gets this error:
http://hodgsonco.com/map

And here's the new one that also gets it:
http://hodgsonco.com/map/index3.html

Any help on how to define T5 or where it's supposed to come from would be greatly appreciated! Thank you!

--
James C. Hodgson, Jr
+1.404.492.9692
Design: http://hodgsonco.com
Adventure: http://jimhodgson.com
Ceci n'est pas une pipe.


Damon Oehlman

unread,
Oct 5, 2011, 7:56:37 PM10/5/11
to ti...@googlegroups.com
Hey Jim,

With the second example try moving the script that does the map initialization out of the head of the document and put it just before the closing body tag.

I reckon that show you a map.

Additionally, I'd probably consider moving your zipsnlats.js data file after that map initialization script section as that will improve the load time for the page.  Basically anything in the head section will load fully before even attempting to load anything in the body of the document.  That's one big file and is definitely slowing your load times down.

So essentially you want a document that structured something like:

<html>
<head>
...
<script src="jquery.js"></script>
<script src="tile5.cloudmade.js"></script>
</head>
<body>
  <div id="mapContainer" style="height: 350px;" />
  <script>
  // map initialization
  </script>
  <script src="zipsnlats.js"></script>
  <script>
  // display the zips and lats
  </script>
</body>
</html>

Obviously the script paths aren't accurate and there are more things that you would include in the head of the document but I think if you follow this structure you should be laughing :)

Cheers,
Damon.

-- 
Damon Oehlman
t: DamonOehlman


Reply all
Reply to author
Forward
0 new messages