On Jan 14, 4:54 pm, ützelbrütz <[email protected]> wrote:
>
> short:
> GBrowserIsCompatible() say my phone can show the map but it doesn't do
> so.
>
> I want either "no div if no map" or "div with map" but no empty div...
> where is the problem and how can I fix it?

See http://forums.invisionpower.com/lofiversion/index.php/t276521.html
for hints on styling the div so it's not shown, although you could do
something with it if you detect a mobile browser.

You may need to include testing the Javascript navigator object as
well. On my HTC TyTN II the navigator is "Microsoft IE Mobile". This
allows you to override GBrowserIsCompatible().

var compatibleBrowser = GBrowserIsCompatible();
var mapdiv = document.getElementById("map");
if (navigator.appName=="Microsoft IE Mobile")
  { compatibleBrowser=false;
    mapdiv.style.display=none; }
if (compatibleBrowser)
  { map = new GMap2(mapdiv);
    ...


Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • map on mobile phone ützelbrütz
    • Re: map on mobile phone warden [Andrew Leach - Maps API Guru]

Reply via email to