You should be able to adjust / override the addSidebar method
 you will need to look at the code for details at this point probably
it diverges somewhat from EGeoXml ..

GeoXml.addSidebar = function(myvar, name, type, e, graphic, ckd, i) {

   var check = "checked";
   if(ckd=="false"){ check = ""; }
    var h="";
    var mid = myvar+"sb"+e;
   switch(type) {
   case  "marker" :  h = '<li id="'+mid+'" onmouseout="GEvent.trigger
(' + myvar+ '.overlayman.markers['+e+'],\'mouseout\');"
onmouseover="GEvent.trigger(' + myvar+ '.overlayman.markers['+e+'],
\'mouseover\');" ><input id="'+myvar+''+e+'CB" type="checkbox"
style="vertical-align:middle" '+check+' onclick="'+myvar+'.showHide('+e
+',this.checked)"><a href="#" onclick="GEvent.trigger(' + myvar+
'.overlayman.markers['+e+'],\'click\');return false;">'+ graphic +
name + '</a></li>';
   break;
  case  "polyline" :  h = '<li id="'+mid+'"  onmouseout="'+myvar+
'.overlayman.markers['+e+'].onOut();" onmouseover="'+myvar+
'.overlayman.markers['+e+'].onOver();" ><input id="'+myvar+''+e+'CB"
type="checkbox" '+check+' onclick="'+myvar+'.showHide
(null,this.checked,'+i+')"><span style="margin-top:6px;"><a href="#"
onclick="GEvent.trigger(' + myvar+ '.overlayman.markers['+e+'],\'click
\');return false;">&nbsp;' + graphic + name + '</a></span></li>';
  break;
  case "polygon": h = '<li id="'+mid+'"  onmouseout="'+myvar+
'.overlayman.markers['+e+'].onOut();" onmouseover="'+myvar+
'.overlayman.markers['+e+'].onOver();" ><input id="'+myvar+''+e+'CB"
type="checkbox" '+check+' onclick="'+myvar+'.showHide('+e
+',this.checked)"><span style="margin-top:6px;"><a href="#"
onclick="GEvent.trigger(' + myvar+ '.overlayman.markers['+e+'],\'click
\');return false;">&nbsp;' + graphic + name + '</a></span></nobr></
li>';
  break;
 case "groundoverlay": h = '<li id="'+mid+'"><input id="'+myvar+''+e
+'CB" type="checkbox" '+check+' onclick="'+myvar+'.showHide('+e
+',this.checked)"><span style="margin-top:6px;"><a href="#"
onclick="GEvent.trigger(' + myvar+ '.overlayman.markers['+e+'],\'zoomto
\');return false;">&nbsp;' + graphic + name + '</a></span></li>';
   break;
case "tiledoverlay": h = '<li id="'+mid+'"><nobr><input id="'+myvar
+''+e+'CB" type="checkbox" '+check+' onclick="'+myvar+'.toggleOff('+e
+',this.checked)"><span style="margin-top:6px;"><a href="#"
oncontextMenu="'+myvar+'.upgradeLayer('+i+');return false;"
onclick="GEvent.trigger(' + myvar+ '.overlayman.markers['+e+'],\'zoomto
\');return false;">'+GeoXml.WMSICON +'&nbsp;'+ name + '</a><br />'+
graphic +'</span></li>';
   break;
}
return h;
};


On Nov 16, 11:32 am, tanos_8888888888 <[email protected]>
wrote:
> Thanks Andrew.
>
> I added the nozoom:true to the GeoXML line and now the map does not
> zoom out
> to the world to start.  Great.... one down.
>
> The sidebar list all folders and markers.... how can I control both
> the clicks (so
> if a folder is clicked... nothing will happen vs. a marker which
> should bring up
> the InfoWindow) and when clicking a polygon... getting that no zoom to
> work
> for that too....
>
> Thanks for you help... very appreciated...
>
> On Nov 16, 9:20 am, Andrew Leach <[email protected]>
> wrote:
>
> > On Nov 16, 5:12 pm, tanos_8888888888 <[email protected]>
> > wrote:
>
> > > Thank you Andrew, but I AM using the GeoXml as shown in several
> > > examples all over the place.
> > > Any suggestions would be great.
>
> > Oops. Misread something there then, sorry.
>
> > However, one comment in the documentation might be useful: "Thanks for
> > some info!!! I would add that nozoom:true is vital if you don't want
> > the map automatically repositioned to show all the KML data. I was
> > tearing my hair out over this until I found it in the EGeoXML
> > documentation. For example if you want to position the map over your
> > own home location when you display the KML, pass the nozoom:true
> > option so that the map centre you pass in is actually used."
>
> > Because GeoXml is derived from EGeoXml, Mike's documentation may also
> > be useful.
>
> > Andrew

--

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=.


Reply via email to