On 28 Oct 2008, at 14:03, Chris Dekker wrote:

> Since Google Maps API handles all the requests for the tile, there  
> is no
> way to come inbetween there to fill some div with my JS data like you
> suggested. If you have a practical example I'd be very glad to see it.

Unless I'm totally wrong on what you're trying to do, here's some  
pseudocode on how I see it:

<ul id="positional-data">
    <li><em>37.4419, -122.1419</em><div class="content">put any  
content for your marker here</div>
    <li><em>38.4523, -121.1887</em><div class="content">put other  
content here</div>
</ul>

Javascript pseudocode (won't work, but you get the picture):

$('positional-data').select('li).each(function(el) {
    new GMarker(new google.maps.LatLng(el.down('em').innerHTML),  
el.down('.content'));
});


Best regards

Peter De Berdt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to