luigi
unread,Aug 24, 2009, 6:04:56 PM8/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google API Libraries for GWT
Hi, Eric!
Yes it was that, now i dont have the errors but dont show the info
window when i click in the marker
i have this code
public native static void myinfowindows2(JavaScriptObject map,Widget
contenido,Double lat,Double lon,String logo,int width,int height,int
zoom) /*-{
$wnd.map=map;
var icon = new $wnd.GIcon();
icon.image = "images/logos/"+logo;
var zoom=zoom;
if(zoom<13){
width=0;
height=0;
}
var newheight=Math.floor((zoom*height)/19);
var newwidth=Math.floor((zoom*width)/19);
icon.iconSize = new $wnd.GSize(newwidth, newheight);
icon.shadowSize = new $wnd.GSize(newwidth, newheight);
icon.iconAnchor = new $wnd.GPoint(Math.floor(newwidth/2), Math.floor
(newheight/2));
icon.infoWindowAnchor = new $wnd.GPoint(Math.floor(newwidth/2),
Math.floor(newheight/2));
var markerOptions1 = {icon:icon, draggable: false, clickable:true};
var point1 = new $wnd.GLatLng(lat,lon);
var marker = new $wnd.GMarker(point1,markerOptions1);
$wnd.GEvent.addListener(marker,'click',function() {
if(marker.LittleInfoWindowInstance) {
marker.closeLittleInfoWidow();
} else {
marker.openLittleInfoWindow('fdsafdsfasdfas');
}
});
$wnd.GEvent.addListener(marker,'mouseover',function() {
marker.openToolTip('Adicione su empresa!');
});
$wnd.GEvent.addListener(marker,'mouseout',function() {
marker.closeToolTip();
});
map.addOverlay(marker);
//return marker;
}-*/;
the tooltip works fine but the click no, i have other example that
work fine with se same map!
any idea?
thanks in advance