Complex Icons -> Too many in my Array to render?

23 views
Skip to first unread message

Keith Demele

unread,
Nov 26, 2011, 3:22:03 AM11/26/11
to google-map...@googlegroups.com
I am upgrading from API 2 to 3 tonight, I was scratching my head for hours tonight trying to figure out why this simple use of the API did not work...I re-wrote it several times, copied it from several locations around the net, almost went crazy trying to figure it out...then instead of trying all 49 items in the array, I tried 3-5, and my icons showed up on my map...Using API 2 I had over 60 icons on screen at once, so I do not believe its an API issue?



How can I get 49 items to show up?

var tracks = [
  ['211 Motocross',33.326996, -101.937866, 17],
  ['Andrews MX', 32.474001,-102.581882, 18],
  ['Austin DelValle MX Park', 30.161203, -97.600449, 19],
  ['Badlands MX Park', 33.285500, -96.265800, 13],
  ['Boondoxxx MX', 33.113686, -96.375671, 21]
  ['Bowers MX', 35.253967, -101.884377, 22]  
  ['B&C MX', 29.861941,-95.060121, 20]
  ['Brushy Creek Motor Farm', 32.993160, -96.245491, 23]
  ['Buffalo Creek MX', 32.641216, -95.848129, 12]
  ['Buffalo Valley MX', 29.459740, -98.128937, 24]
  ['Burleson MX', 32.542217, -97.289879, 26]  
  ['Cornerstone MX', 30.036884, -95.803444, 14]
  ['Cowboy Badlands MX', 29.925370,-94.275763, 27]
  ['Cycle Ranch MX Park', 29.142361, -98.111748, 5]
  ['DDMX Ranch', 27.754219, -97.885880, 28]
  ['Extreme MX Park', 32.135536, -96.468407, 29]  
  ['Flat Creek MX', 33.115879, -94.522118, 30]
  ['Freestone County Raceway', 31.805500, -96.400505, 1]
  ['His 956 Facility', 33.143669, -97.8053, 15]
  ['I-35 MX', 33.818707, -97.133186, 3]
  ['Johnsonville MX Farm', 32.899254,-95.582911, 6]  
  ['Los Fresnos MX', 26.089790, -97.514687, 16]
  ['Lucky Landings MX', 32.664070, -98.039062, 31]
  ['Mesquite Hills MX Park', 32.455421, -99.837944, 32]
  ['Moto-X-Pit', 32.584625, -96.610870, 33]
  ['Monkey Island MX', 29.954323,-99.075859, 34]  
  ['Nocona MX', 33.818413, -97.773560, 35]
  ['North Forty Cycle Park', 33.684460, -96.513359, 36]
  ['Oak Hill MX', 33.299229, -97.691658, 7]
  ['Paris MX', 33.869952,-95.479624, 37]
  ['Rio Bravo MX', 29.891947, -95.237473, 8]  
  ['RedBug Cycle Park', 31.313489,-94.261258, 38]
  ['River Valley MX', 33.026134, -97.530884, 39]
  ['Shady Grove MX', 32.802353, -96.906975, 40]
  ['Southwest MX Park', 29.456806, -95.821335, 41]
  ['Splendora MX Park', 30.231613, -95.113144, 4]  
  ['Spring Valley MX', 32.435551, -99.478989, 42]
  ['Swan Raceway', 32.440411, -95.403816, 9]
  ['Trophy Club Park', 33.015285, -97.177910, 43]
  ['TNT Raceway', 33.625145, -101.662376, 44]
  ['The Pit MX', 32.826069, -96.280617, 45]  
  ['Three Palms Extreme Sports Park', 30.243263, -95.458664, 10]
  ['Underground MX Park', 32.365227, -96.306618, 11]
  ['Ulitmate Motocross Park', 29.423862,-95.176084, 46]
  ['Village Creek MX', 32.614395, -97.255524, 2]  
  ['Waco Eagles Motorcycle Club', 31.518776, -96.973267, 47]
  ['West Texas MX Park', 31.942112, -102.179504, 48]
  ['White Kunckle Ranch', 29.399656, -99.042618, 50]
  ['Willow Branch MX',32.496887, -95.584641, 49]
  ['Xtreme MX', 27.592464, -97.663544, 51]  
];

Thanks!  

Rossko

unread,
Nov 26, 2011, 9:01:32 AM11/26/11
to Google Maps JavaScript API v3
> http://txmotocross.com/track-map/

['Austin DelValle MX Park', 30.161203, -97.600449, 19],
['Badlands MX Park', 33.285500, -96.265800, 13],
['Boondoxxx MX', 33.113686, -96.375671, 21]
['Bowers MX', 35.253967, -101.884377, 22]

You seem to have forgotten some commas

Keith Demele

unread,
Nov 26, 2011, 2:15:42 PM11/26/11
to google-map...@googlegroups.com
Thanks, I feel like an idiot. Goes to show you, walk away and come back!
Reply all
Reply to author
Forward
0 new messages