Plugin Directory

Changeset 592988


Ignore:
Timestamp:
08/31/2012 03:46:44 PM (13 years ago)
Author:
jascott
Message:

map indexing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kickpress/trunk/includes/js/kickpress.js

    r592985 r592988  
    449449
    450450  // Create a lettered icon for this point using our icon class
    451   var letter = String.fromCharCode("A".charCodeAt(0) + ( index % 26 ) );
    452   if ( index >= 26 ) letter = letter + letter;
     451  var letter = String.fromCharCode("A".charCodeAt(0) + index );
    453452 
    454453  var letteredIcon = new GIcon(baseIcon);
    455   letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
     454 
     455  if ( index < 26 )
     456      letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
    456457
    457458  // Set up our GMarkerOptions object
Note: See TracChangeset for help on using the changeset viewer.