Thank you! I toyed around with it and finally it worked. Just added: img.style.display = "block"; to the creation of the image in Overlayview.
As you can tell - I'm not really a CCS wizard. Did spend too much time on this. Zzzz. Once again thanks the rescue! .nikolajp On 14 Sep., 13:35, Chad Killingsworth <[email protected]> wrote: > It's a css issue. img tags are inline elements by default. At > extremely small div sizes, the line-height of your font is taller than > your image so your image wraps down to the next line. Adding "display: > block" to your image styles will correct the issue. > > Chad Killingsworth > > On Sep 14, 3:33 am, nikolajp <[email protected]> wrote: > > > I have tweaked the test.htm above. > > It now shows markers at the OverlayView corners (bounds) SW and NE. > > > It is very easy to see, that on the max zoom out the image is not > > positioned at the markers. > > On the second-to-max it is also slightly wrong. > > After that level of zoom it is fine > > >http://nikolajp.dk/test.htm > > > What do I do wrong? > > The OverlayView .draw is from the Google API documentation. > > > Hope somebody has an idea!! > > Anyone from Google perhaps to confirm/deny that this is a bug? > > > .nikolajp > > > On 14 Sep., 09:59, nikolajp <[email protected]> wrote: > > > > Thanks for your feedback. > > > I have composed an image showing what I mean.. > > > >http://nikolajp.dk/overlayimages.jpg > > > > On the max zoom the rectangle is not where it should be at. > > > It's like it's moving down on the y-axis. > > > > Are you not see the same thing? > > > > I am making a map with custom tiles, and animating markers from sample > > > position data. > > > I wanted to use Overlayview class to get the graphics rotating. > > > In this example I have I draw both the markers and the Overlayview > > > icon on the same position. > > > But (as I mentioned) it seems the overlayview is not showing correctly > > > on close to max zoom levels. > > > It's the same on this example above. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
