Sorry Ross!! I forgot that you already told me.... sorry!! Again!!!!
Now I'm going well... but... I'm still having some problems...... In
case you missed... I'm really really new on this, javascript and
google maps, and now I'm having some problems to get the tooltip
correctly positioned. I let you my code so maybe can tell me what am I
doing wrong. I don't really understand the code I've modified to get
this so probably I've done something you might consider just stupid...
Sorry again!!!
function showTooltipTour(line)
{
var myPoint;
if(mouseMove != null)
{
myPoint = mouseMove;
}
else
{
myPoint = map.getCenter();
}
tooltip.innerHTML=line.tooltip;
tooltip.style.display="block";
if(typeof(tooltip.style.filter)=="string")
{
tooltip.style.filter="alpha(opacity:100)";
}
var currtype = map.getCurrentMapType().getProjection();
var point =
currtype.fromLatLngToPixel(map.fromDivPixelToLatLng(new
GPoint(0,0),true),map.getZoom());
var offset=currtype.fromLatLngToPixel(myPoint,map.getZoom());
var ancho=1;
var width=6;
var height=10;
var pos=new GControlPosition(G_ANCHOR_TOP_LEFT,new
GSize(offset.x-
point.x-ancho.x+width,offset.y-point.y-ancho.y-height));
pos.apply(tooltip);
}
Thanks a lot Ross!!!
--
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=.