On May 21, 8:45 am, x <[email protected]> wrote (in a different order): > > Let me be sure i understood. your saying: despite setting the map size > for 300px , 500px for e.g the bounds ill get will differ on different > resolutions and on different browsers?
No-one's said that. For a fixed map size, you will always get the same bounds. Screen resolution (96dpi or 120dpi) is a moot point, because some calculations for polylines depend on it. 96dpi is standard and will work fine. > I cant provide a demo for this whole app, and part of it wont do it as > just creating the demo will require alot of time and probably ill miss > some important code. You could provide a demo of a map which determines its bounds in the same way as your application. In fact you must already have that because you are providing the results. If you are getting anomalous results, something is wrong. It may be the browser; it may be your code. How are we to know which? If it's only IE8 which is affected, you need to force it into IE7-compatibility mode and see if things improve. > it creates (using a complex calculation which takes time!) a GIF , > using a specific zoom level based on the bounds, which is added as a > layer. It does this only ONCE (as the calculation is pretty heavy). > Manipulating the map (zooming for e.g) is done on-the-fly by > interpolating that GIF (which is in a low zoom level). > So i must have the same bounds on all browsers. I think you're going about this the wrong way. Rather than create a large GIF overlay, you should be creating a tiled overlay. Each tile takes less work to produce, and because they are tiles they will appear as they are created so give the user something to look at while it's going on. And because the tiles are not tied to the edges of the screen (just like Google's tiles aren't), it doesn't matter what the bounds are calculated to be: and because tiles are placed in fixed positions on the earth you can cache them so you only need to create one if it doesn't already exist. Some resources here may help: http://groups.google.com/group/google-maps-api/web/more-info-gtilelayer-gtilelayeroverlay http://econym.org.uk/gmap/custommap.htm -- 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=en.
