I read on module help section "Users developing applications centered around a map can modify the map template of their map to quite easily add a sidebar."

Any clues?
Best regards
Code: Select all
...
<div id="underbar"></div>
{* javascript is on the bottom incase some smarty variables we need were set in the various generator calls *}
<__script__ type="text/javascript">
if( typeof(jQuery) == 'undefined' ) {
var div = document.getElementById('cggm_map_{$mapinstance}').
div.innerHTML = '<h3 style="color: red;">jQuery and jQuery UI Are Required</h3>';
throw new Error('jQuery and jQuery UI Are Required');
}
$(document).ready(function(){
var obj = $('#cggm_map_{$mapinstance}');
obj.cggm2({$generator->get_map_options_js()});
var myobj = obj.cggm2('getMarkerList');
for (var i = 0; i < myobj.length; ++i) {
$("#underbar").append( myobj[i].value + " - " + myobj[i].text + "<br />");
...
Code: Select all
$('#sidebar a.showinfowindow').click(function(){
var the_marker_name = $(this).data('marker-name');
obj.cggm2('showInfoWindow',the_marker_name);
});