I speak too soon!!!

since you told me it was an error from the pixel calculation I've been
looking line by line and I've found the problem.
I changed the ancho value to a simple integer but it needs a GPoint:

        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= new GPoint(1,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);
        }


a really simple error.... now I know :)

Thanks a looooooooooootttttttt Ross!!

Now everything left is fix the data excess problem :P

--

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