Thanks Jacob, but this is not my case, anyone else?


On 18 mayo, 11:40, Jacob Atzen <[email protected]> wrote:
> I believe I found my problem: I was defining the dimensions of the map
> later in the HTML than I was initializing it. That is I had a
> javascript file for setting up the map included before loading the
> stylesheet for defining the map-div.
>
>
>
>
>
> On Mon, May 18, 2009 at 11:32 AM, Jacob Atzen <[email protected]> wrote:
> > On Mon, May 18, 2009 at 11:10 AM, 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'm seeing this exact behaviour too. Even with code as simple as:
>
> > jQuery(document).ready(function(){
> >  if (GBrowserIsCompatible()) {
> >    map = new GMap2(jQuery("#map").get(0));
> >    map.setCenter(starting_point, defaultZoom);
> >    map.setUIToDefault();
> >  };
> > });
>
> > In my case it seems to be somewhat inconsistent as it only happens
> > sometimes and only in Safari 3, not in Firefox so far.
>
> > --
> > Thanks,
> > - Jacob Atzen
>
> --
> Thanks,
> - Jacob Atzen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to