Hi all, I've discovered that this issue has something to do with the "map painting process". I think this because if, once the page has loaded, you change the browser size (for example, maximizing it), suddenly it starts working fine.
I don't know if this can be a clue for someone... On 18 mayo, 11:10, Manel <[email protected]> wrote: > Hi all, > > I'have developed a very simple page that were correctly running in all > navigators and, suddenly, it started to go wrong in some FF and > Chrome. I said "some" because there are some PC with the same FF > version (3.0.10) running well and some others not. > > I can't post any link because the page is in a development > environment, not available from the internet. > > The code I'm using... > > In the onload of the body: > > if (GBrowserIsCompatible()) > { > map = new GMap2(document.getElementById("map")); > map.setCenter(new GLatLng(39.926588, -2.9), 6); > map.setUIToDefault(); > mgr = new MarkerManager(map); > > GEvent.addListener(map, "moveend", onMove); > geocoder = new GClientGeocoder(); > buscaMapa(); > > } > > } > > (buscaMapa is the function that loads some icons in the map. In this > fucntion: > > var bounds = map.getBounds(); > var sw = bounds.getSouthWest(); > var ne = bounds.getNorthEast(); > > parmBusqueda.latitudMin = sw.lat(); > parmBusqueda.latitudMax = ne.lat(); > parmBusqueda.longitudMin = sw.lng(); > parmBusqueda.longitudMax = ne.lng(); > > The problem is that sw.lat is equal to ne.lat and sw.lng is greater > than ne.lng. > > I'm sure that the problem is related to the map loading because some > parts of the map seems to be not totally loaded (the south part is > grey, the focus bar doesn't appear, the map / satelit/ etc. buttons > are options in a combo) > > I tried putting the "buscaMapa" function in the "onload" event of the > map with the same results. > > Someone has any idea? > > Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
