Hi,

I have a problem with markers ordering in columns. I have used a
template (http://econym.org.uk/gmap/example_map15b.htm) from Mike
Williams, where he says - "You need to take a bit of care with
Math.ceil() and Math.floor() to avoid the possibility of the final
marker being placed in the next column".

I have 28 markers divided into 3 columns. They are arranged
vertically. There are 9 markers in the first column, 9 in second
column and 10 in the third column. I'd like to have 10 of them in the
first column and 9 in second and the third colum.

How can I achieve this?

Here's the part of the code with math.floor and math.ceil, since I
don't have maps on the web:


side_html = '<a href="javascript:myclick(' + i + ')">' + name + '<\/
a><br />';
        sidebar_html[Math.floor(i/num_markers)] += side_html;


var xmlDoc = GXml.parse(doc);
        var markers = xmlDoc.documentElement.getElementsByTagName
("marker");
        num_markers = Math.ceil(markers.length / sidebars);


Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to